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