[Openfirst-cvscommit] SF.net SVN: openfirst: [196] trunk/src/news
Brought to you by:
xtimg
From: <ast...@us...> - 2006-06-23 05:00:59
|
Revision: 196 Author: astronouth7303 Date: 2006-06-22 22:00:55 -0700 (Thu, 22 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=196&view=rev Log Message: ----------- -Updated config vars -rssfeed.php depreciated Modified Paths: -------------- trunk/src/news/rssfeed.php trunk/src/news/viewnews.php Modified: trunk/src/news/rssfeed.php =================================================================== --- trunk/src/news/rssfeed.php 2006-06-23 04:57:11 UTC (rev 195) +++ trunk/src/news/rssfeed.php 2006-06-23 05:00:55 UTC (rev 196) @@ -25,8 +25,10 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ - include_once("../includes/globals.php"); - include_once($ogHeader); +include_once("../includes/globals.php"); +include_once($ogHeader); + +#FIXME: Turn this into Javascript. Something this simple doesn't need reloads. ?> <h2>RSS Feed Option</h2> <p>Stay up-to-date with the latest information released directly from our teams<br> @@ -34,7 +36,7 @@ RSS technology then please view the <a href="http://blogs.law.harvard.edu/tech/rss">RSS 2.0 Specification</a> to learn more.</p> <?php - if(isset($_POST['get'])){ +if(isset($_POST['get'])){ if(isset($_POST['all'])){ $numhead = "all"; @@ -42,7 +44,7 @@ $numhead = $_POST['headlines']; } - $link = $server.$basepath."/news/rss/rss.php?headlines=".$numhead."&rss=".$_POST['version']; + $link = $ogServer.$ogBasePath."/news/rss/rss.php?headlines=".$numhead; ?> <table width="500" align="center" cellpadding="0"> @@ -70,14 +72,6 @@ <input name="all" type="checkbox" id="all2" value="all"> All</td> </tr> - <tr> - <td><div align="right">RSS Version:</div></td> - <td><select name="version" id="version"> - <option>0.91</option> - <option selected>1.0</option> - <option>2.0</option> - </select></td> - </tr> <tr> <td><div align="right"></div></td> <td><input name="get" type="submit" id="get" value="Get RSS Link"></td> Modified: trunk/src/news/viewnews.php =================================================================== --- trunk/src/news/viewnews.php 2006-06-23 04:57:11 UTC (rev 195) +++ trunk/src/news/viewnews.php 2006-06-23 05:00:55 UTC (rev 196) @@ -28,8 +28,8 @@ function shownews($limit = 5,$admin=false) { // Get a list of the users able to // be contacted via the feedback form. - global $BasePath, $ogDB; - $query = $ogDB->select('news', '*', '', array('ORDER BY' => '`post_date` DESC', 'limit' => $limit)); + global $ogBasePath, $ogDB; + $query = $ogDB->select('news', '*', '', array('order'=>'post_date', 'dir'=>'DESC', 'limit' => $limit)); if ($ogDB->numberOfRows($query) != 0){ @@ -46,10 +46,10 @@ }else{ echo($news->news); } - echo("<br /><br /><center>[ <a href='{$BasePath}/news/comments.php?ID={$news->ID}'>View Comments</a> ]</center></td></tr>"); + echo("<br /><br /><center>[ <a href='{$ogBasePath}/news/comments.php?ID={$news->ID}'>View Comments</a> ]</center></td></tr>"); if ($admin) { - echo('<tr><td class="sub"><div style="" align="right">Admin options: <a href="'.$BasePath.'/news/admin/editnews.php?id='.$news->ID.'"><img alt="Edit story" border=0 src="'.$BasePath.'/news/images/newdoc.gif" align=absmiddle>Edit story</a>'); - echo('<a href="'.$BasePath.'/news/admin/killnews.php?id='.$news->ID.'"><img alt="Delete story" border=0 src="'.$BasePath.'/news/images/killdoc.gif" align=absmiddle>Delete story</a></div></td></tr>'); + echo('<tr><td class="sub"><div style="" align="right">Admin options: <a href="'.$ogBasePath.'/news/admin/editnews.php?id='.$news->ID.'"><img alt="Edit story" border=0 src="'.$ogBasePath.'/news/images/newdoc.gif" align=absmiddle>Edit story</a>'); + echo('<a href="'.$ogBasePath.'/news/admin/killnews.php?id='.$news->ID.'"><img alt="Delete story" border=0 src="'.$ogBasePath.'/news/images/killdoc.gif" align=absmiddle>Delete story</a></div></td></tr>'); } echo("</table><br />"); } @@ -58,7 +58,7 @@ echo("There is not yet any news.<br /><br />"); } if($admin){ - echo("<div align=center>[ <b><a href=\"$BasePath/news/admin\">Post News</a></b> ]</div>"); + echo("<div align=center>[ <b><a href=\"$ogBasePath/news/admin\">Post News</a></b> ]</div>"); } return(0); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |