equal
deleted
inserted
replaced
1 <?php |
1 <?php |
2 |
2 |
3 /* |
3 /* |
4 * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between |
4 * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between |
5 * Version 1.0.5 (Ferrishyn) |
5 * Version 1.0.6 (Roane) |
6 * pageprocess.php - intelligent retrieval of pages |
6 * pageprocess.php - intelligent retrieval of pages |
7 * Copyright (C) 2006-2007 Dan Fuhry |
7 * Copyright (C) 2006-2007 Dan Fuhry |
8 * |
8 * |
9 * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License |
9 * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License |
10 * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. |
10 * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. |
163 if ( !$this->perms->get_permissions('read') ) |
163 if ( !$this->perms->get_permissions('read') ) |
164 { |
164 { |
165 $this->err_access_denied(); |
165 $this->err_access_denied(); |
166 return false; |
166 return false; |
167 } |
167 } |
|
168 if ( $this->revision_id > 0 && !$this->perms->get_permissions('history_view') ) |
|
169 { |
|
170 $this->err_access_denied(); |
|
171 return false; |
|
172 } |
168 $pathskey = $paths->nslist[ $this->namespace ] . $this->page_id; |
173 $pathskey = $paths->nslist[ $this->namespace ] . $this->page_id; |
169 $strict_no_headers = false; |
174 $strict_no_headers = false; |
170 if ( isset($paths->pages[$pathskey]) ) |
175 if ( isset($paths->pages[$pathskey]) ) |
171 { |
176 { |
172 if ( $paths->pages[$pathskey]['special'] == 1 ) |
177 if ( $paths->pages[$pathskey]['special'] == 1 ) |