Skip to content

Commit 2b8766b

Browse files
authored
Switch web/templates to tabs indentation (hestiacp#3092)
1 parent 29a69a9 commit 2b8766b

File tree

103 files changed

+9782
-9783
lines changed

Some content is hidden

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

103 files changed

+9782
-9783
lines changed

web/add/dns/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@
9898
$v_ns4 .
9999
" " .
100100
$v_ns5 .
101-
" " .
101+
" " .
102102
$v_ns6 .
103-
" " .
103+
" " .
104104
$v_ns7 .
105105
" " .
106106
$v_ns8 .

web/add/ip/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
$v_netmask .
7070
" " .
7171
$v_interface .
72-
" " .
72+
" " .
7373
$v_owner .
7474
" " .
7575
quoteshellarg($ip_status) .

web/add/mail/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@
331331
);
332332
check_return_code($return_var, $output);
333333
unset($output);
334-
//disable any input in v_fwd
334+
//disable any input in v_fwd
335335
$_POST["v_fwd"] = "";
336336
}
337337
// Add Forwarders

web/edit/server/index.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@
518518
$_SESSION["PHPMYADMIN_KEY"] != "";
519519
}
520520
} elseif ($_POST["v_phpmyadmin_key"] == "no" && $_SESSION["PHPMYADMIN_KEY"] != "") {
521-
exec(HESTIA_CMD . "v-delete-sys-pma-sso quiet", $output, $return_var);
521+
exec(HESTIA_CMD . "v-delete-sys-pma-sso quiet", $output, $return_var);
522522
check_return_code($return_var, $output);
523523
unset($output);
524524
if (empty($_SESSION["error_msg"])) {
@@ -819,11 +819,11 @@
819819
}
820820
if ($_POST["v_backup_dir"] != $v_backup_dir) {
821821
/*
822-
See #1655
823-
exec (HESTIA_CMD."v-change-sys-config-value BACKUP ".quoteshellarg($_POST['v_backup_dir']), $output, $return_var);
824-
check_return_code($return_var,$output);
825-
unset($output);
826-
*/
822+
See #1655
823+
exec (HESTIA_CMD."v-change-sys-config-value BACKUP ".quoteshellarg($_POST['v_backup_dir']), $output, $return_var);
824+
check_return_code($return_var,$output);
825+
unset($output);
826+
*/
827827
if (empty($_SESSION["error_msg"])) {
828828
$v_backup_dir = $_POST["v_backup_dir"];
829829
}

web/generate/ssl/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
$v_locality .
100100
" " .
101101
$v_org .
102-
" IT " .
102+
" IT " .
103103
$v_aliases .
104104
" json",
105105
$output,

web/hotkeys.php

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,51 @@
11
<?php
22
function Keyboard_Shortcut($num, $name, $keys) {
33
$return =
4-
' <tr>
5-
<td colspan="2"><br><br><br><a name="' .
4+
'<tr><td colspan="2"><br><br><br><a name="' .
65
$num .
76
'">' .
87
$num .
98
". " .
109
$name .
1110
'</a><br><br></td>
12-
</tr>
11+
</tr>
1312
';
1413
foreach ($keys as $key => $text) {
1514
$return .=
16-
' <tr>
17-
<td class=\'shortcut\'><span class="kbd">' .
15+
'<tr>
16+
<td class=\'shortcut\'><span class="kbd">' .
1817
str_replace(
1918
["^", "#"],
2019
['Ctrl</span> + <span class="kbd">', 'Shift</span> + <span class="kbd">'],
2120
$key,
2221
) .
2322
'</span></td>
24-
<td>' .
23+
<td>' .
2524
$text .
2625
'</td>
27-
</tr>
26+
</tr>
2827
';
2928
}
3029
return $return;
3130
} ?>
3231
<style>
33-
table span.kbd {
34-
background: #fafafa none repeat scroll 0 0;
35-
border: 1px solid #aaa;
36-
border-radius: 4px;
37-
line-height: 1.8em;
38-
margin: 0;
39-
padding: 0 3px 1px;
40-
vertical-align: baseline;
41-
white-space: nowrap;
42-
}
43-
h2 {
44-
color: #ffcc00;
45-
}
46-
body {
47-
background: #777;
48-
font-family: Arial;
49-
}
32+
table span.kbd {
33+
background: #fafafa none repeat scroll 0 0;
34+
border: 1px solid #aaa;
35+
border-radius: 4px;
36+
line-height: 1.8em;
37+
margin: 0;
38+
padding: 0 3px 1px;
39+
vertical-align: baseline;
40+
white-space: nowrap;
41+
}
42+
h2 {
43+
color: #ffcc00;
44+
}
45+
body {
46+
background: #777;
47+
font-family: Arial;
48+
}
5049
</style>
5150
<title>Hestia Keyboard Shortcuts</title>
5251
<h2>Keyboard Shortcuts</h2>

web/inc/2fa/TwoFactorAuth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function verifyCode($secret, $code, $discrepancy = 1, $time = null, &$tim
158158
// To keep safe from timing-attacks we iterate *all* possible codes even though we already may have
159159
// verified a code is correct. We use the timeslice variable to hold either 0 (no match) or the timeslice
160160
// of the match. Each iteration we either set the timeslice variable to the timeslice of the match
161-
// or set the value to itself. This is an effort to maintain constant execution time for the code.
161+
// or set the value to itself. This is an effort to maintain constant execution time for the code.
162162
for ($i = -$discrepancy; $i <= $discrepancy; $i++) {
163163
$ts = $timestamp + $i * $this->period;
164164
$slice = $this->getTimeSlice($ts);

web/js/i18n.js.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
require_once $_SERVER["DOCUMENT_ROOT"] . "/inc/i18n.php";
66
?>
77

8-
App.i18n.ARE_YOU_SURE = '<?= _("Are you sure?") ?>';
9-
App.Constants.UNLIM_TRANSLATED_VALUE = '<?= _("unlimited") ?>';
10-
App.Constants.NOTIFICATIONS_EMPTY = '<?= _("no notifications") ?>';
8+
App.i18n.ARE_YOU_SURE = '<?= _("Are you sure?") ?>';
9+
App.Constants.UNLIM_TRANSLATED_VALUE = '<?= _("unlimited") ?>';
10+
App.Constants.NOTIFICATIONS_EMPTY = '<?= _("no notifications") ?>';

web/list/server/index.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
foreach ($output as $file) {
1919
echo $file . "\n";
2020
}
21-
echo " </pre>\n</div>\n</body>\n</html>\n";
21+
echo "</pre>\n</div>\n</body>\n</html>\n";
2222
exit();
2323
}
2424

@@ -30,7 +30,7 @@
3030
foreach ($output as $file) {
3131
echo $file . "\n";
3232
}
33-
echo " </pre>\n</div>\n</body>\n</html>\n";
33+
echo "</pre>\n</div>\n</body>\n</html>\n";
3434
exit();
3535
}
3636

@@ -42,7 +42,7 @@
4242
foreach ($output as $file) {
4343
echo $file . "\n";
4444
}
45-
echo " </pre>\n</div>\n</body>\n</html>\n";
45+
echo "</pre>\n</div>\n</body>\n</html>\n";
4646
exit();
4747
}
4848

@@ -54,7 +54,7 @@
5454
foreach ($output as $file) {
5555
echo $file . "\n";
5656
}
57-
echo " </pre>\n</div>\n</body>\n</html>\n";
57+
echo "</pre>\n</div>\n</body>\n</html>\n";
5858
exit();
5959
}
6060

