function approve($s) { if (!isset($_SESSION['admin'])) { //header("Location: /index.html"); exit(); } $id = intval($_REQUEST['id']); $status = REALTY_STATUS_SALE; Land::approve($id,$status); echo "Объявление активировано"; /* $block_html = Html::getBlock('Сообщение',"Объявление активировано."); $s->assign("block_html",$block_html); $s->display("msg.tpl"); */ }