[Openfirst-cvscommit] news/admin editnews.php,1.1,1.2 index.php,1.12,1.13 killnews.php,1.1,1.2
Brought to you by:
xtimg
From: <xt...@us...> - 2003-10-13 17:59:55
|
Update of /cvsroot/openfirst/news/admin In directory sc8-pr-cvs1:/tmp/cvs-serv29987/admin Modified Files: editnews.php index.php killnews.php Log Message: Change include to include_once so that scripts may be easily included from other scripts without problems. Index: editnews.php =================================================================== RCS file: /cvsroot/openfirst/news/admin/editnews.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** editnews.php 1 Oct 2003 22:52:48 -0000 1.1 --- editnews.php 13 Oct 2003 17:59:50 -0000 1.2 *************** *** 27,32 **** * */ ! include("../../config/globals.php"); ! include($header); echo("<h1>Edit News Item</h1>"); --- 27,32 ---- * */ ! include_once("../../config/globals.php"); ! include_once($header); echo("<h1>Edit News Item</h1>"); *************** *** 121,124 **** echo("You must be logged on as an administrative user to edit news."); } ! include($footer); ?> --- 121,124 ---- echo("You must be logged on as an administrative user to edit news."); } ! include_once($footer); ?> Index: index.php =================================================================== RCS file: /cvsroot/openfirst/news/admin/index.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** index.php 6 Oct 2003 22:24:39 -0000 1.12 --- index.php 13 Oct 2003 17:59:50 -0000 1.13 *************** *** 26,31 **** * */ ! include("../../config/globals.php"); ! include($header); echo("<h1>Add News</h1>"); --- 26,31 ---- * */ ! include_once("../../config/globals.php"); ! include_once($header); echo("<h1>Add News</h1>"); *************** *** 98,101 **** echo("You must be logged on as an administrative user to add news."); } ! include($footer); ?> --- 98,101 ---- echo("You must be logged on as an administrative user to add news."); } ! include_once($footer); ?> Index: killnews.php =================================================================== RCS file: /cvsroot/openfirst/news/admin/killnews.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** killnews.php 1 Oct 2003 22:52:48 -0000 1.1 --- killnews.php 13 Oct 2003 17:59:50 -0000 1.2 *************** *** 26,31 **** * */ ! include("../../config/globals.php"); ! include($header); ?> --- 26,31 ---- * */ ! include_once("../../config/globals.php"); ! include_once($header); ?> *************** *** 79,82 **** } echo("</td></tr></table>"); ! include($footer); ?> --- 79,82 ---- } echo("</td></tr></table>"); ! include_once($footer); ?> |