Changeset 80


Ignore:
Timestamp:
Oct 21, 2009, 10:24:50 AM (15 years ago)
Author:
george
Message:
  • Opraveno: Chybějící include v souborech.
Location:
trunk/www
Files:
14 edited

Legend:

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

    r78 r80  
    22
    33include_once(dirname(__FILE__).'/../../Base/Controller.php');
     4include_once(dirname(__FILE__).'/../View/Page.php');
     5include_once(dirname(__FILE__).'/../View/Backup.php');
    46
    57class BackupController extends Controller
  • trunk/www/Application/Controller/Client.php

    r78 r80  
    22
    33include_once(dirname(__FILE__).'/../../Base/Controller.php');
     4include_once(dirname(__FILE__).'/../View/Page.php');
     5include_once(dirname(__FILE__).'/../View/Client.php');
    46
    57class ClientController extends Controller
  • trunk/www/Application/Controller/Cluster.php

    r78 r80  
    22
    33include_once(dirname(__FILE__).'/../../Base/Controller.php');
     4include_once(dirname(__FILE__).'/../View/Page.php');
     5include_once(dirname(__FILE__).'/../View/Cluster.php');
    46
    57class ClusterController extends Controller
  • trunk/www/Application/Controller/Debug.php

    r78 r80  
    22
    33include_once(dirname(__FILE__).'/../../Base/Controller.php');
     4include_once(dirname(__FILE__).'/../View/Page.php');
     5include_once(dirname(__FILE__).'/../View/Debug.php');
    46
    57class DebugController extends Controller
  • trunk/www/Application/Controller/Emulator.php

    r78 r80  
    22
    33include_once(dirname(__FILE__).'/../../Base/Controller.php');
     4include_once(dirname(__FILE__).'/../View/Page.php');
     5include_once(dirname(__FILE__).'/../View/Emulator.php');
    46
    57class EmulatorController extends Controller
  • trunk/www/Application/Controller/News.php

    r78 r80  
    22
    33include_once(dirname(__FILE__).'/../../Base/Controller.php');
     4include_once(dirname(__FILE__).'/../View/Page.php');
     5include_once(dirname(__FILE__).'/../View/News.php');
    46
    57class NewsController extends Controller
  • trunk/www/Application/Controller/Realm.php

    r78 r80  
    22
    33include_once(dirname(__FILE__).'/../../Base/Controller.php');
     4include_once(dirname(__FILE__).'/../View/Page.php');
     5include_once(dirname(__FILE__).'/../View/Realm.php');
    46
    57class RealmController extends Controller
  • trunk/www/Application/Controller/Server.php

    r78 r80  
    22
    33include_once(dirname(__FILE__).'/../../Base/Controller.php');
     4include_once(dirname(__FILE__).'/../View/Page.php');
     5include_once(dirname(__FILE__).'/../View/Server.php');
    46
    57class ServerController extends Controller
  • trunk/www/Application/Controller/Task.php

    r78 r80  
    22
    33include_once(dirname(__FILE__).'/../../Base/Controller.php');
     4include_once(dirname(__FILE__).'/../View/Page.php');
     5include_once(dirname(__FILE__).'/../View/Task.php');
    46
    57class TaskController extends Controller
  • trunk/www/Application/Controller/Update.php

    r78 r80  
    22
    33include_once(dirname(__FILE__).'/../../Base/Controller.php');
     4include_once(dirname(__FILE__).'/../View/Page.php');
     5include_once(dirname(__FILE__).'/../View/Update.php');
    46
    57class UpdateController extends Controller
  • trunk/www/Application/Model/Backup.php

    r78 r80  
    66{
    77  var $Id;
    8   var $Tash;
     8  var $Task;
    99 
    1010  function __construct($Database, $Id)
  • trunk/www/Application/Model/User.php

    r78 r80  
    124124      else
    125125      {
    126         $this->Database->update('User', 'Id='.$Row['Id'], array('LastLoginTime' => 'NOW()', 'LastIpAddress' => GetRemoteAddress()));     
     126        $this->Database->update('User', 'Id='.$Row['Id'], array('LastLoginTime' => 'NOW()', 'LastIpAddress' => $this->System->GetRemoteAddress()));     
    127127        $this->Database->update('UserOnline', 'SessionId="'.$SID.'"', array('User' => $Row['Id']));
    128128        // načtení stavu stromu
    129129        $Result = $this->System->Translate('UserLoggedIn');
    130         $this->System->Modules['Log']->NewRecord('User', 'Login', 'Login='.$Login.',Host='.gethostbyaddr(GetRemoteAddress()));
     130        $this->System->Modules['Log']->NewRecord('User', 'Login', 'Login='.$Login.',Host='.gethostbyaddr($this->System->GetRemoteAddress()));
    131131      }
    132132    } else $Result = $this->System->Translate('UserNotRegistred');
  • trunk/www/Application/View/User.php

    r78 r80  
    145145    $UserOptions = new Form($this->System, $this->OptionsFormClass);
    146146    $UserOptions->LoadValuesFromDatabase($this->System->Modules['User']->Data['Id']);
    147     $UserOptions->OnSubmit = '?Module=User&Action=UserOptionsSave';
     147    $UserOptions->OnSubmit = '?Module=User&Action=OptionsSave';
    148148    $Output = $UserOptions->ShowEditForm();
    149149    return($Output);
  • trunk/www/Base/Table.php

    r78 r80  
    22
    33include_once(dirname(__FILE__).'/Types/Type.php');
     4include_once(dirname(__FILE__).'/Types/Module.php');
    45
    5 class Table
     6class Table extends Module
    67{
    78  var $Id;
     
    1314  var $TotalRowCount;
    1415 
    15   function __construct($FormClass)
     16  function __construct($FormClass, $System)
    1617  {
     18    parent::__construct($System);
    1719    $this->Definition = $FormClass;   
    1820    $this->QueryParameters = array();
     
    3941  function Show()
    4042  {
    41     global $Config;
    42 
    4343    $this->CheckOrder();
    4444    $Header = array();
     
    6161    $Html = new Html();
    6262    $Output = $Html->Table($Table, 'WideTable');
    63     $Output .= '<div class="Pager">'.$Html->PageList('Page', $this->Page, $this->TotalRowCount, $Config['Web']['TableRowPerPage']).'</div>';
     63    $Output .= '<div class="Pager">'.$Html->PageList('Page', $this->Page, $this->TotalRowCount, $this->Config['Web']['TableRowPerPage']).'</div>';
    6464    return($Output);
    6565  } 
     
    6767  function LoadValuesFromDatabase($Database)
    6868  {   
    69     global $Config;
    70    
    7169    $this->CheckOrder();
    7270    $OrderType = array('ASC', 'DESC');
     
    8583    if(array_key_exists('Page', $_GET)) $this->Page = $_GET['Page']; else $this->Page = 0;
    8684    if($this->Page > ($this->TotalRowCount / $Config['Web']['TableRowPerPage'])) $this->Page = 0;
    87     $DbResult = $Database->query('SELECT * FROM '.$Table.' AS T ORDER BY T.'.$_GET['Column'].' '.$OrderType[$_GET['Order']].' LIMIT '.($this->Page * $Config['Web']['TableRowPerPage']).', '.$Config['Web']['TableRowPerPage']);
     85    $DbResult = $Database->query('SELECT * FROM '.$Table.' AS T ORDER BY T.'.$_GET['Column'].' '.$OrderType[$_GET['Order']].' LIMIT '.($this->Page * $this->Config['Web']['TableRowPerPage']).', '.$this->Config['Web']['TableRowPerPage']);
    8886    while($DbRow = $DbResult->fetch_assoc())
    8987    {
Note: See TracChangeset for help on using the changeset viewer.