Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (23 sloc) 498 Bytes
<?
if (!defined("POUET_API")) exit();
require_once( POUETAPI_POUET_ROOT_LOCAL . "include_pouet_index/index_bootstrap.inc.php");
$box = new PouetBoxIndexLatestReleased();
$box->Load(true);
$result = new stdClass();
if ($box->data)
{
$result->success = true;
$result->prods = array();
PouetCollectPlatforms( $box->data );
PouetCollectAwards( $box->data );
foreach($box->data as $prod)
{
$result->prods[] = $prod->ToAPI();
}
}
else
{
$result->error = true;
}
output($result);
?>
You can’t perform that action at this time.