added new radius module

This commit is contained in:
Luca Haid
2025-01-14 08:52:50 +01:00
parent e74a03e1a1
commit 35e5040155
4 changed files with 307 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?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", []);
}
}