Changeset 23 for trunk/www/page.php
- Timestamp:
- Jun 12, 2009, 10:46:19 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/page.php
r22 r23 25 25 '<title>'.$this->System->Config['Web']['Title'].' - '.$Path.'</title> 26 26 </head><body'.$BodyParam.'>'. 27 '<div class="Navigation"><span class="MenuItem"><a href="?">Servery</a>'; 28 if($this->System->Modules['User']->User['Id'] != $this->System->Modules['User']->AnonymousUserId) 29 { 30 $DbResult = $this->Database->query('SELECT COUNT(*) FROM Server WHERE User='.$this->System->Modules['User']->User['Id']); 31 $DbRow = $DbResult->fetch_row(); 32 if($DbRow[0] > 0) 33 { 34 $DbResult = $this->Database->query('SELECT Id FROM Server WHERE User='.$this->System->Modules['User']->User['Id']); 35 $Server = $DbResult->fetch_assoc(); 36 $Output .= ' <a href="?Action=ServerShow&Id='.$Server['Id'].'">Můj server</a>'; 37 $Output .= ' <a href="?Action=ServerDebug&Id='.$Server['Id'].'">Ladící záznamy</a>'; 38 } else $Output .= ' <a href="?Action=ServerAdd">Vytvořit vlastní server</a>'; 39 $Output .= ' <a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=UserOptions">Nastavení účtu</a>'; 40 if($this->System->Modules['User']->User['Role'] == USER_ROLE_ADMINISTRATOR) 41 { 42 $Output .= ' <a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=EmulatorList">Emulátory</a>'; 43 } 44 } 27 '<div class="Navigation"><span class="MenuItem">'. 28 '<a href="?">Servery</a>'. 29 ' <a href="?Action=ClientList">Verze klienta</a>'; 45 30 $Output .= '</span><div class="MenuItem2">'; 46 31 if($this->System->Modules['User']->User['Id'] == $this->System->Modules['User']->AnonymousUserId)
Note:
See TracChangeset
for help on using the changeset viewer.