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