diff --git a/SuperScriptViewer/ServerCore.py b/SuperScriptViewer/ServerCore.py
index c183166..37953af 100644
--- a/SuperScriptViewer/ServerCore.py
+++ b/SuperScriptViewer/ServerCore.py
@@ -4,6 +4,7 @@ from flask import render_template
from flask import url_for
from flask import request
from flask import abort
+from flask import redirect
from functools import reduce
import sqlite3
@@ -12,6 +13,7 @@ import ServerStruct as ss
app = Flask(__name__)
+# =============================================database
def get_db():
db = getattr(g, '_database', None)
if db is None:
@@ -24,6 +26,7 @@ def close_connection(exception):
if db is not None:
db.close()
+# =============================================template func
@app.template_global(name = 'pinDecoder')
def block_pin_decoder(target):
return json.loads(target)
@@ -33,7 +36,20 @@ def block_pin_decoder2(target):
vab = json.loads(target)
return [vab['name'], vab['type']]
+# =============================================route
@app.route('/', methods=['GET'])
+def nospecHandle():
+ return redirect(url_for('indexHandle'))
+
+@app.route('/help', methods=['GET'])
+def helpHandle():
+ return render_template("help.html")
+
+@app.route('/about', methods=['GET'])
+def aboutHandle():
+ return render_template("about.html")
+
+@app.route('/index', methods=['GET'])
def indexHandle():
cur = get_db().cursor()
cur.execute("SELECT [graph], [graph_name], [belong_to] FROM graph WHERE [index] != -1 ORDER BY [belong_to], [index] ASC;")
@@ -46,11 +62,8 @@ def indexHandle():
return render_template('index.html', scripts = data)
-@app.route('/ " + key + ":" + data[key] +"
" + key + ":
" + data[key] + "") } }); } @@ -72,26 +120,26 @@ function sidePanelSwitcher(target) { $("#sidepanel-properties").hide(); $("#sidepanel-display").hide(); $("#sidepanel-tools").hide(); - $(".tabitem").each(function() { + $(".tabitem").each(function () { $(this).removeClass("tabitem-activated").addClass("tabitem-deactivated"); }); switch (target) { case 0: $("#sidepanel-properties").show(); - $(".tabitem1").each(function() { + $(".tabitem1").each(function () { $(this).removeClass("tabitem-deactivated").addClass("tabitem-activated"); }); break; case 1: $("#sidepanel-display").show(); - $(".tabitem2").each(function() { + $(".tabitem2").each(function () { $(this).removeClass("tabitem-deactivated").addClass("tabitem-activated"); }); break; case 2: $("#sidepanel-tools").show(); - $(".tabitem3").each(function() { + $(".tabitem3").each(function () { $(this).removeClass("tabitem-deactivated").addClass("tabitem-activated"); }); break; diff --git a/SuperScriptViewer/templates/about.html b/SuperScriptViewer/templates/about.html new file mode 100644 index 0000000..c73a03d --- /dev/null +++ b/SuperScriptViewer/templates/about.html @@ -0,0 +1,21 @@ + + + + + +
There are no secret script behind Virtools. Super Script Materializer will destroy all locks and show you the real code.
+But Super Script Materializer only show you code. It couldn't analyse the result and touch author's heart and intention. This is your work.
+This also is the meaning of this app's icon.
SuperScriptMaterializer. All codes are under GPLv3.
+Web interface is powered by Flask.
+Ancestor projects: BearKidsTeam/VirtoolsScriptDeobfuscation and BearKidsTeam/Script-Materializer.
+Thank chirs241097 and 2jjy.
Generated by SuperScriptMaterializer. All codes are under GPLv3.
-Powered by Flask.
-Ancestor projects: BearKidsTeam/VirtoolsScriptDeobfuscation and BearKidsTeam/Script-Materializer.
-Thank chirs241097 and 2jjy.
Generated by SuperScriptMaterializer
+