【php开源代码栏目提醒】:网学会员为广大网友收集整理了,DealRss.php,希望对大家有所帮助!
<?php require_once('../../config.inc.php'); ?>
<?php require_once('../Check.php');?>
<?php require_once (INCLUDE_PATH . 'News.inc.php'); ?>
<?php
$News = new News();
$start = $_GET['start'];
$end = $_GET['end'];
$n = $_GET['n'];
$News->GenXml(0,1,$start,$end);
$start++;
$end++;
$n--;
if($n > 0) //判断是否已刷新完
{
$str = "RSS页面刷新正在进行中..."; //输出刷新剩余页面
echo "$n"."<meta http-equiv='refresh' content='0;url=DealRss.php?n=$n&start=$start&end=$end&MenuId={$_GET['MenuId']}'><body leftmargin='0' rightmargin='0' topmargin='0' bottommargin='0' bgcolor='#D6D3CE' style='font-size:12px'>$str";
}else{ //输出已刷新完成
$str = "<body leftmargin='0' rightmargin='0' topmargin='0' bottommargin='0' bgcolor='#D6D3CE' style='font-size:12px'>所有栏目页面刷新完成";
echo "$str";
}
?>
</body>