Changeset 1871 in ExiteCMS
- Timestamp:
- 10/19/08 12:10:12 (3 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 11 edited
-
. (modified) (1 prop)
-
administration/tools/language_pack_English.php (modified) (3 diffs)
-
administration/tools/language_pack_Nederlands.php (modified) (3 diffs)
-
administration/tools/templates/admin.tools.languagepack.tpl (modified) (1 diff)
-
administration/upgrade/rev01869.php (added)
-
files/locales/en.main.global.php (modified) (1 diff)
-
files/locales/en.main.setup.php (modified) (1 diff)
-
files/locales/nl.main.global.php (modified) (1 diff)
-
files/locales/nl.main.setup.php (modified) (1 diff)
-
maintenance.php (modified) (1 diff)
-
modules (modified) (1 prop)
-
themes/ExiteCMS/wikka.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 Copy of config.php 2 config.backup.php 3 _revision_.svn 1 config.php
-
- Property svn:ignore
-
trunk/administration/tools/language_pack_English.php
r1858 r1871 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', "1224 253694");3748 if (!defined('LP_DATE')) define('LP_DATE', "1224409120"); 3749 3749 $lp_date = LP_DATE; 3750 3750 … … 3818 3818 if (!CMS_CLI) $variables['message'] .= sprintf($locale['307'],LP_LOCALE, LP_LANGUAGE); 3819 3819 } 3820 // update the install timestamp in the config 3821 if (isset($settings['LanguagePack.'.LP_LANGUAGE])) { 3822 $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".LP_DATE."' WHERE cfg_name = 'LanguagePack.".LP_LANGUAGE."'"); 3823 } else { 3824 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES ('LanguagePack.".LP_LANGUAGE."', '".LP_DATE."')"); 3825 } 3820 3826 } 3821 3827 } … … 3839 3845 3840 3846 // check the last update of the locale 3841 $variables['last_update'] = 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] : dbfunction("MAX(locales_datestamp)", "locales", "locales_code = '".LP_LOCALE."' AND locales_name NOT LIKE 'modules%'"); 3842 3848 3843 3849 // check if this language pack has been installed 3844 3850 $variables['can_install'] = dbcount("(*)", "locale", "locale_code = '".LP_LOCALE."'") == 0; 3845 $variables['can_remove'] = $variables['can_install'] ? FALSE : TRUE;3846 $variables['can_upgrade'] = $variables['can_ remove'];3851 $variables['can_remove'] = LP_LOCALE != "en" && $variables['can_install'] == false; 3852 $variables['can_upgrade'] = $variables['can_install'] == false && $variables['last_update'] < LP_DATE; 3847 3853 3848 3854 // define the body panel variables -
trunk/administration/tools/language_pack_Nederlands.php
r1858 r1871 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', "1224 253697");3748 if (!defined('LP_DATE')) define('LP_DATE', "1224409123"); 3749 3749 $lp_date = LP_DATE; 3750 3750 … … 3818 3818 if (!CMS_CLI) $variables['message'] .= sprintf($locale['307'],LP_LOCALE, LP_LANGUAGE); 3819 3819 } 3820 // update the install timestamp in the config 3821 if (isset($settings['LanguagePack.'.LP_LANGUAGE])) { 3822 $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".LP_DATE."' WHERE cfg_name = 'LanguagePack.".LP_LANGUAGE."'"); 3823 } else { 3824 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES ('LanguagePack.".LP_LANGUAGE."', '".LP_DATE."')"); 3825 } 3820 3826 } 3821 3827 } … … 3839 3845 3840 3846 // check the last update of the locale 3841 $variables['last_update'] = 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] : dbfunction("MAX(locales_datestamp)", "locales", "locales_code = '".LP_LOCALE."' AND locales_name NOT LIKE 'modules%'"); 3842 3848 3843 3849 // check if this language pack has been installed 3844 3850 $variables['can_install'] = dbcount("(*)", "locale", "locale_code = '".LP_LOCALE."'") == 0; 3845 $variables['can_remove'] = $variables['can_install'] ? FALSE : TRUE;3846 $variables['can_upgrade'] = $variables['can_ remove'];3851 $variables['can_remove'] = LP_LOCALE != "en" && $variables['can_install'] == false; 3852 $variables['can_upgrade'] = $variables['can_install'] == false && $variables['last_update'] < LP_DATE; 3847 3853 3848 3854 // define the body panel variables -
trunk/administration/tools/templates/admin.tools.languagepack.tpl
r1802 r1871 92 92 {buttonlink name=$locale.302 link=$smarty.const.FUSION_SELF|cat:$aidlink|cat:"&step=install"} 93 93 {/if} 94 {if $settings.sitename == "ExiteCMS Development Site" || ($can_upgrade && $last_update != $smarty.const.LP_DATE)}94 {if $settings.sitename == "ExiteCMS Development Site" || $can_upgrade} 95 95 {buttonlink name=$locale.304 link=$smarty.const.FUSION_SELF|cat:$aidlink|cat:"&step=upgrade"} 96 96 {/if} 97 {if $can_remove && $smarty.const.LP_LOCALE != "en"}97 {if $can_remove} 98 98 {buttonlink name=$locale.303 link=$smarty.const.FUSION_SELF|cat:$aidlink|cat:"&step=remove"} 99 99 {/if} -
trunk/files/locales/en.main.global.php
r1858 r1871 3 3 // locale : English 4 4 // locale name : main.global 5 // generated on : Fri Oct 17 2008, 16:28:20CEST5 // generated on : Sun Oct 19 2008, 11:35:26 CEST 6 6 // translators : ExiteCMS team,WanWizard 7 7 // ---------------------------------------------------------- -
trunk/files/locales/en.main.setup.php
r1858 r1871 3 3 // locale : English 4 4 // locale name : main.setup 5 // generated on : Fri Oct 17 2008, 16:28:14 CEST5 // generated on : Sun Oct 19 2008, 11:35:14 CEST 6 6 // translators : ExiteCMS team,WanWizard 7 7 // ---------------------------------------------------------- -
trunk/files/locales/nl.main.global.php
r1858 r1871 3 3 // locale : English 4 4 // locale name : main.global 5 // generated on : Fri Oct 17 2008, 16:28:17 CEST5 // generated on : Sun Oct 19 2008, 11:35:17 CEST 6 6 // translators : ExiteCMS team,WanWizard 7 7 // ---------------------------------------------------------- -
trunk/files/locales/nl.main.setup.php
r1858 r1871 3 3 // locale : English 4 4 // locale name : main.setup 5 // generated on : Fri Oct 17 2008, 16:28:17 CEST5 // generated on : Sun Oct 19 2008, 11:35:17 CEST 6 6 // translators : ExiteCMS team,WanWizard 7 7 // ---------------------------------------------------------- -
trunk/maintenance.php
r1776 r1871 16 16 require_once dirname(__FILE__)."/includes/theme_functions.php"; 17 17 18 // login requested, switch to setuser to perform the login 19 if (isset($_POST['login'])) { 20 $_GET['login'] = "yes"; 21 include PATH_ROOT."setuser.php"; 22 exit; 23 } 24 18 25 // logout requested, switch to setuser to perform the logout 19 26 if (isset($_POST['logout'])) { 20 $_ REQUEST['logout'] = "yes";27 $_GET['logout'] = "yes"; 21 28 include PATH_ROOT."setuser.php"; 22 29 exit; -
trunk/modules
- Property svn:externals set to
-
trunk/themes/ExiteCMS/wikka.css
r1304 r1871 363 363 364 364 .center, .center p {text-align: center;} 365 366 .keys {367 font-family: Arial, Helvetica, sans-serif;368 font-size: 12px;369 color:#FFF;370 font-weight: bold;371 background-color: #33A;372 border-top: 2px solid #FFF;373 border-left: 2px solid #FFF;374 border-right: 2px solid #336;375 border-bottom: 2px solid #336;376 text-align: center;377 padding: 0.1em 0.3em;378 line-height: 1.6em;379 vertical-align: top;380 }381 382 .keys:hover {383 background-color: #66C;384 border-right: 2px solid #668;385 border-bottom: 2px solid #668;386 }387 365 388 366 acronym {
Note: See TracChangeset
for help on using the changeset viewer.
