2018-12-27 04:23:10 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Created by PhpStorm.
|
|
|
|
* User: jedi
|
|
|
|
* Date: 12/27/18
|
|
|
|
* Time: 2:49 AM
|
|
|
|
*/
|
|
|
|
|
2018-12-27 07:27:47 +00:00
|
|
|
include "backend.php";
|
2019-02-22 14:30:43 +00:00
|
|
|
include "functions.php";
|
2018-12-27 07:27:47 +00:00
|
|
|
|
2018-12-27 18:51:29 +00:00
|
|
|
|
2018-12-27 19:52:35 +00:00
|
|
|
if(file_exists("currentgithash"))
|
|
|
|
$hash = file_get_contents("currentgithash");
|
|
|
|
|
2018-12-27 07:27:47 +00:00
|
|
|
$page = isset($_GET["page"])?$_GET["page"]:"dashboard";
|
|
|
|
|
2018-12-27 04:23:10 +00:00
|
|
|
if (!auth()) {
|
|
|
|
header('WWW-Authenticate: Basic realm="C3CLOC"');
|
|
|
|
header('HTTP/1.0 401 Unauthorized');
|
2018-12-27 07:27:47 +00:00
|
|
|
include "templates/404.php";
|
2018-12-27 04:23:10 +00:00
|
|
|
exit;
|
|
|
|
} else {
|
2018-12-27 07:27:47 +00:00
|
|
|
include "templates/page.php";
|
2018-12-27 04:23:10 +00:00
|
|
|
}
|
|
|
|
?>
|