mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Enhance upgrade show during install (#2676)
the install uses upgrade_domains.php, update it to use well known varibles to show output
This commit is contained in:
@@ -45,7 +45,7 @@
|
|||||||
echo "access denied";
|
echo "access denied";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
$display_type = 'html';
|
$display_type = 'html'; //html, text
|
||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
set_include_path($document_root);
|
set_include_path($document_root);
|
||||||
require_once "resources/require.php";
|
require_once "resources/require.php";
|
||||||
$_SERVER["DOCUMENT_ROOT"] = $document_root;
|
$_SERVER["DOCUMENT_ROOT"] = $document_root;
|
||||||
$format = 'text'; //html, text
|
$display_type = 'text'; //html, text
|
||||||
}
|
}
|
||||||
else if (!$included) {
|
else if (!$included) {
|
||||||
include "root.php";
|
include "root.php";
|
||||||
@@ -45,13 +45,14 @@
|
|||||||
echo "access denied";
|
echo "access denied";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
$format = 'html'; //html, text
|
$display_type = 'html'; //html, text
|
||||||
}
|
}
|
||||||
|
|
||||||
//run all app_defaults.php files
|
//run all app_defaults.php files
|
||||||
require_once "resources/classes/config.php";
|
require_once "resources/classes/config.php";
|
||||||
require_once "resources/classes/domains.php";
|
require_once "resources/classes/domains.php";
|
||||||
$domain = new domains;
|
$domain = new domains;
|
||||||
|
$domain->display_type = $display_type;
|
||||||
$domain->upgrade();
|
$domain->upgrade();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user