Thread: [Openfirst-cvscommit] SF.net SVN: openfirst: [169] trunk/src/news
Brought to you by:
xtimg
From: <ast...@us...> - 2006-06-21 15:49:24
|
Revision: 169 Author: astronouth7303 Date: 2006-06-21 08:49:15 -0700 (Wed, 21 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=169&view=rev Log Message: ----------- XML is LF (read the spec) Property Changed: ---------------- trunk/src/awards/openfirst.info.xml trunk/src/config/openfirst.info.xml trunk/src/modules/openfirst.info.xml trunk/src/news/openfirst.info.xml Property changes on: trunk/src/awards/openfirst.info.xml ___________________________________________________________________ Name: svn:eol-style - native + LF Property changes on: trunk/src/config/openfirst.info.xml ___________________________________________________________________ Name: svn:eol-style - native + LF Property changes on: trunk/src/modules/openfirst.info.xml ___________________________________________________________________ Name: svn:eol-style - native + LF Property changes on: trunk/src/news/openfirst.info.xml ___________________________________________________________________ Name: svn:eol-style - native + LF This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ast...@us...> - 2006-06-22 17:01:46
|
Revision: 182 Author: astronouth7303 Date: 2006-06-22 10:01:36 -0700 (Thu, 22 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=182&view=rev Log Message: ----------- Fixed versions to be "Devel" instead of "CVS". Modified Paths: -------------- trunk/src/awards/openfirst.info.xml trunk/src/config/openfirst.info.xml trunk/src/news/openfirst.info.xml Modified: trunk/src/awards/openfirst.info.xml =================================================================== --- trunk/src/awards/openfirst.info.xml 2006-06-22 16:33:11 UTC (rev 181) +++ trunk/src/awards/openfirst.info.xml 2006-06-22 17:01:36 UTC (rev 182) @@ -3,7 +3,7 @@ <!-- Info --> <!-- This is not used, except as meta data --> <name>Awards</name> - <version>CVS</version> + <version>Devel</version> <author>David Di Biase</author> <maintainer>Jamie Bliss</maintainer> @@ -170,4 +170,4 @@ </rows> </table> </db> -</module> \ No newline at end of file +</module> Modified: trunk/src/config/openfirst.info.xml =================================================================== --- trunk/src/config/openfirst.info.xml 2006-06-22 16:33:11 UTC (rev 181) +++ trunk/src/config/openfirst.info.xml 2006-06-22 17:01:36 UTC (rev 182) @@ -3,7 +3,7 @@ <!-- NOTE: This file defines the basic DB layout when installing or upgrading. openfirst.base is a psuedo-module for the oF core. --> <name>openFIRST portal system</name> - <version>CVS</version> + <version>Devel</version> <author>The openFIRST Team</author> <includes> Modified: trunk/src/news/openfirst.info.xml =================================================================== --- trunk/src/news/openfirst.info.xml 2006-06-22 16:33:11 UTC (rev 181) +++ trunk/src/news/openfirst.info.xml 2006-06-22 17:01:36 UTC (rev 182) @@ -3,7 +3,7 @@ <!-- Info --> <!-- This is not used, except as meta data --> <name>News</name> - <version>CVS</version> + <version>Devel</version> <author>Tim Ginn</author> <maintainer>Jamie Bliss</maintainer> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
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. |
From: <ast...@us...> - 2006-06-28 18:00:53
|
Revision: 205 Author: astronouth7303 Date: 2006-06-28 11:00:46 -0700 (Wed, 28 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=205&view=rev Log Message: ----------- - Found readnews.php! - Modified viewnews() so that $admin is no longer given, but $id is (optionally) Modified Paths: -------------- trunk/src/news/viewnews.php Added Paths: ----------- trunk/src/news/readnews.php Added: trunk/src/news/readnews.php =================================================================== --- trunk/src/news/readnews.php (rev 0) +++ trunk/src/news/readnews.php 2006-06-28 18:00:46 UTC (rev 205) @@ -0,0 +1,24 @@ +<?php +/* + * openFIRST.news - readnews.php + * + * Copyright (C) 2003, + * openFIRST Project + * Original Author: Tim Ginn <tim...@sy...> + * + * Based on the original code from openFIRST. Edited and refined by David Di Biase + * Copyright (C) 2003, Archangel Robotics #1049 * + */ + +include_once("../includes/globals.php"); +$Title = "Read News"; +include_once($ogHeader); + +if(isset($_GET['id'])){ + shownews(1,$_GET['id']); +} else { + shownews(); +} +?> +[ <a href="index.php?show=all">Show All News</a> ] +<?php include_once($ogFooter); ?> Property changes on: trunk/src/news/readnews.php ___________________________________________________________________ Name: of:module + openfirst.news Name: svn:mime-type + text/x-php Name: svn:eol-style + native Modified: trunk/src/news/viewnews.php =================================================================== --- trunk/src/news/viewnews.php 2006-06-23 23:34:24 UTC (rev 204) +++ trunk/src/news/viewnews.php 2006-06-28 18:00:46 UTC (rev 205) @@ -25,11 +25,15 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ - function shownews($limit = 5,$admin=false) { +function shownews($limit = 5, $id=false) { // Get a list of the users able to // be contacted via the feedback form. - global $ogBasePath, $ogDB; - $query = $ogDB->select('news', '*', '', array('order'=>'post_date', 'dir'=>'DESC', 'limit' => $limit)); + global $ogBasePath, $ogDB, $ogUser; + if ($id === false) { + $query = $ogDB->select('news', '*', '', array('order'=>'post_date', 'dir'=>'DESC', 'limit' => $limit)); + } else { + $query = $ogDB->select('news', '*', array('ID' => $id), array('limit' => 1)); + } if ($ogDB->numberOfRows($query) != 0){ @@ -47,7 +51,7 @@ echo($news->news); } echo("<br /><br /><center>[ <a href='{$ogBasePath}/news/comments.php?ID={$news->ID}'>View Comments</a> ]</center></td></tr>"); - if ($admin) { + if ($ogUser->isAdmin()) { #TODO: Add ACL system 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>'); } @@ -61,5 +65,5 @@ 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. |