X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Fwhat-guestedit.php;h=b7ee2ea99a71f0ecc50dbd00f3c40558318889cf;hb=f7f6e55ee0d90558ad773ce6168767c0af816696;hp=60241a0712e1b7671bdf797ab847052633e99fcd;hpb=89edd713e330fd16e8da1edeadfd5046296ff0d2;p=mailer.git diff --git a/inc/modules/admin/what-guestedit.php b/inc/modules/admin/what-guestedit.php index 60241a0712..b7ee2ea99a 100644 --- a/inc/modules/admin/what-guestedit.php +++ b/inc/modules/admin/what-guestedit.php @@ -32,19 +32,18 @@ ************************************************************************/ // 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__)); // Do we edit/delete/change main menus or sub menus? $AND = "what = ''"; $SUB = ""; -if (!empty($_GET['sub'])) -{ +if (!empty($_GET['sub'])) { $AND = sprintf("action='%s'", SQL_ESCAPE($_GET['sub'])); $SUB = SQL_ESCAPE($_GET['sub']); }