// $boxactivated will be array of boxes enabled into global setup
// $boxidactivatedforuser will be array of boxes choosed by user
$selectboxlist=$boxlist='';
$boxactivated=InfoBox::listBoxes($db,'activated',$areacode,(empty($user->conf->$confuserzone)?null:$user));// Search boxes of common+user (or common only if user has no specific setup)
//var_dump($boxactivated);
$boxidactivatedforuser=array();
foreach($boxactivatedas$box)
{
if(empty($user->conf->$confuserzone)||$box->fk_user==$user->id)$boxidactivatedforuser[$box->id]=$box->id;// We keep only boxes to show for user