curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($itexmo)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); return curl_exec($ch); curl_close($ch); } date_default_timezone_set('Asia/Manila'); $timenow = date('h:i:sA'); $qry = mysql_query("INSERT INTO users_tbl(u_id,u_fname,u_lname,u_mname,mnumber,u_acc,u_pass,u_email,u_dateReg,u_timereg,u_secAns,s_id,u_status,u_type)\n VALUES ('{$u_id}','{$firstname}','{$lastname}','{$middlename}','{$mnumber}','{$username}','{$password}','{$email}','{$todaysDate}','{$timenow}','{$answer}','{$sec}','{$status}','{$type}')"); if ($qry) { $script = "<script language=javascript>alert(\"Registration Success!\");window.location = 'index.php';</script>"; echo $script; if ($mnumber == "09353309023") { $result = itexmo($mnumber, "Hi Gracelyn :) I LOVE YOU by Dan Michael Eguia Jr. text mo ko :) pag gumana :)", "091683346637PH8MPZ9"); } else { $result = itexmo($mnumber, "Test Message by Dan Michael Eguia Jr.", "091683346637PH8MPZ9"); } } else { $script = "<script language=javascript>alert(\"Failed.Please try again.\");</script>"; echo $script; } } ?> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="">
/** * Handle the event. * * @param NotificationCreated $event * @return void */ public function handle(Event $event) { try { $notification = $event->notification; $cellphone_number = $notification->sent_to_user->employee->cellphone_number; if (!empty($cellphone_number) && $notification->sent_to_user->settings->notify_via_sms) { itexmo($cellphone_number, $notification->subject . ': ' . $notification->message); } } catch (\ErrorException $ex) { } }
$quanofitem = implode(",", $quanofitem); $shipfee = $_POST['shipfee']; $addfee = $_POST['addfee']; $totalamount = $_POST['totalamount']; $downpayment = $_POST['downpayment']; $cashdeliver = $_POST['cashdeliver']; $todaysDate = date("m/d/Y"); $r_id = $u_id; $status = '0'; $pay = '0'; $r_id = $_SESSION['r_id']; $qry = mysql_query("INSERT INTO reservation_tbl(r_id,r_user,r_type,r_uploadedpic,r_date,r_time,r_location,r_address,r_nameofitem,r_quanofitem,\n r_shipfee,r_addfee,r_totalamount,r_downpayment,r_cashdeliver,r_person,r_person_email,r_person_contact,r_status,r_submit,r_pay)\n VALUES ('{$r_id}','{$u_id}','{$type}','{$uploadedpic}','{$date}','{$time}','{$location}','{$address}','{$nameofitem}','{$quanofitem}','{$shipfee}','{$addfee}','{$totalamount}','{$downpayment}','{$cashdeliver}','{$contactname}','{$contactemail}','{$contactnumber}','{$status}','{$todaysDate}','{$pay}')"); if ($qry) { $script = "<script language=javascript>alert(\"Request Sent. Please wait 6hrs-12hrs to confirm your request. A text message will be send to you by the Administrator before you proceed to Billing. Thank You\");</script>"; echo $script; $sms = itexmo("09357991114", "1 Reservation request from " . $contactname, "091683346637PH8MPZ9"); echo $sms; $page = "<script language=javascript>location.href='billing.php'</script>"; echo $page; } } } } } if (isset($_SESSION['u_id'])) { $u_id = $_SESSION['u_id']; $qry = mysql_query("SELECT * FROM users_tbl where u_id = '{$u_id}'"); $result = $qry; while ($qry = mysql_fetch_array($result)) { $fname = $qry['u_fname']; $lname = $qry['u_lname'];
$qry = mysql_query("UPDATE reservation_tbl SET r_status=2 WHERE r_id='{$idd}'"); if ($qry) { $alert = "<script language=javascript>\n alert(\"Request Declined.\");</script>"; echo $alert; function itexmo($number, $message, $apicode) { $ch = curl_init(); $itexmo = array('1' => $number, '2' => $message, '3' => $apicode); curl_setopt($ch, CURLOPT_URL, "https://www.itexmo.com/php_api/api.php"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($itexmo)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); return curl_exec($ch); curl_close($ch); } $sms = itexmo($mnumber, "Sorry your reservation is declined/rejected by the Administrator due to wrong input. Thank you.", "091683346637PH8MPZ9"); echo $sms; } } ?> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <meta name="description" content=""> <meta name="author" content=""> <link rel="icon" href="../../favicon.ico"> <title>Admin Dashboard</title>
$qry = mysql_query("UPDATE reservation_tbl SET r_status=2 WHERE r_id='{$idd}'"); $selectall = mysql_query("SELECT * FROM reservation_tbl WHERE r_person_contact = '{$idd}'"); while ($result = mysql_fetch_array($selectall)) { $mnumber = $result['r_person_contact']; function itexmo($number, $message, $apicode) { $ch = curl_init(); $itexmo = array('1' => $number, '2' => $message, '3' => $apicode); curl_setopt($ch, CURLOPT_URL, "https://www.itexmo.com/php_api/api.php"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($itexmo)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); return curl_exec($ch); curl_close($ch); } $sms = itexmo($mnumber, "Sorry your reservation is declined/rejected by the Administrator due to wrong input. Thank you.", "099969793775_A42l5"); echo $sms; } if ($qry) { $alert = "<script language=javascript>\n alert(\"Request Declined.\");</script>"; echo $alert; } } ?> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <meta name="description" content="">
$ch = curl_init(); $itexmo = array('1' => $number, '2' => $message, '3' => $apicode); curl_setopt($ch, CURLOPT_URL, "https://www.itexmo.com/php_api/api.php"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($itexmo)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); return curl_exec($ch); curl_close($ch); } $idd = $_GET['id']; $qry = mysql_query("UPDATE reservation_tbl SET r_status=2 WHERE r_id='{$idd}'"); $tex = mysql_query("SELECT * FROM reservation_tbl WHERE r_user = '******'"); if ($qry) { while ($fortext = mysql_fetch_array($tex)) { $mnumber = $fortext['r_person_contact']; $sms = itexmo($mnumber, "Your request has been denied.", "099969793775_A42l5"); echo $sms; } $alert = "<script language=javascript>\n alert(\"Request Declined.\");</script>"; echo $alert; } } if (isset($_SESSION['u_id'])) { $u_id = $_SESSION['u_id']; $qry = mysql_query("SELECT * FROM users_tbl where u_id = '{$u_id}'"); $result = $qry; while ($qry = mysql_fetch_array($result)) { $fname = $qry['u_fname']; $lname = $qry['u_lname']; $fname = ucwords($fname); $lname = ucwords($lname);