Changeset 848 for trunk/Application


Ignore:
Timestamp:
Jan 17, 2016, 12:10:35 PM (9 years ago)
Author:
chronos
Message:
  • Renamed: .htaccess file is different for each installation so provide just example in .htacces.sample file.
  • Renamed: File global.php and system.php to first uppercase letter for naming unification.
  • Modified: More translatable strings.
  • Added: Translation group items translatable.
  • Renamed: admin directory is not Application directory where all application related files should be placed.

This is different to includes directory where just general libraries should be placed.
Version.php file should be located in Application directory.

Location:
trunk/Application
Files:
2 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/Application/UpdateTrace.php

    r846 r848  
    28182818function UpdateTo846($Manager)
    28192819{
     2820  // Languages
    28202821  $Manager->Execute('UPDATE `Language` SET `Name` = "English", `Code` = "en" WHERE `Language`.`Name` = "Angličtina";');
    28212822  $Manager->Execute('UPDATE `Language` SET `Name` = "Czech" WHERE `Language`.`Name` = "Čeština";');
    28222823  $Manager->Execute('UPDATE `Language` SET `Name` = "Slovak" WHERE `Language`.`Name` = "Slovenština";');
    28232824
     2825  // Group names
    28242826  $Manager->Execute('UPDATE `Group` SET `Name` = "Quests" WHERE `Group`.`Name` = "Výpravy"');
    28252827  $Manager->Execute('UPDATE `Group` SET `Name` = "Books" WHERE `Group`.`Name` = "Knížky"');
     
    28592861}
    28602862
     2863function UpdateTo848($Manager)
     2864{
     2865  // Group item names
     2866  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Title" WHERE `GroupItem`.`Name` = "Titulek"');
     2867  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Details" WHERE `GroupItem`.`Name` = "Podrobnosti"');
     2868  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Objectives" WHERE `GroupItem`.`Name` = "Úkol"');
     2869  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Offered reward text" WHERE `GroupItem`.`Name` = "Text slíbené odměny"');
     2870  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Request items text" WHERE `GroupItem`.`Name` = "Popis požadovaných předmětů"');
     2871  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "End text" WHERE `GroupItem`.`Name` = "Závěrečný text"');
     2872  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Objective text 1" WHERE `GroupItem`.`Name` = "Text úkolu 1"');
     2873  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Objective text 2" WHERE `GroupItem`.`Name` = "Text úkolu 2"');
     2874  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Objective text 3" WHERE `GroupItem`.`Name` = "Text úkolu 3"');
     2875  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Objective text 4" WHERE `GroupItem`.`Name` = "Text úkolu 4"');
     2876  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Content" WHERE `GroupItem`.`Name` = "Obsah"');
     2877  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Name" WHERE `GroupItem`.`Name` = "Jméno"');
     2878  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Description" WHERE `GroupItem`.`Name` = "Popis"');
     2879  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Castbar caption" WHERE `GroupItem`.`Name` = "Popisek"');
     2880  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Subname" WHERE `GroupItem`.`Name` = "Druhé jméno"');
     2881  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Subname" WHERE `GroupItem`.`Name` = "Druhé jméno"');
     2882  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Help" WHERE `GroupItem`.`Name` = "Nápověda"');
     2883  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Default content" WHERE `GroupItem`.`Name` = "Výchozí obsah"');
     2884  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Comment" WHERE `GroupItem`.`Name` = "Komentář"');
     2885  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Rank" WHERE `GroupItem`.`Name` = "Hodnost"');
     2886  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Shortcut" WHERE `GroupItem`.`Name` = "Zkratka"');
     2887  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Option text" WHERE `GroupItem`.`Name` = "Text možnosti"');
     2888  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Title" WHERE `GroupItem`.`Name` = "Název"');
     2889  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Reward" WHERE `GroupItem`.`Name` = "Odměna"');
     2890  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Criteria" WHERE `GroupItem`.`Name` = "Kritérium"');
     2891  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Location" WHERE `GroupItem`.`Name` = "Umístění"');
     2892  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Location 2" WHERE `GroupItem`.`Name` = "Umístění 2"');
     2893  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "State" WHERE `GroupItem`.`Name` = "Stav"');
     2894  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Short name" WHERE `GroupItem`.`Name` = "Zkrácené jméno"');
     2895  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Comprimed name" WHERE `GroupItem`.`Name` = "Zhuštěný název"');
     2896  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Facial 1" WHERE `GroupItem`.`Name` = "Vzhled 1"');
     2897  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Facial 2" WHERE `GroupItem`.`Name` = "Vzhled 2"');
     2898  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Facial 3" WHERE `GroupItem`.`Name` = "Vzhled 3"');
     2899  $Manager->Execute('UPDATE `GroupItem` SET `Name` = "Unified" WHERE `GroupItem`.`Name` = "Jednotné"');
     2900}
     2901
    28612902$Updates = array(
    28622903  498 => array('Revision' => 506, 'Function' => 'UpdateTo506'),
     
    28882929  803 => array('Revision' => 811, 'Function' => 'UpdateTo811'),
    28892930  811 => array('Revision' => 846, 'Function' => 'UpdateTo846'),
     2931  846 => array('Revision' => 848, 'Function' => 'UpdateTo848'),
    28902932);
  • trunk/Application/Version.php

    r847 r848  
    66// and system will need database update.
    77
    8 $Revision = 847; // Subversion revision
    9 $DatabaseRevision = 846; // Database structure revision
    10 $ReleaseTime = '2016-01-15';
     8$Revision = 848; // Subversion revision
     9$DatabaseRevision = 848; // Database structure revision
     10$ReleaseTime = '2016-01-17';
  • trunk/Application/install.php

    r843 r848  
    22
    33include_once(dirname(__FILE__).'/../Packages/Common/Common.php');
    4 include_once(dirname(__FILE__).'/../includes/global.php');
    5 include_once(dirname(__FILE__).'/../includes/system.php');
     4include_once(dirname(__FILE__).'/../includes/Global.php');
     5include_once(dirname(__FILE__).'/../includes/System.php');
    66include_once(dirname(__FILE__).'/../includes/Update.php');
    7 if(file_exists(dirname(__FILE__).'/../includes/config.php'))
    8   include_once(dirname(__FILE__).'/../includes/config.php');
     7if(file_exists(dirname(__FILE__).'/../Config/Config.php'))
     8  include_once(dirname(__FILE__).'/../Config/Config.php');
    99include_once(dirname(__FILE__).'/UpdateTrace.php');
    1010include_once(dirname(__FILE__).'/DefaultConfig.php');
    11 include_once(dirname(__FILE__).'/../includes/Version.php');
     11include_once(dirname(__FILE__).'/../Version.php');
    1212include_once(dirname(__FILE__).'/../includes/Locale.php');
    1313
     
    3939{
    4040  $Output = '';
    41   if(!file_exists('../includes/config.php') and !is_writable('../includes'))
     41  if(!file_exists('../Config/Config.php') and !is_writable('../Config'))
    4242    $Output .= 'Varování: Konfigurační soubor nebude možné zapsat, protože složka includes není povolená pro zápis!';
    43   if(file_exists('../includes/config.php') and !is_writable('../includes/config.php'))
     43  if(file_exists('../Config/Config.php') and !is_writable('../Config/Config.php'))
    4444    $Output .= 'Varování: Konfigurační soubor nebude možné zapsat, protože soubor config.php není povolen pro zápis!';
    4545  $Output .= '<h3>Nastavení systému</h3>'.
     
    8181  if(array_key_exists('ItemsPerPage', $_POST)) $Config['Web']['ItemsPerPage'] = $_POST['ItemsPerPage'];
    8282  $ConfigText = CreateConfig($Config);
    83   file_put_contents('../includes/config.php', $ConfigText);
     83  file_put_contents('../Config/Config.php', $ConfigText);
    8484  $Output .= 'Konfigurace nastavena<br/>';
    8585  return($Output);
Note: See TracChangeset for help on using the changeset viewer.