Esempio n. 1
0
 } 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! ]=================================================== */
 // If the output config does not exist, or is totally empty
 if (IsInstallerDone() == false) {
     /* ===================================================[ WELCOME MESSAGE ]=================================================== */
     if ($steps[STEP_WELCOME]['enabled'] && $step == STEP_WELCOME) {
         $page->MainTitle($steps[STEP_WELCOME]['title'], 'home');
Esempio n. 2
0
		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! ]=================================================== */
        
        // If the output config does not exist, or is totally empty
        if(IsInstallerDone() == false)
        {   			
			/* ===================================================[ PHP MODULE CHECK ]=================================================== */

			$phpmodules = true;