diff --git a/theonionbox/config/theonionbox.cfg b/theonionbox/config/theonionbox.cfg index ddd0ed8..63448ff 100644 --- a/theonionbox/config/theonionbox.cfg +++ b/theonionbox/config/theonionbox.cfg @@ -20,7 +20,6 @@ message_level = DEBUG # 8080 should be fine in most cases! port = 8080 -# New in v2.1.2RC1: # Per default, the Box operates at the root level of a domain e.g. http://localhost:8080/. # If you intend to operate it (behind a proxy!) at a deeper level (e.g. @ http://my.server.com/theonionbox/) # you have to define that base path here. You are not limited to a single path element. @@ -28,16 +27,20 @@ port = 8080 # no trailing slash, no quotation marks: # proxy_path = /theonionbox -# The duration we accept between the delivery of the login_page -# and the request for login (in seconds) -login_ttl = 30 +# Deprecated since 20161008 +# login_ttl -# Define the webserver used for serving the pages: -# This is the standard WSGIRefServer server -# Remark: This server cannot process IE requests! -# Thus: Don't use it if you expect clients operating with IE! -server = default -# Enable this if you've CherryPy available +# The acceptable duration in seconds between two communication events of a client to the Box. +# If this duration is exceeded, the Box will expire the session. +session_ttl = 30 +# Note: This is applicable for login procedures as well as monitoring activities. +# Note: The minimum duration accepted == 30, max == 3600. Values will be forced into that range. + + +# Define the webserver used for serving the pages. +# Usually 'default' is ok! +sever = default +# Alternatively the Box can operate with CherryPy - if it's available # server = cherrypy # Shall we operate with SSL? diff --git a/theonionbox/pages/index.html b/theonionbox/pages/index.html index a8feede..9eb23ba 100644 --- a/theonionbox/pages/index.html +++ b/theonionbox/pages/index.html @@ -54,12 +54,15 @@ out = '' if div_open: out += '<' + '/div>' # written in this way to not confuse the PyCharm IDE + div_open = False + end + if len(section) > 1: + out += '<' + 'div id ="{}">'.format(section[1:]) + div_open = True end - out += '<' + 'div id ="{}">'.format(section[1:]) %> {{!out}} <% - div_open = True continue end diff --git a/theonionbox/sections/login/login.html b/theonionbox/sections/login/login.html index 3e108e0..40d69da 100644 --- a/theonionbox/sections/login/login.html +++ b/theonionbox/sections/login/login.html @@ -5,31 +5,43 @@ %> -{{!header_row('Tor', 'Login Request')}} +
+ {{!header_row('Tor', 'Login Request')}} -
+ + +
+
+

Password

+
+
+
+ +
+
-
-
-

Password

-
+ +
+
+

+
+
- +
+
- -
- + +
+