X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_cats.php;h=4b1eac18edae23289c95d83209307e290968fffa;hb=f74581eca45c393033acfd9d7798b958031bc625;hp=813156de9dcd411c4ceab41354e2670d6f5a9b33;hpb=d5ee31ebfc85f22fc691b8c2753c42e188c1c4ef;p=mailer.git diff --git a/inc/modules/admin/what-list_cats.php b/inc/modules/admin/what-list_cats.php index 813156de9d..4b1eac18ed 100644 --- a/inc/modules/admin/what-list_cats.php +++ b/inc/modules/admin/what-list_cats.php @@ -41,18 +41,18 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) { // Add description as navigation point ADD_DESCR("admin", __FILE__); -if (!empty($_GET['u_id'])) { +if (REQUEST_ISSET_GET(('uid'))) { // Check if the user already exists $result = SQL_QUERY_ESC("SELECT surname, family, email FROM `{!_MYSQL_PREFIX!}_user_data` WHERE userid=%s LIMIT 1", - array(bigintval($_GET['u_id'])), __FILE__, __LINE__); + array(bigintval(REQUEST_GET('uid'))), __FILE__, __LINE__); if (SQL_NUMROWS($result) == 1) { // Loads surname, family's name and the email address list($sname, $fname, $email) = SQL_FETCHROW($result); SQL_FREERESULT($result); // Prepare constants - define('__CATS_BASE' , "".$sname." ".$fname.""); @@ -65,7 +65,7 @@ if (!empty($_GET['u_id'])) { while (list($cid, $cat) = SQL_FETCHROW($result_cats)) { // Check user's selection $result_user = SQL_QUERY_ESC("SELECT id FROM `{!_MYSQL_PREFIX!}_user_cats` WHERE userid=%s AND cat_id=%s LIMIT 1", - array(bigintval($_GET['u_id']), bigintval($cid)), __FILE__, __LINE__); + array(bigintval(REQUEST_GET('uid')), bigintval($cid)), __FILE__, __LINE__); // Set selection $SELECTED = "{--NO--}"; @@ -96,7 +96,7 @@ if (!empty($_GET['u_id'])) { } } else { // User not found - LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_MEMBER_404_1.__UID.ADMIN_MEMBER_404_2); + LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('ADMIN_MEMBER_404'), constant('__UID'))); } } else { // Output selection form with all confirmed user accounts listed