/", ">", $str); return $str; } /* function strstrb($h,$n){ return array_shift(explode($n,$h,2)); } */ Header("Content-type: text/xml"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); echo "\n"; echo "\n"; echo "\n"; echo "".specialchars_replace("$config[cf_title] の最新記事です。")."\n"; echo "".specialchars_replace("$g4[url]")."\n"; echo "Version 0.2 - 2004-04-26\n"; // echo "ko\n"; ?> \n"; echo "".specialchars_replace($row[wr_subject])."\n"; echo "".specialchars_replace("$g4[url]/$g4[bbs]/board.php?bo_table=$rows[bo_table]&wr_id=$row[wr_id]")."\n"; echo "\n"; echo "".specialchars_replace($row[wr_name])."\n"; $date = $row[wr_datetime]; $date = date('c', strtotime($date)); echo "$date\n"; echo "\n"; } } /* $db4tweetdb = "g4_tweetdb"; $strnum = "20"; $sql = "SELECT * FROM ".$db4tweetdb." ORDER BY postedTime DESC LIMIT 0, $strnum "; $result = sql_query($sql); for ($i=0; $row=sql_fetch_array($result); $i++) { echo "\n"; $link4message = strstr($row['message'], 'http://'); $message = strstrb($row['message'],'http://'); echo "".specialchars_replace($message)."\n"; echo "".specialchars_replace($link4message)."\n"; echo "\n"; echo " kankokugo \n"; $date = $row[postedTime]; $date = date('c', strtotime($date)); echo "$date\n"; echo "\n"; } */ echo "\n"; echo "\n"; ?>