includes/pageprocess.php
changeset 286 b2f985e4cef3
parent 285 7846d45bd250
child 304 e2cb5f1432c8
child 312 6c7060d36a23
equal deleted inserted replaced
285:7846d45bd250 286:b2f985e4cef3
   164       if ( $paths->pages[$pathskey]['special'] == 1 )
   164       if ( $paths->pages[$pathskey]['special'] == 1 )
   165       {
   165       {
   166         $this->send_headers = false;
   166         $this->send_headers = false;
   167         $strict_no_headers = true;
   167         $strict_no_headers = true;
   168       }
   168       }
   169       if ( $paths->pages[$pathskey]['password'] != '' && $paths->pages[$pathskey]['password'] != sha1('') )
   169       if ( isset($paths->pages[$pathskey]['password']) )
   170       {
   170       {
   171         $password =& $paths->pages[$pathskey]['password'];
   171         if ( $paths->pages[$pathskey]['password'] != '' && $paths->pages[$pathskey]['password'] != sha1('') )
   172         if ( $this->password != $password )
   172         {
   173         {
   173           $password =& $paths->pages[$pathskey]['password'];
   174           $this->err_wrong_password();
   174           if ( $this->password != $password )
   175           return false;
   175           {
       
   176             $this->err_wrong_password();
       
   177             return false;
       
   178           }
   176         }
   179         }
   177       }
   180       }
   178     }
   181     }
   179     if ( $this->page_exists && $this->namespace != 'Special' && $this->namespace != 'Admin' && $do_stats )
   182     if ( $this->page_exists && $this->namespace != 'Special' && $this->namespace != 'Admin' && $do_stats )
   180     {
   183     {