本源码由记忆时光|二超博客特别整理发布
<?php
header("content-type:text/html; charset=utf-8"); include dirname(__FILE__) . ’/Http.class.php’; $http = new Http; $http->ua = $_SERVER[’HTTP_USER_AGENT’]; set_time_limit(0); /* 自行配置 */ //现在可以了,修改了下 成功了 $qq=""; $sid=""; /* GET */ $exec = $_GET[’exec’]; $start = $_GET[’start’]; $end = $_GET[’end’]; $location = empty($_GET[’location’]) ? $start : $_GET[’location’]; /* 防误删 */ if(!isset($exec)){ exit(’缺少exec参数!’); } /* 删除完成 退出脚本 */ if($location == $end){ exit(’删除完成!<br/>Powered by <a href="http://commoner.cn">布衣</a><br/> Copyright 2014 by Commoner.’); } /* 获取说说列表 */ $talkList = $http->execute(’GET’ ,’http://blog30.z.qq.com/mood/mood_list_my.jsp?B_UID=’ . $qq .’&sid=’ . $sid . ’&pageNo=’ . $location); file_put_contents(’gll.html’ , $talkList); /* 获取列表中的删除链接 */ preg_match_all("/<as?href="(S+)">删除</a></p> /" , $talkList , $DeleteList); foreach($DeleteList[1] as $row){ preg_match("/sid=(S+)&/" , $row , $sid); preg_match("/B_UID=(S+)&/" , $row , $b_uid); preg_match("/tid=(S+)&/" , $row , $tid); $qq = $b_uid[1]; $url = ’http://blog60.z.qq.com/mood/mood_del_exe.jsp?sid=’.$sid[1].’&B_UID=’.$qq.’&tid=’.$tid[1].’&mood_uin=’.$qq.’&mood_id=’.$tid[1].’&t1_source=1&writeUin=0&comeFrom=mood_my&t1_uin=’.$qq.’&t1_tid=’.$tid[1].’&t2_uin=0&t2_tid=&t3_tid=&del_type=1’; $http->execute(’GET’ , $url); } header(’Location: ?exec=1&start=’ . $start . ’&end=’ . $end . ’&location=’ . $location++); ?>
5258的话:希望这个源码可以帮助你忘掉想要忘记的东西