From cf79aed4884ddf01e71e9cf91d7af216ab69c1f9 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sat, 8 Oct 2011 19:08:46 +1100 Subject: [PATCH] removed old, now invalid installation code from post.php --- post.php | 19 +------------------ 1 file changed, 1 insertion(+), 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'=>"
" . - "

Tinyboard is now installed!

" . - "
" - ))); + header('Location: install.php', true, $config['redirect_http']); } else { // They opened post.php in their browser manually. // Possible TODO: Redirect back to homepage.