6a1b024ce413cb1f099b61aa09a220a17b675d64
[lhc/web/www.git] / www / prive / formulaires / configurer_moderniseur.php
1 <?php
2
3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
5 * *
6 * Copyright (c) 2001-2017 *
7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
8 * *
9 * Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
10 * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. *
11 \***************************************************************************/
12
13 if (!defined('_ECRIRE_INC_VERSION')) {
14 return;
15 }
16 include_spip('inc/presentation');
17
18 function formulaires_configurer_moderniseur_charger_dist() {
19 $valeurs = array(
20 'version_html_max' => html5_permis() ? 'html5' : 'html4',
21 );
22
23 return $valeurs;
24 }
25
26
27 function formulaires_configurer_moderniseur_traiter_dist() {
28 $res = array('editable' => true);
29 foreach (array(
30 'version_html_max'
31 ) as $m) {
32 if (!is_null($v = _request($m))) {
33 ecrire_meta($m, $v == 'html5' ? 'html5' : 'html4');
34 }
35 }
36
37 $res['message_ok'] = _T('config_info_enregistree');
38
39 return $res;
40 }