]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-refbanner.php
Entire rewrite of mail part in app! Not kidding here...
[mailer.git] / inc / modules / admin / what-refbanner.php
index 93a3f9ee9ecd5984955caa7d51a0e1216abeeb1e..c3dd4ef69d889f8e8380596a29757b6ed91b42ac 100644 (file)
  ************************************************************************/
 
 // Some security stuff...
-if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
-{
+if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 }
+
 // Add description as navigation point
 ADD_DESCR("admin", basename(__FILE__));
 
@@ -62,7 +62,7 @@ if (isset($_POST['ok']))
                {
                        // Add banner
                        $result = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_refbanner (url, alternate, visible)
-VALUES ('%s', '%s', '%s')",
+VALUES ('%s','%s','%s')",
  array($_POST['url'], $_POST['alternate'], $_POST['visible']), __FILE__, __LINE__);
                }
                 else