Example #1
0
foreach ($includes as $include) {
    $file = $assetFolder . DIRECTORY_SEPARATOR . $include;
    if (!is_file($file) || !is_readable($file)) {
        die('The file <b>' . $file . '</b> is either not found or is unreadable');
    }
}
/********************************[ ENABLED STEPS ]********************************/
define('INST_RUNSCRIPT', pathinfo(__FILE__, PATHINFO_BASENAME));
define('INST_BASEDIR', str_replace(INST_RUNSCRIPT, '', __FILE__));
define('INST_RUNFOLDER', '');
define('INST_RUNINSTALL', 'installer.php');
include 'configuration.php';
include $assetFolder . DIRECTORY_SEPARATOR . 'class.htmlmaker.php';
include $assetFolder . DIRECTORY_SEPARATOR . 'class.masks.php';
$page = new Inst_HtmlMaker();
$mask = new Inst_Masks();
$page->HideDisabledSteps(false);
$page->HideAutoskipSteps(false);
$page->UseStepWait(false);
// Get the settings for some requested step
$step = isset($_REQUEST['step']) ? $_REQUEST['step'] : 'overview';
$sett = false;
if (isset($steps[$step])) {
    $sett = $steps[$step];
}
// If the settings are 'false', then the step is not
// configured in the $steps variable - show $config overview!
if ($sett === false) {
    $page->MainTitle('Main Configuration', 'settings');
    $page->StartTable(2, array('class' => 'dbtests'));
    foreach ($config as $key => $value) {
Example #2
0
    // If the installer WILL display something
    else
    {
        session_start();

		// Turns of PHP error messages - or embraze them
		if($config['show_php_error_messages'])
			 error_reporting(E_ALL);
		else error_reporting(0);
        
        // Include and create instanses of the other classes
		include('assets'.DIRECTORY_SEPARATOR.'class.masks.php');
        require('assets'.DIRECTORY_SEPARATOR.'class.htmlmaker.php');        
        require('assets'.DIRECTORY_SEPARATOR.'class.databases.php');
        $page = new Inst_HtmlMaker();
        $mask = new Inst_Masks();
        $dbase = new Inst_Databases();
        
        // Load session helper, which handles all POST and GET, and stores 
		// changes automatically to sessions, encrypts and decrypts etc.
        require('assets'.DIRECTORY_SEPARATOR.'helper.sessions.php');

		// Add to page maker that some data has to be shown on the top of the page
		if($config['debug_sessions']) $page->AddToDebug('Sessions:', $_SESSION[$config['session_prefix']]);
		if($config['debug_posts']) $page->AddToDebug('POST data:', $_POST);
		if($config['debug_gets']) $page->AddToDebug('GET data:', $_GET);
        
        // Update the mask class with updated keywords (with login, database etc.)
        $mask->SetKeywords();
            
		
Example #3
0
    unset($keywords);
    unset($steps);
} else {
    session_start();
    // Turns of PHP error messages - or embraze them
    if ($config['show_php_error_messages']) {
        error_reporting(E_ALL);
    } else {
        error_reporting(0);
    }
    // Include and create instanses of the other classes
    include 'assets' . DIRECTORY_SEPARATOR . 'class.masks.php';
    require 'assets' . DIRECTORY_SEPARATOR . 'class.htmlmaker.php';
    require 'assets' . DIRECTORY_SEPARATOR . 'class.databases.php';
    $page = new Inst_HtmlMaker();
    $mask = new Inst_Masks();
    $dbase = new Inst_Databases();
    // Load session helper, which handles all POST and GET, and stores
    // changes automatically to sessions, encrypts and decrypts etc.
    require 'assets' . DIRECTORY_SEPARATOR . 'helper.sessions.php';
    // Add to page maker that some data has to be shown on the top of the page
    if ($config['debug_sessions']) {
        $page->AddToDebug('Sessions:', $_SESSION[$config['session_prefix']]);
    }
    if ($config['debug_posts']) {
        $page->AddToDebug('POST data:', $_POST);
    }
    if ($config['debug_gets']) {
        $page->AddToDebug('GET data:', $_GET);
    }
    // Update the mask class with updated keywords (with login, database etc.)
Example #4
0

	/********************************[ ENABLED STEPS ]********************************/

	define('INST_RUNSCRIPT', pathinfo(__FILE__, PATHINFO_BASENAME));
    define('INST_BASEDIR',	 str_replace(INST_RUNSCRIPT, '', __FILE__));
    define('INST_RUNFOLDER', '');
	define('INST_RUNINSTALL', 'installer.php');

	include('configuration.php');
	include($assetFolder.DIRECTORY_SEPARATOR.'class.htmlmaker.php');
	include($assetFolder.DIRECTORY_SEPARATOR.'class.masks.php');
	include($assetFolder.DIRECTORY_SEPARATOR.'helper.functions.php');

	$page = new Inst_HtmlMaker();
    $mask = new Inst_Masks();

	$page->HideDisabledSteps(false);
	$page->HideIsHiddenSteps(false);
	$page->UseStepWait(false);
	
	// Get the settings for some requested step
	$step = (isset($_REQUEST['step'])) ? $_REQUEST['step'] : 'overview';
	$sett = false;
	if(isset($steps[$step]))
		$sett = $steps[$step];

	$keywords[STEP_ADDEDINFO] = array();
	foreach($steps[STEP_ADDEDINFO]['form'] as $control)
	{
		if(is_array($control) && isset($control['keyword']))