Changeset 377 for trunk/index.php
- Timestamp:
- Jan 20, 2012, 3:05:24 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r364 r377 2 2 3 3 include_once('Common/Global.php'); 4 5 function ProcessURL() 6 { 7 if(array_key_exists('REDIRECT_QUERY_STRING', $_SERVER)) 8 $PathString = $_SERVER['REDIRECT_QUERY_STRING']; 9 else $PathString = ''; 10 if(substr($PathString, -1, 1) == '/') $PathString = substr($PathString, 0, -1); 11 //echo('"'.$QueryString.'"'); 12 $PathItems = explode('/', $PathString); 13 if(strpos($_SERVER['REQUEST_URI'], '?') !== false) 14 $_SERVER['QUERY_STRING'] = substr($_SERVER['REQUEST_URI'], strpos($_SERVER['REQUEST_URI'], '?') + 1); 15 else $_SERVER['QUERY_STRING'] = ''; 16 parse_str($_SERVER['QUERY_STRING'], $_GET); 17 return($PathItems); 18 } 4 GlobalInit(); 19 5 20 6 $System->PathItems = ProcessURL();
Note:
See TracChangeset
for help on using the changeset viewer.