0) { $res = explode("&", $out[2]); foreach($res as $k => $v) { $get = explode("=", $v); $_GET[$get[0]] = $get[1]; } }else { $out[1] = $_SERVER['REQUEST_URI']; } $tmp = $out[1]; if(strpos($_SERVER['REQUEST_URI'], ".xml") !== false) preg_match('/\/([^\s]+)\/([^\s]+)\.xml|\/([^\s]+)\//', $tmp, $out); else preg_match('/\/([^\s]+)\/([^\s]+)\.html|\/([^\s]+)\//', $tmp, $out); if(isset($out[1]) && strlen($out[1])>1) { $search_str = $out[1]; }elseif(isset($out[3]) && strlen($out[3])>1) { $search_str = $out[3]; }else { $search_str = false; } if(isset($out[2]) && strlen($out[2])>0) { $_GET['this_filename'] = $out[2]; $get = explode("_", $out[2]); if(isset($get[0])) $_GET['p'] = $get[0]; if(isset($get[0])) $_GET['page'] = $get[0]; if(isset($get[0])) $_GET['year'] = $get[0]; if(isset($get[1])) $_GET['id'] = $get[1]; if(isset($get[1])) $_GET['work_id'] = $get[1]; if(isset($get[1])) $_GET['article_id'] = $get[1]; if(isset($get[1])) $_GET['product_id'] = $get[1]; if(isset($get[2])) $_GET['var2'] = $get[2]; if(isset($get[3])) $_GET['var3'] = $get[3]; if(isset($get[4])) $_GET['var4'] = $get[4]; if(isset($get[5])) $_GET['var5'] = $get[5]; } include "index.php"; } ?>