Initial commit

Couldnt keep the history unfortunately.
This commit is contained in:
Riyyi
2021-03-03 17:55:48 +01:00
commit a8056b66cc
67 changed files with 7759 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
<?php
namespace App\Controllers;
use App\Classes\User;
class AdminController extends PageController {
public function indexAction(): void {
$this->router->service()->user = User::getUser();
parent::view('', 'Admin');
}
public function toggleAction(): void {
User::toggle();
echo User::getToggle() ? '1' : '0';
}
public function syntaxAction(): void {
parent::view();
}
}