pull/109/head
Mr Chen 6 years ago
parent 6c0df40430
commit 166aa094a2
  1. 4
      app.py
  2. 58
      route/__init__.py
  3. 0
      route/static/app/config.js
  4. 0
      route/static/app/control.js
  5. 0
      route/static/app/crontab.js
  6. 0
      route/static/app/files.js
  7. 0
      route/static/app/firewall.js
  8. 0
      route/static/app/index.js
  9. 0
      route/static/app/public.js
  10. 0
      route/static/app/site.js
  11. 0
      route/static/app/soft.js
  12. 0
      route/static/app/upload.js
  13. 0
      route/static/bootstrap-3.3.5/css/bootstrap-theme.min.css
  14. 0
      route/static/bootstrap-3.3.5/css/bootstrap.min.css
  15. 0
      route/static/bootstrap-3.3.5/css/index.html
  16. 0
      route/static/bootstrap-3.3.5/fonts/glyphicons-halflings-regular.eot
  17. 0
      route/static/bootstrap-3.3.5/fonts/glyphicons-halflings-regular.svg
  18. 0
      route/static/bootstrap-3.3.5/fonts/glyphicons-halflings-regular.ttf
  19. 0
      route/static/bootstrap-3.3.5/fonts/glyphicons-halflings-regular.woff
  20. 0
      route/static/bootstrap-3.3.5/fonts/glyphicons-halflings-regular.woff2
  21. 0
      route/static/bootstrap-3.3.5/fonts/index.html
  22. 0
      route/static/bootstrap-3.3.5/index.html
  23. 0
      route/static/codemirror/addon/dialog/dialog.css
  24. 0
      route/static/codemirror/addon/dialog/dialog.js
  25. 0
      route/static/codemirror/addon/dialog/index.html
  26. 0
      route/static/codemirror/addon/display/autorefresh.js
  27. 0
      route/static/codemirror/addon/display/fullscreen.css
  28. 0
      route/static/codemirror/addon/display/fullscreen.js
  29. 0
      route/static/codemirror/addon/display/index.html
  30. 0
      route/static/codemirror/addon/display/panel.js
  31. 0
      route/static/codemirror/addon/display/placeholder.js
  32. 0
      route/static/codemirror/addon/display/rulers.js
  33. 0
      route/static/codemirror/addon/edit/closebrackets.js
  34. 0
      route/static/codemirror/addon/edit/closetag.js
  35. 0
      route/static/codemirror/addon/edit/continuelist.js
  36. 0
      route/static/codemirror/addon/edit/editAll.js
  37. 0
      route/static/codemirror/addon/edit/index.html
  38. 0
      route/static/codemirror/addon/edit/matchbrackets.js
  39. 0
      route/static/codemirror/addon/edit/matchtags.js
  40. 0
      route/static/codemirror/addon/edit/trailingspace.js
  41. 0
      route/static/codemirror/addon/hint/anyword-hint.js
  42. 0
      route/static/codemirror/addon/hint/css-hint.js
  43. 0
      route/static/codemirror/addon/hint/html-hint.js
  44. 0
      route/static/codemirror/addon/hint/index.html
  45. 0
      route/static/codemirror/addon/hint/javascript-hint.js
  46. 0
      route/static/codemirror/addon/hint/show-hint.css
  47. 0
      route/static/codemirror/addon/hint/show-hint.js
  48. 0
      route/static/codemirror/addon/hint/sql-hint.js
  49. 0
      route/static/codemirror/addon/hint/xml-hint.js
  50. 0
      route/static/codemirror/addon/index.html
  51. 0
      route/static/codemirror/addon/scroll/annotatescrollbar.js
  52. 0
      route/static/codemirror/addon/scroll/index.html
  53. 0
      route/static/codemirror/addon/scroll/scrollpastend.js
  54. 0
      route/static/codemirror/addon/scroll/simplescrollbars.css
  55. 0
      route/static/codemirror/addon/scroll/simplescrollbars.js
  56. 0
      route/static/codemirror/addon/search/index.html
  57. 0
      route/static/codemirror/addon/search/jump-to-line.js
  58. 0
      route/static/codemirror/addon/search/match-highlighter.js
  59. 0
      route/static/codemirror/addon/search/matchesonscrollbar.css
  60. 0
      route/static/codemirror/addon/search/matchesonscrollbar.js
  61. 0
      route/static/codemirror/addon/search/search.js
  62. 0
      route/static/codemirror/addon/search/searchcursor.js
  63. 0
      route/static/codemirror/index.html
  64. 0
      route/static/codemirror/lib/codemirror.css
  65. 0
      route/static/codemirror/lib/codemirror.js
  66. 0
      route/static/codemirror/lib/index.html
  67. 0
      route/static/codemirror/mode/index.html
  68. 0
      route/static/codemirror/mode/modeAll.js
  69. 0
      route/static/css/ensite.css
  70. 0
      route/static/css/index.html
  71. 0
      route/static/css/install.css
  72. 0
      route/static/css/login.css
  73. 0
      route/static/css/site.css
  74. 0
      route/static/favicon.ico
  75. 0
      route/static/images/ico-ts-cpu-active.png
  76. 0
      route/static/images/ico-ts-cpu.png
  77. 0
      route/static/images/ico-ts-disk-active.png
  78. 0
      route/static/images/ico-ts-disk.png
  79. 0
      route/static/images/ico-ts-mem-active.png
  80. 0
      route/static/images/ico-ts-mem.png
  81. 0
      route/static/images/ico-ts-refresh.png
  82. 0
      route/static/images/ico-ts-score.gif
  83. 0
      route/static/images/ico-ts-score.jpg
  84. 0
      route/static/images/ico-ts-score1.png
  85. 0
      route/static/images/ico-ts-score2.png
  86. 0
      route/static/images/ico-ts-score3.png
  87. 0
      route/static/images/index.html
  88. 0
      route/static/images/logo.png
  89. 0
      route/static/images/move.png
  90. 0
      route/static/images/reg_logo.png
  91. 0
      route/static/images/reg_logo1.png
  92. 0
      route/static/images/right.png
  93. 0
      route/static/images/ts-stamper1.png
  94. 0
      route/static/images/ts-stamper2.png
  95. 0
      route/static/images/ts-stamper3.png
  96. 0
      route/static/images/weixin.png
  97. 0
      route/static/img/Detailsbg.png
  98. 0
      route/static/img/DrawRecordord.png
  99. 0
      route/static/img/account.png
  100. 0
      route/static/img/apache.png
  101. Some files were not shown because too many files have changed in this diff Show More

