* @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 * * $Id$: * }} * */ 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 .= ' '.strval($i).'    '; } return $sStepsPath; } function i18n_setup($sText) { return i18n($sText, "setup"); } ?>