$type=$params['type'];
if ($params['listing_amount']=='all') $listing_amount=DEF_MAX_LISTING_AMMOUNT;
else $listing_amount=$params['listing_amount'];
if (empty($params['offset'])) $offset=0;
else $offset=$params['offset'];
$type=$params['type'];
if ($params['listing_amount']=='all') $listing_amount=DEF_MAX_LISTING_AMMOUNT;
else $listing_amount=$params['listing_amount'];
if (empty($params['offset'])) $offset=0;
else $offset=$params['offset'];