diff options
Diffstat (limited to 'www/index.php')
| -rw-r--r-- | www/index.php | 8 |
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(); |
