Ignore:
Timestamp:
Aug 15, 2013, 11:17:26 PM (11 years ago)
Author:
chronos
Message:
  • Fixed: System variable as parameter to constructors of descendents of Module class.
  • Removed: End PHP mark "?>" from all files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/Application/View/Update.php

    r92 r93  
    77  function ItemList()
    88  {
    9     global $Config;
    10    
    119    $ServerId = $_GET['Id'];
    1210    if($this->System->Modules['User']->User['Role'] >= USER_ROLE_USER)
    1311    {
    14       $Server = new Server($this->Database, $_GET['Id']);
     12      $Server = new Server($this->System, $_GET['Id']);
    1513      if(($this->System->Modules['User']->User['Id'] == $Server->Server['User']) or ($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR))
    1614      {
    17         $Server = new Server($this->Database, $ServerId);
     15        $Server = new Server($this->System, $ServerId);
    1816        $Output = '<h4>Seznam dostupných aktulizací</h4>';
    1917        $Output .= 'Před provedením aktualizace bude server zastaven a provedena záloha databáze.';
     
    4139    else if($this->System->Modules['User']->User['Role'] >= USER_ROLE_USER)
    4240    {
    43       $Server = new Server($this->Database, $_GET['Server']);
     41      $Server = new Server($this->System, $_GET['Server']);
    4442      if(($this->System->Modules['User']->User['Id'] == $Server->Server['User']) or ($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR))
    4543      {
     
    5149  }
    5250}
    53 
    54 ?>
Note: See TracChangeset for help on using the changeset viewer.