Changeset 93 for trunk/www/Application/View/Backup.php
- Timestamp:
- Aug 15, 2013, 11:17:26 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/Application/View/Backup.php
r92 r93 22 22 function ItemList() 23 23 { 24 global $Config;25 26 24 $ServerId = $_GET['Id']; 27 25 if($this->System->Modules['User']->User['Role'] >= USER_ROLE_USER) 28 26 { 29 $Server = new Server($this-> Database, $_GET['Id']);27 $Server = new Server($this->System, $_GET['Id']); 30 28 if(($this->System->Modules['User']->User['Id'] == $Server->Server['User']) or ($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR)) 31 29 { … … 61 59 else if($this->System->Modules['User']->User['Role'] >= USER_ROLE_USER) 62 60 { 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']); 65 63 if(($this->System->Modules['User']->User['Id'] == $Server->Server['User']) or ($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR)) 66 64 { … … 79 77 else if($this->System->Modules['User']->User['Role'] >= USER_ROLE_USER) 80 78 { 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']); 83 81 if(($this->System->Modules['User']->User['Id'] == $Server->Server['User']) or ($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR)) 84 82 { … … 95 93 else if($this->System->Modules['User']->User['Role'] >= USER_ROLE_USER) 96 94 { 97 $Server = new Server($this-> Database, $_GET['Id']);95 $Server = new Server($this->System, $_GET['Id']); 98 96 if(($this->System->Modules['User']->User['Id'] == $Server->Server['User']) or ($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR)) 99 97 { 100 $Backup = new Backup($this-> Database, 0);98 $Backup = new Backup($this->System, 0); 101 99 $Output = $this->SystemMessage('Ruční zálohování', $Backup->Create($Server->Id)); 102 100 $Output .= $this->ShowTaskList(); … … 106 104 } 107 105 } 108 109 ?>
Note:
See TracChangeset
for help on using the changeset viewer.