Beispiel #1
0
function init_get_params($url)
{
	return InitURLParam($url);
}
Beispiel #2
0
 public static function CheckUniqueKey($bUnset = true)
 {
     $arState = array();
     if (isset($_REQUEST["state"])) {
         parse_str($_REQUEST["state"], $arState);
         if (isset($arState['backurl'])) {
             InitURLParam($arState['backurl']);
         }
     }
     if (!isset($_REQUEST['check_key']) && isset($_REQUEST['backurl'])) {
         InitURLParam($_REQUEST['backurl']);
     }
     $checkKey = '';
     if (isset($_REQUEST['check_key'])) {
         $checkKey = $_REQUEST['check_key'];
     } elseif (isset($arState['check_key'])) {
         $checkKey = $arState['check_key'];
     }
     if ($_SESSION["UNIQUE_KEY"] != '' && $checkKey != '' && $checkKey === $_SESSION["UNIQUE_KEY"]) {
         if ($bUnset) {
             unset($_SESSION["UNIQUE_KEY"]);
         }
         return true;
     }
     return false;
 }
 public function CheckUniqueKey()
 {
     if (isset($_REQUEST["state"])) {
         $arState = array();
         parse_str($_REQUEST["state"], $arState);
         if (isset($arState['backurl'])) {
             InitURLParam($arState['backurl']);
         }
     }
     if (!isset($_REQUEST['check_key']) && isset($_REQUEST['backurl'])) {
         InitURLParam($_REQUEST['backurl']);
     }
     if ($_SESSION["UNIQUE_KEY"] != '' && $_REQUEST['check_key'] === $_SESSION["UNIQUE_KEY"]) {
         unset($_SESSION["UNIQUE_KEY"]);
         return true;
     }
     return false;
 }
Beispiel #4
0
function init_get_params($url)
{
    InitURLParam($url);
}