// Default is deny
$ret = false;
- // Get admin's ID
+ // Get admin's id
$adminId = getCurrentAdminId();
// Get admin's defult access right
// 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);
}
// 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
// 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);
// 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
// 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
// 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!
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)) {
// Init result
$result = false;
- // "implode" IDs and query string
+ // "implode" ids and query string
$adminId = implode(',', $adminIds);
if ($adminId == '-1') {
if (isExtensionActive('events')) {
$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__);
}