Example #1
0
 public static function parseGetData()
 {
     if (self::$isParse == 'yes') {
         return true;
     }
     $uri = trim($_SERVER['REQUEST_URI']);
     if (preg_match('/\\?(.*?)$/i', $uri, $match)) {
         self::$isParse = 'yes';
         $listData = array();
         parse_str($match[1], $listData);
         self::$requestData = $listData;
         $total = count($listData);
         $listKey = array_keys($listData);
         for ($i = 0; $i < $total; $i++) {
             $key = $listKey[$i];
             $_GET[$key] = $listData[$key];
             $_REQUEST[$key] = $listData[$key];
         }
     }
 }