Changeset 58 for trunk/www/view/realm.php
- Timestamp:
- Aug 4, 2009, 7:21:15 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/view/realm.php
r57 r58 63 63 'Table' => '', 64 64 'Items' => array( 65 ' ServerId' => array('Type' => 'Hidden', 'Caption' => 'Id', 'Default' => 0),65 'RealmId' => array('Type' => 'Hidden', 'Caption' => 'Id', 'Default' => 0), 66 66 'SkipCinematics' => array('Type' => 'SkipCinematics', 'Caption' => 'Zobrazovat úvodní video', 'Default' => ''), 67 67 'StartPlayerLevel' => array('Type' => 'Integer', 'Caption' => 'Počáteční úroveň hráčů', 'Default' => 1), … … 143 143 //$Form->Values['UsedMemory'] = $this->System->AddPrefixMultipliers($RealmStatus['UsedMemory'] * 1024, 'B', 4, 'Binary'); 144 144 $Output .= $Form->ShowTable(); 145 $Server = new Server($this->Database, $Realm->Data['Server']);146 145 $Output .= '<div style="text-align: center">'; 147 if((($this->System->Modules['User']->User['Role'] >= USER_ROLE_USER) and ($this->System->Modules['User']->User['Id'] == $ Server->Server['User'])) or ($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR))146 if((($this->System->Modules['User']->User['Role'] >= USER_ROLE_USER) and ($this->System->Modules['User']->User['Id'] == $Realm->GetUser())) or ($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR)) 148 147 { 149 148 $Output .= '<br /><a href="http://'.$this->System->Config['Web']['Host'].'/mysql/">Správa databáze</a> '; 150 149 if(array_key_exists('Id', $Realm->Data['Database']) and ($Realm->Data['Lock'] == 0)) 151 150 { 152 if($ ServerStatus['WorlddPortState'] == true) $Output .= ' <a href="?Action=RealmStop&Id='.$Realm->Id.'">Zastavit</a> <a href="?Action=RealmRestart&Id='.$Realm->Id.'">Restartovat</a>';151 if($RealmStatus['WorlddPortState'] == true) $Output .= ' <a href="?Action=RealmStop&Id='.$Realm->Id.'">Zastavit</a> <a href="?Action=RealmRestart&Id='.$Realm->Id.'">Restartovat</a>'; 153 152 else $Output .= ' <a href="?Action=RealmStart&Id='.$Realm->Id.'">Spustit</a>'; 154 153 }
Note:
See TracChangeset
for help on using the changeset viewer.