diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2010-12-02 01:17:27 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2010-12-02 01:17:27 +1100 |
| commit | 162fcff691f8bd4a14e1985131af3a1fd52a7ff9 (patch) | |
| tree | d6285c717a8945724840d117c6869d41e756103b /mod.php | |
| parent | 3e91dbadd449e4f0e189c2b2dce33d782af31f6f (diff) | |
Added basis for query handling.
Diffstat (limited to 'mod.php')
| -rw-r--r-- | mod.php | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -34,6 +34,22 @@ loginForm(); } } else { + $query = $_SERVER['QUERY_STRING']; + $regex = Array( + 'board' => str_replace('%s', '\w{1,8}', preg_quote(BOARD_PATH, '/')) + ); + + // Dashboard + if(preg_match('/^\/?$/', $query)) { + + + // Board index + } elseif(preg_match('/^\/' . $regex['board'] . '(' . preg_quote(FILE_INDEX, '/') . ')?$/', $query)) { + + + } else { + error("Page not found."); + } // The rest is not done yet... } ?> |
