Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- declare(strict_types=1);
- // Start session.
- session_start();
- // Include helper functions.
- require_once 'helpers.php';
- if (! check_auth()) {
- logout();
- echo json_encode([
- 'auth' => false,
- 'redirect' => 'login.php',
- ]);
- return;
- }
- echo json_encode([
- 'auth' => true,
- ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement