You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
395 B
25 lines
395 B
4 years ago
|
<?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();
|
||
|
}
|
||
|
|
||
|
}
|