Changeset 45 for trunk/www/index.php
- Timestamp:
- Jun 19, 2009, 8:31:51 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/index.php
r44 r45 126 126 $Output .= 'Před provedením aktualizace bude server zastaven a provedena záloha databáze.'; 127 127 $Table = new Table('EmulatorList'); 128 $Table->Definition['Table'] = substr($Table->Definition['Table'], 0, -1).' WHERE Revision > '.$Server->Server['Database']['Emulator']['Revision'].' ORDER BY Revision)';128 $Table->Definition['Table'] = substr($Table->Definition['Table'], 0, -1).' WHERE `Revision` > '.$Server->Server['Database']['Emulator']['Revision'].' AND `Enable`=1 ORDER BY `Revision`)'; 129 129 $Table->Definition['Items']['Id'] = array('Type' => 'Hidden', 'Caption' => '', 'Default' => ''); 130 130 $Table->LoadValuesFromDatabase($this->Database); … … 679 679 if($_GET['Action'] == 'GameAccountRegister') 680 680 { 681 $Form = new Form('GameAccountNew' , $_GET['Id']);681 $Form = new Form('GameAccountNew'); 682 682 $Form->LoadValuesFromForm(); 683 683 $Form->Values['ServerId'] = $_GET['Id']; … … 692 692 $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'])); 693 693 $Output .= '<a href="?Action=GameAccountRegister&Id='.$Form->Values['ServerId'].'">Zpět k zadání údajů</a>'; 694 } else 695 if($_GET['Action'] == 'EmulatorAdd') 696 { 697 if($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR) 698 { 699 $Form = new Form('EmulatorItem'); 700 $Form->LoadValuesFromForm(); 701 $Form->OnSubmit = '?Action=EmulatorAdd2'; 702 $Output .= $Form->ShowEditForm(); 703 } else $Output .= USER_BAD_ROLE; 704 } else 705 if($_GET['Action'] == 'EmulatorAdd2') 706 { 707 if($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR) 708 { 709 $Form = new Form('EmulatorItem'); 710 $Form->LoadValuesFromForm(); 711 $Form->SaveValuesToDatabase(0); 712 $Output .= $this->SystemMessage('Přidání nového emulátoru', 'Emulátor přidán.'); 713 } else $Output .= USER_BAD_ROLE; 694 714 } else 695 715 if($_GET['Action'] == 'Info')
Note:
See TracChangeset
for help on using the changeset viewer.