Ignore:
Timestamp:
Jul 28, 2009, 9:33:06 PM (15 years ago)
Author:
vdigital
Message:

Minor release: 2009-07-28 2.0.j

Minor changes in Config management
Additionnal flags (Ireland, Armenia, Estonia, Kazakhstan, Belarus,
Andorra, Turkey, Albania, Bosnia and Herzegovina, Azerbaijan, Iceland, European Union,
Israel, Morocco, New Caledonia and some other revised)
Search Engine trapping

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/whois_online/config.php

    r3340 r3695  
    1616if (!defined('IN_ADMIN') or !IN_ADMIN) die('Hacking attempt!');
    1717global $conf, $conf_whois, $lang;
     18$conf['show_gt'] = true;
    1819load_language('plugin.lang', WHOIS_ONLINE_PATH);
    1920
     
    8384if ( $sub and count($errors) == 0 and $_POST['from']=='config' and !is_adviser()) {
    8485        if ( $conf['Whois Online'] != serialize($conf_whois) ) {
     86                $conf['Whois Online'] = serialize($conf_whois);
    8587                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');");
    8789                array_push($infos, l10n('Configuration has been saved.'));
    8890        }
     
    210212        // Most members ever online was
    211213        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));
    213215                $conf_whois['Users']['count'] = $count['ctr'];
    214216        }
Note: See TracChangeset for help on using the changeset viewer.