YourPaste - For your paste! Archive - Tools - Login

Posted by unknown on Sun 24 Aug 2008 20:20 60 views - Syntax: PHP - Expires: never - Report - IMG - Download -

  1. <?php
  2.  
  3. /**
  4.  * NOC overview page
  5.  *
  6.  * @package NOC
  7.  * @version 1.0
  8.  * @author Martijn Bogaard
  9.  * @copyright 2008 SiteWK
  10.  */
  11.  
  12. require_once('lib/common.php');
  13.  
  14. $page = $modules->getModuleByName('page');
  15. $db = $modules->getModuleByName('database');
  16.  
  17. $page->authVisit('overview');
  18.  
  19. $db->query(new Query("(SELECT 'I', `id`, `title`, `text`, `time_start`, `time_end`, `last_update`, `status`
  20.                                                 FROM `interruptions`
  21.                                                 WHERE `status` != ".INT_CLOSED.")
  22.                                                 UNION
  23.                                                 (SELECT 'M', `id`, `title`, `text`, `time_start`, `time_end`, `last_update`, `status`
  24.                                                 FROM `maintenance`
  25.                                                 WHERE `status` != ".MAIN_CLOSED.")
  26.                                                 ORDER BY `last_update` DESC;"));
  27.  
  28. $tpl->assign('berichten', $db->fetchAll());
  29.  
  30. $page->parsePage('overview.tpl');

Comments


Name:
Comment:

© 2008 YourPaste.net - Disclaimer