#phpinfo(); #echo "
"; #print_r($_SERVER); #$id_path = split("/",$_SERVER["QUERY_STRING"]); $id_path = explode("/",$_SERVER["QUERY_STRING"]); #print_r($id_path); #exit(); if ($id_path[1] != "image") { $_GET['x'] = $id_path[1]; } else { $id_path[2] = (int) $id_path[2]; $_GET['showimage'] = $id_path[2]; } if ($id_path[1] == "map") { $_GET['x'] = "googlemap"; if ($id_path[2]) { $id_path[2] = (int) $id_path[2]; $_GET['showimage'] = $id_path[2]; } } if ($id_path[1] == "browse") { $_GET['x'] = "browse"; if (strpos($id_path[2], "page")) { $_GET['pagenum'] = str_replace('page','',$id_path[2]); } else { $_GET['category'] = $id_path[2]; if ($id_path[3]) { if (!strpos($id_path[3],".html")) { $_GET['pagenum'] = str_replace('page','',$id_path[3]); } } } } if ($id_path[1] == "tag") { $_GET['x'] = "browse"; $_GET['tag'] = $id_path[2]; if (strpos($id_path[3], "page")) { $_GET['pagenum'] = str_replace('page','',$id_path[2]); } else { $_GET['category'] = $id_path[2]; if ($id_path[4]) { $_GET['pagenum'] = str_replace('page','',$id_path[4]); } } } #print_r($id_path); #exit; include('index.php'); ?>