[ 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 // http://doc.spip.org/@exec_dater_dist 16 function exec_dater_dist() 17 { 18 $type = _request('type'); 19 $id = intval(_request('id')); 20 21 if (($GLOBALS['auteur_session']['statut'] != '0minirezo') 22 OR ($type == 'article' AND !autoriser('modifier','article',$id)) 23 OR (!preg_match('/^\w+$/',$type))) { // securite 24 include_spip('inc/minipres'); 25 echo minipres(); 26 exit; 27 } 28 29 $table = ($type=='syndic') ? 'syndic' : ($type . 's'); 30 $row = spip_fetch_array(spip_query("SELECT * FROM spip_$table WHERE id_$type=$id")); 31 32 $statut = $row['statut']; 33 $date = $row[($type!='breve')?"date":"date_heure"]; 34 $date_redac = isset($row["date_redac"]) ? $row["date_redac"] : ''; 35 36 $script = ($type=='article')? 'articles' : ($type == 'breve' ? 'breves_voir' : 'sites'); 37 $dater = charger_fonction('dater', 'inc'); 38 ajax_retour($dater($id, 'ajax', $statut, $type, $script, $date, $date_redac)); 39 } 40 ?>
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 |
![]() |