Language updates and Bug fixes to user managment.

This commit is contained in:
usmannasir
2017-10-30 14:34:07 +05:00
parent 6cc8ba2d06
commit 897a8504c2
17 changed files with 394 additions and 230 deletions

View File

@@ -38,8 +38,8 @@ python install.py [IP Address]
# Resources # Resources
* [Official Site.](http://cyberpanel.net) * [Official Site.](https://cyberpanel.net)
* [Documentation.](http://docs.cyberpanel.net) * [Documentation.](https://docs.cyberpanel.net)
* [Forums.](https://forums.cyberpanel.net) * [Forums.](https://forums.cyberpanel.net)

View File

@@ -127,7 +127,6 @@ app.controller('adminController', function($scope,$http,$timeout) {
$("#remoteBackups").hide(); $("#remoteBackups").hide();
$("#packageHome").hide(); $("#packageHome").hide();
$("#packageSub").hide(); $("#packageSub").hide();
$("#createWebsite").hide();
} }
} }

View File

@@ -15,8 +15,8 @@
<!--- Hide statistics for non-admins--->
{% if type < 3 %} {% if type < 3 %}
<div ng-controller="homePageStatus" class="panel"> <div ng-controller="homePageStatus" class="panel">
<div class="panel-body"> <div class="panel-body">
<h3 class="title-hero"> <h3 class="title-hero">
@@ -164,6 +164,8 @@
{% trans "Available Functions" %} {% trans "Available Functions" %}
</h3> </h3>
{% if type == 1 %}
<!--- If type is admin--->
<div class="example-box-wrapper"> <div class="example-box-wrapper">
@@ -286,7 +288,7 @@
</a> </a>
</div> </div>
{% if type == 1 %}
<div class="col-md-4"> <div class="col-md-4">
<a href="{% url 'loadTuningHome' %}" title="{% trans 'Server Tuning' %}" class="tile-box tile-box-shortcut btn-primary"> <a href="{% url 'loadTuningHome' %}" title="{% trans 'Server Tuning' %}" class="tile-box tile-box-shortcut btn-primary">
<span class="bs-badge badge-absolute">2</span> <span class="bs-badge badge-absolute">2</span>
@@ -299,7 +301,7 @@
</a> </a>
</div> </div>
{% endif %}
@@ -309,7 +311,7 @@
<div class="row"> <div class="row">
{% if type == 1 %}
<div class="col-md-4"> <div class="col-md-4">
<a href="{% url 'serverStatusHome' %}" title="{% trans 'Server Status' %}" class="tile-box tile-box-shortcut btn-primary"> <a href="{% url 'serverStatusHome' %}" title="{% trans 'Server Status' %}" class="tile-box tile-box-shortcut btn-primary">
@@ -348,7 +350,7 @@
</a> </a>
</div> </div>
{% endif %}
@@ -357,7 +359,7 @@
<div class="row"> <div class="row">
{% if type == 1 %}
<div class="col-md-4"> <div class="col-md-4">
<a href="{% url 'securityHome' %}" title="{% trans 'Security' %}" class="tile-box tile-box-shortcut btn-primary"> <a href="{% url 'securityHome' %}" title="{% trans 'Security' %}" class="tile-box tile-box-shortcut btn-primary">
@@ -371,16 +373,140 @@
</a> </a>
</div> </div>
</div>
</div>
<!--- If type is admin--->
{% else %}
<!--- If type is user--->
<div class="example-box-wrapper">
<div class="row">
<div class="col-md-4">
<a href="{% url 'loadUsersHome' %}" title="{% trans 'User Functions' %}" class="tile-box tile-box-shortcut btn-primary">
<span class="bs-badge badge-absolute">4</span>
<div class="tile-header">
{% trans "Users" %}
</div>
<div class="tile-content-wrapper">
<i class="glyph-icon icon-dashboard"></i>
</div>
</a>
</div>
<div class="col-md-4">
<a href="{% url 'loadWebsitesHome' %}" title="{% trans 'Website Functions' %}" class="tile-box tile-box-shortcut btn-primary">
<span class="bs-badge badge-absolute">5</span>
<div class="tile-header">
{% trans "Websites" %}
</div>
<div class="tile-content-wrapper">
<i class="glyph-icon icon-dashboard"></i>
</div>
</a>
</div>
<div class="col-md-4">
<a href="{% url 'loadDatabaseHome' %}" title="{% trans 'Database Functions' %}" class="tile-box tile-box-shortcut btn-primary">
<span class="bs-badge badge-absolute">3</span>
<div class="tile-header">
{% trans "Databases" %}
</div>
<div class="tile-content-wrapper">
<i class="glyph-icon icon-dashboard"></i>
</div>
</a>
</div>
</div>
<div class="row">
<div class="col-md-4">
<a href="{% url 'dnsHome' %}" title="{% trans 'Control DNS' %}" class="tile-box tile-box-shortcut btn-primary">
<span class="bs-badge badge-absolute">4</span>
<div class="tile-header">
{% trans "DNS" %}
</div>
<div class="tile-content-wrapper">
<i class="glyph-icon icon-dashboard"></i>
</div>
</a>
</div>
<div class="col-md-4">
<a href="{% url 'loadFTPHome' %}" title="{% trans 'FTP Functions' %}" class="tile-box tile-box-shortcut btn-primary">
<span class="bs-badge badge-absolute">2</span>
<div class="tile-header">
{% trans "FTP" %}
</div>
<div class="tile-content-wrapper">
<i class="glyph-icon icon-dashboard"></i>
</div>
</a>
</div>
<div class="col-md-4">
<a href="{% url 'loadBackupHome' %}" title="{% trans 'Back up' %}" class="tile-box tile-box-shortcut btn-primary">
<span class="bs-badge badge-absolute">2</span>
<div class="tile-header">
{% trans "Back up" %}
</div>
<div class="tile-content-wrapper">
<i class="glyph-icon icon-dashboard"></i>
</div>
</a>
</div>
</div>
<div class="row">
<div class="col-md-4">
<a href="{% url 'loadEmailHome' %}" title="{% trans 'Emails' %}" class="tile-box tile-box-shortcut btn-primary">
<span class="bs-badge badge-absolute">4</span>
<div class="tile-header">
{% trans "Emails" %}
</div>
<div class="tile-content-wrapper">
<i class="glyph-icon icon-dashboard"></i>
</div>
</a>
</div>
</div>
</div>
<!--- If type is user--->
{% endif %} {% endif %}
</div>
</div>
</div> </div>
</div> </div>
</div>
{% endblock %} {% endblock %}

View File

@@ -601,7 +601,7 @@ class preFlightsChecks:
cmd = [] cmd = []
cmd.append("wget") cmd.append("wget")
cmd.append("http://cyberpanel.net/CyberPanel.1.4.tar.gz") cmd.append("http://cyberpanel.net/CyberPanel.1.5.tar.gz")
res = subprocess.call(cmd) res = subprocess.call(cmd)
@@ -620,7 +620,7 @@ class preFlightsChecks:
cmd.append("tar") cmd.append("tar")
cmd.append("zxf") cmd.append("zxf")
cmd.append("CyberPanel.1.4.tar.gz") cmd.append("CyberPanel.1.5.tar.gz")
res = subprocess.call(cmd) res = subprocess.call(cmd)

Binary file not shown.

View File

@@ -11,19 +11,20 @@
#: baseTemplate/templates/baseTemplate/index.html:374 #: baseTemplate/templates/baseTemplate/index.html:374
#: baseTemplate/templates/baseTemplate/index.html:380 #: baseTemplate/templates/baseTemplate/index.html:380
#: baseTemplate/templates/baseTemplate/index.html:386 #: baseTemplate/templates/baseTemplate/index.html:386
#, fuzzy
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: CyberPanel\n" "Project-Id-Version: CyberPanel\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-10-29 20:47+0500\n" "POT-Creation-Date: 2017-10-30 10:05+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: 2017-10-29 19:32+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: \n"
"Language-Team: LANGUAGE <unasir@litespeedtech.com>\n" "Language-Team: LANGUAGE <unasir@litespeedtech.com>\n"
"Language: \n" "Language: zh_CN\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 2.0.4\n"
#: CyberCP/settings.py:167 #: CyberCP/settings.py:167
msgid "English" msgid "English"
@@ -47,7 +48,7 @@ msgstr "日语"
#: CyberCP/settings.py:172 #: CyberCP/settings.py:172
msgid "Bosnian" msgid "Bosnian"
msgstr "" msgstr "波斯尼亚语"
#: backup/templates/backup/backup.html:3 backup/templates/backup/backup.html:13 #: backup/templates/backup/backup.html:3 backup/templates/backup/backup.html:13
#: backup/templates/backup/backup.html:20 #: backup/templates/backup/backup.html:20
@@ -107,10 +108,8 @@ msgid "Create Back up"
msgstr "创建备份" msgstr "创建备份"
#: backup/templates/backup/backup.html:87 #: backup/templates/backup/backup.html:87
#, fuzzy
#| msgid "Create Back up"
msgid "Cancel Backup" msgid "Cancel Backup"
msgstr "创建备份" msgstr "取消备份"
#: backup/templates/backup/backup.html:101 #: backup/templates/backup/backup.html:101
#: backup/templates/backup/backupDestinations.html:90 #: backup/templates/backup/backupDestinations.html:90
@@ -302,7 +301,7 @@ msgstr "备份 - CyberPanel"
#: baseTemplate/templates/baseTemplate/homePage.html:269 #: baseTemplate/templates/baseTemplate/homePage.html:269
#: baseTemplate/templates/baseTemplate/index.html:554 #: baseTemplate/templates/baseTemplate/index.html:554
#: baseTemplate/templates/baseTemplate/index.html:556 #: baseTemplate/templates/baseTemplate/index.html:556
#: baseTemplate/templates/baseTemplate/index.html:572 #: baseTemplate/templates/baseTemplate/index.html:573
msgid "Back up" msgid "Back up"
msgstr "备份" msgstr "备份"
@@ -327,8 +326,6 @@ msgid "Available Functions"
msgstr "可用功能" msgstr "可用功能"
#: backup/templates/backup/index.html:27 backup/templates/backup/index.html:43 #: backup/templates/backup/index.html:27 backup/templates/backup/index.html:43
#, fuzzy
#| msgid "Back up Website"
msgid "Back up Site" msgid "Back up Site"
msgstr "备份网站" msgstr "备份网站"
@@ -343,68 +340,50 @@ msgid "Restore"
msgstr "还原" msgstr "还原"
#: backup/templates/backup/remoteBackups.html:3 #: backup/templates/backup/remoteBackups.html:3
#, fuzzy
#| msgid "Websites Hosted - CyberPanel"
msgid "Transfer Websites from Remote Server - CyberPanel" msgid "Transfer Websites from Remote Server - CyberPanel"
msgstr "当前已创建的网站 - CyberPanel" msgstr "从远程服务器恢复网站 - CyberPanel"
#: backup/templates/backup/remoteBackups.html:14 #: backup/templates/backup/remoteBackups.html:14
#: backup/templates/backup/remoteBackups.html:21 #: backup/templates/backup/remoteBackups.html:21
#, fuzzy
#| msgid "Restore Back up"
msgid "Remote Backups" msgid "Remote Backups"
msgstr "还原备份" msgstr "远程备份"
#: backup/templates/backup/remoteBackups.html:15 #: backup/templates/backup/remoteBackups.html:15
msgid "This feature can import website(s) from remote server" msgid "This feature can import website(s) from remote server"
msgstr "" msgstr "此功能可以从远程服务器导入网站"
#: backup/templates/backup/remoteBackups.html:46 #: backup/templates/backup/remoteBackups.html:46
#, fuzzy
#| msgid "FTP Accounts"
msgid "Fetch Accounts" msgid "Fetch Accounts"
msgstr "FTP用户数量" msgstr "读取"
#: backup/templates/backup/remoteBackups.html:55 #: backup/templates/backup/remoteBackups.html:55
msgid "Start Transfer" msgid "Start Transfer"
msgstr "" msgstr "开始迁移"
#: backup/templates/backup/remoteBackups.html:59 #: backup/templates/backup/remoteBackups.html:59
#: websiteFunctions/templates/websiteFunctions/website.html:269 #: websiteFunctions/templates/websiteFunctions/website.html:269
#, fuzzy
#| msgid "Create Back up"
msgid "Cancel" msgid "Cancel"
msgstr "创建备份" msgstr "取消"
#: backup/templates/backup/remoteBackups.html:72 #: backup/templates/backup/remoteBackups.html:72
#, fuzzy
#| msgid "Could not connect. Please refresh this page."
msgid "Could not connect, please refresh this page." msgid "Could not connect, please refresh this page."
msgstr "无法连接, 请刷新此页面" msgstr "无法连接, 请刷新此页面."
#: backup/templates/backup/remoteBackups.html:76 #: backup/templates/backup/remoteBackups.html:76
#, fuzzy
#| msgid "Records successfully fetched for"
msgid "Accounts Successfully Fetched from remote server." msgid "Accounts Successfully Fetched from remote server."
msgstr "成功读取记录" msgstr "成功读取记录."
#: backup/templates/backup/remoteBackups.html:80 #: backup/templates/backup/remoteBackups.html:80
#, fuzzy
#| msgid " is successfully created."
msgid "Backup Process successfully started." msgid "Backup Process successfully started."
msgstr " 已成功创建" msgstr " 已成功创建."
#: backup/templates/backup/remoteBackups.html:84 #: backup/templates/backup/remoteBackups.html:84
#, fuzzy
#| msgid "is successfully created."
msgid "Backup successfully cancelled." msgid "Backup successfully cancelled."
msgstr "已成功添加" msgstr "已成功添加."
#: backup/templates/backup/remoteBackups.html:96 #: backup/templates/backup/remoteBackups.html:96
#, fuzzy
#| msgid "Select Account"
msgid "Search Accounts.." msgid "Search Accounts.."
msgstr "选择用户" msgstr "搜索用户..."
#: backup/templates/backup/remoteBackups.html:107 #: backup/templates/backup/remoteBackups.html:107
#: websiteFunctions/templates/websiteFunctions/deleteWebsite.html:65 #: websiteFunctions/templates/websiteFunctions/deleteWebsite.html:65
@@ -413,8 +392,8 @@ msgstr "网站"
#: backup/templates/backup/remoteBackups.html:108 #: backup/templates/backup/remoteBackups.html:108
#: baseTemplate/templates/baseTemplate/homePage.html:331 #: baseTemplate/templates/baseTemplate/homePage.html:331
#: baseTemplate/templates/baseTemplate/index.html:625 #: baseTemplate/templates/baseTemplate/index.html:626
#: baseTemplate/templates/baseTemplate/index.html:627 #: baseTemplate/templates/baseTemplate/index.html:628
#: managePHP/templates/managePHP/installExtensions.html:62 #: managePHP/templates/managePHP/installExtensions.html:62
msgid "PHP" msgid "PHP"
msgstr "PHP" msgstr "PHP"
@@ -545,10 +524,8 @@ msgid "Websites"
msgstr "网站" msgstr "网站"
#: baseTemplate/templates/baseTemplate/homePage.html:199 #: baseTemplate/templates/baseTemplate/homePage.html:199
#, fuzzy
#| msgid "Modify Package"
msgid "Add/Modify Packages" msgid "Add/Modify Packages"
msgstr "修改套餐" msgstr "创建/修改套餐"
#: baseTemplate/templates/baseTemplate/homePage.html:202 #: baseTemplate/templates/baseTemplate/homePage.html:202
#: baseTemplate/templates/baseTemplate/index.html:366 #: baseTemplate/templates/baseTemplate/index.html:366
@@ -612,30 +589,28 @@ msgstr "服务器设置"
#: baseTemplate/templates/baseTemplate/homePage.html:315 #: baseTemplate/templates/baseTemplate/homePage.html:315
#: baseTemplate/templates/baseTemplate/homePage.html:318 #: baseTemplate/templates/baseTemplate/homePage.html:318
#: baseTemplate/templates/baseTemplate/index.html:606 #: baseTemplate/templates/baseTemplate/index.html:607
#: baseTemplate/templates/baseTemplate/index.html:608 #: baseTemplate/templates/baseTemplate/index.html:609
#: baseTemplate/templates/baseTemplate/index.html:641 #: baseTemplate/templates/baseTemplate/index.html:642
#: serverStatus/templates/serverStatus/index.html:13 #: serverStatus/templates/serverStatus/index.html:13
msgid "Server Status" msgid "Server Status"
msgstr "服务器状态" msgstr "服务器状态"
#: baseTemplate/templates/baseTemplate/homePage.html:328 #: baseTemplate/templates/baseTemplate/homePage.html:328
#, fuzzy
#| msgid "Edit PHP Configurations"
msgid "PHP Configurations" msgid "PHP Configurations"
msgstr "设置PHP参数" msgstr "设置PHP参数"
#: baseTemplate/templates/baseTemplate/homePage.html:340 #: baseTemplate/templates/baseTemplate/homePage.html:340
#: baseTemplate/templates/baseTemplate/homePage.html:343 #: baseTemplate/templates/baseTemplate/homePage.html:343
#: baseTemplate/templates/baseTemplate/index.html:643 #: baseTemplate/templates/baseTemplate/index.html:644
#: websiteFunctions/templates/websiteFunctions/website.html:113 #: websiteFunctions/templates/websiteFunctions/website.html:113
msgid "Logs" msgid "Logs"
msgstr "日志" msgstr "日志"
#: baseTemplate/templates/baseTemplate/homePage.html:363 #: baseTemplate/templates/baseTemplate/homePage.html:363
#: baseTemplate/templates/baseTemplate/homePage.html:366 #: baseTemplate/templates/baseTemplate/homePage.html:366
#: baseTemplate/templates/baseTemplate/index.html:659 #: baseTemplate/templates/baseTemplate/index.html:660
#: baseTemplate/templates/baseTemplate/index.html:661 #: baseTemplate/templates/baseTemplate/index.html:662
msgid "Security" msgid "Security"
msgstr "安全" msgstr "安全"
@@ -652,10 +627,8 @@ msgstr "硬盘使用量"
#: baseTemplate/templates/baseTemplate/index.html:275 #: baseTemplate/templates/baseTemplate/index.html:275
#: baseTemplate/templates/baseTemplate/index.html:278 #: baseTemplate/templates/baseTemplate/index.html:278
#: baseTemplate/templates/baseTemplate/index.html:282 #: baseTemplate/templates/baseTemplate/index.html:282
#, fuzzy
#| msgid "Home - CyberPanel"
msgid "CyberPanel" msgid "CyberPanel"
msgstr "主页 - Cyberpanel" msgstr "CyberPanel"
#: baseTemplate/templates/baseTemplate/index.html:280 #: baseTemplate/templates/baseTemplate/index.html:280
#: baseTemplate/templates/baseTemplate/index.html:284 #: baseTemplate/templates/baseTemplate/index.html:284
@@ -667,10 +640,8 @@ msgid "Close sidebar"
msgstr "关闭侧边栏" msgstr "关闭侧边栏"
#: baseTemplate/templates/baseTemplate/index.html:292 #: baseTemplate/templates/baseTemplate/index.html:292
#, fuzzy
#| msgid "FTP Accounts"
msgid "My Account" msgid "My Account"
msgstr "FTP用户数量" msgstr "我的账号"
#: baseTemplate/templates/baseTemplate/index.html:309 #: baseTemplate/templates/baseTemplate/index.html:309
msgid "Edit profile" msgid "Edit profile"
@@ -699,20 +670,16 @@ msgid "Fullscreen"
msgstr "全屏模式" msgstr "全屏模式"
#: baseTemplate/templates/baseTemplate/index.html:345 #: baseTemplate/templates/baseTemplate/index.html:345
#, fuzzy
#| msgid "Server Status"
msgid "System Status" msgid "System Status"
msgstr "服务器状态" msgstr "系统状态"
#: baseTemplate/templates/baseTemplate/index.html:350 #: baseTemplate/templates/baseTemplate/index.html:350
#, fuzzy
#| msgid "Dashboard"
msgid "Dashboard Quick Menu" msgid "Dashboard Quick Menu"
msgstr "仪表盘" msgstr "仪表盘"
#: baseTemplate/templates/baseTemplate/index.html:384 #: baseTemplate/templates/baseTemplate/index.html:384
#: baseTemplate/templates/baseTemplate/index.html:590 #: baseTemplate/templates/baseTemplate/index.html:591
#: baseTemplate/templates/baseTemplate/index.html:592 #: baseTemplate/templates/baseTemplate/index.html:593
msgid "Tuning" msgid "Tuning"
msgstr "服务器设置" msgstr "服务器设置"
@@ -951,78 +918,84 @@ msgstr "查看FTP用户"
msgid "Add/Delete Destination" msgid "Add/Delete Destination"
msgstr "添加/删除远程目录" msgstr "添加/删除远程目录"
#: baseTemplate/templates/baseTemplate/index.html:573 #: baseTemplate/templates/baseTemplate/index.html:565
#, fuzzy
#| msgid "Remote Backups"
msgid "Remote Back ups"
msgstr "远程备份"
#: baseTemplate/templates/baseTemplate/index.html:574 #: baseTemplate/templates/baseTemplate/index.html:574
#: baseTemplate/templates/baseTemplate/index.html:575
msgid "SSL" msgid "SSL"
msgstr "SSL" msgstr "SSL"
#: baseTemplate/templates/baseTemplate/index.html:579 #: baseTemplate/templates/baseTemplate/index.html:580
#: manageSSL/templates/manageSSL/index.html:28 #: manageSSL/templates/manageSSL/index.html:28
#: manageSSL/templates/manageSSL/manageSSL.html:13 #: manageSSL/templates/manageSSL/manageSSL.html:13
#: manageSSL/templates/manageSSL/manageSSL.html:20 #: manageSSL/templates/manageSSL/manageSSL.html:20
msgid "Manage SSL" msgid "Manage SSL"
msgstr "管理SSL" msgstr "管理SSL"
#: baseTemplate/templates/baseTemplate/index.html:580 #: baseTemplate/templates/baseTemplate/index.html:581
#: manageSSL/templates/manageSSL/index.html:40 #: manageSSL/templates/manageSSL/index.html:40
msgid "Hostname SSL" msgid "Hostname SSL"
msgstr "面板SSL" msgstr "面板SSL"
#: baseTemplate/templates/baseTemplate/index.html:588 #: baseTemplate/templates/baseTemplate/index.html:589
msgid "Server" msgid "Server"
msgstr "服务器设置" msgstr "服务器设置"
#: baseTemplate/templates/baseTemplate/index.html:593 #: baseTemplate/templates/baseTemplate/index.html:594
msgid "NEW" msgid "NEW"
msgstr "新功能" msgstr "新功能"
#: baseTemplate/templates/baseTemplate/index.html:598 #: baseTemplate/templates/baseTemplate/index.html:599
#: tuning/templates/tuning/index.html:24 tuning/templates/tuning/index.html:26 #: tuning/templates/tuning/index.html:24 tuning/templates/tuning/index.html:26
#: tuning/templates/tuning/liteSpeedTuning.html:12 #: tuning/templates/tuning/liteSpeedTuning.html:12
msgid "LiteSpeed Tuning" msgid "LiteSpeed Tuning"
msgstr "LiteSpeed设置" msgstr "LiteSpeed设置"
#: baseTemplate/templates/baseTemplate/index.html:599 #: baseTemplate/templates/baseTemplate/index.html:600
#: tuning/templates/tuning/index.html:36 tuning/templates/tuning/index.html:38 #: tuning/templates/tuning/index.html:36 tuning/templates/tuning/index.html:38
#: tuning/templates/tuning/phpTuning.html:13 #: tuning/templates/tuning/phpTuning.html:13
msgid "PHP Tuning" msgid "PHP Tuning"
msgstr "PHP设置" msgstr "PHP设置"
#: baseTemplate/templates/baseTemplate/index.html:614 #: baseTemplate/templates/baseTemplate/index.html:615
#: serverStatus/templates/serverStatus/index.html:25 #: serverStatus/templates/serverStatus/index.html:25
#: serverStatus/templates/serverStatus/index.html:27 #: serverStatus/templates/serverStatus/index.html:27
msgid "LiteSpeed Status" msgid "LiteSpeed Status"
msgstr "LiteSpeed状态" msgstr "LiteSpeed状态"
#: baseTemplate/templates/baseTemplate/index.html:615 #: baseTemplate/templates/baseTemplate/index.html:616
#: serverStatus/templates/serverStatus/cybercpmainlogfile.html:15 #: serverStatus/templates/serverStatus/cybercpmainlogfile.html:15
#: serverStatus/templates/serverStatus/index.html:37 #: serverStatus/templates/serverStatus/index.html:37
#: serverStatus/templates/serverStatus/index.html:39 #: serverStatus/templates/serverStatus/index.html:39
msgid "CyberPanel Main Log File" msgid "CyberPanel Main Log File"
msgstr "Cybapenl主日志" msgstr "Cybapenl主日志"
#: baseTemplate/templates/baseTemplate/index.html:632 #: baseTemplate/templates/baseTemplate/index.html:633
#: managePHP/templates/managePHP/installExtensions.html:13 #: managePHP/templates/managePHP/installExtensions.html:13
msgid "Install PHP Extensions" msgid "Install PHP Extensions"
msgstr "安装PHP扩展" msgstr "安装PHP扩展"
#: baseTemplate/templates/baseTemplate/index.html:632 #: baseTemplate/templates/baseTemplate/index.html:633
#: managePHP/templates/managePHP/index.html:24 #: managePHP/templates/managePHP/index.html:24
#: managePHP/templates/managePHP/index.html:26 #: managePHP/templates/managePHP/index.html:26
msgid "Install Extensions" msgid "Install Extensions"
msgstr "安装扩展" msgstr "安装扩展"
#: baseTemplate/templates/baseTemplate/index.html:633 #: baseTemplate/templates/baseTemplate/index.html:634
#: managePHP/templates/managePHP/index.html:36 #: managePHP/templates/managePHP/index.html:36
#: managePHP/templates/managePHP/index.html:38 #: managePHP/templates/managePHP/index.html:38
msgid "Edit PHP Configs" msgid "Edit PHP Configs"
msgstr "编辑PHP配置" msgstr "编辑PHP配置"
#: baseTemplate/templates/baseTemplate/index.html:648 #: baseTemplate/templates/baseTemplate/index.html:649
msgid "Access Log" msgid "Access Log"
msgstr "访问日志" msgstr "访问日志"
#: baseTemplate/templates/baseTemplate/index.html:649 #: baseTemplate/templates/baseTemplate/index.html:650
#: serverLogs/templates/serverLogs/errorLogs.html:14 #: serverLogs/templates/serverLogs/errorLogs.html:14
#: serverLogs/templates/serverLogs/index.html:37 #: serverLogs/templates/serverLogs/index.html:37
#: serverLogs/templates/serverLogs/index.html:39 #: serverLogs/templates/serverLogs/index.html:39
@@ -1030,37 +1003,35 @@ msgstr "访问日志"
msgid "Error Logs" msgid "Error Logs"
msgstr "错误日志" msgstr "错误日志"
#: baseTemplate/templates/baseTemplate/index.html:650 #: baseTemplate/templates/baseTemplate/index.html:651
#: serverLogs/templates/serverLogs/emailLogs.html:14 #: serverLogs/templates/serverLogs/emailLogs.html:14
#: serverLogs/templates/serverLogs/index.html:49 #: serverLogs/templates/serverLogs/index.html:49
#: serverLogs/templates/serverLogs/index.html:51 #: serverLogs/templates/serverLogs/index.html:51
msgid "Email Logs" msgid "Email Logs"
msgstr "Email日志" msgstr "Email日志"
#: baseTemplate/templates/baseTemplate/index.html:650 #: baseTemplate/templates/baseTemplate/index.html:651
msgid "Email Log" msgid "Email Log"
msgstr "Email日志" msgstr "Email日志"
#: baseTemplate/templates/baseTemplate/index.html:651 #: baseTemplate/templates/baseTemplate/index.html:652
#: serverLogs/templates/serverLogs/ftplogs.html:14 #: serverLogs/templates/serverLogs/ftplogs.html:14
#: serverLogs/templates/serverLogs/index.html:61 #: serverLogs/templates/serverLogs/index.html:61
#: serverLogs/templates/serverLogs/index.html:63 #: serverLogs/templates/serverLogs/index.html:63
msgid "FTP Logs" msgid "FTP Logs"
msgstr "FTP日志" msgstr "FTP日志"
#: baseTemplate/templates/baseTemplate/index.html:666 #: baseTemplate/templates/baseTemplate/index.html:667
#, fuzzy
#| msgid "Firewall"
msgid "Firewall Home" msgid "Firewall Home"
msgstr "防火墙" msgstr "防火墙"
#: baseTemplate/templates/baseTemplate/index.html:666 #: baseTemplate/templates/baseTemplate/index.html:667
#: firewall/templates/firewall/index.html:25 #: firewall/templates/firewall/index.html:25
#: firewall/templates/firewall/index.html:27 #: firewall/templates/firewall/index.html:27
msgid "Firewall" msgid "Firewall"
msgstr "防火墙" msgstr "防火墙"
#: baseTemplate/templates/baseTemplate/index.html:667 #: baseTemplate/templates/baseTemplate/index.html:668
#: firewall/templates/firewall/index.html:36 #: firewall/templates/firewall/index.html:36
#: firewall/templates/firewall/index.html:38 #: firewall/templates/firewall/index.html:38
#: firewall/templates/firewall/secureSSH.html:13 #: firewall/templates/firewall/secureSSH.html:13
@@ -1192,8 +1163,6 @@ msgid "Records successfully fetched for"
msgstr "成功读取记录" msgstr "成功读取记录"
#: databases/templates/databases/listDataBases.html:50 #: databases/templates/databases/listDataBases.html:50
#, fuzzy
#| msgid "Password changed for"
msgid "Password changed for: " msgid "Password changed for: "
msgstr "已为修改密码 " msgstr "已为修改密码 "
@@ -1402,8 +1371,6 @@ msgid "Create, edit and delete DNS zones on this page."
msgstr "在此页面添加, 修改, 删除DNS区域" msgstr "在此页面添加, 修改, 删除DNS区域"
#: dns/templates/dns/index.html:53 dns/templates/dns/index.html:108 #: dns/templates/dns/index.html:53 dns/templates/dns/index.html:108
#, fuzzy
#| msgid "Add/Delete Records"
msgid "Add Delete Records" msgid "Add Delete Records"
msgstr "添加/删除记录" msgstr "添加/删除记录"
@@ -1479,10 +1446,8 @@ msgid "Secure SSH - CyberPanel"
msgstr "SSH加固 - CyberPanel" msgstr "SSH加固 - CyberPanel"
#: firewall/templates/firewall/secureSSH.html:14 #: firewall/templates/firewall/secureSSH.html:14
#, fuzzy
#| msgid "SSH Configurations Saved."
msgid "Secure or harden SSH Configurations." msgid "Secure or harden SSH Configurations."
msgstr "SSH设置已保存" msgstr "SSH设置已保存."
#: firewall/templates/firewall/secureSSH.html:28 #: firewall/templates/firewall/secureSSH.html:28
#: managePHP/templates/managePHP/editPHPConfig.html:29 #: managePHP/templates/managePHP/editPHPConfig.html:29
@@ -1798,10 +1763,8 @@ msgid "Select PHP Version"
msgstr "选择PHP版本" msgstr "选择PHP版本"
#: managePHP/templates/managePHP/installExtensions.html:48 #: managePHP/templates/managePHP/installExtensions.html:48
#, fuzzy
#| msgid "Install Extensions"
msgid "Search Extensions.." msgid "Search Extensions.."
msgstr "安装扩展" msgstr "搜索扩展..."
#: managePHP/templates/managePHP/installExtensions.html:63 #: managePHP/templates/managePHP/installExtensions.html:63
msgid "Extension Name" msgid "Extension Name"
@@ -1914,15 +1877,11 @@ msgstr "套餐名称"
#: packages/templates/packages/createPackage.html:35 #: packages/templates/packages/createPackage.html:35
#: packages/templates/packages/modifyPackage.html:40 #: packages/templates/packages/modifyPackage.html:40
#: websiteFunctions/templates/websiteFunctions/website.html:223 #: websiteFunctions/templates/websiteFunctions/website.html:223
#, fuzzy
#| msgid "Domain Name"
msgid "Domains" msgid "Domains"
msgstr "域名" msgstr "域名"
#: packages/templates/packages/createPackage.html:39 #: packages/templates/packages/createPackage.html:39
#: packages/templates/packages/modifyPackage.html:44 #: packages/templates/packages/modifyPackage.html:44
#, fuzzy
#| msgid "( 0 = Unlimited )"
msgid "(0 = Unlimited)" msgid "(0 = Unlimited)"
msgstr "(0为无限制 )" msgstr "(0为无限制 )"
@@ -2108,7 +2067,7 @@ msgstr "LiteSpeed状态: "
#: serverStatus/templates/serverStatus/litespeedStatus.html:17 #: serverStatus/templates/serverStatus/litespeedStatus.html:17
msgid "" msgid ""
"On this page you can get information regarding your LiteSpeed processes." "On this page you can get information regarding your LiteSpeed processes."
msgstr "此页面可以查看LiteSpeed进程信息" msgstr "此页面可以查看LiteSpeed进程信息."
#: serverStatus/templates/serverStatus/litespeedStatus.html:32 #: serverStatus/templates/serverStatus/litespeedStatus.html:32
msgid "LiteSpeed Processes" msgid "LiteSpeed Processes"
@@ -2134,11 +2093,9 @@ msgstr "工作进程"
msgid "" msgid ""
"Could not fetch details, either LiteSpeed is not running or some error " "Could not fetch details, either LiteSpeed is not running or some error "
"occurred, please see CyberPanel Main log file." "occurred, please see CyberPanel Main log file."
msgstr "无法获取详情, LiteSpeed没有运行或者有错误发生 请检查CyberPnael日志" msgstr "无法获取详情, LiteSpeed没有运行或者有错误发生 请检查CyberPnael日志."
#: serverStatus/templates/serverStatus/litespeedStatus.html:72 #: serverStatus/templates/serverStatus/litespeedStatus.html:72
#, fuzzy
#| msgid "Reboot LiteSpeed"
msgid "Reboot Litespeed" msgid "Reboot Litespeed"
msgstr "重启LiteSpeed" msgstr "重启LiteSpeed"
@@ -2148,11 +2105,11 @@ msgstr "停止LiteSpeed"
#: serverStatus/templates/serverStatus/litespeedStatus.html:90 #: serverStatus/templates/serverStatus/litespeedStatus.html:90
msgid "Error Occurred. See CyberPanel main log file." msgid "Error Occurred. See CyberPanel main log file."
msgstr "发生错误, 请查看CyberPanel主日志" msgstr "发生错误, 请查看CyberPanel主日志."
#: serverStatus/templates/serverStatus/litespeedStatus.html:95 #: serverStatus/templates/serverStatus/litespeedStatus.html:95
msgid "Could not connect to server." msgid "Could not connect to server."
msgstr "无法连接到服务器" msgstr "无法连接到服务器."
#: tuning/templates/tuning/index.html:3 #: tuning/templates/tuning/index.html:3
msgid "Server Tuning - CyberPanel" msgid "Server Tuning - CyberPanel"
@@ -2162,7 +2119,7 @@ msgstr "服务器设置 - CyberPanel"
msgid "" msgid ""
"On this page you can set runing parameters for your webserver depending on " "On this page you can set runing parameters for your webserver depending on "
"your hardware." "your hardware."
msgstr "此页面您可以根据您的服务器硬件调整Web服务器参数 " msgstr "此页面您可以根据您的服务器硬件调整Web服务器参数 ."
#: tuning/templates/tuning/liteSpeedTuning.html:3 #: tuning/templates/tuning/liteSpeedTuning.html:3
msgid "LiteSpeed Tuning - CyberPanel" msgid "LiteSpeed Tuning - CyberPanel"
@@ -2172,7 +2129,7 @@ msgstr "LiteSpeed设置 - CyberPanel"
msgid "" msgid ""
"You can use this page to tweak your server according to your website " "You can use this page to tweak your server according to your website "
"requirments." "requirments."
msgstr "此页面您可以根据您的网站要求调整服务器参数 " msgstr "此页面您可以根据您的网站要求调整服务器参数."
#: tuning/templates/tuning/liteSpeedTuning.html:18 #: tuning/templates/tuning/liteSpeedTuning.html:18
msgid "Tuning Details" msgid "Tuning Details"
@@ -2237,7 +2194,7 @@ msgstr "无法保存设置, 错误信息: "
#: tuning/templates/tuning/liteSpeedTuning.html:102 #: tuning/templates/tuning/liteSpeedTuning.html:102
msgid "Web Server Successfully tuned." msgid "Web Server Successfully tuned."
msgstr "Web服务器设置成功保存" msgstr "Web服务器设置成功保存."
#: tuning/templates/tuning/phpTuning.html:3 #: tuning/templates/tuning/phpTuning.html:3
msgid "PHP Tuning - CyberPanel" msgid "PHP Tuning - CyberPanel"
@@ -2245,7 +2202,7 @@ msgstr "PHP设置 - CyberPanel"
#: tuning/templates/tuning/phpTuning.html:14 #: tuning/templates/tuning/phpTuning.html:14
msgid "Set how each version of PHP behaves in your server here." msgid "Set how each version of PHP behaves in your server here."
msgstr "在此调整每个PHP版本" msgstr "在此调整每个PHP版本."
#: tuning/templates/tuning/phpTuning.html:45 #: tuning/templates/tuning/phpTuning.html:45
msgid "Initial Request Timeout (secs)" msgid "Initial Request Timeout (secs)"
@@ -2281,7 +2238,7 @@ msgstr "无法保存设置, 错误信息: "
#: tuning/templates/tuning/phpTuning.html:123 #: tuning/templates/tuning/phpTuning.html:123
msgid "Details Successfully fetched." msgid "Details Successfully fetched."
msgstr "详情读取成功" msgstr "详情读取成功."
#: tuning/templates/tuning/phpTuning.html:127 #: tuning/templates/tuning/phpTuning.html:127
msgid "PHP version " msgid "PHP version "
@@ -2289,7 +2246,7 @@ msgstr "PHP版本"
#: tuning/templates/tuning/phpTuning.html:127 #: tuning/templates/tuning/phpTuning.html:127
msgid "Successfully tuned." msgid "Successfully tuned."
msgstr "已成功保存" msgstr "已成功保存."
#: userManagment/templates/userManagment/createUser.html:3 #: userManagment/templates/userManagment/createUser.html:3
msgid "Create New User - CyberPanel" msgid "Create New User - CyberPanel"
@@ -2297,7 +2254,7 @@ msgstr "创建新用户 - CyberPanel"
#: userManagment/templates/userManagment/createUser.html:13 #: userManagment/templates/userManagment/createUser.html:13
msgid "Create root, reseller or normal users on this page." msgid "Create root, reseller or normal users on this page."
msgstr "在此页面创建管理员, 分销商以及普通用户" msgstr "在此页面创建管理员, 分销商以及普通用户."
#: userManagment/templates/userManagment/createUser.html:19 #: userManagment/templates/userManagment/createUser.html:19
msgid "User Details" msgid "User Details"
@@ -2311,7 +2268,7 @@ msgstr "名"
#: userManagment/templates/userManagment/createUser.html:32 #: userManagment/templates/userManagment/createUser.html:32
msgid "First Name should contain only alphabetic characters." msgid "First Name should contain only alphabetic characters."
msgstr "名 中只能包含字母" msgstr "名 中只能包含字母."
#: userManagment/templates/userManagment/createUser.html:37 #: userManagment/templates/userManagment/createUser.html:37
#: userManagment/templates/userManagment/modifyUser.html:46 #: userManagment/templates/userManagment/modifyUser.html:46
@@ -2321,7 +2278,7 @@ msgstr "姓"
#: userManagment/templates/userManagment/createUser.html:41 #: userManagment/templates/userManagment/createUser.html:41
msgid "Last Name should contain only alphabetic characters." msgid "Last Name should contain only alphabetic characters."
msgstr "姓 中只能包含字母" msgstr "姓 中只能包含字母."
#: userManagment/templates/userManagment/createUser.html:51 #: userManagment/templates/userManagment/createUser.html:51
#: websiteFunctions/templates/websiteFunctions/createWebsite.html:64 #: websiteFunctions/templates/websiteFunctions/createWebsite.html:64
@@ -2370,11 +2327,11 @@ msgstr "用户名"
#: userManagment/templates/userManagment/createUser.html:117 #: userManagment/templates/userManagment/createUser.html:117
msgid "Username should be lowercase alphanumeric." msgid "Username should be lowercase alphanumeric."
msgstr "用户名应当为小写字母" msgstr "用户名应当为小写字母."
#: userManagment/templates/userManagment/createUser.html:127 #: userManagment/templates/userManagment/createUser.html:127
msgid "Must contain one number and one special character." msgid "Must contain one number and one special character."
msgstr "必须一个数字和一个特殊符号" msgstr "必须一个数字和一个字母."
#: userManagment/templates/userManagment/createUser.html:143 #: userManagment/templates/userManagment/createUser.html:143
#: userManagment/templates/userManagment/index.html:40 #: userManagment/templates/userManagment/index.html:40
@@ -2403,7 +2360,7 @@ msgstr "删除用户 - CyberPanel"
#: userManagment/templates/userManagment/deleteUser.html:14 #: userManagment/templates/userManagment/deleteUser.html:14
msgid "Websites owned by this user will automatically transfer to the root." msgid "Websites owned by this user will automatically transfer to the root."
msgstr "此用户拥有的网站将自动移动到根目录" msgstr "此用户拥有的网站将自动移动到根目录."
#: userManagment/templates/userManagment/deleteUser.html:29 #: userManagment/templates/userManagment/deleteUser.html:29
msgid "Select User" msgid "Select User"
@@ -2423,7 +2380,7 @@ msgstr "用户功能 - CyberPanel"
#: userManagment/templates/userManagment/index.html:14 #: userManagment/templates/userManagment/index.html:14
msgid "Create, edit and delete users on this page." msgid "Create, edit and delete users on this page."
msgstr "在此页面创建, 编辑和删除用户" msgstr "在此页面创建, 编辑和删除用户."
#: userManagment/templates/userManagment/modifyUser.html:3 #: userManagment/templates/userManagment/modifyUser.html:3
msgid "Modify User - CyberPanel" msgid "Modify User - CyberPanel"
@@ -2431,7 +2388,7 @@ msgstr "编辑用户 - CyberPanel"
#: userManagment/templates/userManagment/modifyUser.html:13 #: userManagment/templates/userManagment/modifyUser.html:13
msgid "Modify existing user settings on this page." msgid "Modify existing user settings on this page."
msgstr "在此页面编辑已存在用户" msgstr "在此页面编辑已存在用户."
#: userManagment/templates/userManagment/modifyUser.html:26 #: userManagment/templates/userManagment/modifyUser.html:26
msgid "Select Account" msgid "Select Account"
@@ -2443,7 +2400,7 @@ msgstr "Admin"
#: userManagment/templates/userManagment/modifyUser.html:131 #: userManagment/templates/userManagment/modifyUser.html:131
msgid " is successfully modified." msgid " is successfully modified."
msgstr "已成功修改" msgstr "已成功修改."
#: userManagment/templates/userManagment/modifyUser.html:135 #: userManagment/templates/userManagment/modifyUser.html:135
msgid "Cannot modify user. Error message:" msgid "Cannot modify user. Error message:"
@@ -2451,7 +2408,7 @@ msgstr "无法编辑用户, 错误信息: "
#: userManagment/templates/userManagment/modifyUser.html:148 #: userManagment/templates/userManagment/modifyUser.html:148
msgid "Details fetched." msgid "Details fetched."
msgstr "详情已更新" msgstr "详情已更新."
#: userManagment/templates/userManagment/userProfile.html:3 #: userManagment/templates/userManagment/userProfile.html:3
msgid "Account Details - CyberPanel" msgid "Account Details - CyberPanel"
@@ -2464,7 +2421,7 @@ msgstr "用户详情"
#: userManagment/templates/userManagment/userProfile.html:13 #: userManagment/templates/userManagment/userProfile.html:13
msgid "List the account details for the currently logged in user." msgid "List the account details for the currently logged in user."
msgstr "查看当前用户详情" msgstr "查看当前用户详情."
#: userManagment/templates/userManagment/userProfile.html:58 #: userManagment/templates/userManagment/userProfile.html:58
msgid "Account Level" msgid "Account Level"
@@ -2486,7 +2443,7 @@ msgstr "创建新网站 - CyberPanel"
msgid "" msgid ""
"On this page you can launch, list, modify and delete websites from your " "On this page you can launch, list, modify and delete websites from your "
"server." "server."
msgstr "在此页面可以创建,查看,修改和删除您服务器上的网站 " msgstr "在此页面可以创建,查看,修改和删除您服务器上的网站."
#: websiteFunctions/templates/websiteFunctions/createWebsite.html:20 #: websiteFunctions/templates/websiteFunctions/createWebsite.html:20
msgid "Website Details" msgid "Website Details"
@@ -2515,7 +2472,7 @@ msgid ""
"SSL will be issued, you can add your own SSL later." "SSL will be issued, you can add your own SSL later."
msgstr "" msgstr ""
"为确定SSL证书的正确签发,域名必须指向此服务器,否则将会签发自签名证书 您可以在" "为确定SSL证书的正确签发,域名必须指向此服务器,否则将会签发自签名证书 您可以在"
"之后添加自有证书或重新申请签发Let's Encrypt证书" "之后添加自有证书或重新申请签发Let's Encrypt证书."
#: websiteFunctions/templates/websiteFunctions/createWebsite.html:113 #: websiteFunctions/templates/websiteFunctions/createWebsite.html:113
#: websiteFunctions/templates/websiteFunctions/website.html:328 #: websiteFunctions/templates/websiteFunctions/website.html:328
@@ -2540,7 +2497,7 @@ msgstr "删除网站 - CyberPanel"
msgid "" msgid ""
"This page can be used to delete website, once deleted it can not be " "This page can be used to delete website, once deleted it can not be "
"recovered." "recovered."
msgstr "在此页面可以删除网站,此操作不可逆 " msgstr "在此页面可以删除网站,此操作不可逆."
#: websiteFunctions/templates/websiteFunctions/deleteWebsite.html:61 #: websiteFunctions/templates/websiteFunctions/deleteWebsite.html:61
msgid "Cannot delete website, Error message: " msgid "Cannot delete website, Error message: "
@@ -2548,7 +2505,7 @@ msgstr "无法删除网站, 错误信息: "
#: websiteFunctions/templates/websiteFunctions/deleteWebsite.html:65 #: websiteFunctions/templates/websiteFunctions/deleteWebsite.html:65
msgid "Successfully Deleted." msgid "Successfully Deleted."
msgstr "成功删除" msgstr "成功删除."
#: websiteFunctions/templates/websiteFunctions/index.html:3 #: websiteFunctions/templates/websiteFunctions/index.html:3
msgid "Website Functions - CyberPanel" msgid "Website Functions - CyberPanel"
@@ -2599,7 +2556,7 @@ msgstr "禁用/启用网站 - CyberPanel"
#: websiteFunctions/templates/websiteFunctions/suspendWebsite.html:14 #: websiteFunctions/templates/websiteFunctions/suspendWebsite.html:14
msgid "This page can be used to suspend/unsuspend website." msgid "This page can be used to suspend/unsuspend website."
msgstr "此页面可以禁用/启用网站" msgstr "此页面可以禁用/启用网站."
#: websiteFunctions/templates/websiteFunctions/suspendWebsite.html:44 #: websiteFunctions/templates/websiteFunctions/suspendWebsite.html:44
msgid "Suspend" msgid "Suspend"
@@ -2627,7 +2584,7 @@ msgstr "成功"
#: websiteFunctions/templates/websiteFunctions/website.html:15 #: websiteFunctions/templates/websiteFunctions/website.html:15
msgid "All functions related to a particular site." msgid "All functions related to a particular site."
msgstr "所有与网站相关的功能" msgstr "所有与网站相关的功能."
#: websiteFunctions/templates/websiteFunctions/website.html:23 #: websiteFunctions/templates/websiteFunctions/website.html:23
msgid "Resource Usage" msgid "Resource Usage"
@@ -2647,16 +2604,12 @@ msgid "Bandwidth Usage"
msgstr "流量使用量" msgstr "流量使用量"
#: websiteFunctions/templates/websiteFunctions/website.html:119 #: websiteFunctions/templates/websiteFunctions/website.html:119
#, fuzzy
#| msgid "Access Logs"
msgid "Load Access Logs" msgid "Load Access Logs"
msgstr "访问日志" msgstr "读取访问日志"
#: websiteFunctions/templates/websiteFunctions/website.html:131 #: websiteFunctions/templates/websiteFunctions/website.html:131
#, fuzzy
#| msgid "Error Logs"
msgid "Load Error Logs" msgid "Load Error Logs"
msgstr "错误日志" msgstr "读取错误日志"
#: websiteFunctions/templates/websiteFunctions/website.html:147 #: websiteFunctions/templates/websiteFunctions/website.html:147
msgid "Logs Fetched" msgid "Logs Fetched"
@@ -2677,17 +2630,13 @@ msgstr "上一个"
#: websiteFunctions/templates/websiteFunctions/website.html:230 #: websiteFunctions/templates/websiteFunctions/website.html:230
#: websiteFunctions/templates/websiteFunctions/website.html:232 #: websiteFunctions/templates/websiteFunctions/website.html:232
#, fuzzy
#| msgid "Add Destination"
msgid "Add Domains" msgid "Add Domains"
msgstr "添加远程目录" msgstr "添加域名"
#: websiteFunctions/templates/websiteFunctions/website.html:242 #: websiteFunctions/templates/websiteFunctions/website.html:242
#: websiteFunctions/templates/websiteFunctions/website.html:244 #: websiteFunctions/templates/websiteFunctions/website.html:244
#, fuzzy
#| msgid "Select Domain"
msgid "List Domains" msgid "List Domains"
msgstr "选择域名" msgstr "查看域名"
#: websiteFunctions/templates/websiteFunctions/website.html:274 #: websiteFunctions/templates/websiteFunctions/website.html:274
#: websiteFunctions/templates/websiteFunctions/website.html:733 #: websiteFunctions/templates/websiteFunctions/website.html:733
@@ -2696,45 +2645,33 @@ msgstr "路径"
#: websiteFunctions/templates/websiteFunctions/website.html:276 #: websiteFunctions/templates/websiteFunctions/website.html:276
msgid "This path is relative to: " msgid "This path is relative to: "
msgstr "" msgstr "此目录相对与:"
#: websiteFunctions/templates/websiteFunctions/website.html:276 #: websiteFunctions/templates/websiteFunctions/website.html:276
#, fuzzy
#| msgid "Leave empty to select default home directory."
msgid "Leave empty to set default." msgid "Leave empty to set default."
msgstr "留空则设置为默认根目录" msgstr "留空则设置为默认根目录."
#: websiteFunctions/templates/websiteFunctions/website.html:317 #: websiteFunctions/templates/websiteFunctions/website.html:317
#, fuzzy
#| msgid "Create Email"
msgid "Create Domain" msgid "Create Domain"
msgstr "创建Email" msgstr "创建域名"
#: websiteFunctions/templates/websiteFunctions/website.html:360 #: websiteFunctions/templates/websiteFunctions/website.html:360
#, fuzzy
#| msgid "Version Management"
msgid "PHP Version Changed to:" msgid "PHP Version Changed to:"
msgstr "版本管理" msgstr "版本管理:"
#: websiteFunctions/templates/websiteFunctions/website.html:364 #: websiteFunctions/templates/websiteFunctions/website.html:364
#, fuzzy
#| msgid "Delete"
msgid "Deleted:" msgid "Deleted:"
msgstr "删除" msgstr "删除:"
#: websiteFunctions/templates/websiteFunctions/website.html:368 #: websiteFunctions/templates/websiteFunctions/website.html:368
#, fuzzy
#| msgid "SSL Issued for"
msgid "SSL Issued:" msgid "SSL Issued:"
msgstr "已为签发证书" msgstr "已为签发证书:"
#: websiteFunctions/templates/websiteFunctions/website.html:391 #: websiteFunctions/templates/websiteFunctions/website.html:391
msgid "Close" msgid "Close"
msgstr "" msgstr "关闭"
#: websiteFunctions/templates/websiteFunctions/website.html:423 #: websiteFunctions/templates/websiteFunctions/website.html:423
#, fuzzy
#| msgid "Issue SSL"
msgid "Issue" msgid "Issue"
msgstr "签发SSL证书" msgstr "签发SSL证书"
@@ -2743,8 +2680,6 @@ msgid "Configurations"
msgstr "配置" msgstr "配置"
#: websiteFunctions/templates/websiteFunctions/website.html:457 #: websiteFunctions/templates/websiteFunctions/website.html:457
#, fuzzy
#| msgid "Edit vHost Main Configurations"
msgid "Edit Virtual Host Main Configurations" msgid "Edit Virtual Host Main Configurations"
msgstr "编辑vHost主配置" msgstr "编辑vHost主配置"
@@ -2758,8 +2693,6 @@ msgid "Add Rewrite Rules (.htaccess)"
msgstr "添加Rewrite Rules (.htaccess)" msgstr "添加Rewrite Rules (.htaccess)"
#: websiteFunctions/templates/websiteFunctions/website.html:481 #: websiteFunctions/templates/websiteFunctions/website.html:481
#, fuzzy
#| msgid "Add SSL"
msgid "Add Your Own SSL" msgid "Add Your Own SSL"
msgstr "添加SSL证书" msgstr "添加SSL证书"
@@ -2777,7 +2710,7 @@ msgstr "无法保存SSL证书, 错误信息: "
#: websiteFunctions/templates/websiteFunctions/website.html:553 #: websiteFunctions/templates/websiteFunctions/website.html:553
msgid "Current configuration in the file fetched." msgid "Current configuration in the file fetched."
msgstr "当前配置读取成功" msgstr "当前配置读取成功."
#: websiteFunctions/templates/websiteFunctions/website.html:558 #: websiteFunctions/templates/websiteFunctions/website.html:558
#: websiteFunctions/templates/websiteFunctions/website.html:571 #: websiteFunctions/templates/websiteFunctions/website.html:571
@@ -2787,11 +2720,11 @@ msgstr "无法读取当前配置, 错误信息: "
#: websiteFunctions/templates/websiteFunctions/website.html:567 #: websiteFunctions/templates/websiteFunctions/website.html:567
#: websiteFunctions/templates/websiteFunctions/website.html:622 #: websiteFunctions/templates/websiteFunctions/website.html:622
msgid "Configuration saved. Restart LiteSpeed put them in effect." msgid "Configuration saved. Restart LiteSpeed put them in effect."
msgstr "配置已保存, 重启LiteSpeed以生效" msgstr "配置已保存, 重启LiteSpeed以生效."
#: websiteFunctions/templates/websiteFunctions/website.html:608 #: websiteFunctions/templates/websiteFunctions/website.html:608
msgid "Current rewrite rules in the file fetched." msgid "Current rewrite rules in the file fetched."
msgstr "当前Rewrite rules读取成功" msgstr "当前Rewrite rules读取成功."
#: websiteFunctions/templates/websiteFunctions/website.html:613 #: websiteFunctions/templates/websiteFunctions/website.html:613
msgid "Could not fetch current rewrite rules. Error message:" msgid "Could not fetch current rewrite rules. Error message:"
@@ -2819,10 +2752,8 @@ msgid "Application Installer"
msgstr "应用安装器" msgstr "应用安装器"
#: websiteFunctions/templates/websiteFunctions/website.html:719 #: websiteFunctions/templates/websiteFunctions/website.html:719
#, fuzzy
#| msgid "Wordpress with LSCache"
msgid "Install wordpress with LSCache" msgid "Install wordpress with LSCache"
msgstr "Wordpress和LS Cache" msgstr "安装Wordpress和LS Cache"
#: websiteFunctions/templates/websiteFunctions/website.html:721 #: websiteFunctions/templates/websiteFunctions/website.html:721
msgid "Wordpress with LSCache" msgid "Wordpress with LSCache"
@@ -2834,7 +2765,7 @@ msgstr "安装失败, 错误信息: "
#: websiteFunctions/templates/websiteFunctions/website.html:759 #: websiteFunctions/templates/websiteFunctions/website.html:759
msgid "Installation successful. To complete the setup visit:" msgid "Installation successful. To complete the setup visit:"
msgstr "安装成功, 请访问网站以完成设置" msgstr "安装成功, 请访问网站以完成设置:"
#~ msgid "Urdu" #~ msgid "Urdu"
#~ msgstr "乌尔都语" #~ msgstr "乌尔都语"

View File

@@ -199,7 +199,7 @@
<div class="col-md-8 col-lg-6 clearfix center-margin"> <div class="col-md-8 col-lg-6 clearfix center-margin">
<div class="row"> <div class="row">
<div class="col-md-5"> <div class="col-md-5">
<h3 class="text-transform-upr font-size-17">CyberPanel <span class="opacity-80">v 1.0</span></h3> <h3 class="text-transform-upr font-size-17">CyberPanel <span class="opacity-80">v 1.5</span></h3>
<p class="font-gray">Web Hosting Control Panel</p> <p class="font-gray">Web Hosting Control Panel</p>
<div class="divider"></div> <div class="divider"></div>
<ul class="reset-ul"> <ul class="reset-ul">

View File

@@ -116,7 +116,7 @@ def loadLoginPage(request):
firstName="Cyber",lastName="Panel") firstName="Cyber",lastName="Panel")
admin.save() admin.save()
vers = version(currentVersion="1.0",build=4) vers = version(currentVersion="1.0",build=5)
vers.save() vers.save()
package = Package(admin=admin, packageName="Default", diskSpace=1000, package = Package(admin=admin, packageName="Default", diskSpace=1000,

View File

@@ -26,8 +26,12 @@ def createPacakge(request):
try: try:
val = request.session['userID'] val = request.session['userID']
admin = Administrator.objects.get(pk=val) admin = Administrator.objects.get(pk=val)
if admin.type == 3:
return HttpResponse("You don't have enough privileges to access this page.")
except KeyError: except KeyError:
return redirect(loadLoginPage) return redirect(loadLoginPage)
@@ -42,6 +46,9 @@ def deletePacakge(request):
admin = Administrator.objects.get(pk=val) admin = Administrator.objects.get(pk=val)
if admin.type == 3:
return HttpResponse("You don't have enough privileges to access this page.")
if admin.type == 1: if admin.type == 1:
packages = Package.objects.all() packages = Package.objects.all()
else: else:
@@ -130,6 +137,9 @@ def modifyPackage(request):
try: try:
admin = Administrator.objects.get(pk=val) admin = Administrator.objects.get(pk=val)
if admin.type == 3:
return HttpResponse("You don't have enough privileges to access this page.")
if admin.type == 1: if admin.type == 1:
packages = Package.objects.all() packages = Package.objects.all()
else: else:

View File

@@ -100,6 +100,8 @@ class Upgrade:
upgradeLog.close() upgradeLog.close()
print("Upgrade Completed.") print("Upgrade Completed.")
@staticmethod @staticmethod

View File

@@ -127,7 +127,6 @@ app.controller('adminController', function($scope,$http,$timeout) {
$("#remoteBackups").hide(); $("#remoteBackups").hide();
$("#packageHome").hide(); $("#packageHome").hide();
$("#packageSub").hide(); $("#packageSub").hide();
$("#createWebsite").hide();
} }
} }

