(.*?)/ismu",$line,$matches); $line=""; for ($k=0; $k/imu","
",$line); $line.="
"; $mydate=substr($newsdate,0,4)."年".substr($newsdate,4,2)."月".substr($newsdate,6,2)."日"; echo ""; echo ""; if ($mobile==1) echo ""; echo ""; echo "蘋果日報"; echo ""; echo ""; echo ""; echo "
"; $catn=""; if (!$cat) { $catn="4104"; echo "蘋果日報-".$mydate."
"; preg_match_all("/
(.*?)<\/div>/ismu",$line,$matches); $outtxt=""; for ($k=0; $k".$matches[1][$k].""; } } else { echo "蘋果日報-".$cat."-".$mydate."
"; preg_match("/
$cat <\/div>(.*?)<\/div class=\"category\">/ismu",$line,$matches); if (count($matches[1])==0) preg_match("/
$cat<\/div>(.*?)<\/div class=\"category\">/ismu",$line,$matches); $outtxt=$matches[1]; if (preg_match("/http:\/\/hk.apple.nextmedia.com\/news\//i",$outtxt)<>0) $catn="4104"; if (preg_match("/http:\/\/hk.apple.nextmedia.com\/financeestate\//i",$outtxt)<>0) $catn="15307"; if (preg_match("/http:\/\/hk.apple.nextmedia.com\/international\//i",$outtxt)<>0) $catn="15335"; if (preg_match("/http:\/\/hk.apple.nextmedia.com\/entertainment\//i",$outtxt)<>0) $catn="462"; if (preg_match("/http:\/\/hk.apple.nextmedia.com\/sports\//i",$outtxt)<>0) $catn="25391"; $outtxt=preg_replace("/
(.*?)<\/div>/iu","

$1

",$outtxt); $outtxt=preg_replace("/http:\/\/hk.apple.nextmedia.com\//i","art_main.php?d=".$newsdate."&s=".$size."&m=".$mobile."&i=".$ipver."&a=".$av."&c=".$cat."&b=",$outtxt); } if ($catn) { if ($ipver==1) { $iptag=" IP Ver"; echo "
"; $outtxt=preg_replace("/src=http:\/\/hk.apple.nextmedia.com\/images/i","src=http://202.85.162.80/images",$outtxt); $outtxt=preg_replace("/\/new_hkfont\//i","http://202.85.162.80/new_hkfont/",$outtxt); } else { $iptag=""; echo "
"; $outtxt=preg_replace("/\/new_hkfont\//i","http://hk.apple.nextmedia.com/new_hkfont/",$outtxt); } } preg_match_all('/supplement\/columnist\/(.*?)\/art(.*?)">/', $outtxt, $r, PREG_PATTERN_ORDER); for ($i = 0; $i < count($r[0]); $i++) { $outtxt = preg_replace('/supplement\/columnist\/'.$r[1][$i].'\/art(.*?)">/imu', 'supplement/columnist/'.$r[1][$i].'/art'.$r[2][$i].'">'.rawurldecode($r[1][$i]).' ~ ', $outtxt); } $outtxt = preg_replace("/^\s+|\n|\t|\r|\s+$/m","", $outtxt); $outtxt=preg_replace("/<\/a>/imu","",$outtxt); echo $outtxt; echo "
"; echo ""; echo " "; If (($size) and ($size==1) ) { echo("小圖"); } else { echo("小圖"); } If (($av) and ($av==1) ) { echo("互動片段"); } else { echo("互動片段"); } echo "
"; ?>


FruitDaily S2.0.3(PHP)
By SomeOneNR