blob: 40d3fc03d35436eee45bde4c4311c770d0d9d795 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
require_once('Login.class.php');
Router::register('plugins', 'Plugins');
class Plugins extends Controller {
public function index($routed, $remainder) {
$uid = Login::isLoggedIn();
if ($uid===false || !Auth::getObj($uid)->isAdmin()) {
$this->http401($routed, $remainder);
return;
}
// TODO
}
public function http401($routed, $remainder) {
$this->showView('plugins/401');
}
}
|