1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/movim_ynh.git synced 2024-09-03 19:46:19 +02:00
movim_ynh/sources/app/controllers/AdminController.php
2016-03-30 09:25:03 +02:00

18 lines
396 B
PHP

<?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';
}
}
}