21,7 → 21,7 |
// | along with Foobar; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: iw_integrateur.fonct.php,v 1.13 2005-12-27 17:25:23 ddelon Exp $ |
// CVS : $Id: iw_integrateur.fonct.php,v 1.14 2006-01-09 21:58:16 ddelon Exp $ |
/** |
* Fonctions de l'integrateur de page Wikini |
* |
33,7 → 33,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.13 $ $Date: 2005-12-27 17:25:23 $ |
*@version $Revision: 1.14 $ $Date: 2006-01-09 21:58:16 $ |
* |
// +------------------------------------------------------------------------------------------------------+ |
// | ENTETE du PROGRAMME | |
155,6 → 155,39 |
// Detournement des handlers : comme ca on peut faire ce que l'on veut .... |
function Method($method) { |
|
if ($method=="xml") { |
header("Content-type: text/xml"); |
if ($pages = $this->LoadRecentlyChanged(50)) { |
|
$link=ereg_replace('&','&',$this->Href()); |
$output = "<?xml version=\"1.0\" encoding=\"iso-8859-1\" ?>\n"; |
$output .= '<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">' . "\n"; |
$output .= "<channel>\n"; |
$output .= "<title> Derniers changements sur ". $this->config["wakka_name"] . "</title>\n"; |
$output .= "<link>" . $link . "</link>\n"; |
$output .= "<description> Derniers changements sur " . $this->config["wakka_name"] . " </description>\n"; |
$output .= "<language>fr</language>\n"; |
$output .= '<generator>WikiNi ' . WIKINI_VERSION . "</generator>\n"; |
foreach ($pages as $i => $page) |
{ |
$output .= "<item>\n"; |
$output .= "<title>" . $page["tag"] . "</title>\n"; |
$output .= '<dc:creator>' . $page["user"] . "</dc:creator>\n"; |
$output .= '<pubDate>' . date("r", strtotime($page['time'])) . "</pubDate>\n"; |
$output .= "<description> Modification de " . $page["tag"] . " --- par " .$page["user"] /* . " le " . $day ." - ". $hh .":". $mm */ . "</description>\n"; |
$link=ereg_replace('&','&',$this->Href("",$page["tag"])); |
$output .= "<link>" . $link . "&time=" . rawurlencode($page["time"]) . "</link>\n"; |
$output .= "</item>\n"; |
} |
$output .= "</channel>\n"; |
$output .= "</rss>\n"; |
echo $output ; |
|
} |
exit; |
return; |
} |
|
if ($method=="edit") { |
|
$result=''; |
320,8 → 353,6 |
|
$GLOBALS['_PAPYRUS_']['erreur']->setActive(0); |
|
|
|
global $wiki; |
global $wikini_config_defaut; |
$sortie=''; |
437,6 → 468,8 |
else { |
return remplacerEntiteHTLM("<script type=\"text/javascript\" src=\"".IW_CHEMIN_BIBLIO_ACEDITOR."ACeditor.js\"></script><div id=\"wikini_page\">"."\n".$sortie.'</div>'."\n"); |
} |
|
|
|
} |
|