Changeset 1085 in ExiteCMS for trunk/includes/dbsetup_include.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/includes/dbsetup_include.php

    r954 r1085  
    22//---------------------------------------------------------- 
    33// ExiteCMS file : dbsetup_include.php 
    4 // Date generated  : `18/10/2007 21:27` 
     4// Date generated  : `07/11/2007 23:50` 
    55//---------------------------------------------------------- 
    66 
    77define('CMS_VERSION', '7.00'); 
    8 define('CMS_REVISION', '954'); 
     8define('CMS_REVISION', '1082'); 
    99 
    1010if ($step == 1) { 
     
    3737  `ip_start_num` int(10) unsigned NOT NULL default '0', 
    3838  `ip_end_num` int(10) unsigned NOT NULL default '0', 
    39   `ip_code` char(2) NOT NULL default '', 
    40   `ip_name` varchar(50) NOT NULL default '' 
     39  `ip_code` char(2) NOT NULL default '' 
    4140) ENGINE=MYISAM;"); 
    4241if (!$result) { 
     
    6564$result = dbquery("CREATE TABLE IF NOT EXISTS ".$db_prefix."admin ( 
    6665  `admin_id` tinyint(2) unsigned NOT NULL auto_increment, 
    67   `admin_rights` varchar(2) NOT NULL default '', 
     66  `admin_rights` char(2) NOT NULL default '', 
    6867  `admin_image` varchar(50) NOT NULL default '', 
    6968  `admin_title` varchar(50) NOT NULL default '', 
     
    7877 
    7978// 
    80 // Code to create table `adverts` 
    81 // 
    82 $result = dbquery("DROP TABLE IF EXISTS ".$db_prefix."adverts"); 
    83 $result = dbquery("CREATE TABLE IF NOT EXISTS ".$db_prefix."adverts ( 
     79// Code to create table `advertising` 
     80// 
     81$result = dbquery("DROP TABLE IF EXISTS ".$db_prefix."advertising"); 
     82$result = dbquery("CREATE TABLE IF NOT EXISTS ".$db_prefix."advertising ( 
    8483  `adverts_id` smallint(5) NOT NULL auto_increment, 
    8584  `adverts_userid` smallint(5) NOT NULL default '0', 
     
    101100if (!$result) { 
    102101    $fail = "1"; 
    103     $failed[] = "adverts : ".mysql_error(); 
     102    $failed[] = "advertising : ".mysql_error(); 
    104103} 
    105104 
     
    455454  `locale_code` varchar(8) NOT NULL default '', 
    456455  `locale_name` varchar(50) NOT NULL default '', 
     456  `locale_locale` varchar(25) NOT NULL default '', 
     457  `locale_charset` varchar(25) NOT NULL default '', 
    457458  `locale_active` tinyint(1) NOT NULL default '0', 
    458459  PRIMARY KEY  (`locale_id`) 
     
    461462    $fail = "1"; 
    462463    $failed[] = "locale : ".mysql_error(); 
     464} 
     465 
     466// 
     467// Code to create table `locales` 
     468// 
     469$result = dbquery("DROP TABLE IF EXISTS ".$db_prefix."locales"); 
     470$result = dbquery("CREATE TABLE IF NOT EXISTS ".$db_prefix."locales ( 
     471  `locales_id` int(10) unsigned NOT NULL auto_increment, 
     472  `locales_locale` varchar(50) NOT NULL default '', 
     473  `locales_name` varchar(50) NOT NULL default '', 
     474  `locales_key` varchar(25) NOT NULL default '', 
     475  `locales_value` text NOT NULL, 
     476  `locales_datestamp` int(10) unsigned NOT NULL default '0', 
     477  PRIMARY KEY  (`locales_id`) 
     478) ENGINE=MYISAM;"); 
     479if (!$result) { 
     480    $fail = "1"; 
     481    $failed[] = "locales : ".mysql_error(); 
    463482} 
    464483 
     
    849868  `user_webmaster` tinyint(1) unsigned NOT NULL default '0', 
    850869  `user_email` varchar(100) NOT NULL default '', 
     870  `user_bad_email` int(10) unsigned NOT NULL default '0', 
    851871  `user_hide_email` tinyint(1) unsigned NOT NULL default '1', 
    852872  `user_location` varchar(50) NOT NULL default '', 
Note: See TracChangeset for help on using the changeset viewer.