Changeset 77 for trunk/www/Application/View/Server.php
- Timestamp:
- Aug 25, 2009, 1:04:56 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/Application/View/Server.php
r76 r77 101 101 } 102 102 $Output .= $Table->Show(); 103 if($this->System->Modules[' User']->Data['Role'] >= USER_ROLE_USER)103 if($this->System->Modules['Permission']->Check('Server', 'Add')) 104 104 { 105 105 $DbResult = $this->Database->query('SELECT COUNT(*) FROM Server'); … … 109 109 $DbRow = $DbResult->fetch_row(); 110 110 if(($ServerCount < $Config['MaxServerCount']) and ($DbRow[0] < $Config['MaxServerCountPerUser'])) 111 $Output .= '<br /><div style="text-align: center;"><a href="?Module=Server&Action=Add">Vytvořit nový server</a></d ev>';111 $Output .= '<br /><div style="text-align: center;"><a href="?Module=Server&Action=Add">Vytvořit nový server</a></div>'; 112 112 } 113 113 return($Output); … … 137 137 $Output .= $Form->ShowTable(); 138 138 $Output .= '<div style="text-align: center">'; 139 if( (($this->System->Modules['User']->Data['Role'] >= USER_ROLE_USER) and ($this->System->Modules['User']->Data['Id'] == $Server->Server['User'])) or ($this->System->Modules['User']->Data['Role'] >= USER_ROLE_ADMINISTRATOR))139 if($this->System->Modules['Permission']->Check('Server', 'Edit')) 140 140 { 141 141 $Output .= '<br /><a href="http://'.$this->System->Config['Web']['Host'].'/mysql/">Správa databáze</a> '; 142 142 if(array_key_exists('Id', $Server->Server['Database']) and ($Server->Server['Lock'] == 0)) 143 143 { 144 if($ServerStatus['RealmdPortState'] == true) $Output .= ' <a href="? Action=ServerStop&Id='.$Server->Id.'">Zastavit</a> <a href="?Module=Server&Action=Restart&Id='.$Server->Id.'">Restartovat</a>';144 if($ServerStatus['RealmdPortState'] == true) $Output .= ' <a href="?Module=Server&Action=Stop&Id='.$Server->Id.'">Zastavit</a> <a href="?Module=Server&Action=Restart&Id='.$Server->Id.'">Restartovat</a>'; 145 145 else $Output .= ' <a href="?Module=Server&Action=Start&Id='.$Server->Id.'">Spustit</a>'; 146 146 }
Note:
See TracChangeset
for help on using the changeset viewer.