Top Ad unit 728 × 90

Code Leech Truyện Từ TruyenHixx JohnCMS

Code leech truyện từ TruyenHixx Cho JohnCMS
- Tạo 1 file ngang hàng root rồi paste code dưới vào. Chạy domain/xxx.php rồi nhập link vào để leech
- Hỗ trợ leech TruyenHixx

Code:
<?
define
('_IN_JOHNCMS'1);$texta='Tool Leech';
require(
'incfiles/core.php');$textl $texta;
require(
'incfiles/head.php');$lng_reg core::load_lng('registration');

echo 
'
<form method="POST">'
;
echo 
'<div class="panel panel-default"><div class="panel-heading">Chuyên mục</div><div class="panel-body"><div class="form-group"><select class="form-control" name="chuyenmuc">';$req mysql_query("SELECT * FROM `forum` WHERE `type` = 'r' ORDER BY `realid` ASC");
while (
$res mysql_fetch_assoc($req)) {
echo 
'<option value="'.$res['id'].'">'.$res['text'].'</option>';
}


echo 
'</select></div></div></div>
<b>Link :</b> 
<input type="text" name="link" value=""> <br>'
;

echo
'<input name="submit" type="submit" value="Nhập" id="submit"></form>';

if (isset(
$_POST['submit'])) {
$link htmlspecialchars($_POST['link']);$id_chuyenmuc htmlspecialchars($_POST['chuyenmuc']);
if(empty(
$link)  ){
echo
'chưa nhập đầy đủ dữ liệu link';

exit;}
else {

function 
nv_get_plaintext$string$keep_image false$keep_link false )
{
// Get image tagsif( $keep_image )
{
if( 
preg_match_all"/\<img[^\>]*src=\"([^\"]*)\"[^\>]*\>/is", $string$match ) )
{
foreach( 
$match[0] as $key => $_m )
{
$textimg = '';
if( strpos( 
$match[1][$key], 'data:image/png;base64' ) === false )
{
$textimg = " " . $match[1][$key];
}
if( preg_match_all( "
/\<img[^\>]*alt=\"([^\"]+)\"[^\>]*\>/is"$_m$m_alt ) )
{
$textimg .= " " $m_alt[1][0];
}
$string str_replace$_m$textimg$string );
}
}
}
// Get link tagsif( $keep_link )
{
if( 
preg_match_all"/\<a[^\>]*href=\"([^\"]+)\"[^\>]*\>(.*)\<\/a\>/isU", $string$match ) )
{
foreach( 
$match[0] as $key => $_m )
{
$string = str_replace( $_m$match[1][$key] . " " . $match[2][$key], $string );
}
}
}
$string = str_replace( ' ', ' ', strip_tags( $string ) );
return preg_replace( '/[ ]+/', ' ', 
$string );
}
$ketqua = file_get_contents (''.$link.'');
preg_match ('#<h1>(.+?)</h1>#s',
$ketqua,$tieude);


preg_match ('#<h3>(.+?)</h3>#s',
$ketqua,$chap);
echo'<b>';
$tong =''.$tieude[1].' - '.$chap[1].'';
echo 
$tong;
echo'<br><br></b>';
preg_match ('#<td class="
chi_tiet" id="ar-content-html">(.+?)<td colspan="3">#s',$ketqua,$noidung);
echo 
$noidung[1];$bv= nv_get_plaintext($noidung[1]);$baiviet=preg_replace('/(.)nbsp;/',' 
',
$bv);  
mysql_query("
INSERT INTO `forumSET`refid` = '$id_chuyenmuc',
`
type` = 't',
`
time` = '" . time() . "',
`
user_id` = '$user_id',
`
from` = '$login',
`
text` = '$tong',
`
soft` = '',
`
edit` = '',
`
curators` = ''
") or exit(__LINE__ . ': ' . mysql_error());
$rid = mysql_insert_id();$rid = mysql_insert_id();
mysql_query("
INSERT INTO `forumSET`refid` = '$rid',
`
type` = 'm',
`
time` = '" . time() . "',
`
user_id` = '1',
`
from` = '$login',
`
ip` = '" . core::$ip . "',
`
ip_via_proxy` = '" . core::$ip_via_proxy . "',
`
soft` = '" . mysql_real_escape_string($agn) . "',
`
text` = '" . $baiviet . "',
`
edit` = '',
`
curators` = ''
") or exit(__LINE__ . ': ' . mysql_error());
$postid = mysql_insert_id();
exit;
}
}




require('incfiles/end.php');

?>

Nguồn: HVPTeam - Vina4u
Code Leech Truyện Từ TruyenHixx JohnCMS Reviewed by Nguyen Xuan Hoang on tháng 5 06, 2017 Rating: 5

1 nhận xét:

Biểu mẫu liên hệ

Tên

Email *

Thông báo *

Được tạo bởi Blogger.