if( $this->_userId > 0) { $user = $users->getUserInfoFromId( $this->_userId ); if( !$user ) { $this->_view = new ErrorView( $this->_blogInfo ); $this->_view->setValue( 'message', 'error_incorrect_user_id' ); $this->setCommonData(); return false; } }
function getRequest() { if( phpversion() >= "4.1.0" ) $requestVars = $_REQUEST; else { $postVars = HttpVars::getPost(); $getVars = HttpVars::getGet(); $cookieVars = HttpVars::getCookie(); $requestVars = array_merge( $getVars, $postVars, $cookieVars ); } return $requestVars; }
gpc_order = "GP"
function getRequest() { $postVars = HttpVars::getPost(); $getVars = HttpVars::getGet(); $cookieVars = ""; $requestVars = array_merge( $getVars, $postVars, $cookieVars ); return $requestVars; }
$getVars = HttpVars::getGet();$cookieVars = HttpVars::getCookie();
$getVars = HttpVars::getGet();$cookieVars = HttpVars::getCookie();print_r($getVars);print_r($cookieVars );
Cookies:Array ( [plogsession] => 131b62b6b0b801b5a234e80d4804c759 [userId] => 2b265f43856f4b17b6cac484ff1fd903 ) Get:Array()Post:Array()Session:Array ( [SessionInfo] => sessioninfo Object ( [_props] => Array ( [summaryLang] => zh_CN ) [_objId] => [log] => ) ) $_REQUEST:Array ( [plogsession] => 131b62b6b0b801b5a234e80d4804c759 [userId] => 2b265f43856f4b17b6cac484ff1fd903 )