[Openfirst-cvscommit] projects/admin editprojects.php,1.3,1.4
Brought to you by:
xtimg
From: <xt...@us...> - 2003-10-23 14:17:27
|
Update of /cvsroot/openfirst/projects/admin In directory sc8-pr-cvs1:/tmp/cvs-serv21908 Modified Files: editprojects.php Log Message: Fix indenting/spacing/style issues, convert include() to include_once() where appropriate, fix incorrect information in heading comment Index: editprojects.php =================================================================== RCS file: /cvsroot/openfirst/projects/admin/editprojects.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** editprojects.php 13 Oct 2003 23:38:34 -0000 1.3 --- editprojects.php 23 Oct 2003 13:22:52 -0000 1.4 *************** *** 1,5 **** <?php /* ! * openFIRST.projects - groups.php * * Copyright (C) 2003, --- 1,5 ---- <?php /* ! * openFIRST.projects - admin/editprojects.php * * Copyright (C) 2003, *************** *** 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 *************** *** 42,73 **** // If a remove confirm is selected then allow the process to continue if(! isset($_POST['confirm'])){ ! echo "<br><br>Your request to remove the task was denied because you have not confirmed! [ <a href='editprojects.php?&ProjectID=".$_GET['ProjectID']."'>Projects</a> ]<br><br>"; ! die(include($footer)); } // Remove every task related value in the database ! ofirst_dbquery("DELETE FROM ofirst_projects_projects WHERE ID = '".$_GET['ProjectID']."'") or die(ofirst_dberror()); ofirst_dbquery("DELETE FROM ofirst_projects_tasks WHERE ID = '".$_GET['ProjectID']."'") or die(ofirst_dberror()); ofirst_dbquery("DELETE FROM ofirst_projects_notes WHERE TaskID = '".$_GET['ProjectID']."'") or die(ofirst_dberror()); echo "<br><br>Project removed! [ <a href='index.php'>Main</a> ]<br><br>"; ! die(include($footer)); } ! $project_query = ofirst_dbquery("SELECT * FROM ofirst_projects_projects WHERE ID = '".$_GET['ProjectID']."'"); ! $project = ofirst_dbfetch_object($project_query); ! ! // Edit assigned members to project ! if(isset($_POST['editmembers'])){ ! ofirst_dbquery("UPDATE ofirst_projects_projects SET Assigned = '".$_POST['members']."' WHERE ID = '".$_GET['ProjectID']."';"); ! $project_query = ofirst_dbquery("SELECT * FROM ofirst_projects_projects WHERE ID = '".$_GET['ProjectID']."'"); ! $project = ofirst_dbfetch_object($project_query); ! echo "<br>Members list has been updated!"; ! } ?> --- 42,72 ---- // If a remove confirm is selected then allow the process to continue if(! isset($_POST['confirm'])){ ! echo "<br><br>Your request to remove the task was denied because you have not confirmed! [ <a href='editprojects.php?ProjectID=".$_GET['ProjectID']."'>Projects</a> ]<br><br>"; ! die(include_once($footer)); } // Remove every task related value in the database ! ofirst_dbquery("DELETE FROM ofirst_projects_projects WHERE ID = '".$_GET['ProjectID']."'") or die(ofirst_dberror()); ofirst_dbquery("DELETE FROM ofirst_projects_tasks WHERE ID = '".$_GET['ProjectID']."'") or die(ofirst_dberror()); ofirst_dbquery("DELETE FROM ofirst_projects_notes WHERE TaskID = '".$_GET['ProjectID']."'") or die(ofirst_dberror()); echo "<br><br>Project removed! [ <a href='index.php'>Main</a> ]<br><br>"; ! die(include_once($footer)); } ! $project_query = ofirst_dbquery("SELECT * FROM ofirst_projects_projects WHERE ID = '".$_GET['ProjectID']."'"); ! $project = ofirst_dbfetch_object($project_query); ! // Edit assigned members to project ! if(isset($_POST['editmembers'])){ ! ofirst_dbquery("UPDATE ofirst_projects_projects SET Assigned = '".$_POST['members']."' WHERE ID = '".$_GET['ProjectID']."';"); ! $project_query = ofirst_dbquery("SELECT * FROM ofirst_projects_projects WHERE ID = '".$_GET['ProjectID']."'"); ! $project = ofirst_dbfetch_object($project_query); ! echo "<br>Members list has been updated!"; ! } ?> *************** *** 96,99 **** </form> <?php ! } include($footer); ?> --- 95,98 ---- </form> <?php ! } include_once($footer); ?> |