$requestURI = explode('/', $_SERVER['REQUEST_URI']); $scriptName = explode('/',$_SERVER['SCRIPT_NAME']); for($i= 0;$i < sizeof($scriptName);$i++) { if ($requestURI[$i] == $scriptName[$i]) { unset($requestURI[$i]); } } $command = array_values($requestURI); $id = $command[0]; if ( strstr($id, 'id=' )) { $place= strpos($id,'=') + 1; $idnumber = substr($id,$place,15); } else if ( $id == 'index.php' OR $id == '' ) { $idnumber = 'xmXm0V1owx4'; } else { $idnumber = $id; } // xmXm0V1owx4 ?>
|
||||||||||
| ||||||||||