Ignore:
Timestamp:
Jan 17, 2016, 12:10:35 PM (8 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:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • 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.