query("SELECT * FROM ".$xoopsDB->prefix("config")." where conf_name='sitename'"); while ( $menu = $xoopsDB->fetchArray($site_d) ){ $site_n = $myts->maketboxdata4show($menu["conf_value"]); } //サイト情報取得 $site_dat = $xoopsDB->query("SELECT * FROM ".$xoopsDB->prefix("modules")." where dirname='".$dir_name."'"); while ( $menu = $xoopsDB->fetchArray($site_dat) ){ $site_name = $myts->maketboxdata4show($menu["name"]); } //記事情報取得 $discript_d = $xoopsDB->query("select * from ".$xoopsDB->prefix($dir_name)." ORDER BY rank"); while ( $menu = $xoopsDB->fetchArray($discript_d) ){ $timestmp = $myts->maketboxdata4show($menu["timestmp"]); $timestmp = strftime('%y/%m/%d', $timestmp); } echo ""; echo ""; echo ""; echo "".mb_convert_encoding($site_n,'UTF-8').""; echo "".XOOPS_URL.""; echo "".mb_convert_encoding($site_name,'UTF-8').""; echo "".$timestmp.""; echo "http://backend.userland.com/rss/"; echo "".mb_convert_encoding($site_name,'UTF-8').""; echo "".mb_convert_encoding('最新ニュース','UTF-8').""; echo ""; echo "".mb_convert_encoding('株式会社TOKIOSPEED','UTF-8').""; echo "ja"; $sql = sprintf("select * from ".$xoopsDB->prefix($dir_name)." ORDER BY rank DESC"); $res = $xoopsDB->query($sql); while($row = $db->fetchArray($res)){ $lid = $myts->maketareadata4edit($row['lid']); $title = $myts->maketareadata4edit($row['title']); $description = $myts->maketareadata4edit($row['description']); $description = mb_strimwidth($description,0,200,"…"); $timestmp_d = $myts->maketboxdata4show($row["timestmp"]); echo ""; echo "".mb_convert_encoding($title,'UTF-8').""; echo "".XOOPS_URL."/modules/".$dir_name."/index.php?lid=".$lid.""; echo "".mb_convert_encoding($description,'UTF-8').""; echo "".date('YmdHis',$timestmp_d).""; echo "".XOOPS_URL."/modules/".$dir_name."/index.php?lid=".$lid.""; echo ""; } echo (''); ?>