From 139f00f5a0f27b919ba62df17db6278cd49b5324 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Fri, 28 Feb 2014 15:09:25 +0100 Subject: . --- www/index.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'www/index.php') 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(); -- cgit v1.2.3