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
*
* Description :
* Step x of installation : Choose plugins to install
*
* Requirements :
* @ con_php_req 5
* @ con_notice
* Code design of the Setup routine is such a piece of ... Hopefully Setup will be rewritten someday ...
* When adding new steps , you need to :
* modify index . php
* modify / lib / defines . php
* create a class in / steps / forms ;
* create a template in / templates / setup / forms ;
* create file using created class and update stepx . php files in / steps / migration , / steps / setup and / steps / upgrade accordingly that will be moved up
* don ' t forget to modify / steps / forms / installer . php
* and , if needed , update po / mo files .
* hopefully you ' re done now ...
*
*
* @ package ContenidoBackendArea
* @ version 1.0 . 0
* @ author Rudi Bieller
* @ 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
*
*
*
* { @ 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
*
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 cSetupAdditionalPlugins extends cSetupMask {
public function __construct ( $step , $previous , $next ) {
2016-10-06 15:57:01 +00:00
$db = getSetupMySQLDBConnection ();
2017-01-13 12:45:12 +00:00
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.
2023-04-07 17:50:44 +00:00
$aPlugins = [];
2018-12-13 12:58:04 +00:00
//$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.'));
2019-11-04 14:55:28 +00:00
//$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'));
2017-01-13 12:45:12 +00:00
$sCheckBoxes = '' ;
if ( sizeof ( $aPlugins ) > 0 ) {
foreach ( $aPlugins as $sInternalName => $aPluginData ) {
$sChecked = (( isset ( $_SESSION [ $sInternalName ]) && strval ( $_SESSION [ $sInternalName ]) || checkExistingPlugin ( $db , $sInternalName )) == 'true' ) ? ' checked="checked"' : '' ;
$sCheckBoxes .= ' < p class = " plugin_select " >
< input type = " checkbox " class = " plugin_checkbox " id = " ' . $sInternalName . ' " name = " ' . $sInternalName . ' " value = " true " ' . $sChecked . ' >
< label for = " ' . $sInternalName . ' " > ' . $aPluginData[' label '] . ' </ label >
< a href = " javascript:// " onclick = " showPluginInfo( \ '' . $aPluginData['label'] . ' \ ', \ '' . $aPluginData['desc'] . ' \ '); " >
< img src = " ../conlite/images/info.gif " alt = " ' . i18n_setup('More information') . ' " title = " ' . i18n_setup('More information') . ' " class = " plugin_info " >
2016-10-06 15:57:01 +00:00
</ a >
</ p > ' ;
2017-01-13 12:45:12 +00:00
}
} else {
$sCheckBoxes = i18n_setup ( " None available " );
}
$this -> _oStepTemplate -> set ( " s " , " PLUGINLIST " , $sCheckBoxes );
$this -> setNavigation ( $previous , $next );
}
2016-10-06 15:57:01 +00:00
}
?>