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