From 9847c616a2ccc60ace80e8fbfafbc99673b09a43 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 23 Feb 2014 18:36:06 +0100 Subject: minor --- blob/nginx_rewrite_rules | 15 ++++++++------- www/functions.php | 9 +++++---- www/index.php | 13 +++++++++---- www/select.php | 22 +++++++++++++--------- 4 files changed, 35 insertions(+), 24 deletions(-) diff --git a/blob/nginx_rewrite_rules b/blob/nginx_rewrite_rules index 950ae78..1a1a238 100644 --- a/blob/nginx_rewrite_rules +++ b/blob/nginx_rewrite_rules @@ -1,26 +1,27 @@ -location /robots.txt {} +location /robots.txt {} #stop rewriting the robots.txt location ~* ^/?login(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? { - rewrite ^/?login(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? /index.php?task=login&arguments=$1 last; + rewrite ^/?login(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? /index.php?task=login&arguments=$1 last; } location ~* ^/?logout([?/]?.*) { - rewrite ^/?logout([?/]?.*) /index.php?task=logout&arguments=$1 last; + rewrite ^/?logout([?/]?.*) /index.php?task=logout&arguments=$1 last; } location ~* ^/?register(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? { - rewrite ^/?register(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? /index.php?task=register&arguments=$1 last; + rewrite ^/?register(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? /index.php?task=register&arguments=$1 last; } location ~* ^/?invite(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? { - rewrite ^/?invite(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? /index.php?task=invite&arguments=$1 last; + rewrite ^/?invite(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? /index.php?task=invite&arguments=$1 last; } location ~* \.php(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? {} #empty block to catch all location / { - rewrite ^/([0-9a-zA-Z-_]*)/(.*) /index.php?name=$1&folder=$2 last; - rewrite ^/([0-9a-zA-Z-_]*) /index.php?name=$1&folder=$2 last; + rewrite ^/([0-9a-zA-Z-_]+)/(.*) /index.php?name=$1&folder=$2 last; + rewrite ^/([0-9a-zA-Z-_]+) /index.php?name=$1 last; + rewrite ^/ /index.php last; break; } diff --git a/www/functions.php b/www/functions.php index 188c3b1..562b393 100644 --- a/www/functions.php +++ b/www/functions.php @@ -60,14 +60,14 @@ function login(){ } else { foreach ($_GET as $argument => $value) { if(preg_match("/success/",$argument)) - $logout="Successfull loged out!"; + $logout="Log out was succesfull!"; } if($logout){ echo $logout; } - echo "