Changeset 848 for trunk/includes


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/includes
Files:
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/includes/Global.php

    r847 r848  
    22
    33include_once(dirname(__FILE__).'/../Packages/Common/Common.php');
    4 include_once(dirname(__FILE__).'/system.php');
     4include_once(dirname(__FILE__).'/System.php');
    55include_once(dirname(__FILE__).'/Update.php');
    66include_once(dirname(__FILE__).'/PageEdit.php');
    7 if(file_exists(dirname(__FILE__).'/config.php'))
    8   include_once(dirname(__FILE__).'/config.php');
    9 include_once(dirname(__FILE__).'/Version.php');
     7if(file_exists(dirname(__FILE__).'/../Config/Config.php'))
     8  include_once(dirname(__FILE__).'/../Config/Config.php');
     9include_once(dirname(__FILE__).'/../Application/Version.php');
    1010include_once(dirname(__FILE__).'/Locale.php');
    1111require_once(dirname(__FILE__).'/../HTML/BBCodeParser2.php');
     
    314314  if($Selected == '')
    315315    $Output .= ' selected="selected"';
    316   $Output .= '>Žádná</option>';
     316  $Output .= '>'.T('None').'</option>';
    317317  while($ClientVersion = $DbResult->fetch_assoc())
    318318  {
  • trunk/includes/System.php

    r847 r848  
    9999    $UpdateManager->Database = $this->Database;
    100100    $UpdateManager->Revision = $DatabaseRevision;
    101     if(!$UpdateManager->IsInstalled()) die('Systém vyžaduje instalaci databáze.');
    102     if(!$UpdateManager->IsUpToDate()) die('Systém vyžaduje aktualizaci databáze.');
     101    if(!$UpdateManager->IsInstalled()) die('Systém vyžaduje instalaci databáze. Pokračujte <a href="'.$this->Link('/Application/install.php').'">zde</a>');
     102    if(!$UpdateManager->IsUpToDate()) die('Systém vyžaduje aktualizaci databáze. Pokračujte <a href="'.$this->Link('/Application/install.php').'">zde</a>');
    103103
    104104    // SQL injection hack protection
Note: See TracChangeset for help on using the changeset viewer.