aboutsummaryrefslogtreecommitdiffstats
path: root/web/include/news.php
diff options
context:
space:
mode:
authorfloam <floam@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-03-24 07:06:02 +0000
committerfloam <floam@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-03-24 07:06:02 +0000
commitf499058467a91b1db84891b2afeb540dc7d85ae1 (patch)
tree19e4441c7f4338f759349780cb018d6f1f211e89 /web/include/news.php
parent210510938b89c936dfd45f90f6076f86b8b88a6a (diff)
downloadioquake3-aero-f499058467a91b1db84891b2afeb540dc7d85ae1.tar.gz
ioquake3-aero-f499058467a91b1db84891b2afeb540dc7d85ae1.zip
Changes!
git-svn-id: svn://svn.icculus.org/quake3/trunk@657 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'web/include/news.php')
-rw-r--r--web/include/news.php53
1 files changed, 0 insertions, 53 deletions
diff --git a/web/include/news.php b/web/include/news.php
deleted file mode 100644
index fe1a2c8..0000000
--- a/web/include/news.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-require("/webspace/icculus.org/news/IcculusNews.php");
-
-$id = $_GET['id'];
-if (empty($_GET['news_index']))
- $news_index = false;
-else
- $news_index = $_GET['news_index'];
-$news_queue = 2;
-$news_item_max = 5;
-
-if ($err = news_login($sock, 'localhost', 263, NULL, NULL, $news_queue))
- $err = "Failed to log in: $err";
-else
-{
- if ($err = news_digest($sock, $digestarray, $news_index, $news_item_max))
- {
- $err = "Failed to get news digest: $err";
- }
-
- $current_post = 0;
- $news_item_count = count($digestarray);
-
- if (!isset($err))
- {
- foreach($digestarray as $digestItem)
- {
- if ($err = news_get($sock, $digestItem['id'], $item))
- {
- $err = "Failed to grab news item: $err";
- break;
- }
- echo "<h3>" . $item['title'] . " - <em>" . date("F j, Y", strtotime($item['postdate'])) . "</em></h3>\n<p>" . $item['text'] . "</p>";
- if ($current_post++ == $news_item_count - 1)
- $lastid = $digestItem['id'];
- }
- }
- echo "<p>";
- if ($news_item_count == $news_item_max)
- echo "<a class=\"left\" href=\"?page=news&amp;news_index=$lastid\">&larr;Backpedal</a>";
- if ($news_index != false)
- echo "<a class=\"right\" href=\"?page=news\">To Newest&rarr;</a>";
- echo "</p>";
-}
-
-news_logout($sock);
-
-if ($err) {
- $code = 500;
- $detail = $err;
- require("errors.php");
-}
-?>