|
1 | 1 | <!doctype html> |
2 | 2 | <html lang="<?php echo $_SESSION['LANGUAGE'];?>"> |
3 | 3 | <head> |
4 | | - <meta charset="utf-8"> |
5 | | - <link rel="icon" href="/images/favicon.ico" type="image/x-icon"> |
6 | | - <title><?php echo $_SERVER['HTTP_HOST']; ?> - <?=_($TAB)?> - <?=_('Hestia Control Panel');?></title> |
7 | | - <!-- Load base system theme--> |
8 | | - <link type="text/css" rel="stylesheet" href="/css/themes/default.min.css?<?=JS_LATEST_UPDATE?>" rel="preload" /> |
9 | | - <? if (!empty($_SESSION['userTheme'])) { |
10 | | - $selected_theme = $_SESSION['userTheme']; |
11 | | - } else { |
12 | | - $selected_theme = $_SESSION['THEME']; |
13 | | - } |
14 | | - ?> |
15 | | - <!-- Load custom theme --> |
16 | | - <? if ($selectedTheme !== 'default') {?> |
17 | | - <!-- Load HestiaCP-shipped themes (minified, updated/overwritten with updates) - ($HESTIA/web/css/themes/*.min.css) --> |
18 | | - <link type="text/css" rel="stylesheet" href="/css/themes/<?php echo $selected_theme; ?>.min.css?<?php echo rand(); ?>" rel="preload" /> |
19 | | - <!-- Load custom theme files ($HESTIA/web/css/themes/custom/*.css) --> |
20 | | - <link type="text/css" rel="stylesheet" href="/css/themes/custom/<?php echo $selected_theme; ?>.css?<?php echo rand(); ?>" rel="preload" /> |
21 | | - <? } ?> |
22 | | - <link type="text/css" href="/css/dependencies/animate.min.css?<?=JS_LATEST_UPDATE?>" rel="stylesheet" rel="preload" /> |
23 | | - <link type="text/css" href="/css/dependencies/jquery-custom-dialogs.css?<?=JS_LATEST_UPDATE?>" rel="stylesheet" rel="preload" /> |
24 | | - <link type="text/css" href="/css/dependencies/fontawesome.min.css?<?=JS_LATEST_UPDATE?>" rel="stylesheet" rel="preload" /> |
25 | | - <script type="text/javascript" src="/inc/jquery/jquery-3.5.1.min.js"></script> |
| 4 | + <!-- Load necessary CSS and JavaScript from init.html source --> |
| 5 | + <?php require ''.$_SERVER['HESTIA'].'/web/templates/init.html'; ?> |
26 | 6 | <script> |
27 | 7 | // |
28 | 8 | // GLOBAL SETTINGS |
|
36 | 16 | </script> |
37 | 17 | </head> |
38 | 18 | <body class="body-<?=strtolower($TAB)?> lang-<?=$_SESSION['language']?>"> |
39 | | - <?php if (($_SESSION['DEBUG_MODE']) == "true" ) {?> |
40 | | - <div class="debug-panel-header"><?=_('Debug mode is enabled.')?> <a href="javascript:elementHideShow('debug-panel')"><?=_('Hide / Show Panel')?></a></div> |
41 | | - <div class="debug-panel-contents animated fadeIn" id="debug-panel" style="display:none;"> |
42 | | - <?php |
43 | | - echo "<h3>Server Variables</h3>"; |
44 | | - foreach ($_SERVER as $key=>$val) |
45 | | - echo "<b>".$key."= </b> ".$val." "; |
46 | | - ?> |
47 | | - <?php |
48 | | - echo "<h3>Session Variables</h3>"; |
49 | | - foreach ($_SESSION as $key=>$val) |
50 | | - echo "<b>".$key."= </b> ".$val." "; |
51 | | - ?> |
52 | | - <?php |
53 | | - echo "<h3>POST Variables</h3>"; |
54 | | - foreach ($_POST as $key=>$val) |
55 | | - echo "<b>".$key."= </b> ".$val." "; |
56 | | - ?> |
57 | | - <?php |
58 | | - echo "<h3>GET Variables</h3>"; |
59 | | - foreach ($_GET as $key=>$val) |
60 | | - echo "<b>".$key."= </b> ".$val." "; |
61 | | - ?> |
62 | | - </div> |
63 | | -<?php } ?> |
| 19 | + <?php if (($_SESSION['DEBUG_MODE']) == "true" ) {?> |
| 20 | + <?php require ''.$_SERVER['HESTIA'].'/web/templates/debug.html'; ?> |
| 21 | + <?php } ?> |
64 | 22 |
|
0 commit comments