From 9f42a07a85dd61112e70815de289fdc3f11f04b7 Mon Sep 17 00:00:00 2001 From: Oros Date: Wed, 6 Feb 2013 23:03:08 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20l'export=20xsaf=20?= =?UTF-8?q?=09modified:=20=20=20index.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _experimental/index.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/_experimental/index.php b/_experimental/index.php index e57fc2b..9950a54 100755 --- a/_experimental/index.php +++ b/_experimental/index.php @@ -2,6 +2,8 @@ /* modtime 2013-01-23 */ +define('XSAF_VERSION', 3); + define('ROOT_DIR', __DIR__); if(file_exists("config.php")){ include "config.php"; @@ -136,13 +138,15 @@ foreach($subdirs as $unit) $config->$key = $value; } unset($ini); + $type=$config->site_type; $title=$config->site_title; $url=$config->site_url; $feed=$config->feed_url; - $reponse[$unit] = array("$title", "$url", "$feed"); + $reponse[$unit] = array("SITE_TYPE"=>"$type", "SITE_TITLE"=>"$title", "SITE_URL"=>"$url", "FEED_URL"=>"$feed"); } } -echo json_encode($reponse); + echo json_encode( array( "meta"=> array("xsaf-version"=>XSAF_VERSION), + "autoblogs"=>$reponse)); die; }