已掉线,重新登录

首页 > 绿虎论坛 > 历史版块 > 编程 > PHP > 源码

标题: [php源码]@three,笑话小偷

作者: @Ta

时间: 2013-10-07

点击: 2087

<?php
error_reporting(0);
$str=file_get_contents("http://wap.soso.com");
preg_match_all('/amp;sid=*(.*)&amp;/i',$str,$si);
$g=$si[1][0];
$sid=explode('&',$g);
$get=$_GET['get'];
$co=file_get_contents('joke.txt');
$co=explode('|',$co);
$sh=count($co);
$shu=$sh-1;
$url="http://k.soso.com/downing.jsp?dpath=novel%2F74%2F03%2F&sid={$sid[0]}&nn=%E7%BD%91%E6%B8%B8%E4%B9%8B%E5%A4%A9%E8%B0%B4%E4%BF%AE%E7%BD%97&ipos=0&from=list&type=txt&begin=320&size=101&pos=1&au=%E7%81%AB%E6%98%9F%E5%BC%95%E5%8A%9B&id=4225109483740338060&icfa=1304198&s=1&ind=1&md=6310535739446681253&ssid=011f2b33534f5108ff561d54534b8c5c&g_ut=1&end=9&key=%E7%BD%91%E6%B8%B8%E4%B9%8B%E5%A4%A9%E8%B0%B4";
if($get=='file'){
$dr=file_get_contents("$url");
preg_match_all('!【读个笑话解闷吧】(.*)更多!isU',$dr,$as);
$com=$as[1][0];
$fpt=fopen("joke.txt","a+");
$tim=$com."|\r\n";

fwrite($fpt,$tim,strlen($tim));
fclose("$fpt");
echo '本次采集到的笑话:';
echo '<font color=gray>';
echo $com;
echo '</font>';
echo "<br>现在采集了<font color=red>".$shu."</font>个笑话!";
echo '<br><a href=filejoke.php?get=file>点击继续采集!</a>';
}else{
$ss=$shu+1;
echo "已经采集了<font color=red>".$ss."</font>个笑话!";
echo '<br>确认采集?<a href=filejoke.php?get=file>是的!</a>';
}
include("top.php");
include("bottom.php");
?>

@DaMeng,你应该会改吧?
对于新手,抱歉了!介绍:
利用腾讯下载小说,随机笑话小偷。
自动获取sid。。
并存在joke.txt
其它没什么了!
真心喜欢虎绿

[隐藏样式|查看源码]


『回复列表(4|隐藏机器人聊天)』

1. 我昨天一个中午的结晶啊!
http://wdrw.ku50.net欢迎看看我的小站
(/@Ta/2013-10-07 11:41//)

2. 不错
(/@Ta/2013-10-07 11:42//)

3. 顶一个
(/@Ta/2013-10-07 11:54//)

4. 不错
(/@Ta/2013-10-07 12:05//)

回复需要登录

9月18日 02:35 星期四

本站由hu60wap6驱动

备案号: 京ICP备18041936号-1