X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fadmins_functions.php;h=076213c0aea5ae2ba63b682c6d521b55a8245fbd;hp=dde26cc2bf322025e191764978f1f4c67c5ea786;hb=d3c4fdd9bfab35389e1a5ff48f3952d527c7b4bb;hpb=b0693e1b6ee1f65dcb09dae6960dc3abe35c75e4 diff --git a/inc/libs/admins_functions.php b/inc/libs/admins_functions.php index dde26cc2bf..076213c0ae 100644 --- a/inc/libs/admins_functions.php +++ b/inc/libs/admins_functions.php @@ -50,7 +50,7 @@ function adminsCheckAdminAcl ($action, $what) { // Default is deny $ret = false; - // Get admin's ID + // Get admin's id $adminId = getCurrentAdminId(); // Get admin's defult access right @@ -145,7 +145,7 @@ LIMIT 1", // Free memory SQL_FREERESULT($result); } elseif ((is_int($email)) && ($email > 0)) { - // Direct ID given + // Direct id given $email = "{?URL?}/modules.php?module=".$mod."&what=admins_contct&admin=".bigintval($email); } @@ -158,7 +158,7 @@ function adminsChangeAdminAccount ($postData) { // Begin the update $cache_update = 0; foreach ($postData['login'] as $id => $login) { - // Secure ID number + // Secure id number $id = bigintval($id); // When both passwords match update admin account @@ -172,7 +172,7 @@ function adminsChangeAdminAccount ($postData) { // Save password when set if (!empty($postData['pass1'][$id])) $add = sprintf(", password='%s'", SQL_ESCAPE($hash)); - // Get admin's ID + // Get admin's id $adminId = getCurrentAdminId(); $salt = substr(getAdminHash($adminId), 0, -40); @@ -260,7 +260,7 @@ function adminsEditAdminAccount ($postData) { // Begin the edit loop $OUT = ''; $SW = 2; foreach ($postData['sel'] as $id => $selected) { - // Secure ID number + // Secure id number $id = bigintval($id); // Get the admin's data @@ -305,7 +305,7 @@ function adminsDeleteAdminAccount ($postData) { // Delete accounts $OUT = ''; $SW = 2; foreach ($postData['sel'] as $id => $selected) { - // Secure ID number + // Secure id number $id = bigintval($id); // Get the admin's data @@ -341,7 +341,7 @@ function adminsRemoveAdminAccount ($postData) { // Begin removal $cache_update = 0; foreach ($postData['sel'] as $id => $del) { - // Secure ID number + // Secure id number $id = bigintval($id); // Delete only when it's not your own account! @@ -414,7 +414,7 @@ function sendAdminsEmails ($subj, $template, $content, $UID) { SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_admins_mails` (`admin_id`, `mail_template`) VALUES (0, '%s')", array($template), __FUNCTION__, __LINE__); } else { - // Load admin IDs... + // Load admin ids... // @TODO This can be, somehow, rewritten $adminIds = array(); while ($content = SQL_FETCHARRAY($result)) { @@ -427,7 +427,7 @@ function sendAdminsEmails ($subj, $template, $content, $UID) { // Init result $result = false; - // "implode" IDs and query string + // "implode" ids and query string $adminId = implode(',', $adminIds); if ($adminId == '-1') { if (isExtensionActive('events')) { @@ -446,7 +446,7 @@ function sendAdminsEmails ($subj, $template, $content, $UID) { $result = SQL_QUERY("SELECT `email` FROM `{?_MYSQL_PREFIX?}_admins` ORDER BY `id` ASC", __FUNCTION__, __LINE__); } else { - // If Admin-ID is not "to-all" select + // If Admin-Id is not "to-all" select $result = SQL_QUERY_ESC("SELECT `email` FROM `{?_MYSQL_PREFIX?}_admins` WHERE `id` IN (%s) ORDER BY `id` ASC", array($adminId), __FUNCTION__, __LINE__); }