One Hat Cyber Team
Your IP :
216.73.216.240
Server IP :
162.240.106.28
Server :
Linux server.ganesand.com 3.10.0-1160.80.1.el7.x86_64 #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64
Server Software :
Apache
PHP Version :
7.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
thoa
/
public_html
/
fpdf
/
View File Name :
buscard.php
<? require_once('invoice3.php'); include '../config.php'; error_reporting(0); $blno = "www.shahajservice.com"; if($_POST['submit']){ session_start(); $_SESSION["apno"]=$apno = mysql_real_escape_string($_POST['apno']); $_SESSION["apname"]=$apname = mysql_real_escape_string($_POST['apname']); $_SESSION["apimg"]=$apimg = mysql_real_escape_string($_POST['apimg']); $apimg = rawurlencode($apimg); $_SESSION["bus1"]=$bus1 = mysql_real_escape_string($_POST['bus1']); $_SESSION["bus2"]=$bus2 = mysql_real_escape_string($_POST['bus2']); $_SESSION["bus3"]=$bus3 = mysql_real_escape_string($_POST['bus3']); $_SESSION["bus4"]=$bus4 = mysql_real_escape_string($_POST['bus4']); $_SESSION["bus5"]=$bus5 = mysql_real_escape_string($_POST['bus5']); $_SESSION["pack"]=$pack = mysql_real_escape_string($_POST['pack']); /* fopen("cookies.txt", "w"); $url="http://adfoc.us/1575051"; $ch = curl_init(); $header=array('GET /1575051 HTTP/1.1', 'Host: adfoc.us', */ /* 'Accept:text/html,application/xhtml+xml,application/xml;q=0.9,* /*;q=0.8', */ /* 'Accept-Language:en-US,en;q=0.8', 'Cache-Control:max-age=0', 'Connection:keep-alive', 'Host:adfoc.us', 'User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36', ); curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_RETURNTRANSFER,true); curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,0); curl_setopt( $ch, CURLOPT_COOKIESESSION, true ); curl_setopt($ch,CURLOPT_COOKIEFILE,'cookies.txt'); curl_setopt($ch,CURLOPT_COOKIEJAR,'cookies.txt'); curl_setopt($ch,CURLOPT_HTTPHEADER,$header); $result=curl_exec($ch); curl_close($ch); */ $code = $apno; $pdf = new PDF_Invoice('P','mm',array(204,323)); $pdf->AddPage(); $pdf->SetAutoPageBreak(true, 10); /* $pdf->addSociete1( "Customer: $name", "$add \nPhone: $mob\nMail: $mail\n "); $pdf->addSociete3( "IMPORTANT NOTE", "* No Cash Payment*. \n* D.D or Cheque, RTGS, Debit/Credit Card or Online Payment. \n* D.D or Cheque filled in the name of SHA HAJ SERVICE (INDIA) PRIVATE LIMITED pay at Chennai. \n* No cash payment or Blank Cheque should be given in anybodys name or to any one, who states that he is in our company. \n* Your name will be booked only after the agent submits the D.D or cheque to our Registration Office only. \n* To confirm our authorized agent. Check in our website: shahajservice.com or contact at our Registration Office only. \n* D.D or Cheque / Passport / N.R.I / P.I.O.C / O.C.I / Other Card / Application form / Other form / Photos / ect., All documents \n send to our Registration Office only. \n* If not send directly to our Registration Office. The company will not be responsible for your documents. \n* As per the registration from duly accepted & signed by the applicant charges paid are non refundable and cannot be adjusted either. \n* The service is not responsible if not binding for all this these activates."); $pdf->addSociete4( "NOTICE", "* If you have any queries or clarification, please contact us at any of the touch points mentioned below. We'll be glad to hear from you!. \n* Please verify your email ID and contact number to continue receiving your payment bill / receipt."); */ /* $pdf->addSocietes1( "REGISTRATION OFFICE: CHENNAI |"); $pdf->addSocietes2( "SUBJECT TO REALIZATION |"); $pdf->addSocietes3( "Visit https://www.shahajservice.com for various payment options."); $pdf->addSocietesnew( "************************ This is an electronically generated bill / receipt and does not require any stamp or signature ************************"); *//* $pdf->fact_dev( "Devis ", "TEMPO" ); */ /* $pdf->addClientAdresse("\n Phone: $mob\n Mail: $mail"); */ /* $pdf->temporaire( "Sha Haj Service" ); */ /* $pdf->addDate( "$date"); $pdf->addClient("$appno"); $pdf->addref("$blno" ); */ $logo = file_get_contents('logo2.png'); /* $logo1 = file_get_contents('E:/xampp/htdocs/shahaj/admin1/images/'.$apimg); */ if($apimg =="") { $logo1 = file_get_contents('default.png'); } else { $logo1 = file_get_contents('https://www.shahajservice.com/admin1/images/'.$apimg); } /* $logo2 = file_get_contents('005_file.png'); */ $pdf->addSocietename( "Name :"); $pdf->addSocietepp ( "App No :"); /* $pdf->addSocieteap ( "Makkah Room No :"); $pdf->addSocieteper ( "Madinah Room No :"); $pdf->addSocieteyr ( "Aziziyah Room No :"); */ $pdf->addSocietemak2 ( "Bus Number 1 :"); $pdf->addSocietemad2 ( "Bus Number 2 :"); $pdf->addSocieteazi ( "Bus Number 3 :"); $pdf->addSocietebus4 ( "Bus Number 4 :"); $pdf->addSocietebus5 ( "Bus Number 5 :"); /* $pdf->addSocieteser ( "Service Office "); $pdf->addSocieteser1( "61"); */ $pdf->addSocietebill2( "APPROVED BY GOVT OF INDIA AND KSA | ISO CERTIFIED COMPANY"); $pdf->addSocietesau( "SAUDI MOBILE : 05018 71553 | 05528 49970 | 05528 49833."); $pdf->addSocietemail( "Website : https://www.shahajservice.com | E-mail : info@shahajservice.com"); $pdf->addSocietebill( "SHA HAJ SERVICE"); $pdf->addSocietebill1( "(INDIA) PRIVATE LIMITED"); $pdf->addSocietename1("$apname"); $pdf->addSocietepp1( "$apno"); /* $pdf->addSocieteap1( "$apmak"); $pdf->addSocieteper1( "$apmad"); $pdf->addSocieteyr1( "$apazi"); */ $pdf->addSocietemak1( "$bus1"); $pdf->addSocietemad1( "$bus2"); $pdf->addSocieteazi1( "$bus3"); $pdf->addSocietebus41( "$bus4"); $pdf->addSocietebus51( "$bus5"); $pdf->addSocietepack( "HAJ | UMRAH | ZIYARAH | AIRTICKET"); // Output it $pdf->MemImage($logo,10,20,25,0,'PNG'); $pdf->RoundedRect(76,68.5,51,56, 2, 'DF'); $pdf->MemImage($logo1,76.5,69,50,55,'JPG'); /* $pdf->MemImage($logo2,78,113,20,0,'PNG'); */ ; $fileName = 'frontbus-' . $apno .'.pdf'; $pdfdoc = $pdf->Output($fileName, 'F'); $attachment = chunk_split(base64_encode($pdfdoc)); /* $logo = file_get_contents('$fileName'); $nameto = "myfile.jpg"; $convert = $logo . " ".$nameto; // Command creating exec ($convert) */ // main header /* $headers = "From: ".$from.$eol; $headers .= 'Cc: '.$cc.$eol; $headers .= "MIME-Version: 1.0".$eol; $headers .= "Content-Type: multipart/mixed; boundary=\"".$separator."\""; */ // no more headers after this, we start the body! // /* $body = "--".$separator.$eol; $body .= "Content-Transfer-Encoding: 7bit".$eol.$eol; $body .= "Greeting From SHA HAJ SERVICE (INDIA) PVT, LTD We thank you for your payment .".$eol; */ // message /* $body .= "--".$separator.$eol; $body .= "Content-Type: text/html; charset=\"iso-8859-1\"".$eol; $body .= "Content-Transfer-Encoding: 8bit".$eol.$eol; $body .= $message.$eol; */ // attachment /* $body .= "--".$separator.$eol; $body .= "Content-Type: application/octet-stream; name=\"".$filename."\"".$eol; $body .= "Content-Transfer-Encoding: base64".$eol; $body .= "Content-Disposition: attachment".$eol.$eol; $body .= $attachment.$eol; $body .= "--".$separator."--"; */ // send message /* mail($to, $subject, $body, $headers); if($i=='1') { $username = 'SHAHAJ'; $key = '9fc19b3ab1XX'; $mobile = $mob; $sender = 'SHAHAJ'; $accusage = '1'; $smstext = "Assalamu Alaikum.Thankyou for your Payment. You have paid Rs. $amt for $main - $pack - $cls package. Thank you for using Sha Haj Service (I) P. L."; $message = urlencode($smstext); $data = 'user='.$username.'&key='.$key."&mobile=".$mobile."&message=".$message."&senderid=".$sender."&accusage=".$accusage ; $ch = curl_init('http://mobicomm.dove-sms.com/submitsms.jsp?'.$data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); $i++; } */ ?> <? /* include('../shahaj/config.php'); session_start(); $appno=$_SESSION["appno"]; $filename=$_SESSION['filename']; $amt = $_SESSION['amt']; $apbal = $_SESSION['apbal']; date_default_timezone_set('Asia/Calcutta'); $v=date("Y-m-d H:i:s"); if($appno) { $que1 = mysql_query("update newapplication set AP_BILL='$filename',AP_BLDATE='$v',AP_AMT='$apbal'+'$amt',AP_LASTPAY='$amt',AP_COUNT='$count' WHERE AP_NO='".$appno."'"); $blno1 = $blno + 1; $que1 = mysql_query("update bill set BL_NO='$blno1' WHERE BL_ID='1'"); if($que1){} */ include('../config.php'); $que1 = mysql_query("update newapplication set AP_BUSCARD='$fileName' WHERE AP_NO='".$apno."'"); if($que1){ ?> <div style="height:300px; padding-top:150px; padding-right:20px; text-align:center; font-size:18px; line-height:25px;"> <img src="../images/icons/logo.jpg" /><br /> </div> <script>alert("Bus Card Created sucessfully"); location.href = '../admin1/mg_buscard.php'; </script> <? }}/* }}else{ */?> <h1>Not Updated </h1> <? //} ?> <script type="text/javascript"> location.href = '../admin1/mg_buscard.php'; </script>