-
-
Save anonymous/cdc82abc5789df937e86 to your computer and use it in GitHub Desktop.
Your Porn Grabber Files/yp/index.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include("../wp-config.php"); | |
require_once('simple_html_dom.php'); | |
function url_for($url){ | |
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; | |
return $actual_link . $url; | |
} | |
?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" > | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<link rel="stylesheet" id="font-awesome-css" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" type="text/css" media="screen"> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script> | |
<script type="text/javascript" src="<?php echo url_for('scripts/simpla.jquery.configuration.js'); ?>"></script> | |
<script type="text/javascript" src="<?php echo url_for('scripts/jquery.wysiwyg.js'); ?>"></script> | |
<script type="text/javascript" src="<?php echo url_for('scripts/nicEdit-latest.js'); ?>"></script> | |
<script type="text/javascript" src="<?php echo url_for('scripts/niceforms.js'); ?>"></script> | |
<script src="<?php echo url_for('scripts/icheck.js?v=1.0.2'); ?>"></script> | |
<link href="<?php echo url_for('style.css'); ?>" media="screen" rel="stylesheet" type="text/css"/> | |
<link href="<?php echo url_for('scripts/facebox/facebox.css'); ?>"> media="screen" rel="stylesheet" type="text/css"/> | |
<script src="<?php echo url_for('scripts/facebox/facebox.js'); ?>"> type="text/javascript"></script> | |
<script> | |
function veriyolla(id) { | |
var formid = id; | |
jQuery.ajax | |
({ | |
type: 'POST', | |
url: 'save.php', | |
data: $('#frm' + formid).serialize(), | |
beforeSend: function () { | |
$('#return' + formid).html('<img src="img/loading.gif">'); | |
}, | |
error: function () { | |
$('#return' + formid).html('<div class="notification attention png_bg"><div>Error...</div></div>'); | |
}, | |
success: function (veri) { | |
$('#return' + formid).html(veri); | |
var matches = veri.match(/<div style="display:hidden;text-indent:-9999999px;">(.*?)<\/div>/); | |
var myLink = matches[1]; | |
if (myLink == 'ok') { | |
$('#tog' + formid).toggle('slow'); | |
} | |
} | |
}); | |
} | |
</script> | |
<META NAME="ROBOTS" CONTENT="NOINDEX,NOFOLLOW"></head> | |
<body><div id="container"> | |
<form action="" method="post" class="niceform"> | |
<fieldset> | |
<legend>Youporn.com - INFO</legend> | |
<dl> | |
<dt><label for="gender">Categories:</label></dt> | |
<dd> | |
<select size="1" name="kk" id="gender"> | |
<option value="category/1/amateur/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/1/amateur/") { echo "Selected";} ?>>Amateur</option> | |
<option value="category/2/anal/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/2/anal/") { echo "Selected";} ?>>Anal</option> | |
<option value="category/3/asian/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/3/asian/") { echo "Selected";} ?>>Asian</option> | |
<option value="category/4/bbw/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/4/bbw/") { echo "Selected";} ?>>BBW</option> | |
<option value="category/6/big-butt/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/6/big-butt/") { echo "Selected";} ?>>Big butt</option> | |
<option value="category/7/big-tits/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/7/big-tits/") { echo "Selected";} ?>>Big tits</option> | |
<option value="category/5/bisexual/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/5/bisexual/") { echo "Selected";} ?>>Bisexual</option> | |
<option value="category/51/blonde/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/51/blonde/") { echo "Selected";} ?>>Blonde</option> | |
<option value="category/9/blowjob/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/9/blowjob/") { echo "Selected";} ?>>Blowjob</option> | |
<option value="category/52/brunette/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/52/brunette/") { echo "Selected";} ?>>Brunette</option> | |
<option value="category/10/coed/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/10/coed/") { echo "Selected";} ?>>Coed</option> | |
<option value="category/11/compilation/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/11/compilation/") { echo "Selected";} ?>>Compilation</option> | |
<option value="category/12/couples/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/12/couples/") { echo "Selected";} ?>>Couples</option> | |
<option value="category/13/creampie/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/13/creampie/") { echo "Selected";} ?>>Creampie</option> | |
<option value="category/37/cumshots/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/37/cumshots/") { echo "Selected";} ?>>Cumshots</option> | |
<option value="category/15/cunnilingus/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/15/cunnilingus/") { echo "Selected";} ?>>Cunnilingus</option> | |
<option value="category/16/dp/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/16/dp/") { echo "Selected";} ?>>DP</option> | |
<option value="category/44/dildos-toys/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/44/dildos-toys/") { echo "Selected";} ?>>Dildos/Toys</option> | |
<option value="category/8/ebony/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/8/ebony/") { echo "Selected";} ?>>Ebony</option> | |
<option value="category/48/european/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/48/european/") { echo "Selected";} ?>>European</option> | |
<option value="category/17/facial/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/17/facial/") { echo "Selected";} ?>>Facial</option> | |
<option value="category/42/fantasy/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/42/fantasy/") { echo "Selected";} ?>>Fantasy</option> | |
<option value="category/18/fetish/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/18/fetish/") { echo "Selected";} ?>>Fetish</option> | |
<option value="category/62/fingering/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/62/fingering/") { echo "Selected";} ?>>Fingering</option> | |
<option value="category/19/funny/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/19/funny/") { echo "Selected";} ?>>Funny</option> | |
<option value="category/20/gay/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/20/gay/") { echo "Selected";} ?>>Gay</option> | |
<option value="category/58/german/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/58/german/") { echo "Selected";} ?>>German</option> | |
<option value="category/50/gonzo/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/50/gonzo/") { echo "Selected";} ?>>Gonzo</option> | |
<option value="category/21/group-sex/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/21/group-sex/") { echo "Selected";} ?>>Group sex</option> | |
<option value="category/65/hd/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/65/hd/") { echo "Selected";} ?>>HD</option> | |
<option value="category/46/hairy/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/46/hairy/") { echo "Selected";} ?>>Hairy</option> | |
<option value="category/22/handjob/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/22/handjob/") { echo "Selected";} ?>>Handjob</option> | |
<option value="category/23/hentai/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/23/hentai/") { echo "Selected";} ?>>Hentai</option> | |
<option value="category/24/instructional/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/24/instructional/") { echo "Selected";} ?>>Instructional</option> | |
<option value="category/25/interracial/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/25/interracial/") { echo "Selected";} ?>>Interracial</option> | |
<option value="category/41/interview/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/41/interview/") { echo "Selected";} ?>>Interview</option> | |
<option value="category/40/kissing/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/40/kissing/") { echo "Selected";} ?>>Kissing</option> | |
<option value="category/49/latina/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/49/latina/") { echo "Selected";} ?>>Latina</option> | |
<option value="category/26/lesbian/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/26/lesbian/") { echo "Selected";} ?>>Lesbian</option> | |
<option value="category/29/milf/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/29/milf/") { echo "Selected";} ?>>MILF</option> | |
<option value="category/64/massage/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/64/massage/") { echo "Selected";} ?>>Massage</option> | |
<option value="category/55/masturbate/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/55/masturbate/") { echo "Selected";} ?>>Masturbate</option> | |
<option value="category/28/mature/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/28/mature/") { echo "Selected";} ?>>Mature</option> | |
<option value="category/36/pov/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/36/pov/") { echo "Selected";} ?>>POV</option> | |
<option value="category/56/panties/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/56/panties/") { echo "Selected";} ?>>Panties</option> | |
<option value="category/57/pantyhose/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/57/pantyhose/") { echo "Selected";} ?>>Pantyhose</option> | |
<option value="category/30/public/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/30/public/") { echo "Selected";} ?>>Public</option> | |
<option value="category/53/redhead/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/53/redhead/") { echo "Selected";} ?>>Redhead</option> | |
<option value="category/43/rimming/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/43/rimming/") { echo "Selected";} ?>>Rimming</option> | |
<option value="category/61/romantic/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/61/romantic/") { echo "Selected";} ?>>Romantic</option> | |
<option value="category/54/shaved/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/54/shaved/") { echo "Selected";} ?>>Shaved</option> | |
<option value="category/31/shemale/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/31/shemale/") { echo "Selected";} ?>>Shemale</option> | |
<option value="category/60/solo-male/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/60/solo-male/") { echo "Selected";} ?>>Solo Male</option> | |
<option value="category/27/solo-girl/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/27/solo-girl/") { echo "Selected";} ?>>Solo girl</option> | |
<option value="category/39/squirting/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/39/squirting/") { echo "Selected";} ?>>Squirting</option> | |
<option value="category/47/straight-sex/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/47/straight-sex/") { echo "Selected";} ?>>Straight Sex</option> | |
<option value="category/59/swallow/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/59/swallow/") { echo "Selected";} ?>>Swallow</option> | |
<option value="category/32/teen/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/32/teen/") { echo "Selected";} ?>>Teen</option> | |
<option value="category/38/threesome/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/38/threesome/") { echo "Selected";} ?>>Threesome</option> | |
<option value="category/33/vintage/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/33/vintage/") { echo "Selected";} ?>>Vintage</option> | |
<option value="category/34/voyeur/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/34/voyeur/") { echo "Selected";} ?>>Voyeur</option> | |
<option value="category/35/webcam/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/35/webcam/") { echo "Selected";} ?>>Webcam</option> | |
<option value="category/45/young-old/" <?php if (isset($_POST['kk']) && $_POST['kk'] == "category/45/young-old/") { echo "Selected";} ?>>Young/Old</option> | |
</select> | |
</dd> | |
</dl> | |
<dl> | |
<dt><label for="dobMonth">Results for page</label></dt> | |
<dd> | |
<select size="1" name="adet" id="dobMonth"> | |
<?php | |
for ($im = 0; $im <= 5; $im++) { | |
$ik = $im * 5; | |
?> | |
<option value="<?php echo $ik ?>" <?php if (isset($_POST['adet']) && $_POST['adet'] == $ik) { | |
echo "Selected"; | |
} ?>><?php echo $ik ?>-<?php echo $ik + 5; ?></option> | |
<?php | |
} | |
?> | |
</select> | |
</dd> | |
</dl> | |
<dl> | |
<dt> | |
<label for="email">From page</label></dt> | |
<dd><input type="text" name="sayfa" id="sayfa" value="<?php if (isset($_POST['sayfa']) && $_POST['sayfa']) { | |
echo $_POST['sayfa']; | |
} else { | |
echo "1"; | |
} ?>" size="10" maxlength="60"/></dd> | |
</dl> | |
</fieldset> | |
<fieldset class="action"> | |
<div style="text-align:center;"> | |
<input type="submit" value="Please click here to get results from the selected category!"/> | |
</div> | |
</fieldset> | |
</form> | |
<?php //require('simple_html_dom.php'); | |
if(isset($_POST['sayfa'])) { | |
/* | |
$ek="".$_POST['kk']."?page=".$_POST['sayfa'].""; | |
$al=get_data("http://www.youporn.com/$ek"); | |
preg_match_all('#<a class="videoTitle" href="/(.*?)">(.*?)</a>#si',$al,$veriler,PREG_SET_ORDER); | |
$tonton=count($veriler)-1; | |
echo '<center><b>Bu sayfada toplam <font style="color:red">'.$tonton.'</font> adet video vardır.</b></center>'; | |
$sondo=$_POST['adet']+5; | |
if($sondo <= count($veriler)-1){$sondon=$sondo;} else {$sondon=count($veriler)-1;} | |
for($i=$_POST['adet']; $i<=$sondon; $i++){ | |
$adres=$veriler[$i][1]; | |
$tek=get_data("http://www.youporn.com/$adres"); | |
preg_match('#\'image_url\'(.*?)\'(.*?)\'#si',$tek,$img); | |
preg_match_all('#<var>(.*?)</var>#si',$tek,$sur,PREG_SET_ORDER); | |
preg_match('#<H2>(.*?)</H2>#si',$tek,$aci); | |
$sama="http://www.youporn.com/".$adres.""; | |
$v_resim=$img[2]; | |
$v_title=$veriler[$i][2]; | |
$sure=$sur[1][1]; | |
*/ | |
$ek = $_POST['kk']."?page=".$_POST['sayfa']; | |
$al = get_data("http://www.youporn.com/".$ek); | |
//$dom = str_get_html($al); | |
$str = $al; | |
$dom = new simple_html_dom(null, true, true, "UTF-8", true, "\r\n", " "); | |
if (empty($str) || strlen($str) > 600000) | |
{ | |
echo "[HORROR] HTML Content is too big at dom."; | |
//$dom->clear(); | |
} | |
$dom->load($str, true, true); | |
$veriler = $dom->find('.videoBox'); | |
$tonton = count($veriler) - 1; | |
$sondo = $_POST['adet'] + 5; | |
if ($sondo <= count($veriler) - 1) { | |
$sondon = $sondo; | |
} else { | |
$sondon = count($veriler) - 1; | |
} | |
for ($i = $_POST['adet']; $i <= $sondon; $i++) { | |
$adres = $veriler[$i]->find('a', 0)->href; | |
$tek = get_data("http://www.youporn.com" . $adres); | |
//$dom2 = str_get_html($tek); | |
//print_r(array($adres, $i, $veriler[$i]->outertext));exit; | |
//preg_match('#\'image_url\'(.*?)\'(.*?)\'#si',$tek,$img); | |
//preg_match_all('#<var>(.*?)</var>#si',$tek,$sur,PREG_SET_ORDER); | |
//preg_match('#<H2>(.*?)</H2>#si',$tek,$aci); | |
$dom2 = new simple_html_dom(null, true, true, "UTF-8", true, "\r\n", " "); | |
if (empty($str) || strlen($str) > 600000) | |
{ | |
echo "[HORROR] HTML Content is too big at dom2."; | |
$dom2->clear(); | |
} | |
$dom2->load($str, true, true); | |
$sama = "http://www.youporn.com" . $adres; | |
$v_resim = $veriler[$i]->find('img', 0)->src; | |
$v_title = $dom2->find('h1.grid_9', 0)->innertext; | |
//$veriler[$i]->find('p.videoTitle', 0)->innertext; | |
$sure = $veriler[$i]->find('span.duration', 0)->innertext; | |
/* | |
$kadres=md5($adres); | |
$kontrol=mysql_num_rows(mysql_query("SELECT * FROM ".$table_prefix."postmeta WHERE meta_key='kontrol' and meta_value='$kadres'")); | |
if ($kontrol=='0') | |
{*/ | |
?> | |
<fieldset> | |
<legend><?php echo $v_title; ?></legend> | |
<form id="frm<?php echo $i ?>" method="post" action="javascript:void(<?php echo $i; ?>)"> | |
<input type="hidden" name="resim" id="resim" value="<?php echo $v_resim; ?>"/> | |
<input type="hidden" name="adres" id="resim" value="<?php echo $adres; ?>"/> | |
<img class="thumb" src="<?php echo $v_resim; ?>" align="abscenter" border="none" height="170" | |
width="180"/> | |
<dl> | |
<dt><label for="email">Title:</label></dt> | |
<dd><input type="text" name="name" id="etiket" value="<?php echo $v_title; ?>" size="32" | |
maxlength="170"/></dd> | |
</dl> | |
<dl> | |
<dt><label>Tags:</label></dt> | |
<dd><input type="text" name="etiket" id="etiket" | |
value="<?php echo str_replace(" ", ",", $v_title); ?>" | |
size="32" maxlength="170"/></dd> | |
</dl> | |
<dl> | |
<dt><label for="comments">Description:</label></dt> | |
<dd><textarea name="ac" id="bilgi" rows="5" cols="60"></textarea></dd> | |
</dl> | |
<dl> | |
<dt><label for="comments">Video Code:</label></dt> | |
<dd><textarea name="bilgi" id="bilgi" rows="5" cols="60"> | |
<iframe src="/dflv/play.php?id=<?php echo str_replace("=", "", base64_encode($sama)) ?>" | |
frameborder="0" height="500" width="678" scrolling="no"></iframe> | |
</textarea></dd> | |
</dl> | |
<dl> | |
<dt><label for="interests">Category:</label></dt> | |
<dd> | |
<?php | |
$kosul = "category"; | |
$f = "0"; | |
$q = mysql_query("Select * from " . $table_prefix . "term_taxonomy where taxonomy='$kosul' order by term_id asc"); | |
while ($rs = mysql_fetch_array($q)) { | |
$t_id = $rs['term_id']; | |
$qa = mysql_fetch_array(mysql_query("Select * from " . $table_prefix . "terms where term_id='$t_id'"));?> | |
<div style="float:left;width:29.9%;"> | |
<input type="checkbox" value="<?php echo $qa['term_id'] ?>" | |
name="kid[<?php echo $f; ?>]"/><label><?php echo $qa['name']; ?></label></div> | |
<?php | |
$f++; | |
} | |
?> | |
<script type="text/javascript"> | |
$(document).ready(function () { | |
$('input').each(function () { | |
var self = $(this), | |
label = self.next(), | |
label_text = label.text(); | |
label.remove(); | |
self.iCheck({ | |
checkboxClass: 'icheckbox_line', | |
radioClass: 'iradio_line', | |
insert: '<div class="icheck_line-icon"></div>' + label_text | |
}); | |
}); | |
}); | |
</script> | |
</dd> | |
</dl> | |
<div id="return<?php echo $i; ?>"></div> | |
<input onclick="veriyolla(<?php echo $i; ?>);" class="aggiungi" type="submit" value="Add This Video"/> | |
</form> | |
</fieldset> | |
<?php | |
} | |
} | |
?> | |
<?php | |
function trsil($tr) | |
{ | |
$bul = array('Z', 'X', 'C', 'V', 'B', 'N', 'M', 'A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', 'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', '|'); | |
$degis = array('z', 'x', 'c', 'v', 'b', 'n', 'm', 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'q', 'w', 'e', 'r', 't', 'y', 'u', 'ı', 'o', 'p', ' '); | |
$sef = str_replace($bul, $degis, $tr); | |
$bul = array('’', '.', 'Ä°', 'Ç', 'Ãœ', 'ü', 'Ö', 'ö', 'ÅŸ', 'Å', 'ÄŸ', 'Ä', 'ç', 'ı', ' ', 'ı', 'İ', 'ç', 'Ç', 'Ü', 'ü', 'Ö', 'ö', 'ş', 'Ş', 'ğ', 'Ğ', '(', ')', '&'); | |
$degis = array('-', '-', 'i', 'c', 'u', 'u', 'o', 'o', 's', 's', 'g', 'g', 'c', 'i', '-', 'i', 'i', 'c', 'c', 'u', 'u', 'o', 'o', 's', 's', 'g', 'g', '-', '-', '-'); | |
$sef = str_replace($bul, $degis, $sef); | |
$bul = array('"', '&', '\r\n', '\n', '/', '\\', '+', '<', '>'); | |
$sef = str_replace($bul, '-', $sef); | |
$bul = array('é', 'è', 'ë', 'ê', 'É', 'È', 'Ë', 'Ê'); | |
$sef = str_replace($bul, 'e', $sef); | |
$bul = array('/[^a-z0-9\-<>]/', '/[\-]+/', '/<[^>]*>/'); | |
$repl = array('', '-', ''); | |
$sef = preg_replace($bul, $repl, $sef); | |
$bul = array('---', '--', '----', '-----', '-----'); | |
$degis = array('-', '-', '-', '-', '-'); | |
$sef = str_replace($bul, $degis, $sef); | |
return $sef; | |
} | |
function get_data($url) | |
{ | |
$ch = curl_init(); | |
$timeout = 5; | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); | |
curl_setopt($ch, CURLOPT_REFERER, "googlebot"); | |
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"); | |
$data = curl_exec($ch); | |
curl_close($ch); | |
return $data; | |
} | |
function resimal($baglanti, $game) | |
{ | |
$nereye = "/vidresim/"; | |
$nereye = $_SERVER[DOCUMENT_ROOT] . $nereye; | |
$olustur = $nereye . $game . ".jpg"; | |
$veri = get_data($baglanti); | |
$dosya = fopen($olustur, 'w+'); | |
$ayar_yaz = ('' . $veri . ''); | |
fwrite($dosya, $ayar_yaz); | |
fclose($dosya); | |
} | |
function sil($abc) | |
{ | |
$abc = preg_replace("#<a(.*?)>#si", "", $abc); | |
$abc = str_replace("</a>", "", $abc); | |
$abc = str_replace("’", "'", $abc); | |
return $abc; | |
} | |
function temizle($abc) | |
{ | |
$abc = preg_replace("#<div(.*?)>#si", "", $abc); | |
$abc = str_replace("</div>", "", $abc); | |
return $abc; | |
} | |
?> | |
<p id="footer">WAPT BOT<br/>© adultwpthemes - <a href="http://www.adultwpthemes.eu/">Support</a></p> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment