$target = constant('URL')."/cms/";
// Convert modules.php?module=...
- $test = preg_replace("/".$URL."\\/modules.php\\?module=/i", $target, $HTML);
+ $test = preg_replace("/".$URL."/modules.php?module=/i", $target, $HTML);
if (eregi(SERVER_URL, $test)) {
- // Konvert URLs from my server
- $URL = str_replace("/", "\\/", constant('SERVER_URL'));
- $test = preg_replace("/".$URL."\\/modules.php\\?module=/i", constant('SERVER_URL')."/cms/", $test);
+ // Convert URLs from my server
+ $test = preg_replace("/".constant('SERVER_URL')."/modules.php?module=/i", constant('SERVER_URL')."/cms/", $test);
} // END - if
// Strip slashes as above for the main URL