Changeset 1875 in ExiteCMS
- Timestamp:
- 10/19/08 16:20:21 (3 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
administration/tools/language_pack_English.php (modified) (2 diffs)
-
administration/tools/language_pack_Nederlands.php (modified) (2 diffs)
-
includes/core_functions.php (modified) (1 diff)
-
includes/dbsetup_include.php (modified) (3 diffs)
-
includes/locale_functions.php (modified) (1 diff)
-
includes/templates/main.setup.tpl (modified) (1 diff)
-
setup.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/administration/tools/language_pack_English.php
r1871 r1875 3746 3746 if (!defined('LP_COUNTRIES')) define('LP_COUNTRIES', "us|gb|ca|au|nz|in|za|ir|mt|hk|pr"); 3747 3747 if (!defined('LP_VERSION')) define('LP_VERSION', "7.20"); 3748 if (!defined('LP_DATE')) define('LP_DATE', "12244 09120");3748 if (!defined('LP_DATE')) define('LP_DATE', "1224413129"); 3749 3749 $lp_date = LP_DATE; 3750 3750 … … 3845 3845 3846 3846 // check the last update of the locale 3847 $variables['last_update'] = isset($settings['LanguagePack.'.LP_LANGUAGE]) ? $settings['LanguagePack.'.LP_LANGUAGE] : dbfunction("MAX(locales_datestamp)", "locales", "locales_code = '".LP_LOCALE."' AND locales_name NOT LIKE 'modules%'");3847 $variables['last_update'] = isset($settings['LanguagePack.'.LP_LANGUAGE]) ? $settings['LanguagePack.'.LP_LANGUAGE] : min(LP_DATE - 1, dbfunction("MAX(locales_datestamp)", "locales", "locales_code = '".LP_LOCALE."' AND locales_name NOT LIKE 'modules%'")); 3848 3848 3849 3849 // check if this language pack has been installed -
trunk/administration/tools/language_pack_Nederlands.php
r1871 r1875 3746 3746 if (!defined('LP_COUNTRIES')) define('LP_COUNTRIES', "nl|be|sr|aw|an"); 3747 3747 if (!defined('LP_VERSION')) define('LP_VERSION', "7.20"); 3748 if (!defined('LP_DATE')) define('LP_DATE', "12244 09123");3748 if (!defined('LP_DATE')) define('LP_DATE', "1224413132"); 3749 3749 $lp_date = LP_DATE; 3750 3750 … … 3845 3845 3846 3846 // check the last update of the locale 3847 $variables['last_update'] = isset($settings['LanguagePack.'.LP_LANGUAGE]) ? $settings['LanguagePack.'.LP_LANGUAGE] : dbfunction("MAX(locales_datestamp)", "locales", "locales_code = '".LP_LOCALE."' AND locales_name NOT LIKE 'modules%'");3847 $variables['last_update'] = isset($settings['LanguagePack.'.LP_LANGUAGE]) ? $settings['LanguagePack.'.LP_LANGUAGE] : min(LP_DATE - 1, dbfunction("MAX(locales_datestamp)", "locales", "locales_code = '".LP_LOCALE."' AND locales_name NOT LIKE 'modules%'")); 3848 3848 3849 3849 // check if this language pack has been installed -
trunk/includes/core_functions.php
r1866 r1875 749 749 // replacement for die() 750 750 function terminate($text) { 751 die("<div style='font-family:Verdana,Sans-serif;font-size:1 1px;text-align:center;'>$text</div>");751 die("<div style='font-family:Verdana,Sans-serif;font-size:14px;font-weight:bold;text-align:center;'>$text</div>"); 752 752 } 753 753 -
trunk/includes/dbsetup_include.php
r1868 r1875 2 2 //---------------------------------------------------------- 3 3 // ExiteCMS file : dbsetup_include.php 4 // Date generated : `19/10/2008 1 0:24`4 // Date generated : `19/10/2008 16:12` 5 5 //---------------------------------------------------------- 6 6 7 7 define('CMS_VERSION', '7.20'); 8 define('CMS_REVISION', '18 58');8 define('CMS_REVISION', '1872'); 9 9 10 10 define('MYSQL_CHARSET', 'utf8'); … … 310 310 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('debug_querylog', '')"); 311 311 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('debug_sql_explain', '0')"); 312 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('default_locale', 'en')"); 312 313 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('description', 'ExiteCMS, a light-weight CMS system, wriiten in PHP, and using MySQL and the Smarty template engine')"); 313 314 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('display_validation', '1')"); … … 365 366 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('pm_sentbox_group', '0')"); 366 367 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('remote_stats', '0')"); 367 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('revision', '18 58')");368 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('revision', '1872')"); 368 369 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('session_gc_divisor', '100')"); 369 370 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('session_gc_maxlifetime', '2678400')"); -
trunk/includes/locale_functions.php
r1776 r1875 257 257 require $locales_file; 258 258 } else { 259 // otherwise, if the locale is not English, try to load the system locale version260 if ($locale_code != "en") {261 // retrieve the info for the system locale (which is the first one installed!)262 $result = dbquery("SELECT * FROM ".$db_prefix."locale ORDER BY locale_id LIMIT 1");259 // otherwise, if the locale is not the default system locale, try to load the system locale version 260 if ($locale_code != $settings['default_locale']) { 261 // retrieve the info for the system locale 262 $result = dbquery("SELECT * FROM ".$db_prefix."locale WHERE locale_code = '".$settings['default_locale']."'"); 263 263 if (dbrows($result)) { 264 264 $data = dbarray($result); -
trunk/includes/templates/main.setup.tpl
r1661 r1875 164 164 </td> 165 165 <td class='tbl1'> 166 <input type='text' value='{$db_prefix|default:" exitecms_"}' name='db_prefix' class='textbox' /> <span class='small'>{$locale.436}</span>166 <input type='text' value='{$db_prefix|default:"cms_"}' name='db_prefix' class='textbox' /> <span class='small'>{$locale.436}</span> 167 167 </td> 168 168 </tr> -
trunk/setup.php
r1802 r1875 3 3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 5 | Copyright 200 7Harro "WanWizard" Verton, Exite BV |5 | Copyright 2008 Harro "WanWizard" Verton, Exite BV | 6 6 | for support, please visit http://exitecms.exite.eu | 7 7 +----------------------------------------------------+ … … 126 126 global $locale; 127 127 128 $msg = "<div style='font-family:Verdana;font-size:14px;text-align:center; '><b>".(empty($locale['403'])?"Unable to run the ExiteCMS setup":$locale['403']).":<br /><br /><font style='color:red;'>";128 $msg = "<div style='font-family:Verdana;font-size:14px;text-align:center;font-weight:bold;'><b>".(empty($locale['403'])?"Unable to run the ExiteCMS setup":$locale['403']).":<br /><br /><font style='color:red;'>"; 129 129 $msg .= $error."</font></b><br /><br />"; 130 130 if ($wiki) { … … 257 257 $db_prefix = isset($_POST['db_prefix']) ? stripinput($_POST['db_prefix']) : ""; 258 258 $variables['db_prefix'] = $db_prefix; 259 if (! preg_match("/^[-0-9A-Z_@]*$/i", $db_prefix)) {259 if (!empty($db_prefix) && !preg_match("/^[A-Z0-9][-0-9A-Z_@]*$/i", $db_prefix)) { 260 260 $error .= $locale['428']."<br /><br />\n"; 261 261 } … … 276 276 // verify if the given user has create table on the database 277 277 if (empty($error)) { 278 $result = dbquery("CREATE TABLE ".$db_prefix."_ test (test TINYINT(1) NOT NULL) ENGINE = MYISAM");278 $result = dbquery("CREATE TABLE ".$db_prefix."___test (test TINYINT(1) NOT NULL) ENGINE = MYISAM"); 279 279 if (!$result) { 280 280 $error .= sprintf($locale['435'],$db_name)."<br /><br />\n"; 281 281 } else { 282 $result = dbquery("DROP TABLE ".$db_prefix."_ test");282 $result = dbquery("DROP TABLE ".$db_prefix."___test"); 283 283 } 284 284 } … … 392 392 $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$username."' WHERE cfg_name = ''siteusername"); 393 393 $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$localeset."' WHERE cfg_name = 'locale'"); 394 $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".LP_CHARSET."' WHERE cfg_name = 'default_locale'"); 394 395 395 396 // create the admin rights field for the webmaster, based on all admin modules available … … 402 403 // add the webmaster to the users table 403 404 $commands = array(); 404 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##users (user_name, user_password, user_webmaster, user_email, user_hide_email, user_location, user_birthdate, user_aim, user_icq, user_msn, user_yahoo, user_web, user_forum_fullscreen, user_theme, user_ offset, user_avatar, user_sig, user_posts, user_joined, user_lastvisit, user_ip, user_rights, user_groups, user_level, user_status) VALUES ('$username', '$password', '1', '$email', '1', '', '0000-00-00', '', '', '', '', '', '0', 'Default', '0', '', '', '0', '".time()."', '0', '0.0.0.0', '".$adminrights."', '', '103', '0')");405 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##users (user_name, user_password, user_webmaster, user_email, user_hide_email, user_location, user_birthdate, user_aim, user_icq, user_msn, user_yahoo, user_web, user_forum_fullscreen, user_theme, user_locale, user_offset, user_avatar, user_sig, user_posts, user_joined, user_lastvisit, user_ip, user_rights, user_groups, user_level, user_status) VALUES ('$username', '$password', '1', '$email', '1', '', '0000-00-00', '', '', '', '', '', '0', 'Default', '".LP_CHARSET."', '0', '', '', '0', '".time()."', '0', '0.0.0.0', '".$adminrights."', '', '103', '0')"); 405 406 $result = dbcommands($commands, $db_prefix); 406 407
Note: See TracChangeset
for help on using the changeset viewer.
