mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
SQLs are performed up to an execution time of 45s, then a page reload is induced to avoid fcgi/cgi/modphp timeouts.
This commit is contained in:
+3
-2
@@ -317,6 +317,7 @@ elseif($stage == "2") {
|
||||
$config['db_name']=$dbname;
|
||||
$config['db']['extension']='mysqli';
|
||||
$sql_file = '../build.sql';
|
||||
$_SESSION['last'] = time();
|
||||
ob_end_flush();
|
||||
ob_start();
|
||||
if ($_SESSION['offset'] < 100 && $_REQUEST['offset'] < 94) {
|
||||
@@ -325,11 +326,11 @@ elseif($stage == "2") {
|
||||
else {
|
||||
require '../includes/sql-schema/update.php';
|
||||
}
|
||||
$_SESSION['out'] .= ob_get_clean().PHP_EOL;
|
||||
$_SESSION['out'] .= ob_get_clean();
|
||||
ob_end_clean();
|
||||
ob_start();
|
||||
echo $GLOBALS['refresh'];
|
||||
echo "<pre>".$_SESSION['out']."</pre>";
|
||||
echo "<pre>".trim($_SESSION['out'])."</pre>";
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
|
||||
Reference in New Issue
Block a user