//ini_set( 'display_errors', 1 ); include("./admin/lib/com.lib.php"); $UA = checkBrowse(); include ("./admin/lib/Emoji.php"); $emoji = HTML_Emoji::getInstance(); $emoji->setImageUrl("./admin/lib/Emoji/images"); if ($UA==="sp") { header("Location: sp/"); exit; } else if ($UA!="p") { header("Location: m/"); exit; } else { $pcnt = @$_REQUEST["pcnt"]; if ($pcnt==''){ $pcnt=1; } ?>
$follist = FolList("./news_data",1);
for ($i=0; $i<= count($follist)-1; $i++) {
$show = 0;
if ($pcnt==1) {
if ($i<=9) {
$show=1;
}
} else {
if ($i>=(($pcnt-1)*10) and $i<=(($pcnt-1)*10)+9) {
$show = 1;
}
}
if ($show==1) {
$newsAry = NewsDataGet( DataFolPath() . $follist[$i] . "/newsdata.ini.php");
$subj = $emoji->convertCarrier(htmlspecialchars($newsAry["subject"]));
if ($subj=="") { $subj="No Subject"; }
$maildate = date("Y.m.d.", strtotime($newsAry["maildate"]) ) ;
$body = htmlspecialchars($newsAry["body"]);
//本文空白、画像有無を確認
//フォルダ配下の画像
$fpath = DataFolPath() . $follist[$i] . "/w230";
$ImageS = ImgSGet($fpath);
$ImgCnt = count($ImageS);
?>