Skip to content

Commit

Permalink
7.6.23
Browse files Browse the repository at this point in the history
  • Loading branch information
showpy committed May 14, 2021
1 parent cf1214e commit 2a00eac
Show file tree
Hide file tree
Showing 5,911 changed files with 1,429,041 additions and 915 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
21 changes: 21 additions & 0 deletions .vscode-upload.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[{
"name":"",
"host": "",
"port": 22,
"username": "",
"password": "",
"remotePath": "",
"localPath": "",
"disable": false,
"private_key": "~/.ssh/id_rsa"
},{
"name":"",
"host": "",
"port": 22,
"username": "",
"password": "",
"remotePath": "",
"localPath": "",
"disable": false,
"private_key": "~/.ssh/id_rsa"
}]
15 changes: 10 additions & 5 deletions BTPanel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def ssh_security(pdata=None):
firewallObject = ssh_security.ssh_security()
defs = ('san_ssh_security', 'set_password', 'set_sshkey', 'stop_key', 'get_config',
'stop_password', 'get_key', 'return_ip', 'add_return_ip', 'del_return_ip', 'start_jian', 'stop_jian',
'get_jian', 'get_logs')
'get_jian', 'get_logs','set_root','stop_root')
return publicObject(firewallObject, defs, None, pdata)


Expand Down Expand Up @@ -649,7 +649,7 @@ def files(pdata=None):
'set_file_ps','CreateLink',
'SearchFiles', 'upload', 'read_history', 're_history', 'auto_save_temp', 'get_auto_save_body', 'get_videos',
'GetFileAccess', 'SetFileAccess', 'GetDirSize', 'SetBatchData', 'BatchPaste', 'install_rar',
'get_path_size',
'get_path_size','get_file_attribute','get_file_hash',
'DownloadFile', 'GetTaskSpeed', 'CloseLogs', 'InstallSoft', 'UninstallSoft', 'SaveTmpFile',
'get_composer_version', 'exec_composer', 'update_composer',
'GetTmpFile', 'del_files_store', 'add_files_store', 'get_files_store', 'del_files_store_types',
Expand Down Expand Up @@ -1319,8 +1319,10 @@ def panel_other(name=None, fun=None, stype=None):
if name != "mail_sys" or fun != "send_mail_http.json":
comReturn = comm.local()
if comReturn: return comReturn
if 'request_token' in session and 'login' in session:
if not check_csrf(): return public.ReturnJson(False, 'INIT_CSRF_ERR'), json_header
if fun:
if fun.find('.json') != -1:
if 'request_token' in session and 'login' in session:
if not check_csrf(): return public.ReturnJson(False, 'INIT_CSRF_ERR'), json_header
args = None
else:
args = get_input()
Expand All @@ -1341,7 +1343,10 @@ def panel_other(name=None, fun=None, stype=None):
if name.find('./') != -1 or not re.match(r"^[\w-]+$", name): return abort(404)
if not name: return public.returnJson(False, 'PLUGIN_INPUT_ERR'), json_header
p_path = os.path.join('/www/server/panel/plugin/', name)
if not os.path.exists(p_path): return abort(404)
if not os.path.exists(p_path):
if name == 'btwaf' and fun == 'index':
return render_template('error3.html',data={})
return abort(404)

# 是否响插件应静态文件
if fun == 'static':
Expand Down
6 changes: 3 additions & 3 deletions BTPanel/static/ace/ace.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions BTPanel/static/ace/ext-beautify.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions BTPanel/static/ace/ext-elastic_tabstops_lite.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions BTPanel/static/ace/ext-emmet.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion BTPanel/static/ace/ext-error_marker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; (function() {
window.require(["ace/ext/error_marker"], function(m) {
ace.require(["ace/ext/error_marker"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
Expand Down
4 changes: 2 additions & 2 deletions BTPanel/static/ace/ext-language_tools.js

Large diffs are not rendered by default.

Loading

0 comments on commit 2a00eac

Please sign in to comment.