mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
19 lines
445 B
PHP
Executable file
19 lines
445 B
PHP
Executable file
<?php
|
|
|
|
class AdminController extends BaseController {
|
|
function load() {
|
|
$this->session_only = false;
|
|
}
|
|
|
|
function dispatch() {
|
|
session_start();
|
|
|
|
if(isset($_SESSION['admin']) && $_SESSION['admin'] == true) {
|
|
$this->page->setTitle(__('title.administration', APP_TITLE));
|
|
} else {
|
|
$this->name = 'adminlogin';
|
|
}
|
|
|
|
//session_write_close();
|
|
}
|
|
}
|