Changeset 15 for trunk/www/index.php
- Timestamp:
- Jun 12, 2009, 8:09:48 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/index.php
r12 r15 10 10 function ShowServerListOnRow($Row) 11 11 { 12 $Server = new Server($this->Database, $Row['Id']);13 $ServerState = $Server->GetState();14 $Row['Online'] = $ServerState['Online'] * 1;15 12 $Row['NetworkPortRealmd'] = $this->System->Config['Web']['Host'].':'.$Row['NetworkPortRealmd']; 16 13 $Row['Name'] = '<a href="?Action=ServerShow&Id='.$Row['Id'].'">'.$Row['Name'].'</a>'; 17 $Row['AccountCount'] = $ServerState['AccountCount'];18 $Row['CharacterCount'] = $ServerState['CharacterCount'];19 $Row['OnlinePlayerCount'] = $ServerState['OnlinePlayerCount'];20 14 return($Row); 21 15 } … … 25 19 global $Config; 26 20 21 $Server = new Server($this->Database, 0); 22 $Server->UpdateServerList(); 27 23 $Output = '<h4>Seznam serverů</h4>'; 28 24 $Table = new Table('ServerList'); … … 125 121 $Form = new Form('UserLogin'); 126 122 $Form->OnSubmit = '?Action=Login'; 127 $Result = $this->System->Modules['User']->Login($_POST['Username'], $_POST['Password']); 123 $Form->LoadValuesFromForm(); 124 $Result = $this->System->Modules['User']->Login($Form->Values['Username'], $Form->Values['Password']); 128 125 $Output .= $this->SystemMessage('Přihlášení', $Result); 129 126 if($Result <> USER_LOGGED_IN) 130 127 { 131 $Form->LoadValuesFromForm();132 128 $Form->Values['Password'] = ''; 133 129 $Output .= $Form->ShowEditForm();
Note:
See TracChangeset
for help on using the changeset viewer.