Ejemplo n.º 1
0
$basePath = realpath(dirname(__FILE__));
if (!@(include_once $basePath . '/config/config.php')) {
    die('Unable to load file ' . $basePath . '/config/config.php');
}
require_once $basePath . '/classloader.inc.php';
@header('content-type: text/html; charset=' . ($useUtf8 ? 'UTF-8' : 'ISO-8859-1'));
if (!@(include_once ASCMS_LIBRARY_PATH . '/PEAR/HTML/Template/Sigma/Sigma.php')) {
    die('Unable to load file ' . ASCMS_LIBRARY_PATH . '/PEAR/HTML/Template/Sigma/Sigma.php');
}
if (!@(include_once $basePath . '/common.class.php')) {
    die('Unable to load file ' . $basePath . '/common.class.php');
}
if (!@(include_once $basePath . '/installer.class.php')) {
    die('Unable to load file ' . $basePath . '/installer.class.php');
}
if (!@(include_once $basePath . '/../core/Env.class.php')) {
    die('Unable to load file ' . $basePath . '/../core/Env.class.php');
}
$objCommon = new CommonFunctions();
$objInstaller = new Installer();
$objCommon->initLanguage();
$objTpl = new HTML_Template_Sigma($templatePath);
$objTpl->setErrorHandling(PEAR_ERROR_DIE);
$objTpl->loadTemplateFile('index.html');
$objTpl->setVariable('CHARSET', $useUtf8 ? 'UTF-8' : 'ISO-8859-1');
$objTpl->setVariable($_ARRLANG);
$objInstaller->checkOptions();
$objInstaller->getNavigation();
$objInstaller->getPage();
$objInstaller->getContentNavigation();
$objTpl->show();