Changeset 37 for trunk/Global.php
- Timestamp:
- May 5, 2019, 5:17:06 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Global.php
r31 r37 24 24 25 25 return $Config['BaseURL'].$URL; 26 } 27 28 function ProcessURL() 29 { 30 if(array_key_exists('REDIRECT_QUERY_STRING', $_SERVER)) 31 $PathString = $_SERVER['REDIRECT_QUERY_STRING']; 32 else $PathString = ''; 33 if(substr($PathString, -1, 1) == '/') $PathString = substr($PathString, 0, -1); 34 $PathItems = explode('/', $PathString); 35 if(array_key_exists('REQUEST_URI', $_SERVER) and (strpos($_SERVER['REQUEST_URI'], '?') !== false)) 36 $_SERVER['QUERY_STRING'] = substr($_SERVER['REQUEST_URI'], strpos($_SERVER['REQUEST_URI'], '?') + 1); 37 else $_SERVER['QUERY_STRING'] = ''; 38 parse_str($_SERVER['QUERY_STRING'], $_GET); 39 return($PathItems); 26 40 } 27 41 … … 164 178 )); 165 179 } 180 181 function GetMicrotime() 182 { 183 list($Usec, $Sec) = explode(' ', microtime()); 184 return ((float)$Usec + (float)$Sec); 185 }
Note:
See TracChangeset
for help on using the changeset viewer.