Changeset 545 for trunk/includes/Page.php
- Timestamp:
- Jun 18, 2013, 6:07:52 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 5 5 .project 6 6 .buildpath 7 Query.log
-
- Property svn:ignore
-
trunk/includes/Page.php
r542 r545 1 1 <?php 2 3 function ShowShoutbox()4 {5 global $System, $Config, $User, $System;6 7 $Output = '<strong><a href="'.$System->Link('/action.php?action=ShoutBoxView').'">Kecátko:</a></strong>';8 if($User->Licence(LICENCE_USER))9 $Output .= ' <a href="'.$System->Link('/action.php?action=shoutbox').'">Vložit</a>';10 $Output .= '<div class="box"><table>';11 $DbResult = $System->Database->query('SELECT * FROM `ShoutBox` ORDER BY `ID` DESC LIMIT 30');12 while($Line = $DbResult->fetch_assoc())13 $Output .= '<tr><td><strong>'.$Line['UserName'].'</strong>: '.MakeActiveLinks($Line['Text']).'</td></tr>';14 $Output .= '</table></div>';15 return($Output);16 }17 2 18 3 function ShowTopBar() … … 340 325 } 341 326 327 class Page 328 { 329 var $System; 330 var $Database; 331 332 function __construct($System) 333 { 334 $this->System = &$System; 335 $this->Database = &$System->Database; 336 } 337 338 function Show() 339 { 340 return(''); 341 } 342 343 function GetOutput() 344 { 345 $Output = $this->Show(); 346 $Output = ShowPage($Output); 347 return($Output); 348 } 349 } 350 342 351 ?>
Note:
See TracChangeset
for help on using the changeset viewer.