diff --git a/README.md b/README.md index 26dd29e..5d8877d 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ Installing 7. Navigate your browser to **imgboard.php** and the following will take place: - The database structure will be created. - Directories will be verified to be writable. - - The file **index.html** will be created containing the new image board. + - The board index will be written to ``TINYIB_INDEX``. Moderating ------------ diff --git a/imgboard.php b/imgboard.php index 4ef021e..e197ebf 100644 --- a/imgboard.php +++ b/imgboard.php @@ -540,10 +540,10 @@ if (isset($_POST['message']) || isset($_POST['file'])) { } echo managePage($text, $onload); -} elseif (!file_exists('index.html') || countThreads() == 0) { +} elseif (!file_exists(TINYIB_INDEX) || countThreads() == 0) { rebuildIndexes(); } if ($redirect) { - echo '--> --> -->'; + echo '--> --> -->'; } diff --git a/inc/defines.php b/inc/defines.php index 9774e90..4b7f24b 100644 --- a/inc/defines.php +++ b/inc/defines.php @@ -9,6 +9,9 @@ define('TINYIB_RESPAGE', true); // The following are provided for backward compatibility and should not be relied upon // Copy new settings from settings.default.php to settings.php +if (!defined('TINYIB_INDEX')) { + define('TINYIB_INDEX', 'index.html'); +} if (!defined('TINYIB_MAXREPLIES')) { define('TINYIB_MAXREPLIES', 0); } diff --git a/inc/html.php b/inc/html.php index 11adb6b..452b8e9 100644 --- a/inc/html.php +++ b/inc/html.php @@ -475,7 +475,7 @@ function rebuildIndexes() { $htmlposts .= buildPost($thread, TINYIB_INDEXPAGE) . implode('', array_reverse($htmlreplies)) . "\n