Esempio n. 1
0
// Version
define('VERSION', '2.0');
// Configuration
if (is_file('config.php')) {
    require_once 'config.php';
}
// Install
if (!defined('DIR_APPLICATION')) {
    header('Location: ../install/index.php');
    exit;
}
// Modification
require_once DIR_SYSTEM . 'engine/modification.php';
$modification = new Modification();
// Startup
require_once $modification->getFile(DIR_SYSTEM . 'startup.php');
// Application
require_once $modification->getFile(DIR_SYSTEM . 'library/currency.php');
require_once $modification->getFile(DIR_SYSTEM . 'library/user.php');
require_once $modification->getFile(DIR_SYSTEM . 'library/weight.php');
require_once $modification->getFile(DIR_SYSTEM . 'library/length.php');
// Registry
$registry = new Registry();
// Modification
$registry->set('modification', $modification);
// Config
$config = new Config();
$registry->set('config', $config);
// Database
$db = new DB(DB_DRIVER, DB_HOSTNAME, DB_USERNAME, DB_PASSWORD, DB_DATABASE);
$registry->set('db', $db);
Esempio n. 2
0
if (is_file('config.php')) {
	require_once('config.php');
}

// Install
if (!defined('DIR_APPLICATION')) {
	header('Location: install/index.php');
	exit;
}

// Modification
require_once(DIR_SYSTEM . 'engine/modification.php');
$modification = new Modification();

// Startup
require_once($modification->getFile(DIR_SYSTEM . 'startup.php'));

// Application
require_once($modification->getFile(DIR_SYSTEM . 'library/customer.php'));
require_once($modification->getFile(DIR_SYSTEM . 'library/affiliate.php'));
require_once($modification->getFile(DIR_SYSTEM . 'library/currency.php'));
require_once($modification->getFile(DIR_SYSTEM . 'library/tax.php'));
require_once($modification->getFile(DIR_SYSTEM . 'library/weight.php'));
require_once($modification->getFile(DIR_SYSTEM . 'library/length.php'));
require_once($modification->getFile(DIR_SYSTEM . 'library/cart.php'));

// Registry
$registry = new Registry();

// Modification
$registry->set('modification', $modification);