2014-11-12 22:01:48 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Edition des paramètres de base
|
|
|
|
*
|
|
|
|
* @package PLX
|
|
|
|
* @author Florent MONTHEL, Stephane F
|
|
|
|
**/
|
|
|
|
|
|
|
|
include(dirname(__FILE__).'/prepend.php');
|
|
|
|
include(PLX_CORE.'lib/class.plx.timezones.php');
|
|
|
|
|
|
|
|
# Control du token du formulaire
|
|
|
|
plxToken::validateFormToken($_POST);
|
|
|
|
|
|
|
|
# Control de l'accès à la page en fonction du profil de l'utilisateur connecté
|
|
|
|
$plxAdmin->checkProfil(PROFIL_ADMIN);
|
|
|
|
|
|
|
|
# On édite la configuration
|
|
|
|
if(!empty($_POST)) {
|
|
|
|
$plxAdmin->editConfiguration($plxAdmin->aConf,$_POST);
|
|
|
|
header('Location: parametres_base.php');
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
|
|
|
# On inclut le header
|
|
|
|
include(dirname(__FILE__).'/top.php');
|
|
|
|
?>
|
|
|
|
|
2015-08-17 21:12:54 +02:00
|
|
|
<form action="parametres_base.php" method="post" id="form_settings">
|
2014-11-12 22:01:48 +01:00
|
|
|
|
2015-08-17 21:12:54 +02:00
|
|
|
<div class="inline-form action-bar">
|
|
|
|
<h2><?php echo L_CONFIG_BASE_CONFIG_TITLE ?></h2>
|
|
|
|
<p> </p>
|
|
|
|
<input type="submit" value="<?php echo L_CONFIG_BASE_UPDATE ?>" />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php eval($plxAdmin->plxPlugins->callHook('AdminSettingsBaseTop')) # Hook Plugins ?>
|
2014-11-12 22:01:48 +01:00
|
|
|
|
|
|
|
<fieldset class="config">
|
2015-08-17 21:12:54 +02:00
|
|
|
<div class="grid">
|
|
|
|
<div class="col sml-12 med-5 label-centered">
|
|
|
|
<label for="id_title"><?php echo L_CONFIG_BASE_SITE_TITLE ?> :</label>
|
|
|
|
</div>
|
|
|
|
<div class="col sml-12 med-7">
|
|
|
|
<?php plxUtils::printInput('title', plxUtils::strCheck($plxAdmin->aConf['title'])); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="grid">
|
|
|
|
<div class="col sml-12 med-5 label-centered">
|
|
|
|
<label for="id_description"><?php echo L_CONFIG_BASE_SITE_SLOGAN ?> :</label>
|
|
|
|
</div>
|
|
|
|
<div class="col sml-12 med-7">
|
|
|
|
<?php plxUtils::printInput('description', plxUtils::strCheck($plxAdmin->aConf['description'])); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="grid">
|
|
|
|
<div class="col sml-12 med-5 label-centered">
|
|
|
|
<label for="id_meta_description"><?php echo L_CONFIG_META_DESCRIPTION ?> :</label>
|
|
|
|
</div>
|
|
|
|
<div class="col sml-12 med-7">
|
|
|
|
<?php plxUtils::printInput('meta_description', plxUtils::strCheck($plxAdmin->aConf['meta_description'])); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="grid">
|
|
|
|
<div class="col sml-12 med-5 label-centered">
|
|
|
|
<label for="id_meta_keywords"><?php echo L_CONFIG_META_KEYWORDS ?> :</label>
|
|
|
|
</div>
|
|
|
|
<div class="col sml-12 med-7">
|
|
|
|
<?php plxUtils::printInput('meta_keywords', plxUtils::strCheck($plxAdmin->aConf['meta_keywords'])); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="grid">
|
|
|
|
<div class="col sml-12 med-5 label-centered">
|
|
|
|
<label for="id_default_lang"><?php echo L_CONFIG_BASE_DEFAULT_LANG ?> :</label>
|
|
|
|
</div>
|
|
|
|
<div class="col sml-12 med-7">
|
|
|
|
<?php plxUtils::printSelect('default_lang', plxUtils::getLangs(), $plxAdmin->aConf['default_lang']) ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="grid">
|
|
|
|
<div class="col sml-12 med-5 label-centered">
|
|
|
|
<label for="id_timezone"><?php echo L_CONFIG_BASE_TIMEZONE ?> :</label>
|
|
|
|
</div>
|
|
|
|
<div class="col sml-12 med-7">
|
|
|
|
<?php plxUtils::printSelect('timezone', plxTimezones::timezones(), $plxAdmin->aConf['timezone']); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="grid">
|
|
|
|
<div class="col sml-12 med-5 label-centered">
|
|
|
|
<label for="id_allow_com"><?php echo L_CONFIG_BASE_ALLOW_COMMENTS ?> :</label>
|
|
|
|
</div>
|
|
|
|
<div class="col sml-12 med-7">
|
|
|
|
<?php plxUtils::printSelect('allow_com',array('1'=>L_YES,'0'=>L_NO), $plxAdmin->aConf['allow_com']); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="grid">
|
|
|
|
<div class="col sml-12 med-5 label-centered">
|
|
|
|
<label for="id_mod_com"><?php echo L_CONFIG_BASE_MODERATE_COMMENTS ?> :</label>
|
|
|
|
</div>
|
|
|
|
<div class="col sml-12 med-7">
|
|
|
|
<?php plxUtils::printSelect('mod_com',array('1'=>L_YES,'0'=>L_NO), $plxAdmin->aConf['mod_com']); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="grid">
|
|
|
|
<div class="col sml-12 med-5 label-centered">
|
|
|
|
<label for="id_mod_art"><?php echo L_CONFIG_BASE_MODERATE_ARTICLES ?> :</label>
|
|
|
|
</div>
|
|
|
|
<div class="col sml-12 med-7">
|
|
|
|
<?php plxUtils::printSelect('mod_art',array('1'=>L_YES,'0'=>L_NO), $plxAdmin->aConf['mod_art']); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-11-12 22:01:48 +01:00
|
|
|
</fieldset>
|
|
|
|
<?php eval($plxAdmin->plxPlugins->callHook('AdminSettingsBase')) # Hook Plugins ?>
|
2015-08-17 21:12:54 +02:00
|
|
|
<?php echo plxToken::getTokenPostMethod() ?>
|
|
|
|
|
2014-11-12 22:01:48 +01:00
|
|
|
</form>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
# Hook Plugins
|
|
|
|
eval($plxAdmin->plxPlugins->callHook('AdminSettingsBaseFoot'));
|
|
|
|
# On inclut le footer
|
|
|
|
include(dirname(__FILE__).'/foot.php');
|
|
|
|
?>
|