Changeset 27381


Ignore:
Timestamp:
Feb 16, 2014, 2:09:25 AM (10 years ago)
Author:
Eric
Message:

Bug fix : Remove obsolete is_adviser() call

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/whois_online/config.php

    r21237 r27381  
    100100
    101101// Submit and Advisor => Thanks
    102 if ( $sub and is_adviser() )
     102if ( $sub)
    103103        array_push($infos, l10n('You are Adviser and you are not authorized to change this configuration.'));
    104104
    105105        // Submit and not Advisor => Update Config table
    106 if ( $sub and count($errors) == 0 and $_POST['from']=='config' and !is_adviser()) {
     106if ( $sub and count($errors) == 0 and $_POST['from']=='config') {
    107107        if ( $conf['Whois Online'] != serialize($conf_whois) ) {
    108108                $conf['Whois Online'] = serialize($conf_whois);
     
    114114
    115115// Switch users on right side (=> Temporary)
    116 if ( isset($_POST['falsify']) and !is_adviser()
     116if ( isset($_POST['falsify'])
    117117    and count($errors) == 0 and $_POST['from']=='monitor'
    118118    and isset($_POST['cat_true']) and count($_POST['cat_true']) > 0) {
     
    122122}
    123123// Switch users on left side (Permanent <=)
    124 if ( isset($_POST['trueify']) and !is_adviser()
     124if ( isset($_POST['trueify'])
    125125    and count($errors) == 0 and $_POST['from']=='monitor'
    126126    and isset($_POST['cat_false']) and count($_POST['cat_false']) > 0) {
     
    130130}
    131131// Delete users from > 24 h temporary list
    132 if ( isset($_POST['prs_delete']) and !is_adviser()
     132if ( isset($_POST['prs_delete'])
    133133    and count($errors) == 0 and $_POST['from']=='monitor'
    134134    and isset($_POST['prs_remove']) and count($_POST['prs_remove']) > 0) {
     
    138138}
    139139// Compress it!
    140 if ( isset($_GET['check']) and !is_adviser() ) {
     140if ( isset($_GET['check'])) {
    141141  pwg_query('DELETE FROM ' . WHOIS_ONLINE_TABLE . ' WHERE `last_access` < ' . (time() - (3*24*60*60)) . '
    142142    AND `permanent` = \'false\' AND `IP` <> \'global\';');
Note: See TracChangeset for help on using the changeset viewer.