-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathindex.php
83 lines (55 loc) · 2.01 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
/*
* Copyright 2014-2025 GPLv3, Open Crypto Tracker by Mike Kilday: Mike@DragonFrugal.com (leave this copyright / attribution intact in ALL forks / copies!)
*/
// MAY HELP, SINCE WE USE SAMESITE=STRICT COOKIES (ESPECIALLY ON SERVERS WITH DOMAIN REDIRECTS)
if ( !preg_match("/index\.php/i", $_SERVER['REQUEST_URI']) ) {
header("Location: index.php");
exit;
}
// Runtime mode
$runtime_mode = 'ui';
require("app-lib/php/init.php");
// If an activated password reset is in progress or no admin login has been set yet, prompt user to create an admin user / pass
if ( $password_reset_approved || !is_array($stored_admin_login) ) {
require("templates/interface/php/admin/admin-login/register.php");
exit;
}
else {
require("templates/interface/php/wrap/header.php");
}
?>
<div id='portfolio' class='tabdiv'>
<?php require("templates/interface/php/user/user-sections/portfolio.php"); ?>
</div>
<div id='update' class='tabdiv'>
<?php require("templates/interface/php/user/user-sections/update.php"); ?>
</div>
<div id='settings' class='tabdiv'>
<?php require("templates/interface/php/user/user-sections/settings.php"); ?>
</div>
<?php
if ( $ct['conf']['charts_alerts']['enable_price_charts'] == 'on' ) {
?>
<div id='charts' class='tabdiv container-fluid'>
<?php require("templates/interface/php/user/user-sections/charts.php"); ?>
</div>
<?php
}
?>
<div id='news' class='tabdiv'>
<?php require("templates/interface/php/user/user-sections/news.php"); ?>
</div>
<div id='tools' class='tabdiv'>
<?php require("templates/interface/php/user/user-sections/tools.php"); ?>
</div>
<div id='mining' class='tabdiv'>
<?php require("templates/interface/php/user/user-sections/mining.php"); ?>
</div>
<div id='resources' class='tabdiv'>
<?php require("templates/interface/php/user/user-sections/resources.php"); ?>
</div>
<?php
require("templates/interface/php/wrap/footer.php");
// DON'T LEAVE ANY WHITESPACE AFTER THE CLOSING PHP TAG!
?>