[Openfirst-cvscommit] projects getfile.php,1.1,1.2 index.php,1.13,1.14 meetings.php,1.8,1.9 mytask.p
Brought to you by:
xtimg
Update of /cvsroot/openfirst/projects In directory sc8-pr-cvs1:/tmp/cvs-serv27285 Modified Files: getfile.php index.php meetings.php mytask.php notes.php preferences.php tasks.php today.php updatesetup.php Log Message: Replace include() with include_once() where appropriate Index: getfile.php =================================================================== RCS file: /cvsroot/openfirst/projects/getfile.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** getfile.php 13 Oct 2003 23:04:16 -0000 1.1 --- getfile.php 23 Oct 2003 13:47:27 -0000 1.2 *************** *** 26,30 **** * */ ! include("../config/globals.php"); if(isset($_GET["id"])){ --- 26,30 ---- * */ ! include_once("../config/globals.php"); if(isset($_GET["id"])){ Index: index.php =================================================================== RCS file: /cvsroot/openfirst/projects/index.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** index.php 10 Oct 2003 01:36:34 -0000 1.13 --- index.php 23 Oct 2003 13:47:27 -0000 1.14 *************** *** 28,34 **** // Include globals and set header condense (not coded yet) ! include("../config/globals.php"); $header_condense = true; ! include($header); if(! isset($user->user)){ --- 28,34 ---- // Include globals and set header condense (not coded yet) ! include_once("../config/globals.php"); $header_condense = true; ! include_once($header); if(! isset($user->user)){ *************** *** 141,145 **** } ! include($footer); ?> --- 141,145 ---- } ! include_once($footer); ?> Index: meetings.php =================================================================== RCS file: /cvsroot/openfirst/projects/meetings.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** meetings.php 12 Oct 2003 23:39:14 -0000 1.8 --- meetings.php 23 Oct 2003 13:47:27 -0000 1.9 *************** *** 28,34 **** // Include globals and set header condense (not coded yet) ! include("../config/globals.php"); $header_condense = true; ! include($header); // Check if user is a member --- 28,34 ---- // Include globals and set header condense (not coded yet) ! include_once("../config/globals.php"); $header_condense = true; ! include_once($header); // Check if user is a member *************** *** 43,47 **** if(! isset($_POST['assign'])){ echo "<br><br>You must assign an arranged for field to this meeting! Click back to continue.<br><br><br>"; ! die(include($footer)); } --- 43,47 ---- if(! isset($_POST['assign'])){ echo "<br><br>You must assign an arranged for field to this meeting! Click back to continue.<br><br><br>"; ! die(include_once($footer)); } *************** *** 65,69 **** Dates = '".time()."'") or die(ofirst_dberror()); echo "<br><br>Meeting created! [ <a href='meetings.php'>Meetings</a> ]<br><br>"; ! die(include($footer)); } --- 65,69 ---- Dates = '".time()."'") or die(ofirst_dberror()); echo "<br><br>Meeting created! [ <a href='meetings.php'>Meetings</a> ]<br><br>"; ! die(include_once($footer)); } *************** *** 74,78 **** if(! isset($_POST['confirm'])){ echo "<br><br>Your request to remove the project was denied because you have not confirmed! [ <a href='projects.php?GroupID=".$_GET['GroupID']."'>Projects</a> ]<br><br>"; ! die(include($footer)); } --- 74,78 ---- if(! isset($_POST['confirm'])){ echo "<br><br>Your request to remove the project was denied because you have not confirmed! [ <a href='projects.php?GroupID=".$_GET['GroupID']."'>Projects</a> ]<br><br>"; ! die(include_once($footer)); } *************** *** 80,84 **** ofirst_dbquery("DELETE FROM ofirst_projects_meetings WHERE ID = '".$_POST['project']."'") or die(ofirst_dberror()); echo "<br><br>Meetings removed! [ <a href='meetings.php'>Meetings</a> ]<br><br>"; ! die(include($footer)); } --- 80,84 ---- ofirst_dbquery("DELETE FROM ofirst_projects_meetings WHERE ID = '".$_POST['project']."'") or die(ofirst_dberror()); echo "<br><br>Meetings removed! [ <a href='meetings.php'>Meetings</a> ]<br><br>"; ! die(include_once($footer)); } *************** *** 329,332 **** } } ! include($footer); ?> --- 329,332 ---- } } ! include_once($footer); ?> Index: mytask.php =================================================================== RCS file: /cvsroot/openfirst/projects/mytask.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** mytask.php 12 Oct 2003 23:39:14 -0000 1.6 --- mytask.php 23 Oct 2003 13:47:27 -0000 1.7 *************** *** 28,34 **** // // Include globals and set header condense (not coded yet) ! include("../config/globals.php"); $header_condense = true; ! include($header); // Check if user is a member --- 28,34 ---- // // Include globals and set header condense (not coded yet) ! include_once("../config/globals.php"); $header_condense = true; ! include_once($header); // Check if user is a member *************** *** 108,111 **** } ! include($footer); ?> --- 108,111 ---- } ! include_once($footer); ?> Index: notes.php =================================================================== RCS file: /cvsroot/openfirst/projects/notes.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** notes.php 17 Oct 2003 02:18:05 -0000 1.13 --- notes.php 23 Oct 2003 13:47:27 -0000 1.14 *************** *** 28,34 **** // ! include("../config/globals.php"); $header_condense = true; ! include($header); // If the user is logged in --- 28,34 ---- // ! include_once("../config/globals.php"); $header_condense = true; ! include_once($header); // If the user is logged in *************** *** 52,56 **** echo "<br><br>Note created! [ <a href='notes.php?GroupID=".$_GET['GroupID']."&ProjectID=".$_GET['ProjectID']."&TaskID=".$_GET['TaskID']."'>Notes</a> ]<br><br>"; ! die(include($footer)); }else{ ofirst_dbquery("INSERT INTO ofirst_projects_notes SET --- 52,56 ---- echo "<br><br>Note created! [ <a href='notes.php?GroupID=".$_GET['GroupID']."&ProjectID=".$_GET['ProjectID']."&TaskID=".$_GET['TaskID']."'>Notes</a> ]<br><br>"; ! die(include_once($footer)); }else{ ofirst_dbquery("INSERT INTO ofirst_projects_notes SET *************** *** 63,67 **** echo "<br><br>Note created! [ <a href='notes.php?GroupID=".$_GET['GroupID']."&ProjectID=".$_GET['ProjectID']."&TaskID=".$_GET['TaskID']."'>Notes</a> ]<br><br>"; ! die(include($footer)); } } --- 63,67 ---- echo "<br><br>Note created! [ <a href='notes.php?GroupID=".$_GET['GroupID']."&ProjectID=".$_GET['ProjectID']."&TaskID=".$_GET['TaskID']."'>Notes</a> ]<br><br>"; ! die(include_once($footer)); } } *************** *** 80,84 **** echo "<br><br>Task completion changed to: ".$_POST['completion']."% [ <a href='notes.php?GroupID=".$_GET['GroupID']."&ProjectID=".$_GET['ProjectID']."&TaskID=".$_GET['TaskID']."'>Current Notes</a> ]<br><br>"; ! die(include($footer)); } --- 80,84 ---- echo "<br><br>Task completion changed to: ".$_POST['completion']."% [ <a href='notes.php?GroupID=".$_GET['GroupID']."&ProjectID=".$_GET['ProjectID']."&TaskID=".$_GET['TaskID']."'>Current Notes</a> ]<br><br>"; ! die(include_once($footer)); } *************** *** 235,238 **** } ! include($footer); ?> --- 235,238 ---- } ! include_once($footer); ?> Index: preferences.php =================================================================== RCS file: /cvsroot/openfirst/projects/preferences.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** preferences.php 13 Sep 2003 15:38:24 -0000 1.8 --- preferences.php 23 Oct 2003 13:47:27 -0000 1.9 *************** *** 28,34 **** // Include globals and set header condense (not coded yet) ! include("../config/globals.php"); $header_condense = true; ! include($header); // Check if user is a member --- 28,34 ---- // Include globals and set header condense (not coded yet) ! include_once("../config/globals.php"); $header_condense = true; ! include_once($header); // Check if user is a member *************** *** 44,48 **** ProjectsSendTemplate = '".$_POST['template']."' WHERE user = '".$user->user."'") or die(ofirst_dberror()); echo "<br><br><br>Your account options have been updated! [ <a href='preferences.php'>Preferences</a> ]<br><br><br>"; ! die(include($footer)); } --- 44,48 ---- ProjectsSendTemplate = '".$_POST['template']."' WHERE user = '".$user->user."'") or die(ofirst_dberror()); echo "<br><br><br>Your account options have been updated! [ <a href='preferences.php'>Preferences</a> ]<br><br><br>"; ! die(include_once($footer)); } *************** *** 102,106 **** } ! include($footer); ?> --- 102,106 ---- } ! include_once($footer); ?> Index: tasks.php =================================================================== RCS file: /cvsroot/openfirst/projects/tasks.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** tasks.php 13 Oct 2003 23:31:30 -0000 1.13 --- tasks.php 23 Oct 2003 13:47:27 -0000 1.14 *************** *** 28,34 **** // Include globals and set header condense (not coded yet) ! include("../config/globals.php"); $header_condense = true; ! include($header); // If the user is logged in --- 28,34 ---- // Include globals and set header condense (not coded yet) ! include_once("../config/globals.php"); $header_condense = true; ! include_once($header); // If the user is logged in *************** *** 41,45 **** if(! isset($_POST['assign'])){ echo "<br><br>You must assign users to this project! Click back to continue.<br><br><br>"; ! die(include($footer)); } --- 41,45 ---- if(! isset($_POST['assign'])){ echo "<br><br>You must assign users to this project! Click back to continue.<br><br><br>"; ! die(include_once($footer)); } *************** *** 68,72 **** echo "<br><br>Task created! [ <a href='tasks.php?GroupID=".$_GET['GroupID']."&ProjectID=".$_GET['ProjectID']."'>Tasks</a> ]<br><br>"; ! die(include($footer)); } --- 68,72 ---- echo "<br><br>Task created! [ <a href='tasks.php?GroupID=".$_GET['GroupID']."&ProjectID=".$_GET['ProjectID']."'>Tasks</a> ]<br><br>"; ! die(include_once($footer)); } *************** *** 78,82 **** echo "<br><br>Project completion changed to: ".$_POST['completion']."% [ <a href='projects.php?GroupID=".$_GET['GroupID']."'>Projects</a> ]<br><br>"; ! die(include($footer)); } --- 78,82 ---- echo "<br><br>Project completion changed to: ".$_POST['completion']."% [ <a href='projects.php?GroupID=".$_GET['GroupID']."'>Projects</a> ]<br><br>"; ! die(include_once($footer)); } *************** *** 374,377 **** } } ! include($footer); ?> --- 374,377 ---- } } ! include_once($footer); ?> Index: today.php =================================================================== RCS file: /cvsroot/openfirst/projects/today.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** today.php 1 Sep 2003 17:44:48 -0000 1.6 --- today.php 23 Oct 2003 13:47:28 -0000 1.7 *************** *** 28,34 **** // Include globals and set header condense (not coded yet) ! include("../config/globals.php"); $header_condense = true; ! include($header); // Check if user is a member --- 28,34 ---- // Include globals and set header condense (not coded yet) ! include_once("../config/globals.php"); $header_condense = true; ! include_once($header); // Check if user is a member *************** *** 212,215 **** } } ! include($footer); ?> --- 212,215 ---- } } ! include_once($footer); ?> Index: updatesetup.php =================================================================== RCS file: /cvsroot/openfirst/projects/updatesetup.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** updatesetup.php 13 Oct 2003 02:17:23 -0000 1.4 --- updatesetup.php 23 Oct 2003 13:47:28 -0000 1.5 *************** *** 28,34 **** // Include globals and set header condense (not coded yet) ! include("../config/globals.php"); $header_condense = true; ! include($header); // Check if user is a member --- 28,34 ---- // Include globals and set header condense (not coded yet) ! include_once("../config/globals.php"); $header_condense = true; ! include_once($header); // Check if user is a member *************** *** 125,128 **** <?php } } ! include($footer); ?> --- 125,128 ---- <?php } } ! include_once($footer); ?> |