22 lines
580 B
PHP
22 lines
580 B
PHP
<?php
|
|
|
|
class RadiusController extends mfBaseController {
|
|
private User $me;
|
|
|
|
protected function init(): void {
|
|
$this->needlogin=true;
|
|
$me = new User();
|
|
$me->loadMe();
|
|
$this->layout()->set("me", $me);
|
|
$this->me = $me;
|
|
|
|
if (!$this->me->is("Admin")) $this->redirect("Dashboard");
|
|
}
|
|
|
|
protected function indexAction() {
|
|
$this->layout()->set('additionalJS', ["plugins/chart.js/chart.4.4.6.js", "plugins/chart.js/chartjs-adapter-moment.min.js"]);
|
|
Helper::renderVue($this, $this->mod, "Radius", []);
|
|
}
|
|
|
|
|
|
} |