Changeset 1085 in ExiteCMS for trunk/profile.php


Ignore:
Timestamp:
11/08/07 00:06:27 (5 years ago)
Author:
hverton
Message:

added the site location country selection (also the explicit country for user_id 1)
added some missing country codes to rev01079.php
birthday in the profile is displayed using the date format and months names of the locale set
forced maintenance mode if uninstalled updates are detected
updated the dbsetup_include.php file to reflect the latest database changes
removed the country name from the GeoIP table, now uses the country name from the locales table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/profile.php

    r1082 r1085  
    7070    if ($data['user_birthdate'] != "0000-00-00") { 
    7171        $birthdate = explode("-", $data['user_birthdate']); 
    72         $data['user_birthdate'] = strftime(nl_langinfo(D_FMT), mktime(1,0,0,$birthdate[1],$birthdate[2],$birthdate[0])) 
    73         } 
     72        $data['user_birthdate'] = strftime(str_replace("%m", "%B", preg_replace("/[^a-z%]/i", " ", nl_langinfo(D_FMT))), mktime(1,0,0,$birthdate[1],$birthdate[2],$birthdate[0])); 
    7473    } else { 
    7574        $data['user_birthdate'] = $locale['u048']; 
Note: See TracChangeset for help on using the changeset viewer.