Changeset 26 for trunk/www/index.php
- Timestamp:
- Jun 13, 2009, 1:49:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/index.php
r25 r26 59 59 $Output .= ' <a href="?Action=ServerDatabaseImport&Id='.$Server->Id.'">Načtení čisté databáze</a>'; 60 60 } 61 $Output .= ' <a href="?Action=GameAccountRegister&Id='.$Server->Id.'">Vytvoření herního účtu</a>'; 61 62 $Output .= '</div>'; 62 63 return($Output); … … 453 454 $Output .= $this->ShowDebugList($_GET['Id']); 454 455 } else 456 if($_GET['Action'] == 'GameAccountRegister') 457 { 458 $Form = new Form('GameAccountNew', $_GET['Id']); 459 $Form->LoadValuesFromForm(); 460 $Form->Values['ServerId'] = $_GET['Id']; 461 $Form->OnSubmit = '?Action=GameAccountRegister2'; 462 $Output .= $Form->ShowEditForm(); 463 } else 464 if($_GET['Action'] == 'GameAccountRegister2') 465 { 466 $Form = new Form('GameAccountNew'); 467 $Form->LoadValuesFromForm(); 468 $Server = new Server($this->Database, $Form->Values['ServerId']); 469 $Output .= $this->SystemMessage('Vytvoření herního účtu', $Server->NewAccount($Form->Values['Name'], $Form->Values['Password'], $Form->Values['Password2'], $Form->Values['Email'], $Form->Values['Expansion'])); 470 $Output .= '<a href="?Action=GameAccountRegister&Id='.$Form->Values['ServerId'].'">Zpět k zadání údajů</a>'; 471 } else 455 472 if($_GET['Action'] == 'Test') 456 473 { … … 470 487 $Output .= $this->ShowServerList(); 471 488 } 472 $Output = '<table class="BasicTable"><tr><td class="UserMenu">'.$this->UserMenu().'</td><td class="Content">'.$Output.'</td></tr</table>'; 489 if($this->System->Modules['User']->User['Id'] != $this->System->Modules['User']->AnonymousUserId) 490 $Output = '<table class="BasicTable"><tr><td class="UserMenu">'.$this->UserMenu().'</td><td class="Content">'.$Output.'</td></tr</table>'; 473 491 return($Output); 474 492 }
Note:
See TracChangeset
for help on using the changeset viewer.