Changeset 27381
- Timestamp:
- Feb 16, 2014, 2:09:25 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/whois_online/config.php
r21237 r27381 100 100 101 101 // Submit and Advisor => Thanks 102 if ( $sub and is_adviser())102 if ( $sub) 103 103 array_push($infos, l10n('You are Adviser and you are not authorized to change this configuration.')); 104 104 105 105 // Submit and not Advisor => Update Config table 106 if ( $sub and count($errors) == 0 and $_POST['from']=='config' and !is_adviser()) {106 if ( $sub and count($errors) == 0 and $_POST['from']=='config') { 107 107 if ( $conf['Whois Online'] != serialize($conf_whois) ) { 108 108 $conf['Whois Online'] = serialize($conf_whois); … … 114 114 115 115 // Switch users on right side (=> Temporary) 116 if ( isset($_POST['falsify']) and !is_adviser()116 if ( isset($_POST['falsify']) 117 117 and count($errors) == 0 and $_POST['from']=='monitor' 118 118 and isset($_POST['cat_true']) and count($_POST['cat_true']) > 0) { … … 122 122 } 123 123 // Switch users on left side (Permanent <=) 124 if ( isset($_POST['trueify']) and !is_adviser()124 if ( isset($_POST['trueify']) 125 125 and count($errors) == 0 and $_POST['from']=='monitor' 126 126 and isset($_POST['cat_false']) and count($_POST['cat_false']) > 0) { … … 130 130 } 131 131 // Delete users from > 24 h temporary list 132 if ( isset($_POST['prs_delete']) and !is_adviser()132 if ( isset($_POST['prs_delete']) 133 133 and count($errors) == 0 and $_POST['from']=='monitor' 134 134 and isset($_POST['prs_remove']) and count($_POST['prs_remove']) > 0) { … … 138 138 } 139 139 // Compress it! 140 if ( isset($_GET['check']) and !is_adviser()) {140 if ( isset($_GET['check'])) { 141 141 pwg_query('DELETE FROM ' . WHOIS_ONLINE_TABLE . ' WHERE `last_access` < ' . (time() - (3*24*60*60)) . ' 142 142 AND `permanent` = \'false\' AND `IP` <> \'global\';');
Note: See TracChangeset
for help on using the changeset viewer.