plugins/Newsboy.php
changeset 13 4d8ce84092c9
parent 12 62c594682bf6
child 14 a5263dadedf3
equal deleted inserted replaced
12:62c594682bf6 13:4d8ce84092c9
   168         $db->_die();
   168         $db->_die();
   169       if ( $db->numrows() < 1 )
   169       if ( $db->numrows() < 1 )
   170         return;
   170         return;
   171       // found a page
   171       // found a page
   172       $found_match = false;
   172       $found_match = false;
   173       while ( $row = $db->fetchrow() )
   173       while ( $row = $db->fetchrow($q) )
   174       {
   174       {
   175         if ( sanitize_page_id($row['name']) === $id_match[4] )
   175         if ( sanitize_page_id($row['name']) === $id_match[4] )
   176         {
   176         {
   177           $found_match = true;
   177           $found_match = true;
   178           // we have a definitive match, send the page through
   178           // we have a definitive match, send the page through
   196 
   196 
   197 if ( class_exists('Namespace_Default') )
   197 if ( class_exists('Namespace_Default') )
   198 {
   198 {
   199   class Namespace_NewsBoy extends Namespace_Default
   199   class Namespace_NewsBoy extends Namespace_Default
   200   {
   200   {
   201     public $perms;
   201     public $perms, $password, $send_headers;
   202     
   202     
   203     function __construct($a, $b, $c = 0)
   203     function __construct($a, $b, $c = 0)
   204     {
   204     {
   205       global $db, $session, $paths, $template, $plugins; // Common objects
   205       global $db, $session, $paths, $template, $plugins; // Common objects
   206       
   206