]> 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 58c2147f0a350ff7b0be4ece9e78cb104ae42d9c..ce84588bad234c8522f61b612152a6f4bf5621e7 100644 (file)
@@ -48,8 +48,7 @@ ADD_DESCR("admin", __FILE__);
 $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