[SPIP] +spip v3.0.17
[lhc/web/clavette_www.git] / www / prive / formulaires / configurer_logos.php
diff --git a/www/prive/formulaires/configurer_logos.php b/www/prive/formulaires/configurer_logos.php
new file mode 100644 (file)
index 0000000..899ebee
--- /dev/null
@@ -0,0 +1,38 @@
+<?php
+
+/***************************************************************************\
+ *  SPIP, Systeme de publication pour l'internet                           *
+ *                                                                         *
+ *  Copyright (c) 2001-2014                                                *
+ *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
+ *                                                                         *
+ *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
+ *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
+\***************************************************************************/
+
+if (!defined('_ECRIRE_INC_VERSION')) return;
+
+function formulaires_configurer_logos_charger_dist(){
+       foreach(array(
+               "activer_logos",
+               "activer_logos_survol",
+               ) as $m)
+               $valeurs[$m] = $GLOBALS['meta'][$m];
+
+       return $valeurs;
+}
+
+
+function formulaires_configurer_logos_traiter_dist(){
+       $res = array('editable'=>true);
+       foreach(array(
+               "activer_logos",
+               "activer_logos_survol",
+               ) as $m)
+               if (!is_null($v=_request($m)))
+                       ecrire_meta($m, $v=='oui'?'oui':'non');
+
+       $res['message_ok'] = _T('config_info_enregistree');
+       return $res;
+}
+