View File

@@ -22,10 +22,14 @@ app.controller('createUserCtr', function($scope,$http) {
$scope.webLimits = false; $scope.webLimits = false;
$scope.acctsLimit = true; $scope.acctsLimit = true;
} }
else{ else if($scope.accountType == "Reseller"){
$scope.webLimits = false; $scope.webLimits = false;
$scope.acctsLimit = false; $scope.acctsLimit = false;
} }
else{
$scope.webLimits = true;
$scope.acctsLimit = true;
}
} }

View File

@@ -22,10 +22,14 @@ app.controller('createUserCtr', function($scope,$http) {
$scope.webLimits = false; $scope.webLimits = false;
$scope.acctsLimit = true; $scope.acctsLimit = true;
} }
else{ else if($scope.accountType == "Reseller"){
$scope.webLimits = false; $scope.webLimits = false;
$scope.acctsLimit = false; $scope.acctsLimit = false;
} }
else{
$scope.webLimits = true;
$scope.acctsLimit = true;
}
} }

View File

@@ -64,7 +64,7 @@
<label class="col-sm-3 control-label">{% trans "Account Type" %}</label> <label class="col-sm-3 control-label">{% trans "Account Type" %}</label>
<div class="col-sm-6"> <div class="col-sm-6">
<select ng-change="showLimitsBox()" ng-model="accountType" class="form-control"> <select ng-change="showLimitsBox()" ng-model="accountType" class="form-control">
<option>{% trans "Reseller" %}</option> <option>{% trans "Admin" %}</option>
<option>{% trans "Normal User" %}</option> <option>{% trans "Normal User" %}</option>
</select> </select>
</div> </div>

