Mise à jour de l'export xsaf
modified: index.php
This commit is contained in:
parent
ed6eb9fe09
commit
9f42a07a85
1 changed files with 6 additions and 2 deletions
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
/* modtime 2013-01-23 */
|
/* modtime 2013-01-23 */
|
||||||
|
|
||||||
|
define('XSAF_VERSION', 3);
|
||||||
|
|
||||||
define('ROOT_DIR', __DIR__);
|
define('ROOT_DIR', __DIR__);
|
||||||
if(file_exists("config.php")){
|
if(file_exists("config.php")){
|
||||||
include "config.php";
|
include "config.php";
|
||||||
|
@ -136,13 +138,15 @@ foreach($subdirs as $unit)
|
||||||
$config->$key = $value;
|
$config->$key = $value;
|
||||||
}
|
}
|
||||||
unset($ini);
|
unset($ini);
|
||||||
|
$type=$config->site_type;
|
||||||
$title=$config->site_title;
|
$title=$config->site_title;
|
||||||
$url=$config->site_url;
|
$url=$config->site_url;
|
||||||
$feed=$config->feed_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;
|
die;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue