Ignore:
Timestamp:
Jan 19, 2012, 7:30:34 AM (13 years ago)
Author:
chronos
Message:
  • Přesunuto: Obecné soubory do podsložky Common.
  • Obnoveny: Chybějící soubory HostList a UserList.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Common/Module.php

    r363 r364  
    11<?php
    22
    3 include_once(dirname(__FILE__).'/../Model.php');
     3include_once(dirname(__FILE__).'/Model.php');
    44
    55class Module
     
    7575    while($Module = $DbResult->fetch_array())
    7676    {
    77       include_once(dirname(__FILE__).'/'.$Module['Name'].'/'.$Module['Name'].'.php');
     77      include_once('Modules/'.$Module['Name'].'/'.$Module['Name'].'.php');
    7878      $ModuleClassName = 'Module'.$Module['Name'];
    7979      $this->Modules[$Module['Name']] = new $ModuleClassName($this->Database, $this);
     
    122122    // Load list of modules on disk
    123123    $ModulesOnDisk = array();
    124     $Files = scandir(dirname(__FILE__));
     124    $Files = scandir('Modules');
    125125    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) != '.'))
    127127    {
    128128      $ModulesOnDisk[] = $File;
     
    134134    {
    135135      DebugLog('Adding module '.$ModuleName.' to list');
    136       include_once(dirname(__FILE__).'/'.$ModuleName.'/'.$ModuleName.'.php');
     136      include_once('Modules/'.$ModuleName.'/'.$ModuleName.'.php');
    137137      $ModuleClassName = 'Module'.$ModuleName;
    138138      if(class_exists($ModuleClassName))
Note: See TracChangeset for help on using the changeset viewer.