else if ($_POST["mode"]==4)
{
unset($hc,$hcx);$hcx='';
for($h=1;$h<2;$h++)
{
$hcx.='{"args":[1],"number":'.$i.',"cmd":"complete_collection","t ime ":1372771201},';
$hcx.='{"args":[8],"number":'.$i.',"cmd":"complete_collection","t ime ":1372771201},';
$hcx.='{"args":[9],"number":'.$i.',"cmd":"complete_collection","t ime ":1372771201},';
$hcx.='{"args":[10],"number":'.$i.',"cmd":"complete_collection","t ime ":1372771201},';
}
$hcx.='{"args":[],"number":'.$i.',"cmd":"reset_complete_collecti on" ,"time":1372771201},';
$hcx=substr($hcx,0,-1);
$hc='{"commands":['.$hcx.']}';
$hc=json_decode($hc,1);
$num=1;
for($i=0;$i<count($hc['commands']);$i++)
{
$hc['commands'][$i]['time']=time();
}
}