101 Zeilen
3.7 KiB
PHP
101 Zeilen
3.7 KiB
PHP
|
<?php
|
||
|
/**
|
||
|
* Project:
|
||
|
* Contenido Content Management System
|
||
|
*
|
||
|
* @package ContenidoBackendArea
|
||
|
* @version 0.2
|
||
|
* @author unknown
|
||
|
* @copyright four for business AG <www.4fb.de>
|
||
|
* @license http://www.contenido.org/license/LIZENZ.txt
|
||
|
* @link http://www.4fb.de
|
||
|
* @link http://www.contenido.org
|
||
|
*
|
||
|
* $Id: setupresults.php 377 2015-11-09 19:10:37Z oldperl $:
|
||
|
*/
|
||
|
if(!defined('CON_FRAMEWORK')) {
|
||
|
die('Illegal call');
|
||
|
}
|
||
|
|
||
|
|
||
|
class cSetupResults extends cSetupMask
|
||
|
{
|
||
|
function cSetupResults ($step)
|
||
|
{
|
||
|
$this->setHeader(i18n_setup("Results"));
|
||
|
|
||
|
|
||
|
if (!isset($_SESSION["install_failedchunks"]) && !isset($_SESSION["install_failedupgradetable"]) && !isset($_SESSION["configsavefailed"]))
|
||
|
{
|
||
|
cSetupMask::cSetupMask("templates/setup/forms/setupresults.tpl", $step);
|
||
|
$this->_oStepTemplate->set("s", "TITLE", i18n_setup("Results"));
|
||
|
$this->_oStepTemplate->set("s", "DESCRIPTION", i18n_setup("ConLite was installed and configured successfully on your server."));
|
||
|
if ($_SESSION["setuptype"] == 'setup') {
|
||
|
$this->_oStepTemplate->set("s", "LOGIN_INFO", '<p>'.i18n_setup("Please use username <b>sysadmin</b> and password <b>sysadmin</b> to login into ConLite Backend.").'</p>');
|
||
|
} else {
|
||
|
$this->_oStepTemplate->set("s", "LOGIN_INFO", '');
|
||
|
}
|
||
|
$this->_oStepTemplate->set("s", "CHOOSENEXTSTEP", i18n_setup("Please choose an item to start working:"));
|
||
|
$this->_oStepTemplate->set("s", "FINISHTEXT", i18n_setup("You can now start using ConLite. Please delete the folder named 'setup'!"));
|
||
|
|
||
|
|
||
|
list($root_path, $root_http_path) = getSystemDirectories();
|
||
|
|
||
|
|
||
|
|
||
|
$cHTMLButtonLink = new cHTMLButtonLink($root_http_path."/conlite/", "Backend - CMS");
|
||
|
$this->_oStepTemplate->set("s", "BACKEND", $cHTMLButtonLink->render());
|
||
|
|
||
|
if ($_SESSION["setuptype"] == "setup" && $_SESSION["clientmode"] == "CLIENTEXAMPLES")
|
||
|
{
|
||
|
$cHTMLButtonLink = new cHTMLButtonLink($root_http_path."/cms/", "Frontend - Web");
|
||
|
$this->_oStepTemplate->set("s", "FRONTEND", $cHTMLButtonLink->render());
|
||
|
} else {
|
||
|
$this->_oStepTemplate->set("s", "FRONTEND", "");
|
||
|
}
|
||
|
|
||
|
$cHTMLButtonLink = new cHTMLButtonLink("http://www.conlite.org/", "Conlite Website");
|
||
|
$this->_oStepTemplate->set("s", "WEBSITE", $cHTMLButtonLink->render());
|
||
|
/*
|
||
|
$cHTMLButtonLink = new cHTMLButtonLink("http://forum.contenido.org/", "Contenido Forum");
|
||
|
$this->_oStepTemplate->set("s", "FORUM", $cHTMLButtonLink->render());
|
||
|
|
||
|
$cHTMLButtonLink = new cHTMLButtonLink("http://faq.contenido.org/", "Contenido FAQ");
|
||
|
$this->_oStepTemplate->set("s", "FAQ", $cHTMLButtonLink->render());
|
||
|
*
|
||
|
*/
|
||
|
$this->_oStepTemplate->set("s", "FORUM", '');
|
||
|
$this->_oStepTemplate->set("s", "FAQ", '');
|
||
|
} else {
|
||
|
cSetupMask::cSetupMask("templates/setup/forms/setupresultsfail.tpl", $step);
|
||
|
$this->_oStepTemplate->set("s", "TITLE", i18n_setup("Setup Results"));
|
||
|
|
||
|
|
||
|
|
||
|
list($sRootPath, $rootWebPath) = getSystemDirectories();
|
||
|
|
||
|
if (file_exists($sRootPath . "/data/logs/setuplog.txt"))
|
||
|
{
|
||
|
$sErrorLink = '<a target="_blank" href="../data/logs/setuplog.txt">setuplog.txt</a>';
|
||
|
} else {
|
||
|
$sErrorLink = 'setuplog.txt';
|
||
|
}
|
||
|
|
||
|
$this->_oStepTemplate->set("s", "DESCRIPTION", sprintf(i18n_setup("An error occured during installation. Please take a look at the file %s (located in "data/logs/") for more information."), $sErrorLink));
|
||
|
|
||
|
switch ($_SESSION["setuptype"])
|
||
|
{
|
||
|
case "setup":
|
||
|
$this->setNavigation("setup1", "");
|
||
|
break;
|
||
|
case "upgrade":
|
||
|
$this->setNavigation("upgrade1", "");
|
||
|
break;
|
||
|
case "migration":
|
||
|
$this->setNavigation("migration1", "");
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
?>
|