summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-10-08 19:08:46 +1100
committerSavetheinternet <savetheinternet@tinyboard.org>2011-10-08 19:08:46 +1100
commitcf79aed4884ddf01e71e9cf91d7af216ab69c1f9 (patch)
treebee8b8aae97d04c37327b71dc7592d78844385ca /post.php
parent42d3a5e9f84f6006bde0eee67b2221e354db2dfa (diff)
removed old, now invalid installation code from post.php
Diffstat (limited to 'post.php')
-rw-r--r--post.php19
1 files changed, 1 insertions, 18 deletions
diff --git a/post.php b/post.php
index b679c85d..06857daa 100644
--- a/post.php
+++ b/post.php
@@ -581,24 +581,7 @@
exit;
} else {
if(!file_exists($config['has_installed'])) {
-
-
- // Build all boards
- $boards = listBoards();
- foreach($boards as &$_board) {
- setupBoard($_board);
- buildIndex();
- }
-
- touch($config['has_installed'], 0777);
-
- die(Element('page.html', Array(
- 'index'=>ROOT,
- 'title'=>'Success',
- 'body'=>"<center>" .
- "<h2>Tinyboard is now installed!</h2>" .
- "</center>"
- )));
+ header('Location: install.php', true, $config['redirect_http']);
} else {
// They opened post.php in their browser manually.
// Possible TODO: Redirect back to homepage.