removed old, now invalid installation code from post.php
This commit is contained in:
parent
42d3a5e9f8
commit
cf79aed488
19
post.php
19
post.php
@ -581,24 +581,7 @@
|
|||||||
exit;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
if(!file_exists($config['has_installed'])) {
|
if(!file_exists($config['has_installed'])) {
|
||||||
|
header('Location: install.php', true, $config['redirect_http']);
|
||||||
|
|
||||||
// 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>"
|
|
||||||
)));
|
|
||||||
} else {
|
} else {
|
||||||
// They opened post.php in their browser manually.
|
// They opened post.php in their browser manually.
|
||||||
// Possible TODO: Redirect back to homepage.
|
// Possible TODO: Redirect back to homepage.
|
||||||
|
Loading…
Reference in New Issue
Block a user