mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-01 05:44:41 +03:00
Add installation_in_progress function
This commit is contained in:
parent
58b89f7ae4
commit
b4ba38d770
@ -15,6 +15,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Indicate that installation in progress
|
||||
*/
|
||||
define('INSTALLATION_IN_PROGRESS', TRUE);
|
||||
|
||||
session_start();
|
||||
|
||||
require_once(dirname(dirname(__FILE__)).'/libs/config.php');
|
||||
|
@ -15,6 +15,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Indicate that installation in progress
|
||||
*/
|
||||
define('INSTALLATION_IN_PROGRESS', TRUE);
|
||||
|
||||
session_start();
|
||||
|
||||
require_once(dirname(dirname(__FILE__)).'/libs/config.php');
|
||||
|
@ -105,4 +105,17 @@ function array_flatten_recursive($arr) {
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if currently processed script is installation script.
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
function installation_in_progress() {
|
||||
if (!defined('INSTALLATION_IN_PROGRESS')) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return INSTALLATION_IN_PROGRESS;
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user