-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
56 lines (45 loc) · 2.07 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
include_once "auth.php";
include_once "globals.php";
include_once "./template/config.php";
include_once "./template/functions.php";
startSession();
$img = getEscGPost('img');
if (!empty($img)) { include_once "img.php"; exit; }
header("Content-Type:text/html; charset=UTF-8");
$start = microtime(true);
if ( isAdmin() && $_SERVER['REQUEST_METHOD'] == 'POST' && !empty($_POST) ) {
$what = getEscGPost('aktion');
$checkFilme = getEscGPost('checkFilme');
if (!empty($what) && !empty($checkFilme)) {
setSeenDelMovie($what, $checkFilme);
unset($_POST);
}
} // post
$show = getEscGPost('show');
$show = isset($_SESSION['show']) && empty($show) ? $_SESSION['show'] : $show;
$idFile = getEscGPost('idFile');
$idFile = isset($_SESSION['idFile']) && empty($idShow) ? $_SESSION['idFile'] : null;
$idMovie = getEscGPost('idMovie');
$idMovie = isset($_SESSION['idMovie']) && empty($idShow) ? $_SESSION['idMovie'] : null;
if ( !empty($_GET) || !empty($_POST) ) { redirectPage('', true); } //breaks the browsers back button, who gives a fuck??
if ( isLoggedIn() ) {
echo '<html lang="EN">';
}
if (empty($show)) { $show = 'filme'; }
if ($show == 'logout') { include "./logout.php"; }
else if ($show == 'serien') { include "./serien_.php"; }
else if ($show == 'filme') { include "./filme_.php"; }
else if ($show == 'details' && !empty($idMovie)) { include "./details.php"; }
else if ($show == 'airdate') { include "./airdates.php"; }
# else if ($show == 'export') { include "./dbExport.php"; }
# else if ($show == 'import') { include "./dbImport.php"; }
# else if ($show == 'mvids') { include "./mvids_.php"; }
# else if ($show == 'mpExp' && isFile('fExplorer.php')) { include "./fExplorer.php"; }
adminInfo($start, $show);
if (!isDemo()) {
logc( 'Page generated in: '.round(microtime(true)-$start, 2).'s', true );
adminInfoJS();
}
?>
</html>