/** * Get array of status icons for email address * * @return array Status icons */ function emblk_get_status_icons() { return array('unknown' => get_icon('bullet_white', 'imgtag', array('title' => emblk_get_status_title('unknown'))), 'warning' => get_icon('bullet_yellow', 'imgtag', array('title' => emblk_get_status_title('warning'))), 'suspicious1' => get_icon('bullet_orange', 'imgtag', array('title' => emblk_get_status_title('suspicious1'))), 'suspicious2' => get_icon('bullet_orange', 'imgtag', array('title' => emblk_get_status_title('suspicious2'))), 'suspicious3' => get_icon('bullet_orange', 'imgtag', array('title' => emblk_get_status_title('suspicious3'))), 'prmerror' => get_icon('bullet_red', 'imgtag', array('title' => emblk_get_status_title('prmerror'))), 'spammer' => get_icon('bullet_brown', 'imgtag', array('title' => emblk_get_status_title('spammer')))); }
WHERE aipr_ID =' . $DB->quote($iprange_ID)); echo '<a href="#" rel="' . $new_status . '" color="' . aipr_status_color($new_status) . '">' . aipr_status_title($new_status) . '</a>'; break; case 'emblk_status_edit': // Update blocked status of email address // Check that this action request is not a CSRF hacked request: $Session->assert_received_crumb('emblkstatus'); // Check permission: $current_User->check_perm('emails', 'edit', true); $new_status = param('new_status', 'string'); $emblk_ID = param('emblk_ID', 'integer', true); load_funcs('tools/model/_email.funcs.php'); $DB->query('UPDATE T_email__blocked SET emblk_status = ' . (empty($new_status) ? 'NULL' : $DB->quote($new_status)) . ' WHERE emblk_ID =' . $DB->quote($emblk_ID)); echo '<a href="#" rel="' . $new_status . '" color="' . emblk_get_status_color($new_status) . '">' . emblk_get_status_title($new_status) . '</a>'; break; case 'user_level_edit': // Update level of an user from list screen by clicking on the level column // Check that this action request is not a CSRF hacked request: $Session->assert_received_crumb('userlevel'); // Check permission: $current_User->check_perm('users', 'edit', true); $user_level = param('new_user_level', 'integer'); $user_ID = param('user_ID', 'string'); $UserCache =& get_UserCache(); if ($User =& $UserCache->get_by_ID($user_ID, false)) { $User->set('level', $user_level); $User->dbupdate(); echo '<a href="#" rel="' . $user_level . '">' . $user_level . '</a>'; }