Skip to content

Commit 4986865

Browse files
author
Neil
committed
Merge pull request hestiacp#1 from serghey-rodin/master
sync
2 parents 332ef27 + 1689ea3 commit 4986865

File tree

6 files changed

+857
-242
lines changed

6 files changed

+857
-242
lines changed

web/api/index.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@
3232
exit;
3333
}
3434

35+
// Define the command to use
36+
if (isset($_POST['cmd']))
37+
{
38+
$cmd = escapeshellarg($_POST['cmd']);
39+
} else
40+
{
41+
// If there's no command, just exit.
42+
echo 'No command specified.';
43+
exit;
44+
}
45+
3546
// Prepare for iteration
3647
$args = [];
3748
$i = 0;

web/edit/file/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<input type="submit" name="save" value="Save" class="save" />
7575

7676

77-
<textarea name="contents" class="editor" id="editor" rows="4" style="display:none;width: 100%; height: 100%;"><?php echo $content ?></textarea>
77+
<textarea name="contents" class="editor" id="editor" rows="4" style="display:none;width: 100%; height: 100%;"><?=htmlentities($content)?></textarea>
7878

7979
</form>
8080

web/inc/i18n/cn.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@
152152
'User Directories' => '用户目录',
153153
'Template' => '模板',
154154
'Web Template' => 'Web模板',
155+
'Backend Template' => '后台模板',
155156
'Proxy Template' => '代理模板',
156157
'DNS Template' => 'DNS模板',
157158
'Web Domains' => '网站域名',
@@ -195,10 +196,10 @@
195196
'User' => '用户',
196197
'Host' => '主机',
197198
'Charset' => '编码',
198-
'Min' => '分钟',
199-
'Hour' => '小时',
200-
'Day' => '',
201-
'Month' => '',
199+
'Min' => '几分',
200+
'Hour' => '几点',
201+
'Day' => '几号',
202+
'Month' => '月份',
202203
'Day of week' => '星期几',
203204
'local' => '本地',
204205
'Run Time' => '运行时间',

0 commit comments

Comments
 (0)