[ 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 include_spip('inc/presentation'); 15 16 // http://doc.spip.org/@exec_editer_mot_dist 17 function exec_editer_mot_dist() 18 { 19 $objet = _request('objet'); 20 $id_objet = intval(_request('id_objet')); 21 22 if ($GLOBALS['connect_toutes_rubriques']) // pour eviter SQL 23 $droit = true; 24 elseif ($objet == 'article') 25 $droit = autoriser('modifier','article',$id_objet); 26 elseif ($objet == 'rubrique') 27 $droit = autoriser('publierdans','rubrique',$id_objet); 28 else { 29 if ($objet == 'breve') 30 $droit = spip_query("SELECT id_rubrique FROM spip_breves WHERE id_breve='$id_objet'"); 31 else $droit = spip_query("SELECT id_rubrique FROM spip_syndic WHERE id_syndic=$id_objet"); 32 $droit = autoriser('publierdans','rubrique',$droit['id_rubrique']); 33 } 34 35 if (!$droit) { 36 include_spip('inc/minipres'); 37 echo minipres(); 38 exit; 39 } 40 41 $ch = _request('cherche_mot'); 42 $id_groupe = _request('select_groupe'); 43 $editer_mot = charger_fonction('editer_mot', 'inc'); 44 ajax_retour($editer_mot($objet, $id_objet, $ch, $id_groupe, 'ajax')); 45 } 46 ?>
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 |
![]() |