Skip to content

Commit a165635

Browse files
committed
Rename templates from .html to .php
1 parent d8befc8 commit a165635

File tree

94 files changed

+36
-36
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+36
-36
lines changed
File renamed without changes.

web/inc/main.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function render_page($user, $TAB, $page)
177177
$__pages_js_dir = dirname(__DIR__) . '/js/pages/';
178178

179179
// Header
180-
include($__template_dir . 'header.html');
180+
include($__template_dir . 'header.php');
181181

182182
// Panel
183183
$panel = top_panel(empty($_SESSION['look']) ? $_SESSION['user'] : $_SESSION['look'], $TAB);
@@ -188,17 +188,17 @@ function render_page($user, $TAB, $page)
188188
// Policies controller
189189
@include_once(dirname(__DIR__) . '/inc/policies.php');
190190
// Body
191-
include($__template_dir . 'pages/' . $page . '.html');
191+
include($__template_dir . 'pages/' . $page . '.php');
192192

193193
// Including common js files
194-
@include_once(dirname(__DIR__) . '/templates/includes/end_js.html');
194+
@include_once(dirname(__DIR__) . '/templates/includes/end_js.php');
195195
// Including page specific js file
196196
if (file_exists($__pages_js_dir . $page . '.js')) {
197197
echo '<script src="/js/pages/' . $page . '.js?' . JS_LATEST_UPDATE . '"></script>';
198198
}
199199

200200
// Footer
201-
include($__template_dir . 'footer.html');
201+
include($__template_dir . 'footer.php');
202202
}
203203

204204
// Match $_SESSION['token'] against $_GET['token'] or $_POST['token']
@@ -296,7 +296,7 @@ function top_panel($user, $TAB)
296296
}
297297
}
298298

299-
include(dirname(__FILE__) . '/../templates/includes/panel.html');
299+
include(dirname(__FILE__) . '/../templates/includes/panel.php');
300300
return $panel;
301301
}
302302

web/list/server/index.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// CPU info
1414
if (isset($_GET['cpu'])) {
1515
$TAB = 'CPU';
16-
include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.html');
16+
include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.php');
1717
exec (HESTIA_CMD.'v-list-sys-cpu-status', $output, $return_var);
1818
foreach($output as $file) {
1919
echo $file . "\n";
@@ -25,7 +25,7 @@
2525
// Memory info
2626
if (isset($_GET['mem'])) {
2727
$TAB = 'MEMORY';
28-
include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.html');
28+
include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.php');
2929
exec (HESTIA_CMD.'v-list-sys-memory-status', $output, $return_var);
3030
foreach($output as $file) {
3131
echo $file . "\n";
@@ -37,7 +37,7 @@
3737
// Disk info
3838
if (isset($_GET['disk'])) {
3939
$TAB = 'DISK';
40-
include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.html');
40+
include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.php');
4141
exec (HESTIA_CMD.'v-list-sys-disk-status', $output, $return_var);
4242
foreach($output as $file) {
4343
echo $file . "\n";
@@ -49,7 +49,7 @@
4949
// Network info
5050
if (isset($_GET['net'])) {
5151
$TAB = 'NETWORK';
52-
include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.html');
52+
include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.php');
5353
exec (HESTIA_CMD.'v-list-sys-network-status', $output, $return_var);
5454
foreach($output as $file) {
5555
echo $file . "\n";
@@ -61,7 +61,7 @@
6161
// Web info
6262
if (isset($_GET['web'])) {
6363
$TAB = 'WEB';
64-
include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.html');
64+
include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.php');
6565
exec (HESTIA_CMD.'v-list-sys-web-status', $output, $return_var);
6666
foreach($output as $file) {
6767
$file=str_replace('border="0"', 'border="1"', $file);
@@ -77,7 +77,7 @@
7777
// DNS info
7878
if (isset($_GET['dns'])) {
7979
$TAB = 'DNS';
80-
include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.html');
80+
include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.php');
8181
exec (HESTIA_CMD.'v-list-sys-dns-status', $output, $return_var);
8282
foreach($output as $file) {
8383
echo $file . "\n";
@@ -89,7 +89,7 @@
8989
// Mail info
9090
if (isset($_GET['mail'])) {
9191
$TAB = 'MAIL';
92-
include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.html');
92+
include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.php');
9393
exec (HESTIA_CMD.'v-list-sys-mail-status', $output, $return_var);
9494
if ($return_var == 0 ) {
9595
foreach($output as $file) {
@@ -103,7 +103,7 @@
103103
// DB info
104104
if (isset($_GET['db'])) {
105105
$TAB = 'DB';
106-
include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.html');
106+
include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.php');
107107
exec (HESTIA_CMD.'v-list-sys-db-status', $output, $return_var);
108108
if ($return_var == 0 ) {
109109
foreach($output as $file) {

web/list/web-log/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
$type = 'error';
1515
}
1616
// Header
17-
include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_weblog.html');
17+
include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_weblog.php');
1818

1919

2020

web/login/index.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -326,13 +326,13 @@ function authenticate_user($user, $password, $twofa = '')
326326
$token = bin2hex(random_bytes(16));
327327
$_SESSION['token'] = $token;
328328

329-
require_once('../templates/header.html');
329+
require_once('../templates/header.php');
330330
if (!empty($_SESSION['login']['password'])) {
331-
require_once('../templates/pages/login/login_2.html');
331+
require_once('../templates/pages/login/login_2.php');
332332
} elseif (empty($_SESSION['login']['username'])) {
333-
require_once('../templates/pages/login/login' . (($_SESSION['LOGIN_STYLE'] != 'old') ? '' : '_a') . '.html');
333+
require_once('../templates/pages/login/login' . (($_SESSION['LOGIN_STYLE'] != 'old') ? '' : '_a') . '.php');
334334
} elseif (empty($_POST['password'])) {
335-
require_once('../templates/pages/login/login_1.html');
335+
require_once('../templates/pages/login/login_1.php');
336336
} else {
337-
require_once('../templates/pages/login/login' . (($_SESSION['LOGIN_STYLE'] != 'old') ? '' : '_a') . '.html');
337+
require_once('../templates/pages/login/login' . (($_SESSION['LOGIN_STYLE'] != 'old') ? '' : '_a') . '.php');
338338
}

web/reset/index.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,14 @@
117117
}
118118

119119
if (empty($_GET['action'])) {
120-
require_once '../templates/header.html';
121-
require_once '../templates/pages/login/reset_1.html';
120+
require_once '../templates/header.php';
121+
require_once '../templates/pages/login/reset_1.php';
122122
} else {
123-
require_once '../templates/header.html';
123+
require_once '../templates/header.php';
124124
if ($_GET['action'] == 'code') {
125-
require_once '../templates/pages/login/reset_2.html';
125+
require_once '../templates/pages/login/reset_2.php';
126126
}
127127
if (($_GET['action'] == 'confirm') && (!empty($_GET['code']))) {
128-
require_once '../templates/pages/login/reset_3.html';
128+
require_once '../templates/pages/login/reset_3.php';
129129
}
130130
}

web/reset2fa/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@
3636
}
3737
}
3838

39-
require_once '../templates/header.html';
40-
require_once '../templates/pages/login/reset2fa.html';
39+
require_once '../templates/header.php';
40+
require_once '../templates/pages/login/reset2fa.php';
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
<head>
55
<?php
6-
require $_SERVER['HESTIA'] . '/web/templates/includes/title.html';
7-
require $_SERVER['HESTIA'] . '/web/templates/includes/css.html';
8-
require $_SERVER['HESTIA'] . '/web/templates/includes/top_js.html';
6+
require $_SERVER['HESTIA'] . '/web/templates/includes/title.php';
7+
require $_SERVER['HESTIA'] . '/web/templates/includes/css.php';
8+
require $_SERVER['HESTIA'] . '/web/templates/includes/top_js.php';
99
?>
1010
<script>
1111
<?php
@@ -24,5 +24,5 @@
2424
<body class="body-<?=strtolower($TAB)?> lang-<?=$_SESSION['language']?>">
2525
<?php
2626
if (($_SESSION['DEBUG_MODE']) == "true" ) {
27-
require $_SERVER['HESTIA'] . '/web/templates/pages/debug_panel.html';
27+
require $_SERVER['HESTIA'] . '/web/templates/pages/debug_panel.php';
2828
}

0 commit comments

Comments
 (0)