Ignore:
Timestamp:
Sep 11, 2009, 8:18:38 AM (15 years ago)
Author:
george
Message:
  • Upraveno: Zrušeny samostatné include soubory a správně vloženy přímé závislosti pomocí include_once do všech souborů. Takto se budou načítat jen ty třídy, které jsou skutenčě potřeba.
  • Upraveno: Aplikace se nyní inicializuje přes soubor Application.php, kde je vložena třída odvozená z třídy System. Hlavní soubor index.php se pak odkazuje na soubor aplikace.
  • Objekty Database, Config a Translation jsou nyní lokální v rámci třídy System.
  • Přidáno: Třída pro odesílání pošty. Použita v třídě User.
Location:
trunk/www/Application/Controller
Files:
1 deleted
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/Application/Controller/Backup.php

    r73 r78  
    11<?php
     2
     3include_once(dirname(__FILE__).'/../../Base/Controller.php');
    24
    35class BackupController extends Controller
  • trunk/www/Application/Controller/Client.php

    r72 r78  
    11<?php
     2
     3include_once(dirname(__FILE__).'/../../Base/Controller.php');
    24
    35class ClientController extends Controller
  • trunk/www/Application/Controller/Cluster.php

    r76 r78  
    11<?php
     2
     3include_once(dirname(__FILE__).'/../../Base/Controller.php');
    24
    35class ClusterController extends Controller
  • trunk/www/Application/Controller/Debug.php

    r72 r78  
    11<?php
     2
     3include_once(dirname(__FILE__).'/../../Base/Controller.php');
    24
    35class DebugController extends Controller
  • trunk/www/Application/Controller/Emulator.php

    r72 r78  
    11<?php
     2
     3include_once(dirname(__FILE__).'/../../Base/Controller.php');
    24
    35class EmulatorController extends Controller
  • trunk/www/Application/Controller/HomePage.php

    r76 r78  
    11<?php
     2
     3include_once(dirname(__FILE__).'/../../Base/Controller.php');
     4include_once(dirname(__FILE__).'/../View/Page.php');
     5include_once(dirname(__FILE__).'/../View/HomePage.php');
    26
    37class HomePageController extends Controller
  • trunk/www/Application/Controller/News.php

    r72 r78  
    11<?php
     2
     3include_once(dirname(__FILE__).'/../../Base/Controller.php');
    24
    35class NewsController extends Controller
  • trunk/www/Application/Controller/Realm.php

    r72 r78  
    11<?php
     2
     3include_once(dirname(__FILE__).'/../../Base/Controller.php');
    24
    35class RealmController extends Controller
  • trunk/www/Application/Controller/Server.php

    r74 r78  
    11<?php
     2
     3include_once(dirname(__FILE__).'/../../Base/Controller.php');
    24
    35class ServerController extends Controller
  • trunk/www/Application/Controller/Task.php

    r72 r78  
    11<?php
     2
     3include_once(dirname(__FILE__).'/../../Base/Controller.php');
    24
    35class TaskController extends Controller
     
    68  {
    79    $Page = new PageView($this->System);
    8     $View = new TaskView($this->System);
    9     return($Page->GetOutput($View->ItemList()));
     10    if($this->System->Modules['Permission']->Check('Task', 'ItemList'))
     11    {
     12      $View = new TaskView($this->System);
     13      return($Page->GetOutput($View->ItemList()));
     14    } else return($Page->AccessDenied());
    1015  }   
    1116 
     
    1318  {
    1419    $Page = new PageView($this->System);
    15     $View = new TaskView($this->System);
    16     return($Page->GetOutput($View->ErrorLog()));
     20    if($this->System->Modules['Permission']->Check('Task', 'ErrorLog'))
     21    {
     22      $View = new TaskView($this->System);
     23      return($Page->GetOutput($View->ErrorLog()));
     24    } else return($Page->AccessDenied());
    1725  }   
    1826
     
    2028  {
    2129    $Page = new PageView($this->System);
    22     $View = new TaskView($this->System);
    23     return($Page->GetOutput($View->StandardLog()));
     30    if($this->System->Modules['Permission']->Check('Task', 'StandardLog'))
     31    {
     32      $View = new TaskView($this->System);
     33      return($Page->GetOutput($View->StandardLog()));
     34    } else return($Page->AccessDenied());
    2435  }   
    2536}
  • trunk/www/Application/Controller/Update.php

    r73 r78  
    11<?php
     2
     3include_once(dirname(__FILE__).'/../../Base/Controller.php');
    24
    35class UpdateController extends Controller
  • trunk/www/Application/Controller/User.php

    r76 r78  
    11<?php
     2
     3include_once(dirname(__FILE__).'/../../Base/Controller.php');
     4include_once(dirname(__FILE__).'/../View/Page.php');
     5include_once(dirname(__FILE__).'/../View/User.php');
    26
    37class UserController extends Controller
Note: See TracChangeset for help on using the changeset viewer.