]> git.mxchange.org Git - mailer.git/blobdiff - inc/gen_mediadata.php
More fixes, thanks to Piter01
[mailer.git] / inc / gen_mediadata.php
index 07a0b4f44c1f5c14da81d2193532517b536e3a0b..66d5a4d8f0c2486726006840d2c89c014f2a79d7 100644 (file)
@@ -32,8 +32,7 @@
  ************************************************************************/
 
 // 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);
 }