Update of /cvsroot/openfirst/news
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2915/news
Modified Files:
viewnews.php
Log Message:
More misunderstanding stuff
Index: viewnews.php
===================================================================
RCS file: /cvsroot/openfirst/news/viewnews.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** viewnews.php 27 Dec 2003 01:00:33 -0000 1.12
--- viewnews.php 13 Mar 2005 19:47:06 -0000 1.13
***************
*** 30,33 ****
--- 30,34 ----
// Get a list of the users able to
// be contacted via the feedback form.
+ global $basepath, $home;
$query = ofirst_dbquery("SELECT * FROM ofirst_news ORDER BY ID DESC LIMIT $limit;");
***************
*** 46,53 ****
echo($news->news);
}
! echo("<br><br><center>[ <a href='".$GLOBALS["basepath"]."/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="'.$GLOBALS["basepath"].'/news/admin/editnews.php?id='.$news->ID.'"><img alt="Edit story" border=0 src="'.$GLOBALS["basepath"].'/news/images/newdoc.gif" align=absmiddle>Edit story</a>');
! echo('<a href="'.$GLOBALS["basepath"].'/news/admin/killnews.php?id='.$news->ID.'"><img alt="Delete story" border=0 src="'.$GLOBALS["basepath"].'/news/images/killdoc.gif" align=absmiddle>Delete story</a></div></td></tr>');
}
echo("</table><br>");
--- 47,54 ----
echo($news->news);
}
! echo("<br><br><center>[ <a href='$home$basepath/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="'.$home.$basepath.'/news/admin/editnews.php?id='.$news->ID.'"><img alt="Edit story" border=0 src="'.$GLOBALS["basepath"].'/news/images/newdoc.gif" align=absmiddle>Edit story</a>');
! echo('<a href="'.$home.$basepath.'/news/admin/killnews.php?id='.$news->ID.'"><img alt="Delete story" border=0 src="'.$home.$basepath.'/news/images/killdoc.gif" align=absmiddle>Delete story</a></div></td></tr>');
}
echo("</table><br>");
***************
*** 58,62 ****
}
if($admin){
! echo("<div align=center>[ <b><a href=\"".$GLOBALS["basepath"]."/news/admin\">Post News</a></b> ]</div>");
}
return(0);
--- 59,63 ----
}
if($admin){
! echo("<div align=center>[ <b><a href=\"$home$basepath/news/admin\">Post News</a></b> ]</div>");
}
return(0);
|