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 :
watercard.php
<? error_reporting(0); session_start(); $apimg = $_SESSION["apimg"]; $apimg = rawurlencode($apimg); $apno = $_SESSION["apno"]; $apname = $_SESSION["apname"]; $pano = $_SESSION["pano"]; $flno = $_SESSION["flno"]; $flrot = $_SESSION["flrot"]; require('invoice2.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); */ $code = $apno; $pdf = new PDF_Invoice('P','mm',array(384,960)); $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'); 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->addSocietename3( "Name :"); $pdf->addSocietepp3 ( "P.P.No :"); /* $pdf->addSocieteap ( "App. No. :"); */ $pdf->addSocieteap3 ( "Flight No :"); $pdf->addSocietewap ( "App No :"); $pdf->addSocietebill2( "APPROVED BY GOVT OF INDIA AND KSA | ISO CERTIFIED COMPANY"); /* $pdf->addSocieteper ( "Perform :"); $pdf->addSocieteper1( "HAJ"); $pdf->addSocieteyr ( "Year :"); $pdf->addSocieteyr1( "2017"); $pdf->addSocieteser ( "Service Office "); $pdf->addSocieteser1( "61"); */ $pdf->addSocietesau( "SAUDI MOBILE : 05018 71553 | 05528 49970 | 05528 49833."); $pdf->addSocietemail1( "$flrot"); $pdf->addSocietebill( "SHA HAJ SERVICE"); $pdf->addSocietebill1( "(INDIA) PRIVATE LIMITED"); /* $pdf->RoundedRect(20,35,59,35, 2, 'DF'); */ $pdf->addzamwater("ZAM ZAM"); $pdf->addzamwater2("WATER"); $pdf->addzamwater1(""); /* $pdf->bar1("$code"); */ $pdf->addSocietename4("$apname"); $pdf->addSocietepp4("$pano"); $pdf->addSocieteap4("$flno"); $pdf->addSocietewap1("$apno"); $pdf->addSocietepack( "HAJ | UMRAH | ZIYARAH | AIRTICKET"); // Output it $pdf->MemImage($logo,20,20,70,0,'PNG'); $pdf->RoundedRect(126.5,659.5,150,150, 2, 'DF'); $pdf->MemImage($logo1,127,660,149,149,'JPG'); /* $pdf->MemImage($logo1,78,113,20,0,'PNG'); */ /* $pdf->Image($url,12,40,30); */ /* $pdf->Image('https://www.shahajservice.com/images/icons/logo2.png',60,30,90,0,'PNG'); */ /* $image1 = "logo2.png"; $this->Cell( 40, 40, $pdf->Image($image1, $pdf->GetX(), $pdf->GetY(), 33.78), 0, 0, 'L', false ); // $pdf->addPageNumber("1");*/ /* $pdf->addReglement("Chèque"); $pdf->addEcheance("Axis Bank"); $pdf->addEcheance("03/12/2003"); $pdf->addNumTVA("FR888777666"); */ /* $cols=array( "PREFERRED PAYMENT METHOD" => 61, "BANK NAME" => 55, "NUMBER" => 25, "DATE" => 26, "AMOUNT" => 23); $pdf->addCols( $cols); $cols=array( "PREFERRED PAYMENT METHOD" => "C", "BANK NAME" => "C", "NUMBER" => "C", "DATE" => "C", "AMOUNT" => "C"); $pdf->addLineFormat( $cols); $pdf->addLineFormat($cols); $y = 159; $line = array( "PREFERRED PAYMENT METHOD" => "$method", "BANK NAME" => "$bankname" , "NUMBER" => "$chequeno", "DATE" => "$chequedate", "AMOUNT" => "$chequeamt"); $size = $pdf->addLine( $y, $line ); $y += $size + 2; */ /* $cols=array( "S.NO" => 23, "SERVICE" => 78, "QUANTITY" => 22, "AMOUNT" => 26, "TOTAL" => 41); $pdf->addCols1( $cols); $cols=array( "S.NO" => "C", "SERVICE" => "L", "QUANTITY" => "C", "AMOUNT" => "R", "TOTAL" => "R"); $pdf->addLineFormat( $cols); $pdf->addLineFormat($cols); $y = 89; $line = array( "S.NO" => "1", "SERVICE" => " $main - $pack - $cls \n" , "QUANTITY" => "1", "AMOUNT" => "$amt.00", "TOTAL" => "$amt.00"); $size = $pdf->addLine( $y, $line ); $y += $size + 2; */ /* $line = array( "REFERENCE" => "REF2", "DESIGNATION" => "Câble RS232", "QUANTITE" => "1", "P.U. HT" => "10.00", "MONTANT H.T." => "60.00", "TVA" => "1" ); $size = $pdf->addLine( $y, $line ); $y += $size + 2; */ /* $pdf->addCadreTVAs(); $pdf->addCadreTVAs(); */ // invoice = array( "px_unit" => value, // "qte" => qte, // "tva" => code_tva ); // tab_tva = array( "1" => 19.6, // "2" => 5.5, ... ); // params = array( "RemiseGlobale" => [0|1], // "remise_tva" => [1|2...], // {la remise s'applique sur ce code TVA} // "remise" => value, // {montant de la remise} // "remise_percent" => percent, // {pourcentage de remise sur ce montant de TVA} // "FraisPort" => [0|1], // "portTTC" => value, // montant des frais de ports TTC // // par defaut la TVA = 19.6 % // "portHT" => value, // montant des frais de ports HT // "portTVA" => tva_value, // valeur de la TVA a appliquer sur le montant HT // "AccompteExige" => [0|1], // "accompte" => value // montant de l'acompte (TTC) // "accompte_percent" => percent // pourcentage d'acompte (TTC) // "Remarque" => "texte" // texte /* $tot_prods = array( array ( "px_unit" => 600, "qte" => 1, "tva" => 1 ), array ( "px_unit" => 10, "qte" => 1, "tva" => 1 )); $tab_tva = array( "1" => 19.6, "2" => 5.5); $params = array( "RemiseGlobale" => 1, "remise_tva" => 1, // {la remise s'applique sur ce code TVA} "remise" => 0, // {montant de la remise} "remise_percent" => 10, // {pourcentage de remise sur ce montant de TVA} "FraisPort" => 1, "portTTC" => 10, // montant des frais de ports TTC // par defaut la TVA = 19.6 % "portHT" => 0, // montant des frais de ports HT "portTVA" => 19.6, // valeur de la TVA a appliquer sur le montant HT "AccompteExige" => 1, "accompte" => 0, // montant de l'acompte (TTC) "accompte_percent" => 15, // pourcentage d'acompte (TTC) "Remarque" => "Avec un acompte, svp..." ); $pdf->addTVAs( $params, $tab_tva, $tot_prods); $pdf->addCadreEurosFrancs(); */ // Output it /* $fileName = 'shahaj-' . $appno .'-'.$count. '.pdf'; $pdf->Output($fileName,'D'); $filename='shahaj-' . $appno ; $_SESSION['filename']=$filename; $to = "$mail"; $from = "info@shahajservice.com"; $cc = "info@shahajservice.com"; $subject = "Shahaj Service Invoice"; $message = "<p>Please see the attachment.</p>"; */ // a random hash will be necessary to send mixed content /* $separator = md5(time()); */ // carriage return type (we use a PHP end of line constant) /* $eol = PHP_EOL; */ // attachment name /* $filename = "test.pdf"; */ // encode data (puts attachment in proper format) $fileName = 'frontwater-' . $apno .'.pdf'; $pdfdoc = $pdf->Output($fileName, 'F'); $attachment = chunk_split(base64_encode($pdfdoc)); // 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_WATERCARD='$fileName' WHERE AP_NO='".$apno."'"); if($que1){ ?> <script>alert("Water card Created sucessfully"); location.href = '../admin1/mg_watercard.php'; </script> <? }/* }}else{ */?> <h1>Not Updated </h1> <? //} ?> <script type="text/javascript"> location.href = '../admin1/mg_watercard.php'; </script>