summaryrefslogtreecommitdiff
path: root/src/controllers/Plugins.class.php
blob: 597cd1955a82ec4247d54204a896b8f27cc0db1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

Router::register('plugins', 'Plugins');

class Plugins extends Controller {
	public function index($routed, $remainder) {
		global $mm;
		$uid = $mm->isLoggedIn();
		if ($uid===false || !$m->getAuthObj($uid)->isAdim()) {
			$this->http401($routed, $remainder);
			return;
		}
		// TODO
	}

	public function http401($routed, $remainder) {
		$this->showView('plugins/401');
	}
}