X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Faction-admins.php;h=d470716f45aced4d6481c516b58e235920f3e436;hb=875fc680630af5fdf69f42e77321d807e182916d;hp=98f8bacbac51f19ad91820212efe7578ae162ad6;hpb=de454a4f3cba4ac73cb9a0bc4dc02f81bdd4e53f;p=mailer.git diff --git a/inc/modules/admin/action-admins.php b/inc/modules/admin/action-admins.php index 98f8bacbac..d470716f45 100644 --- a/inc/modules/admin/action-admins.php +++ b/inc/modules/admin/action-admins.php @@ -38,7 +38,7 @@ // Some security stuff... if ((!defined('__SECURITY')) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; require($INC); } @@ -46,12 +46,12 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) { ADD_DESCR('admin', __FILE__); // Load the include file -$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what'])); -if (INCLUDE_READABLE($INC)) { +$INC = sprintf("inc/modules/admin/what-%s.php", getWhat()); +if (isIncludeReadable($INC)) { // Ok, we finally load the admin action module - LOAD_INC($INC); + loadInclude($INC); } else { - addFatalMessage(__FILE__, __LINE__, getMessage('ADMIN_ACTION_404'), $GLOBALS['what']); + addFatalMessage(__FILE__, __LINE__, getMessage('ADMIN_ACTION_404'), getWhat()); } //