2018-01-08 Controllers
This commit is contained in:
parent
039b8df08b
commit
c27d444203
2 changed files with 5 additions and 5 deletions
|
@ -35,12 +35,14 @@ class Primary
|
|||
if (! in_array($this->c->Cookie->uId, $this->c->admins->list) //????
|
||||
|| ! in_array($this->c->user->id, $this->c->admins->list) //????
|
||||
) {
|
||||
if (! $this->c->isInit('user')) {
|
||||
$this->c->user = $this->c->users->create(['id' => 1, 'group_id' => $this->c->GROUP_GUEST]);
|
||||
}
|
||||
return $this->c->Maintenance;
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->c->config->i_fork_revision < $this->c->FORK_REVISION
|
||||
) {
|
||||
if ($this->c->config->i_fork_revision < $this->c->FORK_REVISION) {
|
||||
header('Location: db_update.php'); //????
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -108,7 +108,6 @@ class Routing
|
|||
$r->add(['GET', 'POST'], '/admin/permissions', 'AdminPermissions:edit', 'AdminPermissions' );
|
||||
$r->add(['GET', 'POST'], '/admin/categories', 'AdminCategories:view', 'AdminCategories' );
|
||||
$r->add(['GET', 'POST'], '/admin/categories/{id:[1-9]\d*}/delete', 'AdminCategories:delete', 'AdminCategoriesDelete');
|
||||
|
||||
$r->add(['GET', 'POST'], '/admin/forums', 'AdminForums:view', 'AdminForums' );
|
||||
$r->add(['GET', 'POST'], '/admin/forums/new', 'AdminForums:edit', 'AdminForumsNew' );
|
||||
$r->add(['GET', 'POST'], '/admin/forums/{id:[1-9]\d*}/edit', 'AdminForums:edit', 'AdminForumsEdit' );
|
||||
|
@ -118,8 +117,7 @@ class Routing
|
|||
$r->add('POST', '/admin/groups/new[/{base:[1-9]\d*}]', 'AdminGroups:edit', 'AdminGroupsNew' );
|
||||
$r->add(['GET', 'POST'], '/admin/groups/{id:[1-9]\d*}/edit', 'AdminGroups:edit', 'AdminGroupsEdit' );
|
||||
$r->add(['GET', 'POST'], '/admin/groups/{id:[1-9]\d*}/delete', 'AdminGroups:delete', 'AdminGroupsDelete' );
|
||||
$r->add('GET', '/admin/censoring', 'AdminCensoring:view', 'AdminCensoring' );
|
||||
|
||||
$r->add(['GET', 'POST'], '/admin/censoring', 'AdminCensoring:edit', 'AdminCensoring' );
|
||||
}
|
||||
|
||||
$uri = $_SERVER['REQUEST_URI'];
|
||||
|
|
Loading…
Add table
Reference in a new issue