Skip to content
Extraits de code Groupes Projets
Valider 5dba9a98 rédigé par esj's avatar esj
Parcourir les fichiers

introduction d'un script generique spip_action.php pour n'en avoir plus qu'un seul a terme

parent 0d587cc5
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -355,3 +355,4 @@ plugins/smallcaps/version.php -text ...@@ -355,3 +355,4 @@ plugins/smallcaps/version.php -text
/puce.gif -text /puce.gif -text
/puce_rtl.gif -text /puce_rtl.gif -text
/rien.gif -text /rien.gif -text
/spip_action.php -text
...@@ -552,7 +552,7 @@ function charger_plugins($plugins) { ...@@ -552,7 +552,7 @@ function charger_plugins($plugins) {
function generer_url_ecrire($script, $args="", $retour="", $retour_args="") { function generer_url_ecrire($script, $args="", $retour="", $retour_args="") {
return $script . return $script .
_EXTENSION_PHP . (ereg('.php[3]?$', $script) ? '' :_EXTENSION_PHP) .
(!$args ? "" : ('?' .str_replace('&', '&', $args))) . (!$args ? "" : ('?' .str_replace('&', '&', $args))) .
(!$retour ? "" : (!$retour ? "" :
urlencode($retour . _EXTENSION_PHP . urlencode($retour . _EXTENSION_PHP .
......
<?php
/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
* Copyright (c) 2001-2006 *
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
* *
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
* Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. *
\***************************************************************************/
include ("ecrire/inc_version.php3");
spip_log("$action $arg $id_auteur");
$var_f = include_fonction('spip_action_' . $action);
$var_f();
if ($redirect) redirige_par_entete($redirect);
?>
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter