12345678910111213141516171819 |
- <?php
- declare(strict_types = 1);
-
- if (isset($LoggedUser['ID'])) {
- if (!isset($_REQUEST['action'])) {
- include('private.php');
- } else {
- switch ($_REQUEST['action']) {
- case 'poll':
- include(SERVER_ROOT.'/sections/forums/poll_vote.php');
- break;
-
- default:
- error(-1);
- }
- }
- } else {
- header('Location: login.php');
- }
|