Changeset 30 for trunk/www/index.php
- Timestamp:
- Jun 13, 2009, 9:54:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/index.php
r29 r30 197 197 global $Config; 198 198 199 $Output = '<h4>Záznamy restartů</h4>'; 200 $Table = new Table('DebugList'); 201 $Table->OnRow = array($this, 'ShowDebugListOnRow'); 202 $Table->LoadValuesFromDatabase($this->Database); 203 $Output .= $Table->Show(); 204 if($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR) 205 { 206 //$Output .= '<br /><div style="text-align: center;"><a href="?Action=BackupAdd">Zálohovat</a></dev>'; 207 } 199 if($this->System->Modules['User']->User['Role'] >= USER_ROLE_USER) 200 { 201 $Server = new Server($this->Database, $_GET['Id']); 202 if(($this->System->Modules['User']->User['Id'] == $Server->Server['User']) or ($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR)) 203 { 204 $Output = '<h4>Ladící záznamy restartů</h4>'; 205 $Table = new Table('DebugList'); 206 $Table->OnRow = array($this, 'ShowDebugListOnRow'); 207 $Table->Definition['Table'] = '(SELECT * FROM Debug WHERE Server='.$_GET['Id'].')'; 208 $Table->LoadValuesFromDatabase($this->Database); 209 $Output .= $Table->Show(); 210 if($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR) 211 { 212 //$Output .= '<br /><div style="text-align: center;"><a href="?Action=BackupAdd">Zálohovat</a></dev>'; 213 } 214 } else $this->SystemMessage('Ladící záznamy', 'Nemáte oprávnění'); 215 } else $Output .= USER_BAD_ROLE; 208 216 return($Output); 209 217 }
Note:
See TracChangeset
for help on using the changeset viewer.