Esempio n. 1
0
require_once __ROOT__ . '/functions.php';
require_once __ROOT__ . '/lib/comalate/comalate.class.php';
require_once __ROOT__ . '/install/install.class.php';
// ComaLib
$lib = new ComaLib();
// SqlConnection to prevent errors
$sqlConnection = new Sql('', '', '');
// Get style for the page
$extern_style = GetPostOrGet('style');
if (empty($extern_style)) {
    $extern_style = 'comacms';
}
// ComaLate for output replacements and template support
$output = new ComaLate();
$output->LoadTemplate('../styles/', $extern_style);
$output->AddCssFile('./install.css');
$output->SetMeta('generator', 'ComaCMS v0.2 (http://comacms.berlios.de)');
$output->SetCondition('notinadmin', true);
$output->SetCondition('notathome', true);
$output->Title = 'ComaCMS - Installation';
// Get the actual subpage of the installation
$extern_page = 1;
$extern_page = GetPostOrGet('page');
// Check external page
if (!is_numeric($extern_page)) {
    $extern_page = 1;
}
// Local language variable
$language = '';
// try to get the language-setting from the language-cookie
if (isset($_COOKIE['ComaCMS_user_lang'])) {