03-12-2013, 08:12 AM
(03-11-2013, 07:36 PM)w*74rd Wrote: UPDATECemungut
ganti kode keamanan.php sama ini:
Code:<?php class keamanan{ function sqli(){ $berbahaya = array("union", "concat", "base64","select","script","'","%27","http","www","order","from","borang","0x","table","tables","javascript","script","<",">"); $gabungsemua = implode("|",$berbahaya); if((strlen($_SERVER['REQUEST_URI']) > 255) || (preg_match("/".$gabungsemua."/i",$_SERVER['REQUEST_URI']))){ $ip = preg_replace( '/[^0-9a-fA-F:., ]/', '',$_SERVER['REMOTE_ADDR'] ); $browser = substr($_SERVER['HTTP_USER_AGENT'], 0, 254); echo "<style>body{background:#000000; color:#ffffff; font-size:20px;}</style>"; echo "<center style='margin-top:50px; background:#000000; color:#ffffff; font-size:100px;'>Akses Ditolak</center>"; echo "<p style='margin:5px 0px 10px 0px;'>Mau apa oy, hati2 ane catet loh!!</p>"; echo "<p style='margin:0px;'>IP: ".$ip."</p>"; echo "System: ".$browser.""; header("HTTP/1.1 414 Request-URI Too Long"); header("Status: 414 Request-URI Too Long"); header("Connection: Close"); exit; } } }/*akhir class*/ ?>
kode pdf.php juga ganti sama ini:
Code:<?php require('fungsikoneksi.php'); $keamanan->sqli(); $id = $_GET['w174rd']; class PDF extends FPDF { function Header() { $id = $_GET['w174rd']; $fungsi = new fungsi(); $dbfungsi = new dbfungsi(); $this->Image('gambar/w174rd.jpg',0,13,10,10,'','http://w174rd.tk'); $this->SetFont('Arial','B',12); $this->Cell(30,10,$dbfungsi->pdf_title($id),0,0,'L'); $this->Cell(132); $this->SetFont('Arial','',10); $this->Cell(30,10,'http://w174rd.tk/',10,0,'L'); $this->Line(11,18,198,18); $this->Ln(6); $this->SetFont('Arial','',7); $this->Cell(30,10,$dbfungsi->pdf_terbit($id),0,0,'L'); $this->Ln(15); } function Footer() { $this->SetY(-15); $this->SetFont('Arial','I',8); $this->Cell(0,10,'Halaman '.$this->PageNo().'',0,0,'R'); } } $pdf=new PDF('P','mm','A4'); $pdf->AliasNbPages(); $pdf->AddPage(); $pdf->SetFont('Times','',12); for($i=1;$i<=1;$i++) { $pdf->MultiCell(0, 5,$dbfungsi->pdf_post($id)); $pdf->MultiCell(0,5,''); } $pdf->Ln(6); $pdf->SetX(90); $pdf->Image('gambar/end-pdf.jpg'); $pdf->Output(); ?>
KEEP TESTING CKAKKAK
Ntar Tak Scan Lagi xixixix




