Ejemplo n.º 1
0
    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.)
    $mask->SetKeywords();
Ejemplo n.º 2
0
    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();
            
		
        /* ===================================================[ INSTALLATION BEGINS! ]=================================================== */