summaryrefslogtreecommitdiff
path: root/www/functions/func_register.php
diff options
context:
space:
mode:
authormoehm2014-04-28 11:12:38 +0200
committermoehm2014-04-28 11:12:38 +0200
commit7c1299521f31d6eb733e29455ccad8c92cbc0a7b (patch)
tree572c80ad16cea71b79aad7d3291e06a03265c7c0 /www/functions/func_register.php
parent11ed3a4c720d9379beaf7f5770f297677da5d9a7 (diff)
downloadfiles.iamfabulous.de-7c1299521f31d6eb733e29455ccad8c92cbc0a7b.tar.gz
Unimportant changes #2
Diffstat (limited to 'www/functions/func_register.php')
-rwxr-xr-xwww/functions/func_register.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/www/functions/func_register.php b/www/functions/func_register.php
index b848866..cc2b8a3 100755
--- a/www/functions/func_register.php
+++ b/www/functions/func_register.php
@@ -46,6 +46,12 @@ function register($db){
return REGISTER_USERNAME;
}
+ # check for key words
+ if($name == "login" || $name == "logout" || $name == "register" || $name == "invite" || $name == "user" || $name == "download" || $name == "password_recover" || $name == "banned" || $name == "httperror" || $name == "robots.txt" || $name == "favicon.ico" || $name == "static"){
+ return REGISTER_USERNAME;
+ }
+
+
$id_db = $db->query("SELECT id FROM user WHERE email='" . $safe_email . "';");
$id_ar = $id_db->fetchArray(SQLITE3_NUM);
$id = $id_ar[0];