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/Backup.php

    r92 r93  
    2222  function ItemList()
    2323  {
    24     global $Config;
    25    
    2624    $ServerId = $_GET['Id'];
    2725    if($this->System->Modules['User']->User['Role'] >= USER_ROLE_USER)
    2826    {
    29       $Server = new Server($this->Database, $_GET['Id']);
     27      $Server = new Server($this->System, $_GET['Id']);
    3028      if(($this->System->Modules['User']->User['Id'] == $Server->Server['User']) or ($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR))
    3129      {
     
    6159    else if($this->System->Modules['User']->User['Role'] >= USER_ROLE_USER)
    6260    {
    63       $Backup = new Backup($this->Database, $_GET['Id']);
    64       $Server = new Server($this->Database, $Backup->Backup['Server']);
     61      $Backup = new Backup($this->System, $_GET['Id']);
     62      $Server = new Server($this->System, $Backup->Backup['Server']);
    6563      if(($this->System->Modules['User']->User['Id'] == $Server->Server['User']) or ($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR))
    6664      {
     
    7977    else if($this->System->Modules['User']->User['Role'] >= USER_ROLE_USER)
    8078    {
    81       $Backup = new Backup($this->Database, $_GET['Id']);
    82       $Server = new Server($this->Database, $Backup->Backup['Server']);
     79      $Backup = new Backup($this->System, $_GET['Id']);
     80      $Server = new Server($this->System, $Backup->Backup['Server']);
    8381      if(($this->System->Modules['User']->User['Id'] == $Server->Server['User']) or ($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR))
    8482      {
     
    9593    else if($this->System->Modules['User']->User['Role'] >= USER_ROLE_USER)
    9694    {
    97       $Server = new Server($this->Database, $_GET['Id']);
     95      $Server = new Server($this->System, $_GET['Id']);
    9896      if(($this->System->Modules['User']->User['Id'] == $Server->Server['User']) or ($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR))
    9997      {
    100         $Backup = new Backup($this->Database, 0);
     98        $Backup = new Backup($this->System, 0);
    10199        $Output = $this->SystemMessage('Ruční zálohování', $Backup->Create($Server->Id));
    102100        $Output .= $this->ShowTaskList();
     
    106104  }
    107105}
    108 
    109 ?>
Note: See TracChangeset for help on using the changeset viewer.