|
@@ -1,5 +1,11 @@
|
|
|
<?php
|
|
|
|
|
|
+if(strpos($_SERVER['REQUEST_URI'], 'installer/') !== false){
|
|
|
+ die('You cannot directly access the installer files.');
|
|
|
+}
|
|
|
+
|
|
|
+/*-----------------------------------------------------------------------------*/
|
|
|
+
|
|
|
define('INSTALLER_MAX_STEP', 6);
|
|
|
|
|
|
define('INSTALLER_TYPE_CREATE', 0);
|
|
@@ -26,6 +32,8 @@ $installerStepMapping = array(
|
|
|
7 => 6,
|
|
|
);
|
|
|
|
|
|
+/*-----------------------------------------------------------------------------*/
|
|
|
+
|
|
|
function installer_reset()
|
|
|
{
|
|
|
global $_SESSION;
|
|
@@ -78,6 +86,8 @@ if(!isset($_SESSION['installer'])){
|
|
|
installer_reset();
|
|
|
}
|
|
|
|
|
|
+/*-----------------------------------------------------------------------------*/
|
|
|
+
|
|
|
$step = (isset($_GET['step']) && is_numeric($_GET['step'])) ? intval($_GET['step']) : 0;
|
|
|
|
|
|
echo '<h1>Installation of WebMUM</h1>';
|