Refback will be payed now (user cannot setup currently)
[mailer.git] / inc / modules / loader.php
index c8c62dd..ab8533a 100644 (file)
  ************************************************************************/
 
 // Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
+if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 }
 
 if (!empty($_GET['url'])) {
        // Decode URL
-       $url = COMPILE_CODE(@gzuncompress(base64_decode(urldecode($_GET['url']))));
+       $url = gzuncompress(base64_decode(str_replace(" ", "+", COMPILE_CODE(urldecode($_GET['url'])))));
 
        // Validate the URL
        if (VALIDATE_URL($url)) {