[ Index ] |
|
Code source de SPIP 1.9.2c |
1 <?php 2 3 /***************************************************************************\ 4 * SPIP, Systeme de publication pour l'internet * 5 * * 6 * Copyright (c) 2001-2007 * 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")) return; 14 15 include_spip('inc/presentation'); 16 17 // http://doc.spip.org/@exec_puce_statut_article_dist 18 function exec_puce_statut_article_dist() 19 { 20 $id = intval(_request('id')); 21 $type = _request('type'); 22 23 if ($type == 'article') { 24 $s = spip_query("SELECT id_rubrique,statut FROM spip_articles WHERE id_article=$id"); 25 $r = spip_fetch_array($s); 26 $statut = $r['statut']; 27 $id_rubrique = $r['id_rubrique']; 28 } else { 29 $id_rubrique = $id; 30 $id = 0; 31 $statut = 'prop'; // arbitraire 32 } 33 ajax_retour(puce_statut_article($id,$statut,$id_rubrique,$type, true)); 34 } 35 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Wed Nov 21 10:20:27 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |