I like the random pictures at Agendax, which is not available on piCal
$articletag = array();
$chanlink = array();
$total = array();
$mainp = array();
$result = $xoopsDB -> query("SELECT CID FROM " . $xoopsDB -> prefix("wfschannel") . " WHERE defaultpage = '1'");
list($CID) = $xoopsDB -> fetchrow($result);
$pagenum = isset($HTTP_GET_VARS['pagenum']) ? intval($HTTP_GET_VARS['pagenum']) : $CID;
$result2 = $xoopsDB -> query("SELECT * FROM " . $xoopsDB -> prefix("wfschannel") . " WHERE CID = '$pagenum' ORDER BY weight");
list($CID, $pagetitle, $pageheadline, $maintext, $weight, $html, $smiley, $xcodes, $breaks, $defaultpage, $indeximage, $htmlfile) = $xoopsDB -> fetchrow($result2);