} } else { bailOut(true); } exit; } } else { bailOut(false); } } // standard-action $action = @trim($_REQUEST["a"]); switch ($action) { case "0": // news outputData(rewriteNews(getDataFromFile(_FILE_NEWS))); exit; case "1": // changelog outputData(getDataFromFile(_FILE_CHANGELOG)); exit; case "2": // issues outputData(getDataFromFile(_FILE_ISSUES)); exit; default: header("Content-Type: text/plain"); echo trim(getDataFromFile(_FILE_VERSION_CURRENT)); exit; } exit;
/** * prints page "news" */ function printPageNews() { ?> <div class="subcontent"> <h1 id="news">News</h1> <ul> <?php echo rewriteNews(trim(getDataFromFile(_FILE_NEWS))); ?> </ul> <p>More detailed <a href="https://tf-b4rt.berlios.de/forum/index.php/board,9.0.html" title="Announcements and News">Announcements and News</a> can be found in the <a href="forum" title="Forum">Forum</a>.</p> </div> <div class="subcontent"> <h1 id="feeds">Feeds</h1> <ul> <li>News (<a href="https://developer.berlios.de/export/rss_bsnews.php?group_id=7000" title="News - RSS 0.91">RSS 0.91</a>/<a href="https://developer.berlios.de/export/rss20_bsnews.php?group_id=7000" title="News - RSS 2.0">RSS 2.0</a>)</li> <li>Downloads (<a href="https://developer.berlios.de/export/rss_bsnewreleases.php?group_id=7000" title="Downloads - RSS 0.91">RSS 0.91</a>/<a href="https://developer.berlios.de/export/rss20_bsnewreleases.php?group_id=7000" title="Downloads - RSS 2.0">RSS 2.0</a>)</li> <li>Forum (<a href="https://tf-b4rt.berlios.de/forum/index.php?type=rss;action=.xml" title="Forum - RSS 0.92">RSS 0.92</a>)</li> </ul> </div> <?php }