X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_admins.php;h=d88a2821f1dddc73c4dc557cbf241e65207628bd;hb=2142149f3f72f1a2476f95a87937c044d63bbaf2;hp=5bd3d2cc85005848fb24d42485b2178ce26282c6;hpb=97dbb1a1f2f9e582132bb81c12895503e78e7a59;p=mailer.git diff --git a/inc/modules/admin/what-config_admins.php b/inc/modules/admin/what-config_admins.php index 5bd3d2cc85..d88a2821f1 100644 --- a/inc/modules/admin/what-config_admins.php +++ b/inc/modules/admin/what-config_admins.php @@ -110,8 +110,9 @@ if ((isset($_POST['edit'])) && ($SEL > 0)) { // Prepare variables if (empty($act)) $act = "---"; if (empty($wht)) $wht = "---"; - $eval = "\$mode = ADMINS_".strtoupper($mode)."_MODE;"; - eval($eval); + + // Get admin mode + $mode = constant('ADMINS_'.strtoupper($mode).'_MODE'); // Load admin's data $login = GET_ADMIN_LOGIN($admin); @@ -225,8 +226,9 @@ VALUES ('%s','%s','%s','%s')", // Prepare variables if (empty($act)) $act = "---"; if (empty($wht)) $wht = "---"; - $eval = "\$mode = ADMINS_".strtoupper($mode)."_MODE;"; - eval($eval); + + // Get mode + $mode = constant('ADMINS_'.strtoupper($mode).'_MODE'); // Load admin's data $login = GET_ADMIN_LOGIN($admin);