if (REQUEST_ISSET_GET(('url'))) {
// Decode URL
- $url = decodeString(str_replace(" ", "+", compileUriCode(urldecode(REQUEST_GET('url')))));
+ $url = decodeString(str_replace(' ', '+', compileUriCode(urldecode(REQUEST_GET('url')))));
// Validate the URL
- if (VALIDATE_URL($url)) {
+ if (isUrlValid($url)) {
// Prepare data for the template
define('__URL', $url);
// Generate a JavaScript that redirects us
- LOAD_TEMPLATE("loader");
+ LOAD_TEMPLATE('loader');
} else {
// URL invalid
- LOAD_URL("index.php");
+ redirectToUrl('index.php');
}
} else {
// Invalid or no URL entered!
- LOAD_URL("index.php");
+ redirectToUrl('index.php');
}
//