把下面的html保存为cj.php,放到e/tasks/,然后设置计划任务
$cjtask1这里设置采集id
<!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" /> <title>无标题文档</title> </head>
<body> <?php $testlogin=is_login(); //验证是否登录 $dqhash=$ecms_hashur['href']; //读取HASH值 $dz="http://自己的网址/e/admin/DoCj.php?";//网址 $cjtask1="&rhash_fV51=MAx7P6hcLASY&enews=DoCj&classid%5B%5D=54&classid%5B%5D=52&classid%5B%5D=50&classid%5B%5D=49&classid%5B%5D=48&classid%5B%5D=45&classid%5B%5D=44&classid%5B%5D=43&classid%5B%5D=42&classid%5B%5D=41&classid%5B%5D=40&classid%5B%5D=39&classid%5B%5D=38&classid%5B%5D=37&classid%5B%5D=36&classid%5B%5D=35&classid%5B%5D=34&classid%5B%5D=33&classid%5B%5D=32&classid%5B%5D=31&classid%5B%5D=30&classid%5B%5D=29&classid%5B%5D=28&classid%5B%5D=26&classid%5B%5D=25&classid%5B%5D=24&classid%5B%5D=23&classid%5B%5D=22&classid%5B%5D=21&classid%5B%5D=20&classid%5B%5D=19&classid%5B%5D=18&classid%5B%5D=17&classid%5B%5D=16&classid%5B%5D=15&classid%5B%5D=14&classid%5B%5D=13&classid%5B%5D=12&classid%5B%5D=11&classid%5B%5D=10&classid%5B%5D=9&classid%5B%5D=8&classid%5B%5D=7&classid%5B%5D=6&classid%5B%5D=5&classid%5B%5D=4&classid%5B%5D=3&classid%5B%5D=2&chkall=on&Submit=%E6%89%B9%E9%87%8F%E9%87%87%E9%9B%86%E8%8A%82%E7%82%B99";//采集节点链接地址 //echo "<script>alert('$dz.$dqhash.$cjtask1')</script>"; //采集连接显示测试 echo "<script>wind1=window.open('$dz.$dqhash.$cjtask1')</script>"; //打开采集窗口 ?> </body> </html>
|