[ Index ]
 

Code source de SPIP 1.9.2c

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/ecrire/exec/ -> tourner.php (source)

   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_tourner_dist
  16  function exec_tourner_dist()
  17  {
  18      global $id_document, $script, $id, $type, $ancre;
  19      $id = intval($id);
  20      $id_document = intval($id_document);
  21  
  22      if (!($type == 'article' 
  23          ? autoriser('modifier','article',$id)
  24          : autoriser('publierdans','rubrique',$id))) {
  25          include_spip('inc/minipres');
  26          echo minipres();
  27          exit;
  28      }
  29  
  30      $tourner = charger_fonction('tourner', 'inc');
  31      ajax_retour($tourner($id_document, array(), $script, 'ajax', $type));
  32  }
  33  
  34  ?>


Généré le : Wed Nov 21 10:20:27 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics