1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
|
<?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');
?>
<form action="parametres_base.php" method="post" id="form_settings">
<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 ?>
<fieldset class="config">
<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>
</fieldset>
<?php eval($plxAdmin->plxPlugins->callHook('AdminSettingsBase')) # Hook Plugins ?>
<?php echo plxToken::getTokenPostMethod() ?>
</form>
<?php
# Hook Plugins
eval($plxAdmin->plxPlugins->callHook('AdminSettingsBaseFoot'));
# On inclut le footer
include(dirname(__FILE__).'/foot.php');
?>
|