Changeset 1081 in ExiteCMS for trunk/includes/user_functions.php


Ignore:
Timestamp:
11/07/07 16:57:20 (5 years ago)
Author:
root
Message:

removed empty locale index files
moved some locale settings (charset, country, dateinfo) from $locale to $settings
updated the modules and templates that used these variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/user_functions.php

    r1060 r1081  
    185185// if logged in, update the users lastvisit time and country 
    186186if (iMEMBER) { 
    187     $cc_code = $userdata['user_id'] == 1 ? $locale['country'] : GeoIP_IP2Code(USER_IP, true); 
     187    $cc_code = $userdata['user_id'] == 1 ? $settings['country'] : GeoIP_IP2Code(USER_IP, true); 
    188188    $result = dbquery("UPDATE ".$db_prefix."users SET user_lastvisit='".time()."', user_ip='".USER_IP."', user_cc_code='".$cc_code."' WHERE user_id='".$userdata['user_id']."'"); 
    189189} 
Note: See TracChangeset for help on using the changeset viewer.