summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2010-12-02 18:26:09 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2010-12-02 18:26:09 +1100
commitbbb791039821637c045b2378383b0eb167063a27 (patch)
treef71854748ddca1e45a06244f7baebdb7c6209674 /mod.php
parente16a05cda7e59041eb2a3c4ffd144d0d89c19f83 (diff)
Created basis for mod dashboard
Diffstat (limited to 'mod.php')
-rw-r--r--mod.php18
1 files changed, 17 insertions, 1 deletions
diff --git a/mod.php b/mod.php
index 44aada37..cbcddfb1 100644
--- a/mod.php
+++ b/mod.php
@@ -7,6 +7,7 @@
require 'inc/config.php';
require 'inc/template.php';
require 'inc/user.php';
+ require 'inc/mod.php';
// If not logged in
if(!$mod) {
@@ -45,7 +46,19 @@
if(preg_match('/^\/?$/', $query)) {
// Dashboard
-
+ // Body
+ $body = '';
+
+ $body .= '<fieldset><legend>Boards</legend>' .
+ ulBoards() .
+ '</fieldset>';
+
+ die(Element('page.html', Array(
+ 'index'=>ROOT,
+ 'title'=>'Dashboard',
+ 'body'=>$body
+ )
+ ));
} elseif(preg_match('/^\/' . $regex['board'] . '(' . preg_quote(FILE_INDEX, '/') . ')?$/', $query, $matches)) {
// Board index
@@ -59,5 +72,8 @@
error("Page not found.");
}
}
+
+ // Close the connection in-case it's still open
+ sql_close();
?>