php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay

| files >> /var/www/html/sub/images/Rm19_symconf/root/var/www/html/FTFL/mobile/ |
| files >> /var/www/html/sub/images/Rm19_symconf/root/var/www/html/FTFL/mobile/promolist.php |
<?php
require('inc/konekmobile.php');
$myObj = new stdClass();
$kunci = $_POST['kunci'];
$uuid_staff = $_POST['uuid_staff'];
//if ($kunci!='eFTeeFeL') {
if ($kunci != md5('eFTeeFeL'.$uuid_staff)) {
$myObj->status = 'gagal';
$myObj->subject = 'aplikasi tidak dikenal.';
$myObj->result = '';
echo json_encode(array($myObj));
exit();
}
$stmtPromo = $r->prepare("SELECT * FROM db_promo WHERE status='AKTIF' ORDER BY id_promo DESC ");
$stmtPromo->execute();
$resultPromo=$stmtPromo->get_result();
$adaPromo=$resultPromo->num_rows;
$stmtPromo1 = $r->prepare("SELECT * FROM db_promo WHERE status='ENDED' ORDER BY id_promo DESC LIMIT 10");
$stmtPromo1->execute();
$resultPromo1=$stmtPromo1->get_result();
$adaPromo1=$resultPromo1->num_rows;
if ($adaPromo+$adaPromo1==0) {
$myObj->status = 'gagal';
$myObj->subject = 'Belum ada kunjungan.';
$myObj->result = '';
}
$list_promo = array();
if ($adaPromo>0) {
while ($dataPromo = $resultPromo->fetch_assoc()) {
$dataPromo['image']='http://206.189.152.149/FTFL/webhq/assets/promo/'.$dataPromo['image'];
array_push($list_promo,$dataPromo);
}
}
if ($adaPromo1>0) {
while ($dataPromo1 = $resultPromo1->fetch_assoc()) {
$dataPromo1['image']='http://206.189.152.149/FTFL/webhq/assets/promo/'.$dataPromo1['image'];
array_push($list_promo,$dataPromo1);
}
}
$myObj->status = 'sukses';
$myObj->subject = '';
$myObj->result = $list_promo;
echo json_encode(array($myObj));
exit();
?>
y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`