r751 - webspace/include

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri May 5 20:22:56 EDT 2006


Author: floam
Date: 2006-05-05 20:22:55 -0400 (Fri, 05 May 2006)
New Revision: 751

Modified:
   webspace/include/news.php
Log:
individual posts


Modified: webspace/include/news.php
===================================================================
--- webspace/include/news.php	2006-05-06 00:14:50 UTC (rev 750)
+++ webspace/include/news.php	2006-05-06 00:22:55 UTC (rev 751)
@@ -8,8 +8,17 @@
 	$news_index = $_GET['news_index'];
 
 $news_queue = 6;
-$news_item_max = 5;
 
+if (!empty($news_item))
+{
+	$news_item_max = 1;
+}
+else
+{
+	$news_item_max = 5;
+}
+
+
 if ($err = news_login($sock, 'localhost', 263, NULL, NULL, $news_queue))
 	$err = "Failed to log in: $err";
 else




More information about the quake3-commits mailing list