From 8970954933ecf4b5c842027faa7c52f85cc25fe2 Mon Sep 17 00:00:00 2001
From: Horus3
Date: Wed, 12 Mar 2014 02:50:30 +0100
Subject: Structure in functions. Stronger hash algorith for password safety,
also pepper.
---
www/functions/func_user.php | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 www/functions/func_user.php
(limited to 'www/functions/func_user.php')
diff --git a/www/functions/func_user.php b/www/functions/func_user.php
new file mode 100644
index 0000000..2e49651
--- /dev/null
+++ b/www/functions/func_user.php
@@ -0,0 +1,13 @@
+
+function user($db){
+ echo "loged in as: " . $_SESSION["username"];
+ $safe_name=SQLite3::escapeString("$_SESSION[username]");
+ $invite_db = $db->query("SELECT invites FROM user WHERE name='" . $safe_name . "';");
+ $invite_ar = $invite_db->fetchArray(SQLITE3_NUM);
+ $invite = $invite_ar[0];
+
+ echo "
";
+ echo "You have currently $invite invites.
";
+ return true;
+}
+
--
cgit v1.2.3