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:
agst.php
<? session_start(); error_reporting(0); include('../config.php'); /* $method= $_POST["method"]; */ /* if($_POST["bankname"]) { $bankname = $_POST["bankname"]; $chequeno = $_POST["chequeno"]; $chequedate = $_POST["chequedate"]; $chequedate1 = date("d.m.Y", strtotime($chequedate)); $chequeamt = $_POST["chequeamt"]; } else { $bankname = '-'; $chequeno = '-'; $chequedate1 = '-'; $chequeamt = '-'; } */ $inno = $_SESSION["inno"]; $appno = $inno; $name = $_SESSION['apname']; $main = $_SESSION["apsel"]; $mob = $_SESSION["apmob"]; $pack = $_SESSION["subcat"]; $cls = $_SESSION["clas"]; $amt = $_SESSION["totamt"]; $date1 = $_SESSION["appdate"]; $add = $_SESSION["apadd"]; $apcity = $_SESSION["apcity"]; $apstate = $_SESSION["apstate"]; $appcod = $_SESSION["appcod"]; $mail1 = $_SESSION["apmail"]; $t = $_SESSION["apage"]; $apgst = $_SESSION["apgst"]; $date = date("d.m.Y", strtotime($date1)); $code = $appno; //I want to get 25% of 928. $percentToGet = 2.5; //Convert our percentage value into a decimal. $percentInDecimal = $percentToGet / 100; //Get the result. $percent = $percentInDecimal * $amt; //Print it out - Result is 232. $percent; $rem = $amt+($percent *2); $first = number_format($amt, 2, '.', ''); ?><br> <? $percent; $second = number_format($percent, 2, '.', ''); ?><br> <? $percent1=$percent+$percent; $fourth = number_format($percent1, 2, '.', ''); ?><br> <? $amt; $third= number_format($rem, 2, '.', ''); /* $sql = mysql_query("select * from bill WHERE BL_ID='1'"); // for editing $row = mysql_fetch_array($sql); $blno = $row['BL_NO']; */ $ap = $_SESSION["apno"]; $i=1; $querytot=mysql_query("select * from newapplication where AP_NO='".$ap."'"); $rowtot=mysql_fetch_array($querytot); if($rowtot['AP_INVOICE']) { ?> <script type="text/javascript"> alert("Invoice already generated"); location.href = '../admin1/dash.php';</script> <? } else{ /* $amt = $_POST['amt']; */ ?> <?php /* require('invoice.php'); $pdf = new PDF_Invoice( 'P', 'mm', 'A4' ); $pdf->AddPage(); $pdf->addSociete( "SHA HAJ SERVICE (INDIA) PRIVATE LIMITED", "Old No:35 New No:71\nSri Venkatesh Bhavan\nPortion-D Third Floor\nArmenian Street | Chennai-600 001 \nTamilnadu, India. \nPhone: 94451 50009 \nEmail: info@shahajservice.com \nState Code: 33\nGSTIN: 33AAQCS0293L1ZX"); $pdf->addSociete1( "Customer: $name", "$add \n$apcity, $apstate\n$appcod.\nPhone: $mob\nMail: $mail1\nGSTIN: $apgst"); $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->addSocietesgst( "Place of Supply: $apstate"); $pdf->addSocietesgst1( "(The amount charged is the gross amount charged for such services including accommodation, transport required and other charges for such tour.)"); $pdf->addtitle("INVOICE"); $pdf->addDate1( "$date"); $pdf->addClient1("$appno"); $pdf->bar("$code"); $logo = file_get_contents('logo2.png'); $qr = file_get_contents('006_file.png'); $pdf->MemImage($qr,182,160,20,0,'PNG'); $pdf->MemImage($logo,10,10,20,0,'PNG'); */ /* $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" => "$chequedate1", "AMOUNT" => "$chequeamt"); $size = $pdf->addLine( $y, $line ); $y += $size + 2; */ /* $cols=array( "S.NO" => 23, "SERVICE" => 52, "SAC" => 18, "QUANTITY" => 30, "AMOUNT" => 26, "TOTAL" => 41); $pdf->addCols1( $cols); $cols=array( "S.NO" => "C", "SERVICE" => "L", "SAC" => "C", "QUANTITY" => "C", "AMOUNT" => "R", "TOTAL" => "R"); $pdf->addLineFormat( $cols); $pdf->addLineFormat($cols); $y = 94; $line = array( "S.NO" => "1", "SERVICE" => " $main - $pack - $cls \n" , "SAC" => "9985", "QUANTITY" => "1", "AMOUNT" => "$first", "TOTAL" => "$first"); $size = $pdf->addLine( $y, $line ); $y += $size + 2; $var1 = "TAMIL NADU"; $var2 = "TAMILNADU"; $apstate1 = strtoupper($apstate); if(strcasecmp($apstate, $var2) == 0 || strcasecmp($apstate, $var1) == 0 || strncmp($apstate1, $var1, 3) == 0) { $line = array( "S.NO" => "", "SERVICE" => "" , "QUANTITY" => "CGST@ 2.5%", "AMOUNT" => "$second", "TOTAL" => "$second"); $size = $pdf->addLine( $y, $line ); $y += $size + 2; $line = array( "S.NO" => "", "SERVICE" => "" , "QUANTITY" => "SGST@ 2.5%", "AMOUNT" => "$second", "TOTAL" => "$second"); $size = $pdf->addLine( $y, $line ); } else { $line = array( "S.NO" => "", "SERVICE" => "" , "QUANTITY" => "IGST@ 5%", "AMOUNT" => "$fourth", "TOTAL" => "$fourth"); $size = $pdf->addLine( $y, $line ); $y += $size + 2; } $y += $size + 18; $line = array( "S.NO" => "", "SERVICE" => " " , "QUANTITY" => "", "AMOUNT" => "", "TOTAL" => "-------------------------------"); $size = $pdf->addLine( $y, $line ); $y += $size + 2; $line = array( "S.NO" => "", "SERVICE" => " " , "QUANTITY" => "", "AMOUNT" => "Total", "TOTAL" => "$third"); $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 = 'Invoice-shahaj-' . $appno .'.pdf'; $pdf->Output($fileName,'F'); ?> <? $filename='Invoice-shahaj-' . $appno ; $_SESSION['filename']=$filename; $to = $mail1; */ /*$from = "postmaster@shahajservice.com"; $cc = "postmaster@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) /* $pdf->Output("$fileName", "D"); $attachment = chunk_split(base64_encode($pdfdoc)); */ /* require '../PHPMailer-master/PHPMailerAutoload.php'; $mail = new PHPMailer; $mail->isSMTP(); $mail->Host = 'mail.shahajservice.com'; $mail->SMTPAuth = true; $mail->Username = 'postmaster@shahajservice.com'; $mail->Password = 'w3solutions12@'; $mail->Port = 587; $mail->From = 'postmaster@shahajservice.com'; $mail->FromName = 'SHA HAJ SERVICE'; $mail->addAddress($to); $mail->AddCC('postmaster@shahajservice.com'); $mail->isHTML(true); $mail->Subject = 'Shahaj Service Invoice'; $mail->Body = "<p>Please see the attachment.</p> <h2 style='color:#00407f;'>SHA HAJ SERVICE (INDIA) PRIVATE LIMITED</h2> <p>APPROVED BY GOVT OF INDIA AND KSA | ISO CERTIFIED COMPANY</p> <h4 style='color:#8fca40;'><b>HAJ | UMRAH | ZIYARAH</b></h4> <p><j style='color:#00407f;'>REGISTRATION OFFICE</j> <br> OLD NO: 35 NEW NO: 71 | SRI VENKATESH BHAVAN | <br> PORTION-D THIRD FLOOR | ARMENIAN STREET | <br> CHENNAI -600 001 | TAMIL NADU | INDIA. <br> PHONE: 044 2524 0888 | 2525 0888 | 4511 8006 | FAX: 044 2523 0888. <br> MOBILE: 94451 50009 | 94455 51940 | 94430 10287. <br> SAUDI MOBILE: 05018 71553 | 05528 49970 | 05528 49833.</p> <label>Website: <u style='color:#234786;'> https://www.shahajservice.com </u> </label> <label>E-mail:</label> <u style='color:#234786;'> info@shahajservice.com | shahajservice@yahoo.com | shahajservice@gmail.com </u>"; $mail->AltBody = 'This is the body in plain text for non-HTML mail clients'; $mail->addAttachment($fileName, $fileName); $mail->send(); */ // 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 Invoice has been generated.Kindly go through the attachment file.".$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.Invoice has been generated. You have pay 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('../config.php'); date_default_timezone_set('Asia/Calcutta'); $v=date("Y-m-d"); if($t) { /* $inno1 = $inno + 1; $que1 = mysql_query("update invoice set INV_NO='$inno1' WHERE INV_ID='1'"); */ ?> <script type="text/javascript"> setInterval(function(){newpage()},1000); function newpage() { var url = window.location.href = '../paylink.php'; /* var url = window.location.href = 'new.php?uid=' + '<? echo $fileName; ?>'; */ /* if(('1=1') === true){ $('header').css('display', 'none'); } */ } </script> <? } elseif($appno) { session_start(); $ap = $_SESSION["apno"]; /* $que1 = mysql_query("update newapplication set AP_INVOICE='$inno',AP_INVOICEDATE='$v' WHERE AP_NO='".$ap."'"); $inno1 = $inno + 1; $que1 = mysql_query("update invoice set INV_NO='$inno1' WHERE INV_ID='1'"); */ if($ap){?> <div style="height:300px; padding-top:150px; padding-right:20px; text-align:center; font-size:18px; line-height:25px;"> <img src="../shahah/images/icons/logo.jpg" /><br /> </div> <script>alert("Invoice updated sucessfully"); location.href = '../admin1/mg_invoice.php'; </script> <? } }else{ ?> <h1>Not Updated </h1> <? } ?> <? } ?>
Simpan