Changeset 1871 in ExiteCMS


Ignore:
Timestamp:
10/19/08 12:10:12 (3 years ago)
Author:
hverton
Message:

updated the language pack code
fixed not being able to login when in maintenance mode
retro fix for rev1339 due to a bug in the v7.1 setup code
removed the .keys class from wikka.css, now uses the .button theme class

Location:
trunk
Files:
1 added
11 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1 Copy of config.php 
        2 config.backup.php 
        3 _revision_.svn 
         1config.php 
  • trunk/administration/tools/language_pack_English.php

    r1858 r1871  
    37463746if (!defined('LP_COUNTRIES')) define('LP_COUNTRIES', "us|gb|ca|au|nz|in|za|ir|mt|hk|pr"); 
    37473747if (!defined('LP_VERSION')) define('LP_VERSION', "7.20"); 
    3748 if (!defined('LP_DATE')) define('LP_DATE', "1224253694"); 
     3748if (!defined('LP_DATE')) define('LP_DATE', "1224409120"); 
    37493749$lp_date = LP_DATE; 
    37503750 
     
    38183818                if (!CMS_CLI) $variables['message'] .= sprintf($locale['307'],LP_LOCALE, LP_LANGUAGE); 
    38193819            } 
     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            } 
    38203826        } 
    38213827    } 
     
    38393845 
    38403846        // 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%'"); 
    38423848         
    38433849        // check if this language pack has been installed 
    38443850        $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; 
    38473853     
    38483854        // define the body panel variables 
  • trunk/administration/tools/language_pack_Nederlands.php

    r1858 r1871  
    37463746if (!defined('LP_COUNTRIES')) define('LP_COUNTRIES', "nl|be|sr|aw|an"); 
    37473747if (!defined('LP_VERSION')) define('LP_VERSION', "7.20"); 
    3748 if (!defined('LP_DATE')) define('LP_DATE', "1224253697"); 
     3748if (!defined('LP_DATE')) define('LP_DATE', "1224409123"); 
    37493749$lp_date = LP_DATE; 
    37503750 
     
    38183818                if (!CMS_CLI) $variables['message'] .= sprintf($locale['307'],LP_LOCALE, LP_LANGUAGE); 
    38193819            } 
     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            } 
    38203826        } 
    38213827    } 
     
    38393845 
    38403846        // 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%'"); 
    38423848         
    38433849        // check if this language pack has been installed 
    38443850        $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; 
    38473853     
    38483854        // define the body panel variables 
  • trunk/administration/tools/templates/admin.tools.languagepack.tpl

    r1802 r1871  
    9292                            {buttonlink name=$locale.302 link=$smarty.const.FUSION_SELF|cat:$aidlink|cat:"&amp;step=install"}&nbsp; 
    9393                        {/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} 
    9595                        {buttonlink name=$locale.304 link=$smarty.const.FUSION_SELF|cat:$aidlink|cat:"&amp;step=upgrade"}&nbsp; 
    9696                        {/if} 
    97                         {if $can_remove && $smarty.const.LP_LOCALE != "en"} 
     97                        {if $can_remove} 
    9898                        {buttonlink name=$locale.303 link=$smarty.const.FUSION_SELF|cat:$aidlink|cat:"&amp;step=remove"}&nbsp;   
    9999                        {/if} 
  • trunk/files/locales/en.main.global.php

    r1858 r1871  
    33// locale       : English 
    44// locale name  : main.global 
    5 // generated on : Fri Oct 17 2008, 16:28:20 CEST 
     5// generated on : Sun Oct 19 2008, 11:35:26 CEST 
    66// translators  : ExiteCMS team,WanWizard 
    77// ---------------------------------------------------------- 
  • trunk/files/locales/en.main.setup.php

    r1858 r1871  
    33// locale       : English 
    44// locale name  : main.setup 
    5 // generated on : Fri Oct 17 2008, 16:28:14 CEST 
     5// generated on : Sun Oct 19 2008, 11:35:14 CEST 
    66// translators  : ExiteCMS team,WanWizard 
    77// ---------------------------------------------------------- 
  • trunk/files/locales/nl.main.global.php

    r1858 r1871  
    33// locale       : English 
    44// locale name  : main.global 
    5 // generated on : Fri Oct 17 2008, 16:28:17 CEST 
     5// generated on : Sun Oct 19 2008, 11:35:17 CEST 
    66// translators  : ExiteCMS team,WanWizard 
    77// ---------------------------------------------------------- 
  • trunk/files/locales/nl.main.setup.php

    r1858 r1871  
    33// locale       : English 
    44// locale name  : main.setup 
    5 // generated on : Fri Oct 17 2008, 16:28:17 CEST 
     5// generated on : Sun Oct 19 2008, 11:35:17 CEST 
    66// translators  : ExiteCMS team,WanWizard 
    77// ---------------------------------------------------------- 
  • trunk/maintenance.php

    r1776 r1871  
    1616require_once dirname(__FILE__)."/includes/theme_functions.php"; 
    1717 
     18// login requested, switch to setuser to perform the login 
     19if (isset($_POST['login'])) { 
     20    $_GET['login'] = "yes"; 
     21    include PATH_ROOT."setuser.php"; 
     22    exit; 
     23} 
     24 
    1825// logout requested, switch to setuser to perform the logout 
    1926if (isset($_POST['logout'])) { 
    20     $_REQUEST['logout'] = "yes"; 
     27    $_GET['logout'] = "yes"; 
    2128    include PATH_ROOT."setuser.php"; 
    2229    exit; 
  • trunk/modules

  • trunk/themes/ExiteCMS/wikka.css

    r1304 r1871  
    363363 
    364364.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 } 
    387365 
    388366acronym { 
Note: See TracChangeset for help on using the changeset viewer.