<?php require_once('includes/affiliator.inc.php'); $key=TGET('key'); $afltr_name=TGET('name'); $info=affiliator_parse_key($key); if (!$info) return; $DBConn->connect(true); $afltr=db_load_affiliator($DBConn,$info['afltr_id']); if ($afltr['afltr_name']!=$afltr_name) return; $list=db_load_affiliator_contribution($DBConn,$afltr['afltr_id']); $dataset['totalnumber']=db_count_affiliator_contribution_unique($DBConn,$afltr['afltr_id'],300); $dataset['LIST']=array(); foreach ($list as $mb_id) { array_push($dataset['LIST'],array( 'mb_id'=>$mb_id )); } ?>