diff --git a/action/toggle_param.php b/action/toggle_param.php new file mode 100644 index 0000000..429e3ea --- /dev/null +++ b/action/toggle_param.php @@ -0,0 +1,35 @@ + ''); + } + else{ + $set = array($param => 'on'); + } + + sql_updateq($table, $set, $where); + include_spip('inc/invalideur'); + suivre_invalideur("id='$objet/$id_objet'"); + } + // redirection sur la page courante + include_spip('inc/headers'); + redirige_par_entete(_request('redirect')); +} + diff --git a/balint_fonctions.php b/balint_fonctions.php index 3f552f6..b047ce4 100644 --- a/balint_fonctions.php +++ b/balint_fonctions.php @@ -76,3 +76,8 @@ if (!function_exists('array_column')) { return $result; } } + +function info_param($arg){ + list($objet,$id_objet,$param)=explode('/',$arg); + return sql_getfetsel($param,'spip_' .$objet. 's',"id_$objet=$id_objet"); +} \ No newline at end of file diff --git a/content/gerer_auteurs.html b/content/gerer_auteurs.html index 473a5a9..5488d03 100644 --- a/content/gerer_auteurs.html +++ b/content/gerer_auteurs.html @@ -11,10 +11,10 @@