Code:$urlin =
array(
"'(?<!/)index.php'",
"'(?<!/)modules.php'",
"'(?<!/)gate.html\?name=News&file=comments&op=showreply&tid=([0-9]*)&sid=([0-9]*)&pid=([0-9]*)&mode=([a-zA-Z0-9+]*)&order=([0-9]*)&thold=([/:|\s\-\'{}().&_0-9+=]*)'",
"'(?<!/)gate.html\?name=News&file=categories&op=newindex&catid=([0-9]*)&pagenum=([0-9]*)'",
"'(?<!/)gate.html\?name=News&file=categories&op=newindex&catid=([0-9]*)'",
"'(?<!/)gate.html\?name=News&file=categories&op=newindex&catid=([0-9]*)'",
"'(?<!/)gate.html\?name=News&file=article&op=newindex&catid=([0-9]*)&pagenum=([0-9]*)'",
"'(?<!/)gate.html\?name=News&file=article&op=newindex&catid=([0-9]*)'",
"'(?<!/)gate.html\?name=News&op=newindex&catid=([0-9]*)'",
"'(?<!/)gate.html\?name=News&file=article&sid=([0-9]*)&mode=([a-zA-Z0-9+]*)&order=([0-9]*)&thold=([/:|\s\-\'{}().&_0-9+=]*)'",
"'(?<!/)gate.html\?name=News&file=article&sid=([0-9]*)'",
"'(?<!/)gate.html\?name=News&file=article&sid=([0-9]*)'",
"'(?<!/)gate.html\?name=News&new_topic=([0-9]*)&pagenum=([0-9]*)'",
"'(?<!/)gate.html\?name=News&new_topic=([0-9]*)'",
"'(?<!/)gate.html\?name=News&new_topic=([0-9]*)'",
"'(?<!/)gate.html\?name=News&file=print&sid=([0-9]*)'",
"'(?<!/)gate.html\?name=News&pagenum=([0-9]*)'",
"'(?<!/)gate.html\?name=News&file=index'",
"'(?<!/)gate.html\?name=News&file=index'"
);
$urlout = array(
"index.html",
"gate.html",
"comment\\1-\\2-\\3-\\4\\5\\6.html",
"cat\\1-\\2.html",
"cat\\1.html",
"cat\\1.html",
"cat\\1-\\2.html",
"cat\\1.html",
"cat\\1.html",
"article\\1.html",
"article\\1.html",
"article\\1.html",
"topic\\1-\\2.html",
"topic\\1.html",
"topic\\1.html",
"printout\\1.html",
"newspage\\1.html",
"articles",
"articles"
);
$s = preg_replace($urlin, $urlout, $s);
return $s;
}
|