@ -6,8 +6,10 @@ import os
sys.path.append(os.getcwd() + "/class/core")
import config
from route import app
app = config.config().makeApp(__name__)
# app = config.config().makeApp(__name__)
try:
if __name__ == "__main__":

@ -1,14 +1,48 @@
# coding:utf-8
from dashboard import *
from site import *
from files import *
from soft import *
from config import *
from plugins import *
from task import *
from system import *
from database import *
from crontab import *
from control import *
from firewall import *
import sys
import io
import os
import time
import shutil
from flask import Flask
from flask import render_template
sys.path.append(os.getcwd() + "/class/core")
# from dashboard import *
# from site import *
# from files import *
# from soft import *
# from config import *
# from plugins import *
# from task import *
# from system import *
# from database import *
# from crontab import *
# from control import *
# from firewall import *
app = Flask(__name__, template_folder='templates/default')
@app.route('/<reqClass>/<reqAction>', methods=['POST', 'GET'])
@app.route('/<reqClass>/', methods=['POST', 'GET'])
@app.route('/<reqClass>', methods=['POST', 'GET'])
@app.route('/', methods=['POST', 'GET'])
def index(reqClass=None, reqAction=None, reqData=None):
print reqClass, reqAction, reqData
if (reqClass == None):
reqClass = 'index'
classFile = ('config', 'control', 'crontab',
'files', 'firewall', 'index', 'login', 'site', 'soft')
if not reqClass in classFile:
return '403 no access!'
if reqAction == None:
return render_template(reqClass + '.html')
else:
import classFile
print classFile.classFile()

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Before

Width:  |  Height:  |  Size: 874 B

After

Width:  |  Height:  |  Size: 874 B

Before

Width:  |  Height:  |  Size: 683 B

After

Width:  |  Height:  |  Size: 683 B

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Before

Width:  |  Height:  |  Size: 9.5 KiB

After

Width:  |  Height:  |  Size: 9.5 KiB

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Before

Width:  |  Height:  |  Size: 203 B

After

Width:  |  Height:  |  Size: 203 B

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Before

Width:  |  Height:  |  Size: 672 B

After

Width:  |  Height:  |  Size: 672 B

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Before

Width:  |  Height:  |  Size: 212 B

After

Width:  |  Height:  |  Size: 212 B

Before

Width:  |  Height:  |  Size: 166 B

After

Width:  |  Height:  |  Size: 166 B

Before

Width:  |  Height:  |  Size: 586 B

After

Width:  |  Height:  |  Size: 586 B

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save