예제 #1
0
파일: offer.php 프로젝트: Outlaw11A/SEP2015
<?php

header('Content-Type: application/json');
$offer = Offer::getOffer($page['parameters']['id'], User::getId());
$success = true;
if ($offer == null) {
    $success = false;
}
echo json_encode(['results' => $offer, 'success' => $success]);
exit;