Security line in all includes changed
[mailer.git] / inc / libs / rallye_functions.php
index f5e88c4dc12fe13a3930b377c2c3a2abfdb5ccd5..94485d633e5d56d9f1190c35c72461f82f940cd4 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);
 }
+
 //
 function RALLYE_AUTOSTART_RALLYES($result)
 {