Security line in all includes changed
[mailer.git] / inc / modules / guest / what-sponsor_infos.php
index 01a0f20..7e0f927 100644 (file)
@@ -31,8 +31,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);
 }
@@ -92,7 +91,7 @@ if ($num_act > 0)
                        if (!ereg(",", $content['price']))
                        {
                                // Add missing zeros
-                               $content['price'] .= ",".str_repeat("0", $CONFIG['max_comma']);
+                               $content['price'] .= ",".str_repeat("0", $_CONFIG['max_comma']);
                        }
 
                        // Load row template and switch color