Changeset 377 for trunk/Common/Global.php
- Timestamp:
- Jan 20, 2012, 3:05:24 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Global.php
r373 r377 61 61 $System = new System($Database); 62 62 $System->Config = &$Config; 63 $System->Install(); 63 64 $System->ReloadList(); 64 65 $System->Install(); … … 375 376 } 376 377 377 GlobalInit(); 378 function ProcessURL() 379 { 380 if(array_key_exists('REDIRECT_QUERY_STRING', $_SERVER)) 381 $PathString = $_SERVER['REDIRECT_QUERY_STRING']; 382 else $PathString = ''; 383 if(substr($PathString, -1, 1) == '/') $PathString = substr($PathString, 0, -1); 384 //echo('"'.$QueryString.'"'); 385 $PathItems = explode('/', $PathString); 386 if(strpos($_SERVER['REQUEST_URI'], '?') !== false) 387 $_SERVER['QUERY_STRING'] = substr($_SERVER['REQUEST_URI'], strpos($_SERVER['REQUEST_URI'], '?') + 1); 388 else $_SERVER['QUERY_STRING'] = ''; 389 parse_str($_SERVER['QUERY_STRING'], $_GET); 390 return($PathItems); 391 } 378 392 379 393 ?>
Note:
See TracChangeset
for help on using the changeset viewer.