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
/
Edit File:
laucard.php
<? error_reporting(0); session_start(); $apno = $_SESSION["apno"]; $apname = $_SESSION["apname"]; $rono = $_SESSION["rono"]; require('invoice.php'); /* 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); */ for($tok=1;$tok<=60;$tok++) { $code = $apno; $pdf = new PDF_Invoice('P','mm',array(100,106)); $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'); /* $url = 'http://localhost:1234/shahaj/admin1/images/'.'$data['AP_IMG']'; */ /* $filepath = 'http://localhost:1234/shahaj/admin1/images/'; */ /* $postdata = http_build_query( array( 'var1' => '$apimg', ) ); $opts = array('http' => array( 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $postdata ) ); $context = stream_context_create($opts); $logo1 = file_get_contents('../shahaj/admin1/images/', false, $context); */ $tok1 = sprintf("%03d", $tok); $logo2 = file_get_contents('005_file.png'); $pdf->addSocietelname( "Name :"); $pdf->addSocietelpp( "App. No. :"); $pdf->addSocietelap( "Room No.:"); $pdf->addlaundryto( "Token No :"); $pdf->addlaundryto1( "$tok1"); $pdf->RotatedText(87,65,'Valid From : 07/18',90); $pdf->RotatedText(92,65,'Valid Thru : 08/18',90); $pdf->addSocietebill2( "APPROVED BY GOVT OF INDIA AND KSA | ISO CERTIFIED COMPANY"); $pdf->addSocietemail2( "Website : https://www.shahajservice.com | E-mail : info@shahajservice.com"); $pdf->addSocietebill( "SHA HAJ SERVICE"); $pdf->addSocietebill1( "(INDIA) PRIVATE LIMITED"); $pdf->addlaundry( "LAUNDRY COUPON"); $pdf->addSocietelname1("$apname"); $pdf->addSocietelpp1( "$apno"); $pdf->addSocietelap1( "$rono"); // Output it $pdf->MemImage($logo,5,10,15,0,'PNG'); $pdf->MemImage($logo2,75,70,20,0,'PNG'); echo $fileName = 'frontlau-' . $apno .'-'.$tok.'.pdf'; $pdfdoc = $pdf->Output($fileName, 'F'); $attachment = chunk_split(base64_encode($pdfdoc)); $fileName1 = 'frontlau-'.$apno; } // 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_LACARD='$fileName1' 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("Laundry Coupon Created sucessfully"); location.href = '../admin1/mg_laundry.php'; </script> <? }/* }}else{ */?> <h1>Not Updated </h1> <? //} ?> <script type="text/javascript"> location.href = '../admin1/mg_laundry.php'; </script>
Simpan