source: trunk/Application/Include.php@ 40

Last change on this file since 40 was 40, checked in by george, 16 years ago
  • Upraveno: Struktura souborů projektu přepracována na systém MVC.
File size: 906 bytes
Line 
1<?php
2
3include(dirname(__FILE__).'/CustomTypes.php');
4
5if(file_exists(dirname(__FILE__).'/Config/Config.php')) include(dirname(__FILE__).'/Config/Config.php');
6 else die('Nenalezen soubor '.dirname(__FILE__).'/Config/Config.php. Vytvořte jej kopií ze souboru '.dirname(__FILE__).'/Config/ConfigSample.php.');
7
8if($Config['Web']['Locale'] != '')
9{
10 if(file_exists(dirname(__FILE__).'/Localization/'.$Config['Web']['Locale'].'.php'))
11 include(dirname(__FILE__).'/Localization/'.$Config['Web']['Locale'].'.php');
12 else die('Nenalezen soubor '.dirname(__FILE__).'/Localization/'.$Config['Web']['Locale'].'.php. Buď máte špatně nastaven jazyk nebo vám chybí jazykový soubor.');
13} else die('Nastavte Locale v konfiguračním souboru.');
14
15include(dirname(__FILE__).'/Model/Include.php');
16include(dirname(__FILE__).'/View/Include.php');
17include(dirname(__FILE__).'/Controller/Include.php');
18
19?>
Note: See TracBrowser for help on using the repository browser.