summaryrefslogtreecommitdiff
path: root/www/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/index.php')
-rw-r--r--www/index.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/www/index.php b/www/index.php
index d1f86ee..77a29e6 100644
--- a/www/index.php
+++ b/www/index.php
@@ -3,6 +3,7 @@
session_start();
require_once("functions.php");
+require_once("interface_functions.php");
$db = new SQLite3("../database/sqlite.db");
@@ -49,7 +50,9 @@ if(empty($_GET)){
/* shows the user content, main function */
- $content = show($db);
- var_dump($content);
+ if(rewrite($db)){
+ $content = select($db);
+ show($content);
+ }
}
}