2016-10-06 15:57:01 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Project:
|
|
|
|
* Contenido Content Management System
|
|
|
|
*
|
|
|
|
* Description:
|
|
|
|
* Contains setup related functions
|
|
|
|
*
|
|
|
|
* Requirements:
|
|
|
|
* @con_php_req 5
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @package Contenido setup
|
|
|
|
* @version 0.3.1
|
|
|
|
* @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
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* {@internal
|
|
|
|
* created unknown
|
|
|
|
* modified 2008-07-07, bilal arslan, added security fix
|
|
|
|
* modified 2011-02-08, Dominik Ziegler, removed old PHP compatibility stuff as contenido now requires at least PHP 5
|
|
|
|
* modified 2011-05-19, Murat Purc, check for defined constant C_SETUP_STEPS to prevent thrown warnings
|
|
|
|
*
|
2019-07-03 11:58:28 +00:00
|
|
|
* $Id$:
|
2016-10-06 15:57:01 +00:00
|
|
|
* }}
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
if (!defined('CON_FRAMEWORK')) {
|
|
|
|
die('Illegal call');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Generates the step display.
|
|
|
|
*
|
|
|
|
* @param int iCurrentStep The current step to display active.
|
|
|
|
* @return string
|
|
|
|
* @modified 2008-02-26 Rudi Bieller
|
|
|
|
*/
|
|
|
|
function cGenerateSetupStepsDisplay($iCurrentStep)
|
|
|
|
{
|
|
|
|
if (!defined('C_SETUP_STEPS')) {
|
|
|
|
return '';
|
|
|
|
}
|
|
|
|
$sStepsPath = '';
|
|
|
|
for ($i=1; $i < C_SETUP_STEPS + 1; $i++) {
|
|
|
|
$sCssActive = '';
|
|
|
|
if ($iCurrentStep == $i) {
|
|
|
|
$sCssActive = 'background-color:#fff;color:#0060B1;';
|
|
|
|
}
|
|
|
|
$sStepsPath .= '<span style="'.$sCssActive.'"> '.strval($i).' </span> ';
|
|
|
|
}
|
|
|
|
return $sStepsPath;
|
|
|
|
}
|
|
|
|
|
|
|
|
function i18n_setup($sText) {
|
|
|
|
return i18n($sText, "setup");
|
|
|
|
}
|
|
|
|
?>
|