Changeset 6212


Ignore:
Timestamp:
05/17/10 21:47:09 (9 years ago)
Author:
vdigital
Message:

Fix : Missing Country => Language Country
Revised : embed Cluetip version 1.0.6

Location:
extensions/whois_online
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/whois_online/include/wo_functions.inc.php

    r6201 r6212  
    8484function whois_online_update(&$global, &$dedicated, &$gtrace) 
    8585{ 
    86         global $lang_info; 
     86        global $user; 
    8787        // Rewrite the global record 
    8888        if ( $gtrace == 2 ) { 
     
    101101        } 
    102102        // Write or Rewrite the dedicated record 
    103         $ctry = '_' . strtoupper( substr(@$_SERVER["HTTP_ACCEPT_LANGUAGE"],6,2) ); 
    104103        $query = 'REPLACE INTO ' . WHOIS_ONLINE_TABLE . ' (`IP`, `hidden_IP`, `session_id`,`user_id`,`username`,`lang`, `user_agent`, 
    105104        `any_previous`, `same_previous`, `permanent`,`last_access`,`last_elm_ids`, `last_cat_ids`, `last_tag_ids`, `last_sch_ids`, 
     
    108107                . $dedicated['hidden_IP'] .'\', \''. $dedicated['session_id'] .'\', \'' 
    109108                . $dedicated['user_id'] .'\', \''. $dedicated['username'] .'\', \'' 
    110                 . substr($lang_info['code'],0,2). $ctry .'\', \'' 
     109                . $user['language'] .'\', \'' 
    111110                . $dedicated['user_agent'] .'\', \'' 
    112111                . $dedicated['any_previous'] .'\', \'' 
Note: See TracChangeset for help on using the changeset viewer.