aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
Diffstat (limited to 'cgi')
-rw-r--r--cgi/templates/kako.html4
-rw-r--r--cgi/templates/revision.html2
-rw-r--r--cgi/templates/stats.html2
-rwxr-xr-xcgi/weabot.py4
4 files changed, 6 insertions, 6 deletions
diff --git a/cgi/templates/kako.html b/cgi/templates/kako.html
index 49d95df..921606e 100644
--- a/cgi/templates/kako.html
+++ b/cgi/templates/kako.html
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="#{static_url}img/favicon.ico" />
<style type="text/css">
- body {margin:8px}
+ body {background:#FFF;color:#000;margin:8px}
h1 {margin:0 0 20px}
pre {margin:0}
.fake {color:#0000EE;text-decoration:underline;cursor:pointer}
@@ -55,6 +55,6 @@
</table>
<hr />
</pre>
-<address>weabot/0.8.4 (CentOS) Servidor ubicado en bienvenidoainternet.org Puerto 443</address>
+<address>weabot/<?py include('templates/revision.html') ?> (Debian GNU/Linux) Servidor ubicado en bienvenidoainternet.org Puerto 443</address>
</body>
</html> \ No newline at end of file
diff --git a/cgi/templates/revision.html b/cgi/templates/revision.html
index 6201b5f..5c5cbb3 100644
--- a/cgi/templates/revision.html
+++ b/cgi/templates/revision.html
@@ -1 +1 @@
-0.8.8
+0.8.8 \ No newline at end of file
diff --git a/cgi/templates/stats.html b/cgi/templates/stats.html
index dd0e5ab..6cfe4f1 100644
--- a/cgi/templates/stats.html
+++ b/cgi/templates/stats.html
@@ -160,4 +160,4 @@ td a{display:block;padding:5px}
<div id="foot">B.a.I. - 2010-2019 ยท Contacto: <a href="mailto:burocracia@bienvenidoainternet.org">burocracia@bienvenidoainternet.org</a></div>
</body>
-</html>
+</html> \ No newline at end of file
diff --git a/cgi/weabot.py b/cgi/weabot.py
index a85c2e7..f5451d9 100755
--- a/cgi/weabot.py
+++ b/cgi/weabot.py
@@ -39,7 +39,7 @@ class weabot(object):
self.start = start_response
- if self.environ["QUERY_STRING"] != "rawpost":
+ if self.environ.get("QUERY_STRING") != "rawpost":
self.formdata = getFormData(self)
self.output = ""
@@ -599,7 +599,7 @@ class weabot(object):
# process files
if oek_file:
try:
- fname = "%s/%s/temp/%s.png" % (Settings.IMAGES_DIR, board['dir'], oek_file)
+ fname = os.path.join(Settings.IMAGES_DIR, board['dir'], "temp", oek_file + ".png")
with open(fname, 'rb') as f:
file = f.read()
except: