Changeset 364
- Timestamp:
- Jan 19, 2012, 7:30:34 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 1 deleted
- 5 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Global.php
r363 r364 1 1 <?php 2 2 3 $ConfigFileName = dirname(__FILE__).'/ config.php';3 $ConfigFileName = dirname(__FILE__).'/../config.php'; 4 4 5 5 if(file_exists($ConfigFileName)) include_once($ConfigFileName); 6 6 else die('Nenalezen konfigurační soubor '.$ConfigFileName.'!'); 7 7 8 include_once('Common/Database.php'); 9 include_once('Common/Error.php'); 10 include_once('Common/Code.php'); 11 include_once('Common/Forms.php'); 12 include_once('Common/File.php'); 13 include_once('module.php'); 14 include_once('Modules/page.php'); 8 include_once('Database.php'); 9 include_once('Error.php'); 10 include_once('Code.php'); 11 include_once('Forms.php'); 12 include_once('File.php'); 13 include_once('Page.php'); 14 include_once('Module.php'); 15 include_once('Model.php'); 15 16 include_once('finance/bills.php'); 16 17 include_once('finance/finance.php'); 17 include_once('Modules/Module.php');18 include_once('Model.php');19 18 20 19 $PrefixMultipliers = array -
trunk/Common/Module.php
r363 r364 1 1 <?php 2 2 3 include_once(dirname(__FILE__).'/ ../Model.php');3 include_once(dirname(__FILE__).'/Model.php'); 4 4 5 5 class Module … … 75 75 while($Module = $DbResult->fetch_array()) 76 76 { 77 include_once( dirname(__FILE__).'/'.$Module['Name'].'/'.$Module['Name'].'.php');77 include_once('Modules/'.$Module['Name'].'/'.$Module['Name'].'.php'); 78 78 $ModuleClassName = 'Module'.$Module['Name']; 79 79 $this->Modules[$Module['Name']] = new $ModuleClassName($this->Database, $this); … … 122 122 // Load list of modules on disk 123 123 $ModulesOnDisk = array(); 124 $Files = scandir( dirname(__FILE__));124 $Files = scandir('Modules'); 125 125 foreach($Files as $File) 126 if(is_dir( dirname(__FILE__).'/'.$File) and ($File != '.') and ($File != '..') and (substr($File, 0, 1) != '.'))126 if(is_dir('Modules/'.$File) and ($File != '.') and ($File != '..') and (substr($File, 0, 1) != '.')) 127 127 { 128 128 $ModulesOnDisk[] = $File; … … 134 134 { 135 135 DebugLog('Adding module '.$ModuleName.' to list'); 136 include_once( dirname(__FILE__).'/'.$ModuleName.'/'.$ModuleName.'.php');136 include_once('Modules/'.$ModuleName.'/'.$ModuleName.'.php'); 137 137 $ModuleClassName = 'Module'.$ModuleName; 138 138 if(class_exists($ModuleClassName)) -
trunk/Common/Page.php
r363 r364 3 3 define('PAGE_NOT_FOUND', 'Stránka nenalezena'); 4 4 5 class Page extends OldModule5 class Page 6 6 { 7 var $Database; 8 var $System; 9 var $Config; 7 10 var $TimeStart; 8 11 var $FormatHTML = false; -
trunk/Modules/Project/Project.php
r343 r364 1 1 <?php 2 3 include_once(dirname(__FILE__).'/../Module.php');4 include_once(dirname(__FILE__).'/../../Model.php');5 2 6 3 class Project extends Model -
trunk/Modules/User/User.php
r363 r364 1 1 <?php 2 2 3 include( 'UserList.php');3 include(dirname(__FILE__).'/UserList.php'); 4 4 5 5 define('LOGIN_USED', 'Přihlašovací jméno již použito.'); -
trunk/finance/bills.php
r340 r364 1 1 <?php 2 2 3 class Bill extends OldModule3 class Bill 4 4 { 5 var $Database; 6 var $System; 7 var $Config; 5 8 var $SpecificSymbol = 1; // počítačová sít 6 9 var $FileFolder = 'doklady'; -
trunk/finance/finance.php
r340 r364 1 1 <?php 2 2 3 class Finance extends OldModule3 class Finance 4 4 { 5 var $Database; 6 var $Config; 7 var $System; 8 5 9 var $kWh; 6 10 var $Internet; -
trunk/index.php
r358 r364 1 1 <?php 2 2 3 include_once(' global.php');3 include_once('Common/Global.php'); 4 4 5 5 function ProcessURL()
Note:
See TracChangeset
for help on using the changeset viewer.