- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
function url_rewriter(){
$rules=file_get_contents("system/static/rewrite_rules.conf");
$rules=explode("\n",$rules);
for ($i=0;$i<count($rules);$i++){
$z=explode(" ",$rules[$i]);
$r[$z[0]]=$z[1];
}
foreach ($r as $n => $v)
{
if ("si".$_GET['url']==$n or "si".$_GET['url']==$n."/") { $_GET['page']=$v; $ok=1;}
if ("ab".$_GET['url']==$n or "ab".$_GET['url']==$n."/") { $_GET['page']=$v; $ok=1;}
if ("inter".$_GET['url']==$n or "inter".$_GET['url']==$n."/") {$_GET['page']=$v; $ok=1;}
if ("he".$_GET['url']==$n or "he".$_GET['url']==$n."/") {$_GET['page']=$v; $ok=1;}
}
if ("inter".$_GET['url']=="internet-service/cabinet/basket/mobileterminal"||
"inter".$_GET['url']=="internet-service/cabinet/basket/mobileterminal/"){
$_GET['page']=14;
$ok=1;
$_GET['mobileterminal']="on";
unset($_GET['url']);
}
return $ok;
}
Lure Of Chaos 08.12.2011 12:43 # +2
zoggi 08.12.2011 13:04 # 0
киянка
TarasB 08.12.2011 14:31 # 0
gorky 09.12.2011 13:03 # 0