Browse Source

La page maintenance contient aussi une configuration aujourd'hui.

On permet donc sa sauvegarde, restauration et effacement.
svn/attic/sarkaspip/branches/v_33/107566
eric@smellup.net 7 years ago
parent
commit
32da635659
  1. 9
      formulaires/raz_cfg.php
  2. 6
      formulaires/restauration_cfg.php
  3. 6
      formulaires/sauvegarde_cfg.php
  4. 1
      inc/sarkaspip_filtres.php
  5. 2
      prive/squelettes/contenu/configurer_sarkaspip.html
  6. 1
      sarkaspip_options.php

9
formulaires/raz_cfg.php

@ -6,10 +6,8 @@ function formulaires_raz_cfg_charger_dist() {
$pages_cfg = lister_pages_configuration();
foreach ($pages_cfg as $_config) {
if ($_config != 'maintenance') {
$item = "sarkaspip_{$_config}";
$options .= '<option value="' . $_config . '">' . _T("sarkaspip_config:$item") . '</option>';
}
$item = "sarkaspip_{$_config}";
$options .= '<option value="' . $_config . '">' . _T("sarkaspip_config:$item") . '</option>';
}
$valeurs = array('_configurations' => $options);
@ -26,8 +24,7 @@ function formulaires_raz_cfg_traiter_dist() {
include_spip('inc/config');
foreach($configs as $_config) {
if ($_config != 'maintenance')
effacer_config("sarkaspip_$_config");
effacer_config("sarkaspip_$_config");
}
if ($mode !== '--')

6
formulaires/restauration_cfg.php

@ -11,10 +11,8 @@ function formulaires_restauration_cfg_charger_dist(){
}
foreach ($pages_cfg as $_config) {
if ($_config != 'maintenance') {
$item = "sarkaspip_{$_config}";
$configs[$_config] = _T("sarkaspip_config:$item");
}
$item = "sarkaspip_{$_config}";
$configs[$_config] = _T("sarkaspip_config:$item");
}
$dir_cfg = sous_repertoire(_DIR_TMP,"sarkaspip");

6
formulaires/sauvegarde_cfg.php

@ -6,10 +6,8 @@ function formulaires_sauvegarde_cfg_charger_dist() {
$pages_cfg = lister_pages_configuration();
foreach ($pages_cfg as $_config) {
if ($_config != 'maintenance') {
$item = "sarkaspip_{$_config}";
$options .= '<option value="' . $_config . '">' . _T("sarkaspip_config:$item") . '</option>';
}
$item = "sarkaspip_{$_config}";
$options .= '<option value="' . $_config . '">' . _T("sarkaspip_config:$item") . '</option>';
}
$valeurs = array('_configurations' => $options);

1
inc/sarkaspip_filtres.php

@ -309,6 +309,7 @@ function statut_forum($id_article) {
function sauvegarder_fonds($fonds, $ou, $mode='maintenance') {
include_spip('inc/config');
$ok = true;
$dir = $ou;
foreach ($fonds as $_fond) {
if ($mode == 'maintenance') {

2
prive/squelettes/contenu/configurer_sarkaspip.html

@ -13,7 +13,7 @@
[(#ENV{cfg, accueil}|=={maintenance}|oui)
[<div class="noajax">(#FORMULAIRE_SAUVEGARDE_CFG)</div>]
[<div class="ajax">(#FORMULAIRE_RESTAURATION_CFG)</div>]
[<div class="ajax">(#FORMULAIRE_RAZ_CFG)</div>]
[<div class="noajax">(#FORMULAIRE_RAZ_CFG)</div>]
[<div class="noajax">(#FORMULAIRE_CONFIGURER_SARKASPIP_MAINTENANCE)</div>]
]

1
sarkaspip_options.php

@ -99,5 +99,4 @@ if (!defined('_SARKASPIP_CONFIG_SOCIALTAGS_TAGS')) define('_SARKASPIP_CONFIG_SOC
define('_ZENGARDEN_FILTRE_THEMES', 'sarkaspip');
?>
Loading…
Cancel
Save