DedeCMS.Site * @copyright Copyright (c) 2007 - 2010, DesDev, Inc. * @author [email protected] * @link http://www.51php.com */ if(isset($_GET['arcID'])) $aid = intval($_GET['arcID']); $arcID = $aid = (isset($_GET['aid']) && is_numeric($_GET['aid'])) ? intval ($_GET['aid']) : 0; if($aid==0) die(' Request Error! '); $cacheFile = '../data/cache/myad-'.$aid.'.htm'; if(file_exists($cacheFile) && filesize($cacheFile) > 100) { echo file_get_contents($cacheFile); exit(); } require_once '../include/common.inc.php'; $row = $dsql->GetOne("SELECT * FROM `myad` WHERE aid='$aid' "); $adbody = ''; if($row['timeset']==0) { $adbody = $row['normbody']; } else { $ntime = time(); if($ntime > $row['endtime'] || $ntime < $row['starttime']) { $adbody = $row['expbody']; } else { $adbody = $row['normbody']; } } $adbody = str_replace('"', '"',$adbody); $adbody = str_replace(" ", " ",$adbody); $adbody = str_replace(" ", " ",$adbody); $adbody = " "; $fp = fopen($cacheFile, 'w'); fwrite($fp, $adbody); fclose($fp); |
修改好以后,保存上传!这样操作就能防止广告调用被浏览器的广告屏蔽软件阻止了。
Pbootcms问题解决
请点击在线联系我们【点击咨询解决问题】 如果您有任何Pbootcms问题,我们将免费为您写解决教程!