public function __construct($scenario = 'insert') { parent::__construct($scenario); if (empty(CDao::$_dbConfig)) { CDao::$_dbConfig = dbConfig(); } }
page_footer(); exit; } $query_count++; } } } // WRITE CONFIG FILE // -------------------------------------------------------------------- // -------------------------------------------------------------------- $config = array('app_version' => $data['app_version'], 'db_hostname' => $data['db_hostname'], 'db_username' => $data['db_username'], 'db_password' => $data['db_password'], 'db_name' => $data['db_name'], 'db_type' => $data['database'], 'db_conntype' => $data['db_conntype'], 'system_folder' => $data['system_dir'], 'cp_url' => $data['cp_url'], 'site_url' => $data['site_url'], 'default_timezone' => $data['default_timezone']); // -------------------------------------------------------------------- // Write config files // -------------------------------------------------------------------- mainConfig($config); dbConfig($config); posConfig($config); // Show "success" page // -------------------------------------------------------------------- // -------------------------------------------------------------------- ?> <div id='innercontent'> <h3>Smart Restaurant has been successfully installed!</h3> <div class="border"><p><span class="red"><b>Important:</b> Using your FTP program, please delete the directory called <b>install.php</b> from your server.<br />Leaving it on your server presents a security risk.</span></p></div> <p><br /><b>Now you can start using Smart Restaurant:</b></p> <p><a href='../administrator/index.php' target="_blank">Click here to access your control panel</a></p>