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(strlen($out[1])>1) { $search_str = $out[1]; }elseif(strlen($out[3])>1) { $search_str = $out[3]; }else { $search_str = false; } if(strlen($out[2])>0) { $_GET['this_filename'] = $out[2]; $get = explode("_", $out[2]); $_GET['p'] = $get[0]; $_GET['page'] = $get[0]; $_GET['year'] = $get[0]; $_GET['id'] = $get[1]; $_GET['work_id'] = $get[1]; $_GET['article_id'] = $get[1]; $_GET['product_id'] = $get[1]; $_GET['var2'] = $get[2]; $_GET['var3'] = $get[3]; $_GET['var4'] = $get[4]; $_GET['var5'] = $get[5]; } include "index.php"; //header("Location: /index.php?item_id=33&l=".$_SESSION['lang_id']); } //echo base64_decode(basename($HTTP_SERVER_VARS['REQUEST_URI'], ".jpg")); ?>