$this->path = '';
$this->restricted = FALSE;
while (TRUE) {
- if (file_exists("$path/.private")) {
+ if (file_exists("$path/.private") and !$this->restricted) {
$this->restricted = $path;
}
else {
foreach (explode(' ', $params) as $param) {
if ($set = strpos($param, '=')) {
- $Page->place[ substr($param, 0, $set) ] = substr($param, $set + 1);
+ $Page->place[ substr($param, 0, $set) ] = urldecode(substr($param, $set + 1));
}
elseif (!empty($param)) {
$Page->place[] = $param;
# keep either login or logout parts depending on user level
global $User;
$userexists = $User && property_exists($User, 'login') && $User->login;
- if (! ($userexists and $User->admin("edit {$this->link}")) ) {
+ if (! ($userexists and !empty($this->editable)) ) {
# remove matching elements until first corresponding closing tag
$hideclass = $userexists ? 'logout' : 'login';
$tagmatch = '<([a-z]+) class="'.$hideclass.'"[^>]*>';