Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (21 sloc) 713 Bytes
<?php
require_once("library.php");
Core::init("installation");
// if the script is already installed, redirect them to the index page.
if (Core::checkIsInstalled()) {
header("location: index.php");
exit;
}
$currentPage = 1;
if (Core::checkSettingsFileExists()) {
$currentPage = 3;
if (Settings::getSetting("installationStepComplete_Core") == "yes") {
$currentPage = 4;
}
}
$params = array();
$params["theme"] = Core::getDefaultTheme();
$params["randomPassword"] = Utils::generateRandomAlphanumericStr("CVxxCxV");
$params["tablePrefix"] = Core::getDbTablePrefix();
$params["currentPage"] = $currentPage;
Templates::displayPage("resources/templates/install.tpl", $params);
Jump to Line
Something went wrong with that request. Please try again.