Changeset 23
- Timestamp:
- Jun 12, 2009, 10:46:19 PM (15 years ago)
- Location:
- trunk/www
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/emulator.php
r17 r23 62 62 )); 63 63 } 64 65 function ExtractMaps() 66 { 67 $this->Task->Add('Vygenerování souborů map', array( 68 'cd wowclient/'.$this->Emulator['ClientVersion']['Version'].'/client', 69 'wine emulator/'.$this->Id.'/source/contrib/extractor/ad.exe', 70 'mv wowclient/'.$this->Emulator['ClientVersion']['Version'].'/client/dbc wowclient/'.$this->Emulator['ClientVersion']['Version'].'/', 71 'mv wowclient/'.$this->Emulator['ClientVersion']['Version'].'/client/maps wowclient/'.$this->Emulator['ClientVersion']['Version'].'/', 72 )); 73 return('Požadavek na vygenerování map zařazen.'); 74 } 64 75 } 65 76 -
trunk/www/index.php
r21 r23 102 102 } 103 103 104 function UserMenu() 105 { 106 $Output = '<strong>Uživatelské menu</strong><br />'; 107 if($this->System->Modules['User']->User['Id'] != $this->System->Modules['User']->AnonymousUserId) 108 { 109 $DbResult = $this->Database->query('SELECT COUNT(*) FROM Server WHERE User='.$this->System->Modules['User']->User['Id']); 110 $DbRow = $DbResult->fetch_row(); 111 if($DbRow[0] > 0) 112 { 113 $DbResult = $this->Database->query('SELECT Id FROM Server WHERE User='.$this->System->Modules['User']->User['Id']); 114 $Server = $DbResult->fetch_assoc(); 115 $Output .= '<div><a href="?Action=ServerShow&Id='.$Server['Id'].'">Můj server</a></div>'; 116 $Output .= '<div><a href="?Action=ServerDebug&Id='.$Server['Id'].'">Ladící záznamy</a></div>'; 117 } else $Output .= '<div><a href="?Action=ServerAdd">Vytvořit vlastní server</a></div>'; 118 $Output .= '<div><a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=UserOptions">Nastavení účtu</a></div>'; 119 if($this->System->Modules['User']->User['Role'] == USER_ROLE_ADMINISTRATOR) 120 { 121 $Output .= '<div><a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=EmulatorList">Emulátory</a></div>'; 122 } 123 } 124 return($Output); 125 } 126 104 127 function Show() 105 128 { 106 129 global $Config; 107 130 108 $Output = ' ';131 $Output = '<table class="BasicTable"><tr><td class="UserMenu">'.$this->UserMenu().'</td><td class="Content">'; 109 132 if(array_key_exists('Action', $_GET)) 110 133 { … … 344 367 if($this->System->Modules['User']->User['Role'] >= USER_ROLE_USER) 345 368 { 346 $Output = '<div>Ladící informace serveru</div>';369 $Output .= '<div>Ladící informace serveru</div>'; 347 370 $DbResult = $this->Database->query('SELECT Id FROM Server WHERE User='.$this->System->Modules['User']->User['Id']); 348 371 $Server = $DbResult->fetch_assoc(); … … 362 385 } else 363 386 { 364 $Output = $this->ShowServerList();387 $Output .= $this->ShowServerList(); 365 388 } 366 389 } else 367 390 { 368 $Output = $this->ShowServerList(); 369 } 391 $Output .= $this->ShowServerList(); 392 } 393 $Output .= '</td></tr</table>'; 370 394 return($Output); 371 395 } -
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) -
trunk/www/server.php
r20 r23 251 251 )); 252 252 } 253 } 253 } 254 254 } 255 255 -
trunk/www/style.css
r21 r23 243 243 margin-left: auto; 244 244 margin-right: auto; 245 vertical-align: top: 245 246 } 246 247 … … 248 249 { 249 250 text-align: left; 251 vertical-align: top; 250 252 padding: 3px 3px 3px 3px; 251 253 } … … 331 333 } 332 334 335 .BasicTable .Header 336 { 337 text-align: center; 338 } 339 333 340 .Pager 334 341 { 335 342 text-align: center; 336 343 } 344 345 .UserMenu 346 { 347 width: 20%; 348 } 349 350 .Content 351 { 352 }
Note:
See TracChangeset
for help on using the changeset viewer.