View file cari.php

File size: 997B
<?php
function hapus($txt) {
$txt = preg_replace("/[^a-zA-Z0-9_\-]/", "-", trim($txt));
return $txt;
}

function hps($txt){
$txt=preg_replace("/[^a-zA-Z0-9.-]/", "_", trim($txt)); return $txt; }
function hps1($txt) { $txt = preg_replace("/[^a-zA-Z0-9.=%?_& -]/","grabing", trim($txt));
return $txt; }
function hps2($txt){
$txt=preg_replace("/[^a-zA-Z0-9.-]/", " ", trim($txt)); return $txt; }
function hps3($txt) { $txt = preg_replace("/[^a-zA-Z0-9.=%?_&-]/", "grabcore", trim($txt));
return $txt; }
function hps4($txt) { $txt = preg_replace("/[^a-zA-Z0-9.=?_&+-]/", "asep", trim($txt));
return $txt; }
$q=$_GET['q'];
$type=$_GET['type'];
if(!empty($q)){
if($type == "music" || $type == "video" || $type == "image"){
if($type == "music"){
header('location: /music/'.hapus($q).'.html');
}
if($type == "video"){
header('location: /video/'.hapus($q).'.html');
}
if($type == "image"){
header('location: /gambar/'.hapus($q).'.html');
}
}else{
header('location: /');
}
}else{
header('location: /');
}
?>