mirror of https://github.com/movim/movim
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
404 B
21 lines
404 B
<?php
|
|
use Movim\Controller\Base;
|
|
|
|
class AdminController extends Base
|
|
{
|
|
function load()
|
|
{
|
|
$this->session_only = false;
|
|
}
|
|
|
|
function dispatch()
|
|
{
|
|
session_start();
|
|
|
|
if(isset($_SESSION['admin']) && $_SESSION['admin'] == true) {
|
|
$this->page->setTitle(__('page.administration'));
|
|
} else {
|
|
$this->name = 'adminlogin';
|
|
}
|
|
}
|
|
}
|