diff --git a/.gitattributes b/.gitattributes index 08b594f00a9a7287080cfea9312a253b735ffbd7..7c1e373d309e31626ea9cc8b2148f40131813573 100644 --- a/.gitattributes +++ b/.gitattributes @@ -71,6 +71,7 @@ IMG/test.gif -text IMG/test.jpg -text IMG/test.png -text IMG/test_image.jpg -text +ecrire/ajax_page.php -text ecrire/img_pack/admin-12.gif -text ecrire/img_pack/administration-24.gif -text ecrire/img_pack/administration-48.png -text @@ -211,6 +212,7 @@ ecrire/img_pack/rubrique-12.gif -text ecrire/img_pack/rubrique-24.gif -text ecrire/img_pack/rv-12.gif -text ecrire/img_pack/rv.gif -text +ecrire/img_pack/searching.gif -text ecrire/img_pack/secteur-12.gif -text ecrire/img_pack/secteur-24.gif -text ecrire/img_pack/set-ecran-etroit.png -text diff --git a/ecrire/ajax_page.php b/ecrire/ajax_page.php new file mode 100644 index 0000000000000000000000000000000000000000..f42934d27054ad91e36a431fc1e7ae7b45df06d2 --- /dev/null +++ b/ecrire/ajax_page.php @@ -0,0 +1,39 @@ +<?php +/***************************************************************************\ + * SPIP, Systeme de publication pour l'internet * + * * + * Copyright (c) 2001-2005 * + * 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 ("inc.php3"); +echo "<"."?xml version='1.0' encoding='UTF-8'?>"; + + + if ($GLOBALS["id_ajax_fonc"]) { + $res = spip_query("SELECT * FROM spip_ajax_fonc WHERE id_ajax_fonc = $id_ajax_fonc AND id_auteur=$connect_id_auteur"); + if ($row = spip_fetch_array($res)) { + $fonction = $row["fonction"]; + $variables = $row["variables"]; + + $variables = unserialize($variables); + while (list($i, $k) = each($variables)) { + $$i = $k; + + } + + // Appliquer la fonction + if ($fonction == "afficher_articles") { + afficher_articles ($titre_table, $requete, $afficher_visites, $afficher_auteurs); + } + } + + } + + + +?> \ No newline at end of file diff --git a/ecrire/img_pack/searching.gif b/ecrire/img_pack/searching.gif new file mode 100644 index 0000000000000000000000000000000000000000..bf510daca026ca666c43682a7265f8bb8d7ea018 Binary files /dev/null and b/ecrire/img_pack/searching.gif differ