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
/
www
/
fpdf
/
View File Name :
card.php
<?php error_reporting(0); session_start(); include('../config.php'); $year = $_SESSION["year"]; $cno = $_SESSION["cno"]; $cimg = $_SESSION["cimg"]; $cimg = rawurlencode($cimg); $cname = $_SESSION["cname"]; $comname = $_SESSION["comname"]; $cdes = $_SESSION["cdes"]; $craq = $_SESSION["craq"]; $cval = $_SESSION["cval"]; $cval1 = date("d-m-Y", strtotime($cval)); $csin = $_SESSION["csin"]; $cmem = $_SESSION["cmem"]; if($cno=="") { $queryc=mysqli_query($con,"select * from card order by C_NO desc limit 1"); while($rowc=mysqli_fetch_array($queryc)) { $cno = $rowc['C_NO']+1; } if($cno=="") { $cno =1000; } } /* $memstate = $_SESSION["memstate"]; $memcou = $_SESSION["memcou"]; $memdat = $_SESSION["memdate"]; $memdate = date("d-m-Y", strtotime($memdat)); $memdat1 = $_SESSION["memdate1"]; $memdate1 = date("d-m-Y", strtotime($memdat1)); */ $memno = 1; require('invoicecard.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 = $memno; $pdf = new PDF_Invoice('L','mm',array(136,230)); $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" ); */ /* $pdf->bar1("$code"); */ $logo = file_get_contents('thoa.png'); $logot = file_get_contents('thoa1.png'); /* $logosec = file_get_contents('sec.png'); $logopre = file_get_contents('pre.png'); */ $logocha = file_get_contents('chair.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); */ if($cimg=="") { $cimg="default.jpg"; $logo1 = file_get_contents('default.jpg'); } else { $logo1 = file_get_contents('images/card/'.$cimg); } /* $logo1 = file_get_contents('flag1.png'); */ //$logo1 = file_get_contents('E:/xampp/htdocs/thoa/fpdf/images/'.$memimg); /* $logo2 = file_get_contents('005_file.png'); */ /* $pdf->addSocietename( "Name :"); $pdf->addSocietepp ( "P.P.No :"); $pdf->addSocieteap ( "App. No. :"); $pdf->addSocieteper ( "Perform :"); if($pack == "Haj") { $pdf->addSocieteper1( "$pack"); } else { $pdf->addSocieteper1( "$sub"); } $pdf->addSocieteyr ( "Year :"); $pdf->addSocieteyr1( "$yr"); if($pack == "Haj") { $pdf->addSocieteser ( "Service Office "); $pdf->addSocieteser1( "61"); } $pdf->addSocietesau( "SAUDI MOBILE : 05018 71553 | 05528 49970 | 05528 49833."); */ /* $pdf->addSocietebill2( "APPROVED BY GOVT OF INDIA AND KSA | ISO CERTIFIED COMPANY"); */ /* $pdf->addSocietemail( "Website : https://www.shahajservice.com | E-mail : info@shahajservice.com"); */ $pdf->addSocietebill3( "(Recognised by the Ministry of Minority Affairs, Government of India, New Delhi)"); $pdf->addSocietebill4( "No. 22-C, Aravamudhan Garden Street, Egmore, Chennai - 600 008."); $pdf->addSocietebill5( "Website : www.thoa.in E-mail : president@thoa.in"); $pdf->addSocietebill( "TAMILNADU HAJ ","ORGANISERS ASSOCIATION"); $pdf->SetDrawColor(0, 0, 0); $pdf->addName( "Name",":","$cname"); $pdf->addCname( "Co. Name",":","$comname"); $pdf->addDname( "Designation",":","$cdes"); $pdf->addRname( "Munazzam No.",":","$craq"); $pdf->addNumber( "Membership No. ",":","$cmem"); $pdf->addNumber1( "Member Since",":","$csin"); $pdf->addChairman( "Chairman"); /* $pdf->SetLineWidth(0.6); $pdf->SetDrawColor(255, 127, 80); */ /* $pdf->addSocietebill1( "(INDIA) PRIVATE LIMITED"); */ $pdf->RotatedText(220,127,'Online ID Card No. :',90); $pdf->RotatedText(226,127,'Valid Till :',90); $pdf->RotatedText1(226,108,"$cval1",90); $pdf->RotatedText1(220,92,"$cno",90); $pdf->addSocietecerm( "MEMBERSHIP IDENTITY CARD"); /* $pdf->addSocietename1("$apname"); $pdf->addSocietepp1( "$pano"); $pdf->addSocieteap1( "$apno"); $pdf->addSocietepack( "HAJ | UMRAH | ZIYARAH | AIRTICKET"); */ // Output it $pdf->MemImage($logo,5,9,30,35,'PNG'); $pdf->MemImage($logocha,162,108,35,12,'PNG'); /* $pdf->MemImage($logopre,132,108,30,12,'PNG'); $pdf->MemImage($logosec,182,108,35,12,'PNG'); */ /* $pdf->RoundedRect(34.5,38.5,31,36, 2, 'DF'); */ /* $pdf->MemImage($logo1,35,39,30,35,'JPG'); */ /* $pdf->MemImage($logo2,75,113,20,0,'PNG'); */ $pdf->MemImage($logot,37,12,150,8,'PNG'); /* $pdf->Image($url,12,40,30); */ $pdf->ClippingRoundedRect(193,10,32,35,2,true); $pdf->MemImage($logo1,193,10,32,35,'PNG'); /* $pdf->MemImage($logo3,187,79,35,45,'JPG'); */ $pdf->UnsetClipping(); /* $pdf->ClippingRoundedRect(250,15,40,45,0,true); */ /* $pdf->UnsetClipping(); */ /* $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 = 'card-' . $cno .'.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++; } */ ?> <?php /* 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 = mysqli_query($con,"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 = mysqli_query($con,"update bill set BL_NO='$blno1' WHERE BL_ID='1'"); if($que1){} */ include('../config.php'); $querytot=mysqli_query($con,"select * from card where C_NO ='".$cno."'"); if($rowtot=mysqli_fetch_array($querytot)) { $que = mysqli_query($con,"update card set C_YR='$year',C_NAME='$cname',COM_NAME='$comname',C_DES='$cdes',C_RAQ='$craq',C_IMG='$cimg',C_VAL='$cval',C_SIN='$csin',C_MEM='$cmem' WHERE C_NO='".$cno."'"); } else { $que1 = mysqli_query($con,"insert into card (C_YR,C_NAME,COM_NAME,C_DES,C_RAQ,C_IMG,C_VAL,C_SIN,C_MEM) values('$year','$cname','$comname','$cdes','$craq','$cimg','$cval','$csin','$cmem')"); } if($que){ ?> <script>alert("ID card Updated sucessfully"); location.href = '../admin/mg_card.php'; </script> <?php } if($que1){ ?> <script>alert("ID card Created sucessfully"); location.href = '../admin/mg_card.php'; </script> <?php }/* }}else{ */?> <?php //} ?> <script type="text/javascript"> location.href = '../admin/mg_card.php'; </script>