public static function setData($id, $val) { self::setDataSementara($id, $val); $ef = new Efiwebsetting(); $ef->set_id = $id; $ef->set_value = $val; return $ef->save(); }
public function appVersion() { $userVersion = addslashes($_GET['version']); $userType = addslashes($_GET['os']); if ($userVersion == "" || $userType == "") { $json['status_code'] = 0; $json['status_message'] = 'Please provide version and OS'; echo json_encode($json); die; } $ef = Efiwebsetting::getData("App_Version_iOS"); $url = Efiwebsetting::getData("App_URL_iOS"); if ($userType == "android") { $ef = Efiwebsetting::getData("App_Version_Android"); $url = Efiwebsetting::getData("App_URL_Android"); } $exp = explode(";", $ef); $version = (int) $exp[0]; $update = 0; if ($version > $userVersion) { $update = 1; } $force = (int) $exp[1]; $json['status_code'] = 1; $json['results']['latest_version'] = $version; $json['results']['force_update'] = $force; $json['results']['ada_update'] = $update; $json['results']['url'] = $url; echo json_encode($json); die; }
public function p() { $pa = \Efiwebsetting::getData('PageAttachment'); $t = time(); $id = $this->id . "_" . $t; echo $pa; // echo $this->value; ?> <input class="form-control" type="text" name="<?php echo $this->name; ?> " id="<?php echo $id; ?> " value='<?php echo stripslashes($this->value); ?> '> <?php $exp = explode(",", $pa); foreach ($exp as $p) { if ($p == "Page") { continue; } $n = new $p(); ?> <div class="pageAttachmentItem"> <?php $n->attachmentDialog($id, $this->value); ?> </div> <?php } }
static function pushAfteriOS($array_id, $msg, $url, $app) { // API access key from Google API's Console // define('API_ACCESS_KEY', 'AIzaSyB9xx9AEJhINwTaxCEwCD7XLrV0nQ6tzjY'); $api_key = Efiwebsetting::getData("PUSH_Api_key_appear"); $registrationIds = $array_id; if (count($registrationIds) >= 1000) { //dibagi 1000 an...how ? $chunks = array_chunk($registrationIds, 999); } else { $chunks = array($registrationIds); } $array_results = array(); foreach ($chunks as $ids) { // prep the bundle $data = array('message' => $msg, 'url' => $url, 'action' => 'url'); $notifications = array("sound" => "default", "badge" => "1", "title" => $app->app_name, "body" => $msg, "url" => $url); $fields = array('registration_ids' => $ids, 'notification' => $notifications, 'data' => $data, 'priority' => "high"); $headers = array('Authorization: key=' . $api_key, 'Content-Type: application/json'); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://android.googleapis.com/gcm/send'); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($fields)); $result = json_decode(curl_exec($ch)); curl_close($ch); //TBD : logger goes here $array_results[] = $result; } return $array_results; }
public function overwriteForm($return, $returnfull) { $return = parent::overwriteForm($return, $returnfull); $return['topic_author'] = new Leap\View\InputText("hidden", "topic_author", "topic_author", Account::getMyID()); if ($_GET['load']) { $return['topic_date'] = new Leap\View\InputText("hidden", "topic_date", "topic_date", $this->topic_date); } else { $return['topic_date'] = new Leap\View\InputText("hidden", "topic_date", "topic_date", leap_mysqldate()); } $return['topic_msg'] = new Leap\View\InputTextRTE("topic_msg", "topic_msg", $this->topic_msg); $return['topic_status'] = new Leap\View\InputSelect(array("draft" => "Draft", "publish" => "Publish"), "topic_status", "topic_status", $this->topic_status); $return['topic_modified'] = new Leap\View\InputText("hidden", "topic_modified", "topic_modified", leap_mysqldate()); $return['topic_image'] = new \Leap\View\InputFoto("topic_image", "topic_image", $this->topic_image); $return['topic_fb_og_image'] = new \Leap\View\InputFoto("topic_fb_og_image", "topic_fb_og_image", $this->topic_fb_og_image); $return['topic_category'] = new \Leap\View\InputTag("BlogBE/prefetchBlogCat", "topic_category", "topic_category", $this->topic_category); // $return['spdivider']['post_image'] = "Content"; $return['spdivider']['topic_meta_title'] = "SEO"; $return['spdivider']['topic_fb_og_title'] = "FB OpenGraph"; $return['spdivider']['topic_attachments'] = "Attachments"; $return['topic_attachments'] = new Leap\View\InputPageAttachment("topic_attachments", "topic_attachments", $this->topic_attachments); if ($this->topic_attachment_order == "") { $this->topic_attachment_order = Efiwebsetting::getData('PageAttachment'); } $return['topic_attachment_order'] = new Leap\View\InputOrdering("topic_attachment_order", "topic_attachment_order", $this->topic_attachment_order); return $return; }
public function changeStatusProgress() { if (Efiwebsetting::getData('checkOAuth') == 'yes') { IMBAuth::checkOAuth(); } $json = array(); $json['status_code'] = 1; $id_order_detail = isset($_GET['id_order_detail']) ? addslashes($_GET['id_order_detail']) : ""; if (!$id_order_detail) { Generic::errorMsg("id order detail not found!"); } $objOrderDetail = new OrderDetailModel(); $objOrderDetail->getByID($id_order_detail); if ($objOrderDetail->id_order == "") { Generic::errorMsg("id order detail not found!"); } $statusProgress = intval($objOrderDetail->status_progress); if ($statusProgress == 2) { Generic::errorMsg("Status is " . $statusProgress); } $statusProgress = $statusProgress + 1; $objOrderDetail->status_progress = strval($statusProgress); $objOrderDetail->load = 1; $objOrderDetail->save(); $json['results'] = $statusProgress; echo json_encode($json); die; }
public function recommendationRestoWS() { if (Efiwebsetting::getData('checkOAuth') == 'yes') { IMBAuth::checkOAuth(); } $lat = isset($_GET['latitude']) ? addslashes($_GET['latitude']) : ""; if ($lat == "" or !$lat) { $lat = MenuRevoConstants::$latitude; } if (!Generic::checkLatitude($lat)) { Generic::errorMsg("Latitude must be Numeric!"); } $long = isset($_GET['longitude']) ? addslashes($_GET['longitude']) : ""; if ($long == "" or !$long) { $long = MenuRevoConstants::$longitude; } if (!Generic::checklongitude($long)) { Generic::errorMsg("Longitude must be Numeric!"); } $distance = isset($_GET['distance']) ? addslashes($_GET['distance']) : 20; if ($distance == '') { $distance = 20; } $page = addslashes($_GET['page']); if ($page == "" || $page < 1) { $json['status_code'] = 0; $json['status_message'] = "No Page Found"; echo json_encode($json); die; } $limit = addslashes($_GET['limit']); if ($limit == "" || $limit < 1) { $json['status_code'] = 0; $json['status_message'] = "Limit Error"; echo json_encode($json); die; } $begin = ($page - 1) * $limit; $json = array(); $json['status_code'] = 1; global $db; $objRecommendation = new RecommendationModel(); $objRestaurant = new MasterRestaurantModel(); $qdish = "SELECT recom.*, SQRT(POW(69.1 * (resto.latitude - {$lat}), 2) + POW(69.1 * ({$long} - resto.longitude) * COS(resto.latitude / 57.3), 2)) AS distance FROM {$objRecommendation->table_name} recom LEFT JOIN {$objRestaurant->table_name} resto ON resto.id_restaurant= recom.id_restaurant AND DATE(recom.end) >= DATE(NOW()) AND DATE(recom.start)<= DATE(NOW())HAVING distance < {$distance} ORDER BY distance LIMIT {$begin},{$limit}"; $arrRecom = $db->query($qdish, 2); // if (count($arrRecom) == 0) { // $json['status_code'] = 0; // $json['status_message'] = "No ID Found"; // echo json_encode($json); // die(); // } $json['results']['restaurant'] = array(); foreach ($arrRecom as $recom) { $resto = Generic::getRestaurant($recom->id_restaurant); $resto['distance'] = $recom->distance; $json['results']['restaurant'][] = $resto; } echo json_encode($json); die; }
public function getCashOutHistoryTransaction() { if (Efiwebsetting::getData('checkOAuth') == 'yes') { IMBAuth::checkOAuth(); } $idResto = Generic::mustCheck($_GET['id_restaurant'], "No ID Restaurant Found"); $rt = new MasterRestoTransactionModel(); $arrTrans = $rt->getWhere("id_restaurant='{$idResto}' AND type_transaction='2' ORDER BY datetime_transaction DESC "); $result['transactions'] = array(); foreach ($arrTrans as $trans) { unset($b); $b['id_transaction'] = $trans->id_transaction; $b['id_restaurant'] = $trans->id_restaurant; $b['gross_amount'] = (double) $trans->gross_amount; $b['net_amount'] = (double) $trans->net_amount; $b['type_transaction'] = $trans->type_transaction; $b['datetime_transaction'] = $trans->datetime_transaction; $b['approved'] = $trans->approved == "1"; $result['transactions'][] = $b; } $json['status_code'] = 1; $json['results'] = $result; echo json_encode($json); die; }
public function get() { if (Efiwebsetting::getData('checkOAuth') == 'yes') { IMBAuth::checkOAuth(); } $json['status_code'] = 1; $prod_id = addslashes($_GET['prod_id']); if (!$prod_id) { $json['status_code'] = 0; $json['status_message'] = "No ID Found"; echo json_encode($json); die; } $llTesti = new LL_Testimonial(); $arrW = $llTesti->getWhereFromMultipleTable("testi_product_id = '{$prod_id}' AND testi_acc_id = macc_id AND testi_status = '1' ORDER BY testi_date DESC LIMIT 0,30", array("LL_Account")); //pr($arrW); $llacc = new LL_Account(); $exp2 = explode(",", $llacc->crud_webservice_allowed); $arrPicsToAddPhotoUrl2 = $llacc->crud_add_photourl; $obj = $llTesti; $obj->default_read_coloms = $obj->crud_webservice_allowed; $main_id = $obj->main_id; $exp = explode(",", $obj->crud_webservice_allowed); $arrPicsToAddPhotoUrl = $obj->crud_add_photourl; $json = array(); $json['status_code'] = 1; //$json['results_number'] = $obj->getJumlah($query); //filter foreach ($arrW as $o) { $sem = array(); foreach ($exp as $attr) { if (in_array($attr, $arrPicsToAddPhotoUrl)) { $sem[$attr] = _PHOTOURL . $o->{$attr}; } else { $sem[$attr] = $o->{$attr}; } } foreach ($exp2 as $attr) { if ($attr == "macc_ll_customer_id") { break; } if (in_array($attr, $arrPicsToAddPhotoUrl2)) { $sem[$attr] = _PHOTOURL . $o->{$attr}; } else { $sem[$attr] = $o->{$attr}; } } $json["results"][] = $sem; } if (count($arrW) < 1) { $json['status_code'] = 0; $json['status_message'] = "No Details Found"; } echo json_encode($json); die; }
function getKeyUsed() { if (Efiwebsetting::getData('veritrans_isProduction') == "yes") { $this->isProd = true; return Efiwebsetting::getData("veritrans_key_production"); } else { $this->isProd = false; return Efiwebsetting::getData("veritrans_key_sandbox"); } }
public function langsung() { if (Efiwebsetting::getData('checkOAuth') == 'yes') { IMBAuth::checkOAuth(); } $url = Efiwebsetting::getData("Portal_IP") . "PortalWeb/StorePortal?cmd=ws&mws=getall"; $data = file_get_contents($url); echo $data; exit; }
public function requestCashOut() { if (Efiwebsetting::getData('checkOAuth') == 'yes') { IMBAuth::checkOAuth(); } $idResto = Generic::mustCheck($_GET['id_restaurant'], "No ID Restaurant Found"); $amount = Generic::mustCheck($_GET['amount'], "No Amount Found"); if ($amount == "0") { Generic::errorMsg("Zero Amount not Allowed"); } $bankAcc = new RestoBankAccModel(); $arrBank = $bankAcc->getWhere("id_restaurant='{$idResto}'"); if (count($arrBank) <= 0) { Generic::errorMsg("You Have Not Set Your Cash Out Account"); } $req = new MasterCashOutRequestModel(); $arrReq = $req->getWhere("id_restaurant='{$idResto}' AND status='0'"); if (count($arrReq) > 0) { Generic::errorMsg("You Already Request Cash Out"); } $resto = new MasterRestaurantModel(); $resto->getByID($idResto); $cashOut = new MasterCashOutRequestModel(); $cashOut->id_restaurant = $idResto; $cashOut->datetime_request = leap_mysqldate(); $cashOut->amount = $amount; $cashOut->status = 0; $idNewRequest = $cashOut->save(); $tr = new MasterRestoTransactionModel(); $tr->id_request = $idNewRequest; $tr->id_restaurant = $idResto; $tr->gross_amount = (double) $amount * -1; $tr->net_amount = (double) $amount * -1; $tr->approved = "0"; $tr->type_transaction = "2"; $tr->datetime_transaction = leap_mysqldate(); $tr->mr_fee = 0; $tr->credit_card_fee = 0; $tr->other_fee = 0; $tr->bank_disc = 0; $tr->save(); $json['status_code'] = 1; $json['results']['messages'] = "success"; echo json_encode($json); die; }
public function extraMenu() { if (Efiwebsetting::getData('checkOAuth') == 'yes') { IMBAuth::checkOAuth(); } $objHS = new HomeSettingModel(); $json = array(); $json['status_code'] = 1; $search_type = isset($_GET['search_type']) ? addslashes($_GET['search_type']) : ""; if (!$search_type) { Generic::errorMsg("Search Type is blank!"); } $search_term = isset($_GET['search_term']) ? addslashes($_GET['search_term']) : ""; if (!search_term) { Generic::errorMsg("Search Term is blank!"); } }
function coba() { if (Efiwebsetting::getData('checkOAuth') == 'yes') { IMBAuth::checkOAuth(); } $m = new MasterRestaurantModel(); $n = new MasterMenuModel(); $arr = $n->getWhereFromMultipleTable("{$m->table_name}.id_restaurant = {$n->table_name}.id_restaurant", array("MasterRestaurantModel")); echo count($arr); foreach ($arr as $c) { echo $c->id_menu . " " . $c->name; echo "<br>"; } echo json_encode($arr); //`menurevo__ms_restaurant` //INSERT INTO `c1nt466_menurevo`.`menurevo__ms_menu` (`id_menu`, `category_ids`, `status`, `id_restaurant`, `layout_type`) VALUES ('1', 'Food', 'Aktiv', '1', ''); die; }
public function overwriteForm($return, $returnfull) { // $acc = array( // "news"=>"News", // "testimonial"=>"Testimonials", // "event"=>"Event", // "product"=>"Product", // "service"=>"Service", // "team"=>"Team", // "more"=>"More" // ); $acc = explode(",", Efiwebsetting::getData('ListTypes')); foreach ($acc as $c) { $ss[$c] = $c; } $return['list_layout'] = new Leap\View\InputSelect($ss, "list_layout", "list_layout", $this->list_layout); return $return; }
public function setInvitation() { if (Efiwebsetting::getData('checkOAuth') == 'yes') { IMBAuth::checkOAuth(); } $json = array(); $json['status_code'] = 1; $id_order = Generic::mustCheck($_GET['id_order'], "NO ID Order found!"); $result = $this->setInvitationStatus("1", $id_order); if ($result) { $json['status_code'] = 1; $json['status_message'] = "Success!"; } else { $json['status_code'] = 0; $json['status_message'] = "Failed!"; } echo json_encode($json); die; }
public static function checkOAuth() { if (Efiwebsetting::getData('checkOAuth') == "yes") { $text = addslashes($_GET['token']); $arr = array(); $t = gmdate("Y-m-d"); foreach (self::$array_names as $name) { // echo $name."<br>"; $arr[] = md5($name . $t); } // pr($arr); if (!in_array($text, $arr)) { $json['status_code'] = 0; $json['status_message'] = "Invalid Token"; echo json_encode($json); die; } } }
public static function run($url, $xml, $json = 1) { // $url = 'http://123.231.241.42:8280/'.$url; //$url = 'http://123.231.241.42:8281/PROD/'.$url; // IP lokal production //$url = 'http://192.168.0.35:8280/PROD/'.$url; // IP international production // $url = 'http://123.231.241.42:8281/PROD/'.$url; //$url = 'https://tbs.webservices.visibleresults.net/LLWebService/'.$url; $url = Efiwebsetting::getData('LL_URL') . $url; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml')); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POSTFIELDS, "{$xml}"); $result = curl_exec($ch); // Check for errors and display the error message if ($errno = curl_errno($ch)) { $error_message = curl_strerror($errno); // echo "cURL error ({$errno}):\n {$error_message}"; $json['status_code'] = 0; $json['status_message'] = Efiwebsetting::getData('Constant_ll_failed'); echo json_encode($json); die; } curl_close($ch); if ($json == 1) { return Request::toJson($result, 0); } elseif ($json == 2) { return simplexml_load_string($result); } elseif ($json == 3) { $xmlDoc = new DOMDocument(); $xmlDoc->load($result); return $xmlDoc; } else { return $result; } }
public function getSetting() { IMBAuth::checkOAuth(); $app_id = addslashes($_POST['app_id']); $app_token = addslashes($_POST['app_token']); $app = new AppAccount(); $app->getByID($app_id); if ($app_token != $app->app_token) { $json['status_code'] = 0; $json['status_message'] = "Token Mismatched"; echo json_encode($json); die; } $str = file_get_contents(_PHOTOPATH . "json/" . $app->app_keywords . ".json"); // pr($str); $json = json_decode($str); // pr($json); //ditambahi $json->powered_by_link = Efiwebsetting::getData("Powered_By_Link"); $json->status_code = 1; echo json_encode($json); die; }
public function sendwithreturn() { if (Efiwebsetting::getData('checkOAuth') == 'yes') { IMBAuth::checkOAuth(); } $json = array(); $json['status_code'] = 1; $idOrder = $_GET['id_order']; $toEmail = $_GET['email']; $order = new MasterOrderModel(); $order->getByID($idOrder); $resto = new MasterRestaurantModel(); $resto->getByID($order->id_restaurant); $subject = "Your receipt from " . $restoName . " , Receipt#" . $idOrder; $od = new OrderDetailModel(); $d = new MasterDishModel(); // $dompdf = new Dompdf\Dompdf(); global $db; $q = "SELECT {$od->table_name}.id_dish, {$d->table_name}.name, SUM(quantity) AS sum_qty, {$d->table_name}.price,\nSUM({$od->table_name}.price) AS sum_price, status_progress FROM `{$od->table_name}`\nRIGHT JOIN {$d->table_name} ON {$od->table_name}.id_dish = {$d->table_name}.id_dish WHERE id_order='{$idOrder}' GROUP BY id_dish"; $arrDetails = $db->query($q, 2); $css_boot = _BPATH . "themes/tbstheme_ori/css/bootstrap.min.css"; $image1 = _BPATH . _PHOTOURL . $resto->image_logo; if ($image1 == "") { $image1 = _BPATH . _PHOTOURL . "noimage.jpg"; } $head = "<html xmlns=\"http://www.w3.org/1999/xhtml\">"; $head = "<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /><title>Notification email</title>"; $head = $head . "<link href=" . $css_boot . " rel=\"stylesheet\">"; $head = $head . "<link href=\"https://fonts.googleapis.com/css?family=Roboto+Condensed:400,700&subset=latin,latin-ext\" rel=\"stylesheet\" type=\"text/css\">"; $head = $head . "</head>"; $html = "<div style=\"max-width: 800px; box-shadow: 0 0 10px rgba(0, 0, 0, .15); font-size: 16px; line-height: 24px; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; color: #555; margin: auto; padding: 30px; border: 1px solid #eee;\">\n<table style=\"width: 100%; line-height: inherit; text-align: left;\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td style=\"vertical-align: top; padding: 5px;\" colspan=\"2\">\n<table style=\"width: 100%; line-height: inherit; text-align: left;\">\n<tbody>\n<tr>\n<td style=\"vertical-align: top; font-size: 45px; line-height: 45px; color: #333; width: 50%; display: block; text-align: left; padding: 5px 5px 20px;\" align=\"left\" valign=\"top\"><img style=\"width: 50%; max-width: 300px;\" src=" . $image1 . " alt=\"\" /></td>\n</tr>\n<tr>\n<td style=\"vertical-align: top; width: 100%; display: block; text-align: left; padding: 5px 5px 40px;\" align=\"center\" valign=\"top\">"; $html = $html . "<strong>" . $resto->name . "</strong><br />"; $html = $html . $resto->district . " - " . $resto->city . " <br>"; $html = $html . "Phone : " . $resto->phone_no . "</td>"; $html = $html . "</tr>\n</tbody>\n</table>\n</td>\n</tr>\n<tr>\n<td style=\"vertical-align: top; padding: 5px;\" colspan=\"2\" valign=\"top\">\n<table style=\"width: 100%; line-height: inherit; text-align: left;\">\n<tbody>\n<tr>\n<td style=\"vertical-align: top; text-align: left; t width: 50%; display: block; padding: 5px 5px 20px;\" align=\"left\" valign=\"top\">"; $html = $html . "</tr>"; $html = $html . "Receipt #: " . $idOrder; $html = $html . "<br/>"; $html = $html . " Server : "; if ($order->type_order == "1" || $order->type_order == "3") { $html = $html . "Apps Order"; } else { $html = $html . $order->server_name; } $html = $html . "<br/>"; $html = $html . " Time Order : " . date("d M, Y H:m", strtotime($order->datetime_order)); $html = $html . "<br/>"; $html = $html . " Payment Method : " . Generic::selectPaymentMethod($order->status_payment); $html = $html . "<br/>"; if ($order->type_order == "1" || $order->type_order == "3") { $html = $html . "Apps Order"; } else { $html = $html . "Manual Order"; } $html = $html . "<br/>"; $html = $html . "</td>"; $html = $html . "</tr> \n</tbody>\n</table>\n</td>\n</tr>\n<tr>\n<td style=\"vertical-align: top; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #ddd; font-weight: bold; background-color: #eee; padding: 5px;\" valign=\"top\" bgcolor=\"#eee\">Item</td>\n<td style=\"vertical-align: top; text-align: right; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #ddd; font-weight: bold; background-color: #eee; padding: 5px;\" align=\"center\" valign=\"top\" bgcolor=\"#eee\">#</td>\n<td style=\"vertical-align: top; text-align: right; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #ddd; font-weight: bold; background-color: #eee; padding: 5px;\" align=\"right\" valign=\"top\" bgcolor=\"#eee\">Price</td>\n <td style=\"vertical-align: top; text-align: right; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #ddd; font-weight: bold; background-color: #eee; padding: 5px;\" align=\"right\" valign=\"top\" bgcolor=\"#eee\">Total</td>\n</tr>"; foreach ($arrDetails as $details) { $void = ""; if ($details->status_progress == "9") { $void = "<strong> Voided </strong>"; $details->price = 0; $details->sum_price = 0; } $html = $html . "<tr><td style=\"vertical-align: top; border-bottom-width: 1px; border-bottom-color: #eee; border-bottom-style: solid; padding: 5px;\" valign=\"top\">" . $details->name . $void . "</td>"; $html = $html . "<td style=\"vertical-align: top; text-align: right; border-bottom-width: 1px; border-bottom-color: #eee; border-bottom-style: solid; padding: 5px;\" align=\"right\" valign=\"top\">" . $details->sum_qty . "</td>"; $html = $html . "<td style=\"vertical-align: top; text-align: right; border-bottom-width: 1px; border-bottom-color: #eee; border-bottom-style: solid; padding: 5px;\" align=\"right\" valign=\"top\">" . Generic::formatRupiah($details->price) . "</td>"; $html = $html . "<td style=\"vertical-align: top; text-align: right; border-bottom-width: 1px; border-bottom-color: #eee; border-bottom-style: solid; padding: 5px;\" align=\"right\" valign=\"top\">" . Generic::formatRupiah($details->sum_price) . "</td></tr>"; } $html = $html . "<tr>\n<td style=\"vertical-align: top; text-align: right; border-top-style: solid; border-top-width: 2px; border-top-color: #eee; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\"></td>\n<td style=\"vertical-align: top; text-align: right; border-top-style: solid; border-top-width: 2px; border-top-color: #eee; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\"></td>\n<td style=\"vertical-align: top; text-align: right; border-top-style: solid; border-top-width: 2px; border-top-color: #eee; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\">Total : </td>\n<td style=\"vertical-align: top; text-align: right; border-top-style: solid; border-top-width: 2px; border-top-color: #eee; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\">" . Generic::formatRupiah($order->total_cost) . "</td>\n</tr>\n<tr>\n<td style=\"vertical-align: top; text-align: right; border-top-style: solid; border-top-width: 2px; border-top-color: #eee; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\"></td>\n<td style=\"vertical-align: top; text-align: right; border-top-style: solid; border-top-width: 2px; border-top-color: #eee; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\"></td>\n<td style=\"vertical-align: top; text-align: right; border-top-style: solid; border-top-width: 2px; border-top-color: #eee; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\">Disc Resto : </td>\n<td style=\"vertical-align: top; text-align: right; border-top-style: solid; border-top-width: 2px; border-top-color: #eee; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\">" . Generic::formatRupiah($order->disc_resto) . "</td>\n</tr>\n<tr>\n<td style=\"vertical-align: top; text-align: right; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\"></td>\n<td style=\"vertical-align: top; text-align: right; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\"></td>\n<td style=\"vertical-align: top; text-align: right; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\">Disc Credit Card : </td>\n<td style=\"vertical-align: top; text-align: right; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\">" . Generic::formatRupiah($order->disc_bank) . "</td>\n</tr>\n<tr>\n<td style=\"vertical-align: top; text-align: right; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\"></td>\n<td style=\"vertical-align: top; text-align: right; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\"></td>\n<td style=\"vertical-align: top; text-align: right; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\">Disc MR : </td>\n<td style=\"vertical-align: top; text-align: right; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\">" . Generic::formatRupiah($order->disc_mr) . "</td>\n</tr>\n\n<tr>\n<td style=\"vertical-align: top; text-align: right; border-top-style: solid; border-top-width: 2px; border-top-color: #eee; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\"></td>\n<td style=\"vertical-align: top; text-align: right; border-top-style: solid; border-top-width: 2px; border-top-color: #eee; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\"></td>\n<td style=\"vertical-align: top; text-align: right; border-top-style: solid; border-top-width: 2px; border-top-color: #eee; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\">Tax PB1 : </td>\n<td style=\"vertical-align: top; text-align: right; border-top-style: solid; border-top-width: 2px; border-top-color: #eee; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\">" . Generic::formatRupiah($order->tax_pb1) . "</td>\n</tr>\n<tr>\n<td style=\"vertical-align: top; text-align: right; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\"></td>\n<td style=\"vertical-align: top; text-align: right; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\"></td>\n<td style=\"vertical-align: top; text-align: right; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\">Service Charge : </td>\n<td style=\"vertical-align: top; text-align: right; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\">" . Generic::formatRupiah($order->tax_pb1) . "</td>\n</tr>\n<tr>\n<td style=\"vertical-align: top; text-align: right; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\"></td>\n<td style=\"vertical-align: top; text-align: right; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\"></td>\n<td style=\"vertical-align: top; text-align: right; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\">Other Charge : </td>\n<td style=\"vertical-align: top; text-align: right; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\">" . Generic::formatRupiah($order->tax_pb1) . "</td>\n</tr>\n<tr>\n<td style=\"vertical-align: top; text-align: right; border-top-style: solid; border-top-width: 2px; border-top-color: #eee; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\"></td>\n<td style=\"vertical-align: top; text-align: right; border-top-style: solid; border-top-width: 2px; border-top-color: #eee; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\"></td>\n<td style=\"vertical-align: top; text-align: right; border-top-style: solid; border-top-width: 2px; border-top-color: #eee; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\">Grand Total :</td>\n<td style=\"vertical-align: top; text-align: right; border-top-style: solid; border-top-width: 2px; border-top-color: #eee; font-weight: bold; padding: 5px;\" align=\"right\" valign=\"top\">" . Generic::formatRupiah($order->grand_total) . "</td>\n</tr>\n\n</tbody>\n</table>\n</div></html>"; $html = $head . $html; $mail = new Leapmail(); $res = $mail->sendEmailHTML($toEmail, $subject, $html); return $res; }
function getNews() { if (Efiwebsetting::getData('checkOAuth') == 'yes') { IMBAuth::checkOAuth(); } $m = addslashes($_GET['mode']); if ($m == "news") { $news = new LL_News(); $start = "news_start"; $end = "news_end"; $active = "news_active"; $url = "news_url"; $webview = "news"; $order = "news_order DESC,news_start DESC"; } elseif ($m == "offer") { $news = new LL_Program(); $start = "prog_date_start"; $end = "prog_date_end"; $active = "prog_active"; $url = "prog_url"; $webview = "offers"; $order = "prog_date_start DESC"; } else { $news = new CarouselMobile(); $start = "carousel_start"; $end = "carousel_end"; $active = "carousel_active"; $url = "carousel_url"; $webview = "carousel"; $order = "carousel_start DESC"; } $json['status_code'] = 1; $obj = $news; // $arrn = $news->getWhere('news_active = 1 AND CURDATE() between news_start and news_end ORDER BY news_start DESC'); // pr($arrn); $obj->default_read_coloms = $obj->crud_webservice_allowed; $main_id = $obj->main_id; $exp = explode(",", $obj->crud_webservice_allowed); $arrPicsToAddPhotoUrl = $obj->crud_add_photourl; // echo $active.' = 1 AND CURDATE() between '.$start.' and '.$end.' ORDER BY '.$start.' DESC'; $arr = $obj->getWhere($active . ' = 1 AND CURDATE() between ' . $start . ' and ' . $end . ' ORDER BY ' . $order); $json = array(); $json['status_code'] = 1; //filter foreach ($arr as $o) { $sem = array(); foreach ($exp as $attr) { if (in_array($attr, $arrPicsToAddPhotoUrl)) { $sem[$attr] = _PHOTOURL . $o->{$attr}; } else { if ($url != "carousel_url" && $attr == $url && $o->{$attr} == "") { $sem[$attr] = _BPATH . "WebViewer/" . $webview . "/" . $o->{$main_id}; } else { $sem[$attr] = stripslashes($o->{$attr}); } } } $json["results"][] = $sem; } if (count($arr) < 1) { $json['status_code'] = 0; $json['status_message'] = "No Details Found"; } echo json_encode($json); die; }
$template = $init->getTemplate(); //theme selection if (strpos($_GET['url'], 'EfiHome') !== false || $_GET['url'] == "index") { $themepath = 'adminlte2'; } else { $themepath = ThemeItem::getTheme(); } $init->setThemeDynamic($themepath); //include the functions foreach ($files2Load as $file) { //penambahan mold if (strpos($file, 'BPlugin') && strpos($file, 'functions.php')) { require_once $file; } //echo $file;echo "<br>"; } //set session for photopath and photourl $_SESSION['photopath'] = _PHOTOPATH; $_SESSION['photourl'] = _SPPATH . _PHOTOURL; define('_LANGPATH', _SPPATH); //coba di load websettingnya $ef = new Efiwebsetting(); $ef->loadToSession(); //pr($_SESSION); //echo Efiwebsetting::getWebTitle(); //pr($init); $template->setTitle(Efiwebsetting::getWebTitle()); $template->setMetaKey(Efiwebsetting::getWebMetaKey()); $template->setMetaDesc(Efiwebsetting::getWebMetaDesc()); //pr($_SESSION); $init->run();
<td> <?php echo Efiwebsetting::getData("Whatsapp"); ?> </td> </tr> <?php } ?> <?php if (Efiwebsetting::getData("BB") != "") { ?> <tr> <td>Pin BB</td> <td> : </td> <td> <?php echo Efiwebsetting::getData("BB"); ?> </td> </tr> <?php } ?> <!-- <td>Online Chat</td> <td>:</td> <td><button class="btn btn-default">Begin Chat</button></td> </tr>--> </tbody></table> </div> </div> </div>
function save() { //IMBAuth::checkOAuth(); $device_id = addslashes($_POST['device_id']); $type = addslashes($_POST['type']); //completion check if ($device_id == "" || $type == "") { $json['status_code'] = 0; $json['status_message'] = "Incomplete Request"; echo json_encode($json); die; } //check account.. $acc = isset($_POST['acc_id']) ? addslashes($_POST['acc_id']) : 0; $res_id = isset($_POST['res_id']) ? addslashes($_POST['res_id']) : 0; // IMBAuth::checkOAuth(); $dn = new DeviceModel(); $dnquery = new DeviceModel(); // langkah 1 , device ID ada device type ada $arrs = $dnquery->getWhere("device_id = '{$device_id}' AND device_type = '{$type}'"); $dn = $arrs[0]; if ($dn->did == "") { $dn = new DeviceModel(); $dn->device_id = $device_id; $dn->device_type = $type; $dn->acc_id = $acc; $dn->firstlogin = leap_mysqldate(); $dn->dev_res_id = $res_id; } else { //kalau device id ada, acc di update $dn->load = 1; $dn->acc_id = $acc; $dn->dev_res_id = $res_id; } $dn->dev_lng = addslashes($_POST['lng']); $dn->dev_lat = addslashes($_POST['lat']); $dn->logindate = leap_mysqldate(); //save user latlong to MasterUser -- 10 May 2016 sendy if (isset($_POST['lat']) && isset($_POST['lng']) && $acc != 0) { $user = new UserModel(); $user->getByID($acc); $user->logindate = leap_mysqldate(); $user->latitude = addslashes($_POST['lat']); $user->longitude = addslashes($_POST['lng']); $user->save(); } //save user District and City to LocationModel -- 26 May 2016 sendy Generic::saveDistrictCityFromLatLng(addslashes($_POST['lat']), addslashes($_POST['lng']), $acc, $type == "cashier"); if ($dn->save()) { $json['save_status'] = 1; $json['version'] = Efiwebsetting::getData('App_Version_' . strtolower($type)); $json['url'] = Efiwebsetting::getData('App_URL_' . strtolower($type)); //logged all device login 19 nov 2015 roy // $logged = new DeviceLogger(); // $logged->log_acc_id = $dn->acc_id; // $logged->log_date = leap_mysqldate(); // $logged->log_dev_id = $dn->device_id; // $logged->log_dev_type = $dn->device_type; // $logged->save(); } else { $json['save_status'] = 0; } $json['status_code'] = 1; if ($_POST['do_not_die']) { return $json; } else { echo json_encode($json); die; } }
public function repositionTables() { if (Efiwebsetting::getData('checkOAuth') == 'yes') { IMBAuth::checkOAuth(); } $json = array(); $json['status_code'] = 1; $id_restaurant = isset($_POST['id_restaurant']) ? addslashes($_POST['id_restaurant']) : ""; if (!$id_restaurant) { $json['status_code'] = 0; $json['status_message'] = "No ID Found"; echo json_encode($json); die; } $jsonTables = isset($_POST['tables']) ? $_POST['tables'] : ""; if (!$jsonTables) { $json['status_code'] = 0; $json['status_message'] = "No ID Found"; echo json_encode($json); die; } $jsonArrayTables = json_decode($jsonTables); // pr($jsonArrayTables); $countjsonArrayTables = count($jsonArrayTables); // pr($countTables); $objResto = new MasterRestaurantModel(); $arrResto = $objResto->getWhere("id_restaurant='{$id_restaurant}'"); MasterDish::checkCount($arrResto); $countTablesinResto = $arrResto[0]->table_quantity; // pr($arrResto); $objTable = new MasterTableModel(); $arrTable = $objTable->getWhere("id_restaurant='{$id_restaurant}'"); if ($countTablesinResto != $countjsonArrayTables) { Generic::errorMsg("Wrong Quantity"); } // $break = false; // foreach ($jsonArrayTables as $key => $objTables) { //// // $arrReposTable = $objTable->getWhere("id_restaurant='$id_restaurant' AND id_table='$objTables->table_id' "); // if (count($arrReposTable) == 0) { // $break = true; // $msg = $msg . " $objTables->table_id can't find in database."; // } // } // if ($break == false) { // foreach ($jsonArrayTables as $key => $objTables) { // $arrReposTable = $objTable->getWhere("id_restaurant='$id_restaurant' AND id_table='$objTables->table_id' "); //// $arrReposTable[0]->table_position = $key + 1; // $arrReposTable[0]->load = 1; // $arrReposTable[0]->save(); // } // } $counter = 1; foreach ($jsonArrayTables as $jsonObjTable) { $table = new MasterTableModel(); $table->getByID($jsonObjTable->table_id); $table->table_position = $counter; $table->save(); $counter++; } $json['status_code'] = 1; $json['results']['message'] = "success"; echo json_encode($json); die; }
function tk($args) { list($lvl, $name) = $args; //$lvl = $_GET['lvl']; if ($lvl == "") { $lvl = 1; } if ($lvl == 0) { header("Location:" . _SPPATH . "rank/dari_untuk_indonesia"); exit; } $l = new QuizLevel(); $l->getByID($lvl); if ($l->level_name == "" || $l->level_aktif != 1) { Redirect::p404(); } $actual_link = _BPATH . "kl/tk/" . $lvl; $point = QuizPoints::myPoints(); $kurang = ""; $lebih = ""; $arrLevelsBig = $l->getWhere("level_limit > {$l->level_limit} AND level_aktif = 1 ORDER BY level_limit ASC LIMIT 0,1"); $lebih = $arrLevelsBig[0]; $arrLevelsSmall = $l->getWhere("level_limit < {$l->level_limit} AND level_aktif = 1 ORDER BY level_limit DESC LIMIT 0,1"); $kurang = $arrLevelsSmall[0]; //pr($arrLevels); $boleh = 0; if ($point >= $l->level_limit) { $boleh = 1; } $arrLevel = $l->getWhere(" level_aktif = 1 ORDER BY level_limit ASC "); ?> <div class="col-md-10 col-sm-12 col-xs-12 kelas col-md-offset-1"> <div id="fbgroup" style="height: 20px; line-height: 20px; margin-bottom: 20px;float: none; "> <div style="float:left;width: 200px; text-align: left;"> Pilih Kelas : <select id="kelassel" onchange="document.location='<?php echo _SPPATH; ?> kl/tk/'+$('#kelassel').val();"> <?php foreach ($arrLevel as $level) { ?> <option <?php if ($level->level_id == $lvl) { echo "selected"; } ?> value="<?php echo $level->level_id; ?> "><?php echo $level->level_name; ?> </option> <?php } ?> </select> </div> <div class="fb-like" data-href="<?php echo $actual_link; ?> " data-layout="button_count" data-action="like" data-show-faces="true" data-share="true"></div> </div> <div class="kelas_container"> <h1 class="text-center judulkl"> <?php if ($kurang->level_id != "") { ?> <i onclick="document.location='<?php echo _SPPATH; ?> kl/tk/<?php echo $kurang->level_id; ?> ';" class="glyphicon glyphicon-chevron-left"></i> <?php } ?> <?php echo $l->level_name; ?> <?php if ($lebih->level_id != "") { ?> <i onclick="document.location='<?php echo _SPPATH; ?> kl/tk/<?php echo $lebih->level_id; ?> ';" class="glyphicon glyphicon-chevron-right"></i> <?php } ?> </h1> <div class="kelas_isi"> <?php //echo "<h1 class='text-center'>".$l->level_name."</h1>"; //get ulangan dlm level $ul = new QuizUlangan(); $arrUl = $ul->getWhere("ulangan_level_id = '" . $l->level_id . "' AND ulangan_aktif = 1"); //pr($arrUl); foreach ($arrUl as $num => $ul) { ?> <div class="col-md-4 text-center kelas_dalam"> <div class="kelas_dalam_image"> <a href="<?php echo _SPPATH; ?> ul/id/<?php echo $ul->ulangan_id; ?> /<?php echo urlencode($ul->ulangan_name); ?> "> <img class="wow bounceIn" <?php if (!$boleh) { ?> style="opacity:0.5;"<?php } ?> width="100%" src="<?php echo _SPPATH . _PHOTOURL . "thumbnail/" . $ul->ulangan_image; ?> "> </a> </div> <div class="kelas_dalam_text"> <a href="<?php echo _SPPATH; ?> ul/id/<?php echo $ul->ulangan_id; ?> /<?php echo urlencode($ul->ulangan_name); ?> "><?php echo $ul->ulangan_name; ?> </a> </div> </div> <?php if ($num % 3 == 2) { echo '<div class="clearfix"></div>'; } } ?> <div class="clearfix"></div> </div> </div> <div id="comment"> <div class="fb-comments" data-href="<?php echo $actual_link; ?> " data-width="100%" data-numposts="5" data-colorscheme="light"></div> </div> </div> <div class="clearfix"></div> <style> h1.judulkl{ font-family: verdana; margin-top: 0px; } .kelas_dalam_text a{ color:#db031b; } .judulkl i{ font-size: 20px; position: absolute; margin-top: 80px; margin-left: 20px; font-style: normal; cursor: pointer; //color:maroon; } .judulkl i.glyphicon-chevron-left{ margin-left: -40px; //margin-right: 20px; } .kelas_container{ padding-top: 30px; // background-color: #efefef; } </style> <?php global $template; $template->title = $l->level_name . " | Seberapa Indonesiakah Anda"; $template->metades = $l->level_descr . " #Seberapa Indonesiakah Anda | How Indonesia Are You"; $template->metakey = 'How Indonesia Are You, Seberapa Indonesiakah Anda'; $fb_opengraph = '<meta property="og:title" content="' . $l->level_name . '" />'; $template->headText[] = $fb_opengraph; //image $fb_opengraph = '<meta property="og:image" content="' . _BPATH . _PHOTOURL . $l->level_fb_image . '" /> '; $template->headText[] = $fb_opengraph; //url $actual_link = "http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}"; $fb_opengraph = '<meta property="og:url" content="' . $actual_link . '" />'; $template->headText[] = $fb_opengraph; //sitename $fb_opengraph = '<meta property="fb:app_id" content="' . Efiwebsetting::getData('fb_app_id') . '" />' . '<meta property="og:type" content="website" />'; $template->headText[] = $fb_opengraph; //sitename $fb_opengraph = '<meta property="og:site_name" content="SeberapaIndonesiakahAnda"/>'; $template->headText[] = $fb_opengraph; //description $fb_opengraph = '<meta property="og:description" content="' . $l->level_descr . '" />'; $template->headText[] = $fb_opengraph; }
function coba() { $array = array("id" => "hoho", "bg" => _SPPATH . "images/bg2.jpg", "heit" => "80", "cname" => "QRHome", "fname" => "index_atas"); self::kerjakan($array); global $template; $template->full = 1; $fb_opengraph = '<meta property="og:title" content="Seberapa Indonesiakah Anda?!" />'; $template->headText[] = $fb_opengraph; $fb_opengraph = '<meta property="og:image" content="' . _BPATH . 'images/mainpage.jpg" /> '; $template->headText[] = $fb_opengraph; //url $actual_link = "http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}"; $fb_opengraph = '<meta property="og:url" content="' . $actual_link . '" />'; $template->headText[] = $fb_opengraph; //sitename $fb_opengraph = '<meta property="fb:app_id" content="' . Efiwebsetting::getData('fb_app_id') . '" />' . '<meta property="og:type" content="website" />'; $template->headText[] = $fb_opengraph; //sitename $fb_opengraph = '<meta property="og:site_name" content="SeberapaIndonesiakahAnda"/>'; $template->headText[] = $fb_opengraph; //description $fb_opengraph = '<meta property="og:description" content="Ujian Nasional Tidak RESMI. Harap semua warga Indonesia mengikuti. Berani ambil ujiannya?" />'; $template->headText[] = $fb_opengraph; ?> <div class="col-md-8 col-md-offset-2"> <div style="text-align: center; margin-top: 30px;"> <a href="http://ho.lazada.co.id/SHCAv7?file_id=37902" target="_blank"><img alt="Lazada Indonesia" src="https://media.go2speed.org/brand/files/lazada/301/IDLenovoA7000728x90.gif" width="728" height="90"/></a><img src="http://ho.lazada.co.id/aff_i?offer_id=1886&file_id=37902&aff_id=60484" width="1" height="1" /> <!-- Javascript Ad Tag: 399 --> <div id="lazada399zBcKwI"></div> <script src="http://lazada.go2cloud.org/aff_ad?campaign_id=399&aff_id=60484&format=javascript&format=js&divid=lazada399zBcKwI" type="text/javascript"></script> <noscript><iframe src="http://lazada.go2cloud.org/aff_ad?campaign_id=399&aff_id=60484&format=javascript&format=iframe" scrolling="no" frameborder="0" marginheight="0" marginwidth="0" width="120" height="600"></iframe></noscript> <!-- // End Ad Tag --> <a href="https://media.go2speed.org/brand/files/lazada/111/20140904205720-2014.07.09_ID_genericbanner_300x600.jpg" target="_blank">https://media.go2speed.org/brand/files/lazada/111/20140904205720-2014.07.09_ID_genericbanner_300x600.jpg</a> <a href="http://ho.lazada.com.ph/SHCAun?file_id=49294" target="_blank"><img alt="Lazada Philippines" src="https://media.go2speed.org/brand/files/lazada/305/PH_ShoeLove_120x600.jpg" width="120" height="600"/></a><img src="http://ho.lazada.com.ph/aff_i?offer_id=2542&file_id=49294&aff_id=60484" width="1" height="1" /> <a href="https://media.go2speed.org/brand/files/lazada/111/20140904205719-2014.07.09_ID_genericbanner_1024x768.jpg" target="_blank">https://media.go2speed.org/brand/files/lazada/111/20140904205719-2014.07.09_ID_genericbanner_1024x768.jpg</a> <a href="http://ho.lazada.co.id/SHCAuR?file_id=47576" target="_blank"><img alt="Lazada Indonesia" src="https://media.go2speed.org/brand/files/lazada/301/IDBacktoSchool120x600.gif" width="120" height="600"/></a><img src="http://ho.lazada.co.id/aff_i?offer_id=2466&file_id=47576&aff_id=60484" width="1" height="1" /> <!--<h1>Pranich Healing memberikan Solusi</h1>--> <div class="row"> <div class="spb_content_element col-sm-3 spb_text_column"> <div class="spb-asset-content" style="padding-top:0%;padding-bottom:0%;padding-left:0%;padding-right:0%;"> <p style="text-align: center;"><img class="aligncenter wp-image-12172" src="http://beyond.globalpranichealing.com/wp-content/uploads/2014/04/PH-Publishing.jpg" alt="PH Publishing" width="77" height="58"></p> <h3 style="text-align: center;">Kursus</h3> <p style="text-align: center;">Find your favorite Pranic Healing related book or audio and shop online.</p> <h5 style="text-align: center;"><span style="color: #74bb72;"><a style="color: #74bb72;" href="http://www.iispfi.com/home/">Shop Online </a>></span></h5> </div> </div> <div class="spb_content_element col-sm-3 spb_text_column"> <div class="spb-asset-content" style="padding-top:0%;padding-bottom:0%;padding-left:0%;padding-right:0%;"> <p style="text-align: center;"><img class="aligncenter wp-image-11851" src="http://beyond.globalpranichealing.com/wp-content/uploads/2014/09/PH-Logo-Topics.jpg" alt="PH-Logo-Topics" width="77" height="58"></p> <h3 style="text-align: center;">PH Center</h3> <p style="text-align: center;">Find your nearest Pranic Healing center today and join their awesome activities.</p> <h5 style="text-align: center;"><span style="color: #74bb72;"><a style="color: #74bb72;" href="http://globalpranichealing.com/en/directory/">Find a center </a>></span></h5> </div> </div> <div class="spb_content_element col-sm-3 spb_text_column"> <div class="spb-asset-content" style="padding-top:0%;padding-bottom:0%;padding-left:0%;padding-right:0%;"> <p style="text-align: center;"><img class="aligncenter wp-image-12173" src="http://beyond.globalpranichealing.com/wp-content/uploads/2014/04/PH-Community.jpg" alt="PH Community" width="77" height="58"></p> <h3 style="text-align: center;">Events</h3> <p style="text-align: center;">Need support to spread the teachings? Visit the Pranic Healers Community.</p> <h5 style="text-align: center;"><span style="color: #74bb72;">Coming Soon</span></h5> </div> </div> <div class="spb_content_element col-sm-3 spb_text_column"> <div class="spb-asset-content" style="padding-top:0%;padding-bottom:0%;padding-left:0%;padding-right:0%;"> <p style="text-align: center;"><img class="aligncenter wp-image-12174" src="http://beyond.globalpranichealing.com/wp-content/uploads/2014/04/PH-Surprise.jpg" alt="PH Surprise" width="77" height="58"></p> <h3 style="text-align: center;">Blog</h3> <p style="text-align: center;">We have awesome projects coming up. Stay tuned for our stunning surprises…</p> <h5 style="text-align: center;"><span style="color: #74bb72;">Coming Soon</span></h5> </div> </div> </div> <p style="margin-top: 20px;">Yang terbaru dari #SeberapaIndonesia, kamu bisa buat ujian kamu sendiri, dari INDONESIA, untuk INDONESIA dan tentang INDONESIA.</p> <p>Untuk membuat, silahkan register <a href="<?php echo _SPPATH; ?> register">disini</a></p> <p style="margin-bottom: 60px;">Selengkapnya bisa dilihat di <a href="<?php echo _SPPATH; ?> rank/dari_untuk_indonesia">disini</a></p> </div> </div> <?php echo "test sendy"; }
function __construct() { $this->ip_address = Efiwebsetting::getData('GoldAPI'); }
echo _SPPATH; ?> images/twitter0.png" align="absmiddle" onmouseover="this.src='<?php echo _SPPATH; ?> images/twitter1.png';" onmouseout="this.src='<?php echo _SPPATH; ?> images/twitter0.png';"/> </div> <div class="alamat" style="margin-top:5px;"> <a href="mailto:<?php echo Efiwebsetting::getEmail(); ?> "><?php echo Efiwebsetting::getEmail(); ?> </a> </div> <div class="alamat" style="margin-top:5px;"> <?php echo Efiwebsetting::getAddress(); ?> </div> </div> </div> </div>
public static function getMyPayment($idUser) { $allowCash = Efiwebsetting::getData('App_Allow_Cash') == 'yes'; $allowDokuWallet = Efiwebsetting::getData('App_Allow_Doku_Wallet') == 'yes'; $allowCreditCard = Efiwebsetting::getData('App_Allow_Credit_Card') == 'yes'; $user = new UserModel(); $user->getByID($idUser); if (Generic::IsNullOrEmptyString($user->id_user)) { Generic::errorMsg(Keys::$ERR_NOT_FOUND_USER); } $results['allow_cash'] = $allowCash; $results['allow_doku_wallet'] = $allowDokuWallet; $results['allow_credit_card'] = $allowCreditCard; if (Generic::IsNullOrEmptyString($user->payment_type)) { $user->payment_type = Keys::$PAYMENT_TYPE_CASH; $user->save(); } $results['user'] = Util::extractModel($user, Helper::$columnReturnLogin); $results['payment_type'] = $user->payment_type; $results['has_doku_wallet'] = !Generic::IsNullOrEmptyString($user->payment_id); $results['has_credit_card'] = !Generic::IsNullOrEmptyString($user->payment_token); $results['doku_wallet']['balance'] = Keys::$EMPTY; $results['doku_wallet']['doku_id'] = Keys::$EMPTY; $results['credit_card']['payment_token'] = Keys::$EMPTY; // $results['credit_card']['payment_id'] = Keys::$EMPTY; $results['credit_card']['payment_bank'] = Keys::$EMPTY; $results['credit_card']['payment_mcn'] = Keys::$EMPTY; if ($allowDokuWallet) { $doku = new PaymentDoku(); $results['doku_wallet']['status_init'] = $doku->STATUS_INIT; $results['doku_wallet']['doku_error'] = $doku->DOKU_ERROR; if ($doku->DOKU_ERROR) { $results['has_doku_wallet'] = false; } $results['doku_wallet']['balance'] = $doku->checkBalance($user->payment_id); $results['doku_wallet']['doku_id'] = $user->payment_id; } if ($allowCreditCard) { $results['credit_card']['payment_token'] = Generic::IsNullOrEmptyString($user->payment_token) ? "" : $user->payment_token; // $results['credit_card']['payment_id'] = (Generic::IsNullOrEmptyString($user->payment_id)) ? "" : $user->payment_id; $results['credit_card']['payment_bank'] = Generic::IsNullOrEmptyString($user->payment_bank) ? "" : $user->payment_bank; $results['credit_card']['payment_mcn'] = Generic::IsNullOrEmptyString($user->payment_mcn) ? "" : $user->payment_mcn; $results['credit_card']['payment_bank_pic'] = Generic::insertImageUrl(Keys::$EMPTY); } return $results; }