summaryrefslogtreecommitdiff
path: root/www/index.php
diff options
context:
space:
mode:
authorHorus32014-02-28 15:09:25 +0100
committerHorus32014-02-28 15:09:25 +0100
commit139f00f5a0f27b919ba62df17db6278cd49b5324 (patch)
tree7843804da9a03ec05a3717123cc07fcd31a8bd45 /www/index.php
parentffe5fc7b12fbb9c13fb1477ae97417fac3f643ca (diff)
downloadfiles.iamfabulous.de-139f00f5a0f27b919ba62df17db6278cd49b5324.tar.gz
.
Diffstat (limited to 'www/index.php')
-rw-r--r--www/index.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/www/index.php b/www/index.php
index eb96364..7105c98 100644
--- a/www/index.php
+++ b/www/index.php
@@ -4,6 +4,8 @@ session_start();
require_once("functions.php");
+$db = new SQLite3("../database/sqlite.db");
+
if(empty($_GET)){
if($_SESSION["login"]){
header("Refresh: 0; /$_SESSION[username]");
@@ -20,16 +22,16 @@ if(empty($_GET)){
if(empty($_GET["name"])){
switch($_GET["task"]){
case("login"):
- login();
+ login($db);
break;
case("logout"):
logout();
break;
case("invite"):
- invite();
+ invite($db);
break;
case("register"):
- register();
+ register($db);
break;
/* case("download"): //not implemented yet
download();