@@ -70,7 +70,7 @@
7070

7171
echo $file . "\n";
7272
}
73-
echo " </pre>\n</div>\n</body>\n</html>\n";
73+
echo "</pre>\n</div>\n</body>\n</html>\n";
7474
exit();
7575
}
7676

@@ -82,7 +82,7 @@
8282
foreach ($output as $file) {
8383
echo $file . "\n";
8484
}
85-
echo " </pre>\n</div>\n</body>\n</html>\n";
85+
echo "</pre>\n</div>\n</body>\n</html>\n";
8686
exit();
8787
}
8888

@@ -96,7 +96,7 @@
9696
echo $file . "\n";
9797
}
9898
}
99-
echo " </pre>\n</div>\n</body>\n</html>\n";
99+
echo "</pre>\n</div>\n</body>\n</html>\n";
100100
exit();
101101
}
102102

@@ -110,7 +110,7 @@
110110
echo $file . "\n";
111111
}
112112
}
113-
echo " </pre>\n</div>\n</body>\n</html>\n";
113+
echo "</pre>\n</div>\n</body>\n</html>\n";
114114
exit();
115115
}
116116

web/list/web-log/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
echo htmlentities($file) . "\n";
2424
}
2525
}
26-
echo " </pre>\n</body>\n</html>\n";
26+
echo "</pre>\n</body>\n</html>\n";

0 commit comments

Comments
 (0)