View File

@@ -70,7 +70,6 @@
<div class="col-sm-6"> <div class="col-sm-6">
<select ng-change="showLimitsBox()" ng-model="accountType" class="form-control"> <select ng-change="showLimitsBox()" ng-model="accountType" class="form-control">
<option>{% trans "Admin" %}</option> <option>{% trans "Admin" %}</option>
<option>{% trans "Reseller" %}</option>
<option>{% trans "Normal User" %}</option> <option>{% trans "Normal User" %}</option>
</select> </select>

View File

@@ -88,21 +88,24 @@ def submitUserCreation(request):
currentAdmin = Administrator.objects.get(pk=val) currentAdmin = Administrator.objects.get(pk=val)
childUsers = Administrator.objects.filter(owner=currentAdmin.pk).count()
if currentAdmin.type == 1: if currentAdmin.type == 1:
pass pass
else: else:
if currentAdmin.initWebsitesLimit == 0: if currentAdmin.initWebsitesLimit == 0:
currentAdmin.userAccountsLimit = currentAdmin.userAccountsLimit + 1 pass
elif currentAdmin.userAccountsLimit != currentAdmin.initUserAccountsLimit: elif currentAdmin.initUserAccountsLimit == childUsers:
currentAdmin.userAccountsLimit = currentAdmin.userAccountsLimit + 1
else:
data_ret = {'createStatus': 0, data_ret = {'createStatus': 0,
'error_message': "Reached Maximum User Creation Limit"} 'error_message': "Reached Maximum User Creation Limit"}
final_json = json.dumps(data_ret) final_json = json.dumps(data_ret)
return HttpResponse(final_json) return HttpResponse(final_json)
else:
pass
if request.method == 'POST': if request.method == 'POST':
data = json.loads(request.body) data = json.loads(request.body)
@@ -116,7 +119,27 @@ def submitUserCreation(request):
accountType = data['accountType'] accountType = data['accountType']
if accountType == "Normal User": if accountType == "Admin":
newAdmin = Administrator(firstName=firstName,
lastName=lastName,
email=email,
type=1,
userName=userName,
password=password,
initWebsitesLimit=0,
owner=currentAdmin.pk
)
newAdmin.save()
currentAdmin.save()
data_ret = {'createStatus': 1,
'error_message': "None"}
final_json = json.dumps(data_ret)
return HttpResponse(final_json)
elif accountType == "Normal User":
websitesLimit = data['websitesLimit'] websitesLimit = data['websitesLimit']
newAdmin = Administrator(firstName=firstName, newAdmin = Administrator(firstName=firstName,
@@ -136,7 +159,6 @@ def submitUserCreation(request):
final_json = json.dumps(data_ret) final_json = json.dumps(data_ret)
return HttpResponse(final_json) return HttpResponse(final_json)
else: else:
websitesLimit = data['websitesLimit'] websitesLimit = data['websitesLimit']
userAccountsLimit = data['userAccountsLimit'] userAccountsLimit = data['userAccountsLimit']
@@ -357,7 +379,7 @@ def deleteUser(request):
admins = Administrator.objects.all() admins = Administrator.objects.all()
adminNames = [] adminNames = []
for items in admins: for items in admins:
if not items.type == 1: if not items.userName == "admin":
adminNames.append(items.userName) adminNames.append(items.userName)
else: else:
admins = Administrator.objects.filter(owner=admin.pk) admins = Administrator.objects.filter(owner=admin.pk)

View File

@@ -25,6 +25,8 @@ from os import listdir, rmdir
from shutil import move from shutil import move
from filemanager_app import views as fileManage from filemanager_app import views as fileManage
from plogical.findBWUsage import findBWUsage from plogical.findBWUsage import findBWUsage
from dns.models import Domains,Records
import requests
# Create your views here. # Create your views here.
@@ -226,6 +228,15 @@ def submitWebsiteCreation(request):
except: except:
pass pass
try:
website = ChildDomains.objects.get(domain=domain)
data_ret = {"existsStatus": 0, 'createWebSiteStatus': 0,
'error_message': "Website Already Exists"}
json_data = json.dumps(data_ret)
return HttpResponse(json_data)
except:
pass
####### Limitations check ####### Limitations check
@@ -312,6 +323,63 @@ def submitWebsiteCreation(request):
json_data = json.dumps(data_ret) json_data = json.dumps(data_ret)
return HttpResponse(json_data) return HttpResponse(json_data)
## zone creation and
try:
newZone = Domains(admin=admin, name=domain, type="NATIVE")
newZone.save()
content = "ns1." + domain + " hostmaster." + domain + " 1 10800 3600 604800 3600"
soaRecord = Records(domainOwner=newZone,
domain_id=newZone.id,
name=domain,
type="SOA",
content=content,
ttl=3600,
prio=0,
disabled=0,
auth=1)
soaRecord.save()
try:
recordContentA = requests.get('https://api.ipify.org').text
zone = Domains.objects.get(name=domain)
record = Records(domainOwner=zone,
domain_id=zone.id,
name=domain,
type="A",
content=recordContentA,
ttl=3600,
prio=0,
disabled=0,
auth=1)
record.save()
except:
pass
except:
try:
recordContentA = requests.get('https://api.ipify.org').text
zone = Domains.objects.get(name=domain)
record = Records(domainOwner=zone,
domain_id=zone.id,
name=domain,
type="A",
content=recordContentA,
ttl=3600,
prio=0,
disabled=0,
auth=1)
record.save()
except:
pass
## zone creation
selectedPackage = Package.objects.get(packageName=packageName) selectedPackage = Package.objects.get(packageName=packageName)
website = Websites(admin=admin, package=selectedPackage, domain=domain, adminEmail=adminEmail, website = Websites(admin=admin, package=selectedPackage, domain=domain, adminEmail=adminEmail,