* @license http://www.contenido.org/license/LIZENZ.txt * @link http://www.4fb.de * @link http://www.contenido.org * * * * {@internal * created 2008-03-14 * modified 2008-03-25, Timo Trautmann, integrated function checkExistingPlugin() which checks if a plugin is already installed * modified 2008-07-07, bilal arslan, added security fix * modified 2011-03-21, Murat Purc, usage of new db connection * * $Id$: * }} * */ if (!defined('CON_FRAMEWORK')) { die('Illegal call'); } class cSetupAdditionalPlugins extends cSetupMask { public function __construct($step, $previous, $next) { $db = getSetupMySQLDBConnection(); parent::__construct("templates/setup/forms/additionalplugins.tpl", $step); $this->setHeader(i18n_setup("Additional Plugins")); $this->_oStepTemplate->set("s", "TITLE", i18n_setup("Additional Plugins")); $this->_oStepTemplate->set("s", "DESCRIPTION", i18n_setup("Please select Plugins to be installed")); // add new plugins to this array and you're done. $aPlugins = array(); //$aPlugins['plugin_newsletter'] = array('label' => i18n_setup('Newsletter'), 'desc' => i18n_setup('Newsletterfunctionality for dispatching text newsletters and HTML-Newsletters, extensible with professional newsletter extensions. Definition of newsletter recipients and groups of recipients. Layout design of the HTML-Newsletters by ConLite articles.')); //$aPlugins['plugin_content_allocation'] = array('label' => i18n_setup('Content Allocation'), 'desc' => i18n_setup('For the representation and administration of content, 4fb developed the Content Allocation and content include technology. This technology dynamically allows on basis of a Template, to put the content in different places and in different formats according to several criteria.')); //$aPlugins['plugin_mod_rewrite'] = array('label' => i18n_setup('Mod Rewrite'), 'desc' => i18n_setup('Creates so called Clean URLs for a ConLite installation')); $sCheckBoxes = ''; if (sizeof($aPlugins) > 0) { foreach ($aPlugins as $sInternalName => $aPluginData) { $sChecked = ((isset($_SESSION[$sInternalName]) && strval($_SESSION[$sInternalName]) || checkExistingPlugin($db, $sInternalName)) == 'true') ? ' checked="checked"' : ''; $sCheckBoxes .= '

' . i18n_setup('More information') . '

'; } } else { $sCheckBoxes = i18n_setup("None available"); } $this->_oStepTemplate->set("s", "PLUGINLIST", $sCheckBoxes); $this->setNavigation($previous, $next); } } ?>