Changeset 46 for trunk/www/index.php
- Timestamp:
- Jun 19, 2009, 9:41:07 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/index.php
r45 r46 52 52 53 53 $Server = new Server($this->Database, $Id); 54 if(isset($Server->Server)) 55 { 54 56 $Output = '<h4>Podrobnosti serveru</h4>'; 55 57 $Form = new Form('ServerView'); … … 88 90 $Output .= ' <a href="?Action=GameAccountRegister&Id='.$Server->Id.'">Vytvoření herního účtu</a>'; 89 91 $Output .= '</div>'; 92 } else $Output = $this->SystemMessage('Zobrazení serveru', 'Server se zadaným id nenalezen.'); 90 93 return($Output); 91 94 } … … 482 485 $Output .= $Form->ShowEditForm(); 483 486 } 484 } else $Output .= $this->SystemMessage('Nový serve ', 'Nelze vytvářet další servery');487 } else $Output .= $this->SystemMessage('Nový server', 'Nelze vytvářet další servery'); 485 488 } else $Output .= USER_BAD_ROLE; 486 489 } else … … 503 506 $Form = new Form('ServerCreate', array()); 504 507 $Form->LoadValuesFromForm(); 505 $this->Database->insert('Server', array('Name' => $Form->Values['Name'], 'Description' => $Form->Values['Description'], 'User' => $this->System->Modules['User']->User['Id'], 'Motd' => $Form->Values['Motd'], 'Homepage' => $Form->Values['Homepage'], 'Type' => $Form->Values['Type'], 'Database' => 1, 'NetworkPortWorldd' => $NewPortWorldd, 'NetworkPortRealmd' => $NewPortRealmd, 'Lock' => 1, 'TimeCreate' => 'NOW()'));508 $this->Database->insert('Server', array('Name' => $Form->Values['Name'], 'Description' => $Form->Values['Description'], 'User' => $this->System->Modules['User']->User['Id'], 'Motd' => $Form->Values['Motd'], 'Homepage' => $Form->Values['Homepage'], 'Type' => $Form->Values['Type'], 'Database' => $Form->Values['Database'], 'NetworkPortWorldd' => $NewPortWorldd, 'NetworkPortRealmd' => $NewPortRealmd, 'Lock' => 1, 'TimeCreate' => 'NOW()')); 506 509 $LastInsertId = $this->Database->insert_id; 507 510 $Server = new Server($this->Database, $LastInsertId);
Note:
See TracChangeset
for help on using the changeset viewer.