GetPromotionObj($_GET["code"]); if ($promo && $promo->getActive()) { echo "avaliable"; } else{ echo "!avaliable"; } } ?>