Security line in all includes changed
[mailer.git] / inc / modules / guest / what-sponsor_infos.php
index 01a0f202b4d4ce41da3b38f3a3521f625d1ad719..7e0f927854210b40610960d95463890275755a23 100644 (file)
@@ -31,8 +31,7 @@
  ************************************************************************/
 
 // Some security stuff...
  ************************************************************************/
 
 // 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);
 }
        $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
                        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
                        }
 
                        // Load row template and switch color