forked from GithubBackups/tinyib
Flush output buffer immediately so update messages are displayed as the script executes
This commit is contained in:
parent
10fae56ca5
commit
81e4cd8c45
@ -6,6 +6,8 @@
|
|||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
ini_set("display_errors", 1);
|
ini_set("display_errors", 1);
|
||||||
session_start();
|
session_start();
|
||||||
|
ob_implicit_flush();
|
||||||
|
ob_end_flush();
|
||||||
|
|
||||||
if (get_magic_quotes_gpc()) {
|
if (get_magic_quotes_gpc()) {
|
||||||
foreach ($_GET as $key => $val) { $_GET[$key] = stripslashes($val); }
|
foreach ($_GET as $key => $val) { $_GET[$key] = stripslashes($val); }
|
||||||
@ -150,8 +152,10 @@ if (isset($_POST['message']) || isset($_POST['file'])) {
|
|||||||
if (strtolower($post['email']) == 'noko') {
|
if (strtolower($post['email']) == 'noko') {
|
||||||
$redirect = 'res/' . ($post['parent'] == TINYIB_NEWTHREAD ? $post['id'] : $post['parent']) . '.html#' . $post['id'];
|
$redirect = 'res/' . ($post['parent'] == TINYIB_NEWTHREAD ? $post['id'] : $post['parent']) . '.html#' . $post['id'];
|
||||||
}
|
}
|
||||||
|
|
||||||
trimThreads();
|
trimThreads();
|
||||||
echo 'Updating thread page...<br>';
|
|
||||||
|
echo 'Updating thread...<br>';
|
||||||
if ($post['parent'] != TINYIB_NEWTHREAD) {
|
if ($post['parent'] != TINYIB_NEWTHREAD) {
|
||||||
rebuildThread($post['parent']);
|
rebuildThread($post['parent']);
|
||||||
|
|
||||||
@ -162,7 +166,7 @@ if (isset($_POST['message']) || isset($_POST['file'])) {
|
|||||||
rebuildThread($post['id']);
|
rebuildThread($post['id']);
|
||||||
}
|
}
|
||||||
|
|
||||||
echo 'Updating thread index...<br>';
|
echo 'Updating index...<br>';
|
||||||
rebuildIndexes();
|
rebuildIndexes();
|
||||||
// Check if the request is to delete a post and/or its associated image
|
// Check if the request is to delete a post and/or its associated image
|
||||||
} elseif (isset($_GET['delete']) && !isset($_GET['manage'])) {
|
} elseif (isset($_GET['delete']) && !isset($_GET['manage'])) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user