]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_user.php
A lot eval() commands rewritten to constant() function
[mailer.git] / inc / modules / admin / what-list_user.php
index 6bf976a1c8a930a64459240c507054ebb3944fb1..ce84588bad234c8522f61b612152a6f4bf5621e7 100644 (file)
@@ -42,14 +42,13 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 }
 
 // Add description as navigation point
-ADD_DESCR("admin", basename(__FILE__));
+ADD_DESCR("admin", __FILE__);
 
 // Init title with "all accounts"
 $listHeader = ADMIN_ALL_ACCOUNTS;
 if (!empty($_GET['mode'])) {
        // Set title according to the "mode"
-       $eval = sprintf("\$listHeader = ADMIN_LIST_%s_ACCOUNTS;", strtoupper(SQL_ESCAPE($_GET['mode'])));
-       eval($eval);
+       $listHeader = constant(sprintf("ADMIN_LIST_%s_ACCOUNTS", strtoupper(SQL_ESCAPE($_GET['mode']))));
 } // END - if
 
 // Remember it