2016-10-06 15:57:01 +00:00
< ? php
2017-01-13 12:45:12 +00:00
2016-10-06 15:57:01 +00:00
/**
* Project :
* Contenido Content Management System
*
* @ package ContenidoBackendArea
* @ version 0.2
* @ author unknown
* @ copyright four for business AG < www . 4 fb . de >
* @ license http :// www . contenido . org / license / LIZENZ . txt
* @ link http :// www . 4 fb . de
* @ link http :// www . contenido . org
*
2019-07-03 11:58:28 +00:00
* $Id $ :
2016-10-06 15:57:01 +00:00
*/
2017-01-13 12:45:12 +00:00
if ( ! defined ( 'CON_FRAMEWORK' )) {
die ( 'Illegal call' );
2016-10-06 15:57:01 +00:00
}
2017-01-13 12:45:12 +00:00
class cSetupResults extends cSetupMask {
public function __construct ( $step ) {
$this -> setHeader ( i18n_setup ( " Results " ));
2016-10-06 15:57:01 +00:00
2017-01-13 12:45:12 +00:00
if ( ! isset ( $_SESSION [ " install_failedchunks " ]) && ! isset ( $_SESSION [ " install_failedupgradetable " ]) && ! isset ( $_SESSION [ " configsavefailed " ])) {
parent :: __construct ( " 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. " ));
2016-10-06 15:57:01 +00:00
if ( $_SESSION [ " setuptype " ] == 'setup' ) {
2017-01-13 12:45:12 +00:00
$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>' );
2016-10-06 15:57:01 +00:00
} else {
$this -> _oStepTemplate -> set ( " s " , " LOGIN_INFO " , '' );
}
2017-01-13 12:45:12 +00:00
$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 ());
2017-06-09 08:44:15 +00:00
$cHTMLButtonLink = new cHTMLButtonLink ( " http://forum.conlite.org/ " , " ConLite Forum " );
$this -> _oStepTemplate -> set ( " s " , " FORUM " , $cHTMLButtonLink -> render ());
2017-01-13 12:45:12 +00:00
$cHTMLButtonLink = new cHTMLButtonLink ( " https://faq.conlite.org/ " , " ConLite FAQ " );
$this -> _oStepTemplate -> set ( " s " , " FAQ " , $cHTMLButtonLink -> render ());
} else {
parent :: __construct ( " 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 ;
}
}
}
2016-10-06 15:57:01 +00:00
}
2017-01-13 12:45:12 +00:00
2016-10-06 15:57:01 +00:00
?>