Changeset 3695 for extensions/whois_online/config.php
- Timestamp:
- Jul 28, 2009, 9:33:06 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/whois_online/config.php
r3340 r3695 16 16 if (!defined('IN_ADMIN') or !IN_ADMIN) die('Hacking attempt!'); 17 17 global $conf, $conf_whois, $lang; 18 $conf['show_gt'] = true; 18 19 load_language('plugin.lang', WHOIS_ONLINE_PATH); 19 20 … … 83 84 if ( $sub and count($errors) == 0 and $_POST['from']=='config' and !is_adviser()) { 84 85 if ( $conf['Whois Online'] != serialize($conf_whois) ) { 86 $conf['Whois Online'] = serialize($conf_whois); 85 87 pwg_query('REPLACE INTO ' . CONFIG_TABLE . " (param,value,comment) 86 VALUES ('Whois Online','". serialize($conf_whois)."','Whois Online configuration');");88 VALUES ('Whois Online','". $conf['Whois Online'] ."','Whois Online configuration');"); 87 89 array_push($infos, l10n('Configuration has been saved.')); 88 90 } … … 210 212 // Most members ever online was 211 213 if (!isset($conf_whois['Users']['count']) or $conf_whois['Users']['count'] == 0) { 212 $count = mysql_fetch_assoc(pwg_query('SELECT MAX(` id`) AS `ctr` FROM ' . USERS_TABLE));214 $count = mysql_fetch_assoc(pwg_query('SELECT MAX(`'. $conf['user_fields']['id'] .'`) AS `ctr` FROM ' . USERS_TABLE)); 213 215 $conf_whois['Users']['count'] = $count['ctr']; 214 216 }
Note: See TracChangeset
for help on using the changeset viewer.