openfirst-cvscommit Mailing List for openFIRST (Page 70)
Brought to you by:
xtimg
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(41) |
Jun
(210) |
Jul
(39) |
Aug
(153) |
Sep
(147) |
Oct
(173) |
Nov
(81) |
Dec
(163) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(33) |
Feb
(18) |
Mar
|
Apr
(62) |
May
|
Jun
(100) |
Jul
(38) |
Aug
(58) |
Sep
(1) |
Oct
|
Nov
(25) |
Dec
(172) |
2005 |
Jan
(31) |
Feb
(12) |
Mar
(67) |
Apr
(92) |
May
(247) |
Jun
(34) |
Jul
(36) |
Aug
(192) |
Sep
(15) |
Oct
(42) |
Nov
(92) |
Dec
(4) |
2006 |
Jan
|
Feb
(21) |
Mar
|
Apr
|
May
|
Jun
(53) |
Jul
(7) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
(4) |
Apr
(4) |
May
|
Jun
(15) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <i-...@us...> - 2003-10-24 08:14:44
|
Update of /cvsroot/openfirst/news In directory sc8-pr-cvs1:/tmp/cvs-serv23058/news Modified Files: viewnews.php Log Message: No longer shows "blank" image if no image has been assigned to news item. This makes images optional for news. Index: viewnews.php =================================================================== RCS file: /cvsroot/openfirst/news/viewnews.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** viewnews.php 1 Oct 2003 22:51:03 -0000 1.8 --- viewnews.php 23 Oct 2003 21:49:00 -0000 1.9 *************** *** 36,42 **** while($news = ofirst_dbfetch_object($query)){ echo("<br><table width='500'> ! <tr><th><strong>$news->title</strong></th></tr> ! <tr><td><center><img src='$news->image' alt='$news->title'></center></td></tr> ! <tr><td class='sub'>Posted on $news->date by $news->poster</td></tr> <tr><td>$news->news<br><br><center>[ <a href='".$GLOBALS["basepath"]."/news/comments.php?ID=$news->ID'>View Comments</a> ]</center></td></tr>"); if($admin){ --- 36,44 ---- while($news = ofirst_dbfetch_object($query)){ echo("<br><table width='500'> ! <tr><th><strong>$news->title</strong></th></tr>"); ! if($news->image!=""){ ! echo("<tr><td><center><img src='$news->image' alt='$news->title'></center></td></tr>"); ! } ! echo("<tr><td class='sub'>Posted on $news->date by $news->poster</td></tr> <tr><td>$news->news<br><br><center>[ <a href='".$GLOBALS["basepath"]."/news/comments.php?ID=$news->ID'>View Comments</a> ]</center></td></tr>"); if($admin){ |
From: <i-...@us...> - 2003-10-24 07:57:38
|
Update of /cvsroot/openfirst/news/admin In directory sc8-pr-cvs1:/tmp/cvs-serv30173/news/admin Added Files: delcomment.php Log Message: Added news comment system with Forum integration. Works without the forum as well. --- NEW FILE: delcomment.php --- <?php /* * openFIRST.news - delcomment.php * * Copyright (C) 2003, * openFIRST Project * Original Author: Greg Inozemtsev <gr...@si...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ include_once("../../config/globals.php"); include_once($header); ?> <br> <table width="618" align="center"> <tr> <th>Delete Comment</th> </tr> <tr> <td align="center"> <?php $admin=false; if (isset($user->membertype)){ $admin=($user->membertype == "administrator"); } if($admin) { if(!isset($_POST["CommentID"])) { $query = ofirst_dbquery("SELECT * FROM ofirst_news_comments WHERE ID='".$_GET["id"]."'"); if (ofirst_dbnum_rows($query) != 0){ echo('<form action="'.$_SERVER["PHP_SELF"].'" method="POST">'); echo('<input name="CommentID" type="hidden" value="'.$_GET["id"].'">'); echo('<div>Delete comment?</div><br>'); echo('<input type="submit" value="Confirm"></form>'); } else { echo('<div>This comment does not exist.</div>'); } } else { // Delete the news by ID. ofirst_dbquery("DELETE FROM ofirst_news_comments WHERE ID=".$_POST["CommentID"].";"); echo("The comment has been deleted. [ <a href='../index.php'>Main</a> ]"); } } else { echo("You must be logged on as an administrative user to delete comments."); } echo("</td></tr></table>"); include_once($footer); ?> |
From: <i-...@us...> - 2003-10-24 07:29:51
|
Update of /cvsroot/openfirst/news In directory sc8-pr-cvs1:/tmp/cvs-serv30173/news Modified Files: index.php viewnews.php Added Files: comments.php newcomment.php Log Message: Added news comment system with Forum integration. Works without the forum as well. --- NEW FILE: comments.php --- <?php /* * openFIRST.news - comments.php * * Copyright (C) 2003, * openFIRST Project * Original Author: Greg Inozemtsev <gr...@si...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ //what subforum to use for news discussions define("newsforum","news"); include_once("../config/globals.php"); $id=0; if(isset($_GET["ID"])){ $id=$_GET["ID"]; } $admin=false; if (isset($user->membertype)){ $admin=($user->membertype == "administrator"); } if(function_exists("latest_posts")){ //forum integration $q=ofirst_dbquery("SELECT Website FROM ofirst_news_comments WHERE StoryID='$id'"); if(ofirst_dbnum_rows($q)!=0){ $redirect=ofirst_dbfetch_object($q); header("Location: ".$redirect->Website); } else{ $q=ofirst_dbquery("SELECT * FROM ofirst_news WHERE ID='$id'"); $newspost=ofirst_dbfetch_object($q); ofirst_dbquery("INSERT INTO ofirst_forumposts (forum,ReplyTo,Title,Author,Message,DatePosted) values ('".newsforum."','0','".$newspost->title."','".$newspost->poster."','".$newspost->news."','".date("Y-m-d H:i:s")."');"); $query=ofirst_dbquery("SELECT ID FROM ofirst_forumposts WHERE forum='".newsforum."' AND ReplyTo=0 AND Title='".$newspost->title."' AND Author='".$newspost->poster."' AND Message='".$newspost->news."'"); $news=ofirst_dbfetch_object($query); ofirst_dbquery("INSERT INTO ofirst_news_comments (StoryID,Author,Website,Comment,Date) values ('$id','".$newspost->poster."','".$basepath."/forum/thread.php?id=".$news->ID."','Discussion moved to forum','".date("Y-m-d H:i:s")."');"); header("Location: ".$basepath."/forum/thread.php?id=".$news->ID); } } else{ include_once($header); ?> <h2>Comments</h2> <table width=500> <tr><th colspan=2> <?php $q=ofirst_dbquery("SELECT title FROM ofirst_news WHERE ID='$id'"); if(ofirst_dbnum_rows($q)!=0){ $post=ofirst_dbfetch_object($q); echo("Discussion: ".$post->title); echo("</th></tr>"); $q=ofirst_dbquery("SELECT * FROM ofirst_news_comments WHERE StoryID='$id'"); if(ofirst_dbnum_rows($q)!=0){ while($post=ofirst_dbfetch_object($q)){ echo("<tr valign=top><td class=sub width=200>"); if($post->EMail!=""){ echo("<a href=\"=$post->EMail\">$post->Author</a>"); } else{ echo("<b>$post->Author</b>"); } if($post->Website!=""){ echo("<br />Website: <a href=\"$post->Website\">$post->Website</a>"); } echo("<div><i>".$post->Date."</i></div>"); echo("</td><td width=300>".$post->Comment); if($admin){ echo("<br /><div align=right><a href=\"admin/delcomment.php?id=$post->ID\">Delete</a></div></td>"); } echo("</td></tr>"); } } else{ echo("<tr><td colspan=2 align=center>No comments have been posted</td></tr>"); } ?> </table><br /> <form action="newcomment.php" method=POST> <input type="hidden" name=id value="<?php echo($id); ?>" /> <table> <tr><th colspan=2>Post Comment</th></tr> <tr><td class=sub><label for=uname><b>Name</b></label></td> <td><input name=uname id=uname /></td></tr> <tr><td class=sub><label for=email><b>E-Mail</b><br />(optional)</label></td> <td><input name=email id=email /></td></tr> <tr><td class=sub><label for=web><b>Web site</b><br />(optional)</label></td> <td><input name=web id=web /></td></tr> <tr><td class=sub><label for=comment><b>Comment</b></label></td> <td><textarea name=comment id=comment rows=5 cols=25></textarea></td></tr> <tr><td colspan=2 align=center><input type=submit value="Post" /></td></tr> </table> </form><br /> <?php } else{ echo("This news item does not exist</th></tr></table><br />"); } ?> [ <a href="index.php">News Main</a> ] <?php include_once($footer); } ?> --- NEW FILE: newcomment.php --- <?php /* * openFIRST.news - newcomment.php * * Copyright (C) 2003, * openFIRST Project * Original Author: Greg Inozemtsev <gr...@si...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ include_once("../config/globals.php"); include_once($header); if(isset($_POST["comment"])&&$_POST["comment"]!=""&&isset($_POST["uname"])&&$_POST["uname"]!=""){ $mail=""; if(isset($_POST["email"])&&ereg("^[^@ ]+@[^@ ]+\.[^@ \.]+$",$_POST["email"])){ $mail="mailto:".strip_tags($_POST["email"]); } $web=""; if(isset($_POST["web"])&&$_POST["web"]!=""){ $web=strip_tags($_POST["web"]); if(substr($web,7)!="http://"){ $web="http://".$web; } } ofirst_dbquery("INSERT INTO ofirst_news_comments (StoryID,Author,EMail,Website,Comment,Date) values ('".$_POST["id"]."','".$_POST["uname"]."','".$mail."','".$web."','".strip_tags($_POST["comment"],"<b><i><em><strong>")."','".date("Y-m-d H:i:s")."');"); echo("<h4>Comment Added</h4>"); } else{ echo("<h4>Could not add comment</h4>"); } if(isset($_SERVER["HTTP_REFERER"])){ echo('[ <a href="'.$_SERVER["HTTP_REFERER"].'">Back</a> ] '); } echo('[ <a href="index.php">News Main</a> ]'); include_once($footer); ?> Index: index.php =================================================================== RCS file: /cvsroot/openfirst/news/index.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** index.php 13 Oct 2003 17:59:42 -0000 1.9 --- index.php 23 Oct 2003 22:31:12 -0000 1.10 *************** *** 30,34 **** ?> <h2>Top Headlines</h2> ! Here are the top 5 most important news outbreaks.<br><br> <?php $admin=false; --- 30,34 ---- ?> <h2>Top Headlines</h2> ! Here are the most recent news outbreaks.<br><br> <?php $admin=false; Index: viewnews.php =================================================================== RCS file: /cvsroot/openfirst/news/viewnews.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** viewnews.php 23 Oct 2003 21:49:00 -0000 1.9 --- viewnews.php 23 Oct 2003 22:31:12 -0000 1.10 *************** *** 52,55 **** --- 52,58 ---- echo("There is not yet any news.<br><br>"); } + if($admin){ + echo("<div align=center>[ <b><a href=\"".$GLOBALS["basepath"]."/news/admin\">Post News</a></b> ]</div>"); + } return(0); } |
From: <xt...@us...> - 2003-10-24 00:24:27
|
Update of /cvsroot/openfirst/projects/admin In directory sc8-pr-cvs1:/tmp/cvs-serv27285/admin Modified Files: updatesetup.php Log Message: Replace include() with include_once() where appropriate Index: updatesetup.php =================================================================== RCS file: /cvsroot/openfirst/projects/admin/updatesetup.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** updatesetup.php 12 Oct 2003 23:41:04 -0000 1.1 --- updatesetup.php 23 Oct 2003 13:47:28 -0000 1.2 *************** *** 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 *************** *** 131,134 **** <?php } } ! include($footer); ?> --- 131,134 ---- <?php } } ! include_once($footer); ?> |
From: <i-...@us...> - 2003-10-23 22:40:03
|
Update of /cvsroot/openfirst/base In directory sc8-pr-cvs1:/tmp/cvs-serv31043 Modified Files: index.php Log Message: A new look and several bug fixes. Index: index.php =================================================================== RCS file: /cvsroot/openfirst/base/index.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** index.php 13 Sep 2003 20:17:54 -0000 1.3 --- index.php 23 Oct 2003 22:37:36 -0000 1.4 *************** *** 42,83 **** } ! echo("<th>Features</th><td>$headers</td></tr>"); ! if(function_exists("shownews")) { ! echo("<tr><th>News</th> ! <td>" . shownews(5) . "</td>"); } ! if (is_readable("guestbook/")) { ! $qu = ofirst_dbquery("SELECT guest, date FROM ofirst_guestbook ORDER BY guest LIMIT 5;"); ! while($q = ofirst_dbfetch_object($qu)) { ! echo("<sub><strong><a href='/guestbook/' target='_content'>$q->guest</a></strong><br>$q->date</sub><br>"); ! } ! } elseif (is_readable("news/")) { ! $qu = ofirst_dbquery("SELECT title, poster, date FROM ofirst_news ORDER BY ID desc LIMIT 5;"); ! while($q = ofirst_dbfetch_object($qu)) { ! echo("<sub><strong><a href='$home$basepath/news' target='_content' >$q->title</a></strong> - $q->poster<br>$q->date</sub><br>"); ! } ! } elseif (is_readable("manual/")) { ! $qu = ofirst_dbquery("SELECT document, title FROM ofirst_manual GROUP BY document;"); ! while($q = ofirst_dbfetch_object($qu)) { ! echo("<sub><a href='$home$basepath/manual' target='_content'>$q->document</a> - $q->title</sub><br>"); ! } ! } elseif (is_readable("guestbook/")) { ! if(function_exists("emoticon_preview") == true) { ! emoticon_preview(); ! } else { ! echo("Emoticons have not been enabled."); ! } ! } elseif (is_readable("awards/")) { $qu = ofirst_dbquery("SELECT AwardName FROM ofirst_awards;"); ! while($q = ofirst_dbfetch_object($qu)) { ! echo("<sub><a href='$home$basepath/awards' target='_content'>$q->AwardName</a></sub><br>"); } ! } ! ?> ! </tr> ! </table> ! <?php include($footer); ?> --- 42,103 ---- } ! echo("<tr valign=top>"); ! echo("<th>Welcome to $title Web Site!</th>"); ! echo("<td rowspan=3 valign=top>"); ! if(isset($user->user)){ ! echo("<table width=200><tr><th>Welcome</th><td class=sub>Welcome, ".ucfirst($user->user)."!</td></tr></table><br />"); } ! if(function_exists("latest_posts")) { ! echo("<table width=200><tr><th>Latest Posts in Forum</th></tr><tr><td>"); ! latest_posts(5); ! echo("</td></tr></table><br />"); ! } ! ! if (is_readable("guestbook/")) { ! $qu = ofirst_dbquery("SELECT guest, date FROM ofirst_guestbook ORDER BY guest LIMIT 5;"); ! if(ofirst_dbnum_rows($qu)!=0){ ! echo("<table width=200><tr><th>Guestbook</th></tr><tr><td><div>Last records in our <a href=\"$basepath/guestbook\">guestbook</a>: </div>"); ! while($q = ofirst_dbfetch_object($qu)) { ! echo("<sub><strong><a href='/guestbook/' target='_content'>$q->guest</a></strong><br>$q->date</sub><br>"); ! } ! echo("</td></tr></table><br />"); ! } ! } ! if (is_readable("awards/")) { $qu = ofirst_dbquery("SELECT AwardName FROM ofirst_awards;"); ! if(ofirst_dbnum_rows($qu)!=0){ ! echo("<table width=200><tr><th>Awards</th></tr><tr><td><div>Our team has received the following <a href=\"$basepath/awards\">awards</a>: </div>"); ! while($q = ofirst_dbfetch_object($qu)) { ! echo("<sub><a href='$basepath/awards' target='_content'>$q->AwardName</a></sub><br>"); ! } ! echo("</td></tr></table><br />"); } ! } ! echo("<table width=200><tr><th>Features</th></tr><tr><td><div>This portal has the following features: </div> ! <ul>".str_replace(" |"," ",str_replace("»","<li>",$headers))."</ul></td></tr></table><br />"); ! if(function_exists("get_visitors")) { ! echo("<table width=200><tr><th>Stats</th></tr><tr><td><div>Website <a href=\"$basepath/logger/stats.php\">usage statistics</a>: </div>"); ! echo("<sub><strong>".get_totalpages()." pages served to ".get_visitors()." visitors</strong></sub>"); ! echo("</td></tr></table><br />"); ! } ! echo("</td></tr>"); ! echo("<tr><td class=sub>Welcome to the $title portal.</td></tr>"); ! echo("<tr><td valign=top>"); ! if(function_exists("shownews")) { ! echo("<h2 style=\"margin-bottom:0px;margin-top:15px\">Latest News</h2>"); ! $admin=false; ! if (isset($user->membertype)){ ! $admin=($user->membertype == "administrator"); ! } ! shownews(5,$admin); ! //are there more news? ! if(ofirst_dbnum_rows(ofirst_dbquery("SELECT * FROM ofirst_news"))>5){ ! echo("<div align=right>[ <b><a href=\"$basepath/news/index.php?show=all\">More News</a></b> ]</div>"); ! } ! } ! echo(" </td></tr></table>"); ! include($footer); ?> |
From: <i-...@us...> - 2003-10-23 22:16:45
|
Update of /cvsroot/openfirst/logger In directory sc8-pr-cvs1:/tmp/cvs-serv27119/logger Modified Files: rawdata.php track.php Log Message: Fixed admin login bug Index: rawdata.php =================================================================== RCS file: /cvsroot/openfirst/logger/rawdata.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** rawdata.php 15 Oct 2003 01:02:54 -0000 1.8 --- rawdata.php 23 Oct 2003 22:10:55 -0000 1.9 *************** *** 27,30 **** --- 27,32 ---- */ + include_once("../config/globals.php"); + if(!isset($user->user)||$user->membertype!="administrator"){ header("Location: stats.php"); *************** *** 32,36 **** } - include_once("../config/globals.php"); include_once("$header"); --- 34,37 ---- Index: track.php =================================================================== RCS file: /cvsroot/openfirst/logger/track.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** track.php 15 Oct 2003 01:02:54 -0000 1.13 --- track.php 23 Oct 2003 22:10:55 -0000 1.14 *************** *** 27,36 **** */ if(!isset($user->user)||$user->membertype!="administrator"){ header("Location: stats.php"); exit; } ! ! include_once("../config/globals.php"); include_once("$header"); --- 27,36 ---- */ + include_once("../config/globals.php"); if(!isset($user->user)||$user->membertype!="administrator"){ header("Location: stats.php"); exit; } ! include_once("$header"); |
From: <xt...@us...> - 2003-10-23 21:46:44
|
Update of /cvsroot/openfirst/projects In directory sc8-pr-cvs1:/tmp/cvs-serv27119 Modified Files: projects.php Log Message: Fix whitepace/indenting issues, replace include() with include_once() where appropriate. Index: projects.php =================================================================== RCS file: /cvsroot/openfirst/projects/projects.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** projects.php 13 Oct 2003 03:32:33 -0000 1.12 --- projects.php 23 Oct 2003 13:46:25 -0000 1.13 *************** *** 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 users to this task! Click back to continue.<br><br><br>"; ! die(include($footer)); } --- 43,47 ---- if(! isset($_POST['assign'])){ echo "<br><br>You must assign users to this task! Click back to continue.<br><br><br>"; ! die(include_once($footer)); } *************** *** 64,68 **** Dates = '".time()."'") or die(ofirst_dberror()); echo "<br><br>Project created! [ <a href='projects.php?GroupID=".$_GET['GroupID']."'>Projects</a> ]<br><br>"; ! die(include($footer)); } --- 64,68 ---- Dates = '".time()."'") or die(ofirst_dberror()); echo "<br><br>Project created! [ <a href='projects.php?GroupID=".$_GET['GroupID']."'>Projects</a> ]<br><br>"; ! die(include_once($footer)); } *************** *** 73,77 **** 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)); } --- 73,77 ---- 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)); } *************** *** 81,85 **** ofirst_dbquery("DELETE FROM ofirst_projects_tasks WHERE ProjectID = '".$_POST['project']."'") or die(ofirst_dberror()); echo "<br><br>Project removed! [ <a href='projects.php?GroupID=".$_GET['GroupID']."'>Projects</a> ]<br><br>"; ! die(include($footer)); } --- 81,85 ---- ofirst_dbquery("DELETE FROM ofirst_projects_tasks WHERE ProjectID = '".$_POST['project']."'") or die(ofirst_dberror()); echo "<br><br>Project removed! [ <a href='projects.php?GroupID=".$_GET['GroupID']."'>Projects</a> ]<br><br>"; ! die(include_once($footer)); } *************** *** 110,114 **** <td class="sub" width="10%">Completion</td> <td class="sub" width="35%">Description</td> ! <td width="27%" class="sub">Assigned To Project </td> <?php if($user->membertype == "administrator"){ ?> <td class="sub" width="6%">Admin</td> --- 110,114 ---- <td class="sub" width="10%">Completion</td> <td class="sub" width="35%">Description</td> ! <td width="27%" class="sub">Assigned To Project </td> <?php if($user->membertype == "administrator"){ ?> <td class="sub" width="6%">Admin</td> *************** *** 162,173 **** </td> <td> ! <?php ! if(! $pend){ ! echo '<a href="tasks.php?GroupID='.$projects->GroupID.'&ProjectID='.$projects->ID.'">'.$projects->ProjectName.'</a>'; ! }else{ ! echo $projects->ProjectName; ! } ! ?> ! </td> <td> <?php --- 162,173 ---- </td> <td> ! <?php ! if(! $pend){ ! echo '<a href="tasks.php?GroupID='.$projects->GroupID.'&ProjectID='.$projects->ID.'">'.$projects->ProjectName.'</a>'; ! } else { ! echo $projects->ProjectName; ! } ! ?> ! </td> <td> <?php *************** *** 180,184 **** </td> <td><?php echo $projects->Description; ?></td> ! <td><?php echo str_replace(",",", ",$projects->Assigned); ?></td> <?php if($user->membertype == "administrator"){ ?><td id="adminmenu" background="/openfirst/images/back-admin.png"><div align="center"><a href="admin/editprojects.php?ProjectID=<?php echo $projects->ID; ?>">Edit</a></div></td> <?php } ?> --- 180,184 ---- </td> <td><?php echo $projects->Description; ?></td> ! <td><?php echo str_replace(",",", ",$projects->Assigned); ?></td> <?php if($user->membertype == "administrator"){ ?><td id="adminmenu" background="/openfirst/images/back-admin.png"><div align="center"><a href="admin/editprojects.php?ProjectID=<?php echo $projects->ID; ?>">Edit</a></div></td> <?php } ?> *************** *** 332,336 **** } ! include($footer); ?> --- 332,336 ---- } ! include_once($footer); ?> |
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); ?> |
From: <xt...@us...> - 2003-10-23 20:00:25
|
Update of /cvsroot/openfirst/projects In directory sc8-pr-cvs1:/tmp/cvs-serv26611 Modified Files: updates.php Log Message: Fix indenting issues, replace include() with include_once() where appropriate Index: updates.php =================================================================== RCS file: /cvsroot/openfirst/projects/updates.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** updates.php 14 Oct 2003 00:04:54 -0000 1.8 --- updates.php 23 Oct 2003 13:43:08 -0000 1.9 *************** *** 28,47 **** // Include globals and set header condense (not coded yet) ! include("../config/globals.php"); $mailgroupquery = ofirst_dbquery("SELECT * FROM ofirst_members WHERE ProjectsUpdates = 'On'") or die(mysql_error()); while($mailgroup = ofirst_dbfetch_object($mailgroupquery)){ ! if(! isset($mailgroup->email)){ ! continue; ! } ! if($mailgroup->ProjectsUpdates == "Off"){ ! continue; ! } ! $message = ""; ! $message .= "<html><h2>$title Action Register Updater</h2> <div align='left'>Update Template: ".$mailgroup->ProjectsSendTemplate." | Commit Types: ".$mailgroup->ProjectsCommitSelect."</div> <table width='100%' border='0' cellspacing='0' cellpadding='6'> --- 28,47 ---- // Include globals and set header condense (not coded yet) ! include_once("../config/globals.php"); $mailgroupquery = ofirst_dbquery("SELECT * FROM ofirst_members WHERE ProjectsUpdates = 'On'") or die(mysql_error()); while($mailgroup = ofirst_dbfetch_object($mailgroupquery)){ ! if(! isset($mailgroup->email)){ ! continue; ! } ! if($mailgroup->ProjectsUpdates == "Off"){ ! continue; ! } ! $message = ""; ! $message .= "<html><h2>$title Action Register Updater</h2> <div align='left'>Update Template: ".$mailgroup->ProjectsSendTemplate." | Commit Types: ".$mailgroup->ProjectsCommitSelect."</div> <table width='100%' border='0' cellspacing='0' cellpadding='6'> *************** *** 56,60 **** while($group = ofirst_dbfetch_object($groupquery)){ ! $message .= "<table width='100%' border='0' cellspacing='0' cellpadding='6'> <tr> <td bgcolor='#CCCCCC'> <div align='center'><font color='#000000'><strong>".$group->GroupName."</strong></font> --- 56,60 ---- while($group = ofirst_dbfetch_object($groupquery)){ ! $message .= "<table width='100%' border='0' cellspacing='0' cellpadding='6'> <tr> <td bgcolor='#CCCCCC'> <div align='center'><font color='#000000'><strong>".$group->GroupName."</strong></font> *************** *** 72,82 **** </tr>"; ! // Listed the newly added projects for this day ! $projectquery = ofirst_dbquery("SELECT * FROM ofirst_projects_projects WHERE GroupID = '".$group->ID."'"); ! while($project = ofirst_dbfetch_object($projectquery)){ ! if(date('F j, Y',time()) == date("F j, Y",$project->Dates)){ ! $message .=" <tr> <td><img src='$home/$basepath/members/icons/actions/project_open.png' width='32' height='32'></td> --- 72,82 ---- </tr>"; ! // Listed the newly added projects for this day ! $projectquery = ofirst_dbquery("SELECT * FROM ofirst_projects_projects WHERE GroupID = '".$group->ID."'"); ! while($project = ofirst_dbfetch_object($projectquery)){ ! if(date('F j, Y',time()) == date("F j, Y",$project->Dates)){ ! $message .=" <tr> <td><img src='$home/$basepath/members/icons/actions/project_open.png' width='32' height='32'></td> *************** *** 91,104 **** } ! // List the newly added tasks for this day ! $taskquery = ofirst_dbquery("SELECT * FROM ofirst_projects_tasks WHERE GroupID = '".$group->ID."'"); ! while($task = ofirst_dbfetch_object($taskquery)){ ! $taskprojquery = ofirst_dbquery("SELECT ProjectName FROM ofirst_projects_projects WHERE ID = '".$task->ProjectID."'"); ! $taskproject = ofirst_dbfetch_object($taskprojquery); ! ! if(date('F j, Y',time()) == date("F j, Y",$task->Dates)){ ! $message .= "<tr > <td><img src='$home/$basepath/members/icons/filesystems/desktop.png' width='32' height='32'></td> <td>New Task</td> --- 91,104 ---- } ! // List the newly added tasks for this day ! $taskquery = ofirst_dbquery("SELECT * FROM ofirst_projects_tasks WHERE GroupID = '".$group->ID."'"); ! while($task = ofirst_dbfetch_object($taskquery)){ ! $taskprojquery = ofirst_dbquery("SELECT ProjectName FROM ofirst_projects_projects WHERE ID = '".$task->ProjectID."'"); ! $taskproject = ofirst_dbfetch_object($taskprojquery); ! if(date('F j, Y',time()) == date("F j, Y",$task->Dates)){ ! ! $message .= "<tr > <td><img src='$home/$basepath/members/icons/filesystems/desktop.png' width='32' height='32'></td> <td>New Task</td> *************** *** 109,128 **** </tr>"; ! } ! } ! // List the newly added notes for this day ! $notequery = ofirst_dbquery("SELECT * FROM ofirst_projects_notes WHERE GroupID = '".$group->ID."'"); ! while($note = ofirst_dbfetch_object($notequery)){ ! $noteprojquery = ofirst_dbquery("SELECT ProjectName FROM ofirst_projects_projects WHERE ID = '".$note->ProjectID."'"); ! $noteproject = ofirst_dbfetch_object($noteprojquery); ! $notetasquery = ofirst_dbquery("SELECT * FROM ofirst_projects_tasks WHERE ID = '".$note->TaskID."'"); ! $notetask = ofirst_dbfetch_object($notetasquery); ! if(date('F j, Y',time()) == date('F j, Y',$note->Dates)){ ! $message .= "<tr> <td><img src='$home/$basepath/members/icons/filesystems/files.png' width='32' height='32'></td> <td>New Note Commited</td> --- 109,128 ---- </tr>"; ! } ! } ! // List the newly added notes for this day ! $notequery = ofirst_dbquery("SELECT * FROM ofirst_projects_notes WHERE GroupID = '".$group->ID."'"); ! while($note = ofirst_dbfetch_object($notequery)){ ! $noteprojquery = ofirst_dbquery("SELECT ProjectName FROM ofirst_projects_projects WHERE ID = '".$note->ProjectID."'"); ! $noteproject = ofirst_dbfetch_object($noteprojquery); ! $notetasquery = ofirst_dbquery("SELECT * FROM ofirst_projects_tasks WHERE ID = '".$note->TaskID."'"); ! $notetask = ofirst_dbfetch_object($notetasquery); ! if(date('F j, Y',time()) == date('F j, Y',$note->Dates)){ ! $message .= "<tr> <td><img src='$home/$basepath/members/icons/filesystems/files.png' width='32' height='32'></td> <td>New Note Commited</td> *************** *** 133,158 **** </tr>"; ! } ! } ! $message .="</table></html>"; ! } ! ! if(function_exists("multipartmail")){ ! multipartmail($mailgroup->email,"$title Daily Update ".date('F j, Y',time()),$message); ! echo "<br> Sent to: $mailgroup->email (multipart)"; ! }else{ ! $headers = "MIME-Version: 1.0\r\n"; ! $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; ! $headers .= "From: $mailfrom\r\n"; ! $headers .= "Reply-To: ".$mailgroup->email."\r\n"; ! $headers .= "X-Priority: 1\r\n"; ! $headers .= "X-MSMail-Priority: High\r\n"; ! mail($mailgroup->email,"$title Daily Update ".date('F j, Y',time()),$message,$headers); ! echo "<br> Sent to: $mailgroup->email (mail)"; } } ! ?> \ No newline at end of file --- 133,158 ---- </tr>"; ! } ! } ! $message .="</table></html>"; ! } ! if(function_exists("multipartmail")){ ! multipartmail($mailgroup->email,"$title Daily Update ".date('F j, Y',time()),$message); ! echo "<br> Sent to: $mailgroup->email (multipart)"; ! } else { ! $headers = "MIME-Version: 1.0\r\n"; ! $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; ! $headers .= "From: $mailfrom\r\n"; ! $headers .= "Reply-To: ".$mailgroup->email."\r\n"; ! $headers .= "X-Priority: 1\r\n"; ! $headers .= "X-MSMail-Priority: High\r\n"; ! ! mail($mailgroup->email,"$title Daily Update ".date('F j, Y',time()),$message,$headers); ! echo "<br> Sent to: $mailgroup->email (mail)"; } } ! ?> |
From: <xt...@us...> - 2003-10-23 18:58:15
|
Update of /cvsroot/openfirst/base/config/functions In directory sc8-pr-cvs1:/tmp/cvs-serv32211 Modified Files: wysiwyg.php Log Message: Make wysiwyg find the image which it requires, rather than generating a 404 error every time due to an improper path. Index: wysiwyg.php =================================================================== RCS file: /cvsroot/openfirst/base/config/functions/wysiwyg.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** wysiwyg.php 20 Aug 2003 02:45:33 -0000 1.1 --- wysiwyg.php 23 Oct 2003 14:14:39 -0000 1.2 *************** *** 43,47 **** <!-- var myEditor = new dhtmlEditor; ! myEditor.registerApiModul(MODUL__toggleEditModeGetApiInfoArray('../images/newdoc.gif')); myEditor.make_andReplaceTextarea('<?php echo $fieldname; ?>'); //--> --- 43,47 ---- <!-- var myEditor = new dhtmlEditor; ! myEditor.registerApiModul(MODUL__toggleEditModeGetApiInfoArray('<?php echo $basepath; ?>/config/functions/wysiwyg/images/newdoc.gif')); myEditor.make_andReplaceTextarea('<?php echo $fieldname; ?>'); //--> |
From: <xt...@us...> - 2003-10-23 18:45:12
|
Update of /cvsroot/openfirst/projects In directory sc8-pr-cvs1:/tmp/cvs-serv21090 Modified Files: groups.php Log Message: Fix indenting/spacing/style issues, convert include() to include_once() where appropriate Index: groups.php =================================================================== RCS file: /cvsroot/openfirst/projects/groups.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** groups.php 13 Oct 2003 23:37:52 -0000 1.13 --- groups.php 23 Oct 2003 13:18:38 -0000 1.14 *************** *** 28,34 **** // Include globals and set header condense (not coded yet) ! include("../config/globals.php"); $header_condense = true; ! include($header); --- 28,34 ---- // Include globals and set header condense (not coded yet) ! include_once("../config/globals.php"); $header_condense = true; ! include_once($header); *************** *** 44,48 **** if(! isset($_POST['members'])){ echo "<br><br>You must assign users to this task! Click back to continue.<br><br><br>"; ! die(include($footer)); } --- 44,48 ---- if(! isset($_POST['members'])){ echo "<br><br>You must assign users to this task! Click back to continue.<br><br><br>"; ! die(include_once($footer)); } *************** *** 50,54 **** if(! isset($_POST['moderators'])){ echo "<br><br>You must assign users to this task! Click back to continue.<br><br><br>"; ! die(include($footer)); } --- 50,54 ---- if(! isset($_POST['moderators'])){ echo "<br><br>You must assign users to this task! Click back to continue.<br><br><br>"; ! die(include_once($footer)); } *************** *** 75,79 **** Dates = '".time()."'") or die(ofirst_dberror()); echo "<br><br>Group created! [ <a href='groups.php'>Groups</a> ]<br><br>"; ! die(include($footer)); } --- 75,79 ---- Dates = '".time()."'") or die(ofirst_dberror()); echo "<br><br>Group created! [ <a href='groups.php'>Groups</a> ]<br><br>"; ! die(include_once($footer)); } *************** *** 98,107 **** <td class="sub" width="7%">Projects</td> <td class="sub" width="62%">Description</td> ! <td class="sub" width="7%">Option</td> <?php if($user->membertype == "administrator"){ ?> ! <td class="sub" width="6%"><div align="center">Admin</div></td> ! <?php ! } ! ?> </tr> <?php --- 98,105 ---- <td class="sub" width="7%">Projects</td> <td class="sub" width="62%">Description</td> ! <td class="sub" width="7%">Option</td> <?php if($user->membertype == "administrator"){ ?> ! <td class="sub" width="6%"><div align="center">Admin</div></td> ! <?php } ?> </tr> <?php *************** *** 109,113 **** // Query the current group values and loop through them $query = ofirst_dbquery("SELECT * FROM ofirst_projects_groups GROUP BY ID"); ! while($groups = ofirst_dbfetch_object($query)){ ?> --- 107,111 ---- // Query the current group values and loop through them $query = ofirst_dbquery("SELECT * FROM ofirst_projects_groups GROUP BY ID"); ! while($groups = ofirst_dbfetch_object($query)) { ?> *************** *** 115,133 **** <td><div align="center"><a href="projects.php?GroupID=<?php echo $groups->ID; ?>"><img src="../members/icons/apps/kuser.png" width="32" height="32" border="0"></a></div></td> <td><a href='projects.php?GroupID=<?php echo $groups->ID; ?>'><?php echo $groups->GroupName; ?></a></td> ! <?php ! // Display number of related projects in group ! echo "<td>"; ! $projquery = ofirst_dbquery("SELECT * FROM ofirst_projects_projects WHERE GroupID = '".$groups->ID."'"); echo ofirst_dbnum_rows($projquery); ! echo "</td>"; ! ?> ! <td><?php echo $groups->Description; ?></td> ! <td><a href='viewmembers.php?GroupID=<?php echo $groups->ID; ?>'>Members</a></td> ! <?php ! // If administrator is logged in then show the admin edit option ! if($user->membertype == "administrator"){ ?> ! <td id="adminmenu" background="/openfirst/images/back-admin.png"><p align="center"><a href="admin/editgroups.php?GroupID=<?php echo $groups->ID; ?>">Edit</a></p></td> ! <?php } ! ?> </tr> <?php --- 113,130 ---- <td><div align="center"><a href="projects.php?GroupID=<?php echo $groups->ID; ?>"><img src="../members/icons/apps/kuser.png" width="32" height="32" border="0"></a></div></td> <td><a href='projects.php?GroupID=<?php echo $groups->ID; ?>'><?php echo $groups->GroupName; ?></a></td> ! <?php ! // Display number of related projects in group ! echo "<td>"; ! $projquery = ofirst_dbquery("SELECT * FROM ofirst_projects_projects WHERE GroupID = '".$groups->ID."'"); echo ofirst_dbnum_rows($projquery); ! echo "</td>"; ! ?> ! <td><?php echo $groups->Description; ?></td> ! <td><a href='viewmembers.php?GroupID=<?php echo $groups->ID; ?>'>Members</a></td> ! <?php ! // If an administrator is logged in then show the administrative edit option ! if($user->membertype == "administrator") { ?> ! <td id="adminmenu" background="/openfirst/images/back-admin.png"><p align="center"><a href="admin/editgroups.php?GroupID=<?php echo $groups->ID; ?>">Edit</a></p></td> ! <?php } ?> </tr> <?php *************** *** 141,145 **** ?> </table> ! </td> </tr> </table> --- 138,142 ---- ?> </table> ! </td> </tr> </table> *************** *** 147,151 **** <?php // Allow to add groups if user is an administrator ! if($user->membertype == "administrator"){ ?> <form action='groups.php' method='POST'> --- 144,148 ---- <?php // Allow to add groups if user is an administrator ! if($user->membertype == "administrator") { ?> <form action='groups.php' method='POST'> *************** *** 196,199 **** <?php } ! } include($footer); ?> --- 193,196 ---- <?php } ! } include_once($footer); ?> |
From: <xt...@us...> - 2003-10-23 18:25:11
|
Update of /cvsroot/openfirst/projects/admin In directory sc8-pr-cvs1:/tmp/cvs-serv22137 Modified Files: editgroups.php Log Message: Fix indenting/spacing/style issues which were missed in my last commit Index: editgroups.php =================================================================== RCS file: /cvsroot/openfirst/projects/admin/editgroups.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** editgroups.php 23 Oct 2003 13:22:09 -0000 1.6 --- editgroups.php 23 Oct 2003 13:24:28 -0000 1.7 *************** *** 58,73 **** } ! $group_query = ofirst_dbquery("SELECT * FROM ofirst_projects_groups WHERE ID = '".$_GET['GroupID']."'"); ! $group = ofirst_dbfetch_object($group_query); // Edit assigned moderators if(isset($_POST['editmods'])){ ! ofirst_dbquery("UPDATE ofirst_projects_groups SET Moderators = '".$_POST['moderators']."' WHERE ID = '".$_GET['GroupID']."';") or die(mysql_error()); ! ! $group_query = ofirst_dbquery("SELECT * FROM ofirst_projects_groups WHERE ID = '".$_GET['GroupID']."'"); ! $group = ofirst_dbfetch_object($group_query); ! ! echo "<br>Moderators list has been updated!"; } --- 58,73 ---- } ! $group_query = ofirst_dbquery("SELECT * FROM ofirst_projects_groups WHERE ID = '".$_GET['GroupID']."'"); ! $group = ofirst_dbfetch_object($group_query); // Edit assigned moderators if(isset($_POST['editmods'])){ ! ofirst_dbquery("UPDATE ofirst_projects_groups SET Moderators = '".$_POST['moderators']."' WHERE ID = '".$_GET['GroupID']."';") or die(mysql_error()); ! ! $group_query = ofirst_dbquery("SELECT * FROM ofirst_projects_groups WHERE ID = '".$_GET['GroupID']."'"); ! $group = ofirst_dbfetch_object($group_query); ! ! echo "<br>Moderators list has been updated!"; } *************** *** 76,85 **** if(isset($_POST['editmembers'])){ ! ofirst_dbquery("UPDATE ofirst_projects_groups SET Members = '".$_POST['members']."' WHERE ID = '".$_GET['GroupID']."';"); ! $group_query = ofirst_dbquery("SELECT * FROM ofirst_projects_groups WHERE ID = '".$_GET['GroupID']."'"); ! $group = ofirst_dbfetch_object($group_query); ! ! echo "<br>Members list has been updated!"; } --- 76,85 ---- if(isset($_POST['editmembers'])){ ! ofirst_dbquery("UPDATE ofirst_projects_groups SET Members = '".$_POST['members']."' WHERE ID = '".$_GET['GroupID']."';"); ! $group_query = ofirst_dbquery("SELECT * FROM ofirst_projects_groups WHERE ID = '".$_GET['GroupID']."'"); ! $group = ofirst_dbfetch_object($group_query); ! ! echo "<br>Members list has been updated!"; } |
From: <xt...@us...> - 2003-10-23 17:38:37
|
Update of /cvsroot/openfirst/projects In directory sc8-pr-cvs1:/tmp/cvs-serv19922 Modified Files: projectsmodule.php Log Message: Fix indenting/spacing/style issues Index: projectsmodule.php =================================================================== RCS file: /cvsroot/openfirst/projects/projectsmodule.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** projectsmodule.php 12 Oct 2003 23:39:14 -0000 1.3 --- projectsmodule.php 23 Oct 2003 13:12:06 -0000 1.4 *************** *** 29,111 **** // Tree preview function for projects module ! function projecttree($option,$value = ""){ ! // Prepare tree data so the script may loop through and find info ! switch($option){ ! // Case if user wants to view group tree ! case "groups": ! $groups = ""; ! $projects = ""; ! $tasks = ""; ! break; ! // Case if user wants to view projects in a group ! case "projects": ! $groups = $value; ! $projects = $value; ! $tasks = ""; ! break; ! // Case if user wants to view tasks in a project ! case "tasks": ! $task_query = ofirst_dbquery("SELECT * FROM ofirst_projects_tasks WHERE ProjectID = ".$value." ORDER BY 'ID'"); ! $task = ofirst_dbfetch_object($task_query); ! ! // If you do not set the group value then nothing will show. So we must get ! // the value directly by querying the related project value. ! if(ofirst_dbnum_rows($task_query) == 0){ ! ! $project_query = ofirst_dbquery("SELECT * FROM ofirst_projects_projects WHERE ID = ".$value); ! $project = ofirst_dbfetch_object($project_query); ! $groups = $project->GroupID; ! }else{ ! $groups = $task->GroupID; ! } ! $projects = $value; ! $tasks = $value; ! break; ! ! } ! // Begin to loop through tree information, beginning with groups list first ! $group_query = ofirst_dbquery("SELECT * FROM ofirst_projects_groups"); ! while($group = ofirst_dbfetch_object($group_query)){ ! // Show image and name for this group ! echo '<img height="20" width="18" src="../members/icons/apps/kuser.png"> <a href="projects.php?GroupID='.$group->ID.'">'.$group->GroupName.'</a><br>'; ! ! // Preview current projects ! if($projects != "" && $group->ID == $groups){ ! // Gather list of projects which relate to the selected group and loop through ! $project_query = ofirst_dbquery("SELECT * FROM ofirst_projects_projects WHERE GroupID = ".$groups); ! while($project = ofirst_dbfetch_object($project_query)){ ! ! // Preview image and name of project ! echo ' <img src="../members/icons/actions/project_open.png" width="18" height="20" border="0"> <a href="tasks.php?GroupID='.$groups.'&ProjectID='.$project->ID.'">'.$project->ProjectName.'</a><br>'; ! ! ! // Preview current tasks ! if($tasks != "" && $project->ID == $projects){ ! // Gather a list of tasks which relate to the selected project and loop through ! $task_query = ofirst_dbquery("SELECT * FROM ofirst_projects_tasks WHERE GroupID = $groups AND ProjectID = $projects"); ! while($task = ofirst_dbfetch_object($task_query)){ ! ! // Preview and image and name of task ! echo ' <img src="../members/icons/filesystems/desktop.png" width="18" height="20" border="0"><a href="notes.php?GroupID='.$task->GroupID.'&ProjectID='.$task->ProjectID.'&TaskID='.$task->ID.'"> '; ! if(isset($_GET['TaskID']) && $_GET['TaskID'] == $task->ID){ ! echo "<b>".$task->TaskName."</b>"; ! }else{ ! echo $task->TaskName; ! } ! echo "</a><br>"; ! ! } ! } ! } } } - } ! ?> \ No newline at end of file --- 29,106 ---- // Tree preview function for projects module ! function projecttree($option,$value = "") { ! // Prepare tree data so the script may loop through and find info ! switch($option) { ! // Case if user wants to view group tree ! case "groups": ! $groups = ""; ! $projects = ""; ! $tasks = ""; ! break; ! // Case if user wants to view projects in a group ! case "projects": ! $groups = $value; ! $projects = $value; ! $tasks = ""; ! break; ! // Case if user wants to view tasks in a project ! case "tasks": ! $task_query = ofirst_dbquery("SELECT * FROM ofirst_projects_tasks WHERE ProjectID = ".$value." ORDER BY 'ID'"); ! $task = ofirst_dbfetch_object($task_query); ! // If you do not set the group value then nothing will show. So we must get ! // the value directly by querying the related project value. ! if(ofirst_dbnum_rows($task_query) == 0) { ! $project_query = ofirst_dbquery("SELECT * FROM ofirst_projects_projects WHERE ID = ".$value); ! $project = ofirst_dbfetch_object($project_query); ! $groups = $project->GroupID; ! } else { ! $groups = $task->GroupID; ! } ! $projects = $value; ! $tasks = $value; ! break; ! } ! ! // Begin to loop through tree information, beginning with groups list first ! $group_query = ofirst_dbquery("SELECT * FROM ofirst_projects_groups"); ! while($group = ofirst_dbfetch_object($group_query)) { ! // Show image and name for this group ! echo '<img height="20" width="18" src="../members/icons/apps/kuser.png"> <a href="projects.php?GroupID='.$group->ID.'">'.$group->GroupName.'</a><br>'; ! // Preview current projects ! if($projects != "" && $group->ID == $groups) { ! ! // Gather list of projects which relate to the selected group and loop through ! $project_query = ofirst_dbquery("SELECT * FROM ofirst_projects_projects WHERE GroupID = ".$groups); ! while($project = ofirst_dbfetch_object($project_query)) { ! // Preview image and name of project ! echo ' <img src="../members/icons/actions/project_open.png" width="18" height="20" border="0"> <a href="tasks.php?GroupID='.$groups.'&ProjectID='.$project->ID.'">'.$project->ProjectName.'</a><br>'; ! ! // Preview current tasks ! if($tasks != "" && $project->ID == $projects) { ! // Gather a list of tasks which relate to the selected project and loop through ! $task_query = ofirst_dbquery("SELECT * FROM ofirst_projects_tasks WHERE GroupID = $groups AND ProjectID = $projects"); ! while($task = ofirst_dbfetch_object($task_query)) { ! ! // Preview and image and name of task ! echo ' <img src="../members/icons/filesystems/desktop.png" width="18" height="20" border="0"><a href="notes.php?GroupID='.$task->GroupID.'&ProjectID='.$task->ProjectID.'&TaskID='.$task->ID.'"> '; ! if(isset($_GET['TaskID']) && $_GET['TaskID'] == $task->ID) { ! echo "<b>".$task->TaskName."</b>"; ! } else { ! echo $task->TaskName; ! } ! echo "</a><br>"; ! } ! } ! } ! } } } ! ?> |
From: <xt...@us...> - 2003-10-23 17:02:23
|
Update of /cvsroot/openfirst/projects/admin In directory sc8-pr-cvs1:/tmp/cvs-serv22674 Modified Files: edittasks.php Log Message: Fix indenting/spacing/style issues, convert include() to include_once() where appropriate, fix incorrect information in heading comment Index: edittasks.php =================================================================== RCS file: /cvsroot/openfirst/projects/admin/edittasks.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** edittasks.php 13 Oct 2003 23:38:34 -0000 1.4 --- edittasks.php 23 Oct 2003 13:26:45 -0000 1.5 *************** *** 1,5 **** <?php /* ! * openFIRST.projects - groups.php * * Copyright (C) 2003, --- 1,5 ---- <?php /* ! * openFIRST.projects - admin/edittasks.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 *************** *** 43,47 **** if(! isset($_POST['confirm'])){ echo "<br><br>Your request to remove the task was denied because you have not confirmed! [ <a href='edittasks.php?GroupID=".$_GET['TaskID']."'>Tasks</a> ]<br><br>"; ! die(include($footer)); } --- 43,47 ---- if(! isset($_POST['confirm'])){ echo "<br><br>Your request to remove the task was denied because you have not confirmed! [ <a href='edittasks.php?GroupID=".$_GET['TaskID']."'>Tasks</a> ]<br><br>"; ! die(include_once($footer)); } *************** *** 51,73 **** echo "<br><br>Task removed! [ <a href='../groups.php'>Main</a> ]<br><br>"; ! die(include($footer)); } ! $task_query = ofirst_dbquery("SELECT * FROM ofirst_projects_tasks WHERE ID = '".$_GET['TaskID']."'"); ! $task = ofirst_dbfetch_object($task_query); ! // Edit assigned members to task ! if(isset($_POST['editmembers'])){ ! ofirst_dbquery("UPDATE ofirst_projects_tasks SET Assigned = '".$_POST['members']."' WHERE ID = '".$_GET['TaskID']."';"); ! $task_query = ofirst_dbquery("SELECT * FROM ofirst_projects_tasks WHERE ID = '".$_GET['TaskID']."'"); ! $task = ofirst_dbfetch_object($task_query); ! ! echo "<br>Members list has been updated!"; ! ! } ?> --- 51,73 ---- echo "<br><br>Task removed! [ <a href='../groups.php'>Main</a> ]<br><br>"; ! die(include_once($footer)); } ! $task_query = ofirst_dbquery("SELECT * FROM ofirst_projects_tasks WHERE ID = '".$_GET['TaskID']."'"); ! $task = ofirst_dbfetch_object($task_query); ! // Edit assigned members to task ! if(isset($_POST['editmembers'])){ ! ofirst_dbquery("UPDATE ofirst_projects_tasks SET Assigned = '".$_POST['members']."' WHERE ID = '".$_GET['TaskID']."';"); ! $task_query = ofirst_dbquery("SELECT * FROM ofirst_projects_tasks WHERE ID = '".$_GET['TaskID']."'"); ! $task = ofirst_dbfetch_object($task_query); ! ! echo "<br>Members list has been updated!"; ! ! } ?> *************** *** 95,98 **** </form> <?php ! } include($footer); ?> --- 95,98 ---- </form> <?php ! } include_once($footer); ?> |
From: <xt...@us...> - 2003-10-23 16:28:57
|
Update of /cvsroot/openfirst/sidebars In directory sc8-pr-cvs1:/tmp/cvs-serv30988 Modified Files: index.php preview.php sidebar.php Log Message: Replace include() with include_once() where appropriate Index: index.php =================================================================== RCS file: /cvsroot/openfirst/sidebars/index.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** index.php 28 Sep 2003 13:01:02 -0000 1.4 --- index.php 23 Oct 2003 14:09:46 -0000 1.5 *************** *** 26,31 **** * */ ! include("../config/globals.php"); ! include($header); ?> <h1>Side Bars</h1> --- 26,31 ---- * */ ! include_once("../config/globals.php"); ! include_once($header); ?> <h1>Side Bars</h1> *************** *** 91,93 **** <br> <?php ! include($footer); ?> --- 91,93 ---- <br> <?php ! include_once($footer); ?> Index: preview.php =================================================================== RCS file: /cvsroot/openfirst/sidebars/preview.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** preview.php 14 Sep 2003 22:44:08 -0000 1.2 --- preview.php 23 Oct 2003 14:09:46 -0000 1.3 *************** *** 26,31 **** * */ ! include("../config/globals.php"); ! include($header); if(isset($_GET["sidebar"]) == false) { $_GET["sidebar"] = ""; } ?> --- 26,31 ---- * */ ! include_once("../config/globals.php"); ! include_once($header); if(isset($_GET["sidebar"]) == false) { $_GET["sidebar"] = ""; } ?> *************** *** 38,40 **** style="width: 175px; height: 300px;" /> <?php ! include($footer); ?> --- 38,40 ---- style="width: 175px; height: 300px;" /> <?php ! include_once($footer); ?> Index: sidebar.php =================================================================== RCS file: /cvsroot/openfirst/sidebars/sidebar.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** sidebar.php 28 Sep 2003 13:01:02 -0000 1.5 --- sidebar.php 23 Oct 2003 14:09:46 -0000 1.6 *************** *** 26,30 **** * */ ! include("../config/globals.php"); header("Content-Type: text/html; charset=iso-8859-1"); --- 26,30 ---- * */ ! include_once("../config/globals.php"); header("Content-Type: text/html; charset=iso-8859-1"); |
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); ?> |
From: <xt...@us...> - 2003-10-23 13:43:16
|
Update of /cvsroot/openfirst/projects/admin In directory sc8-pr-cvs1:/tmp/cvs-serv21812 Modified Files: editgroups.php Log Message: Fix indenting/spacing/style issues, convert include() to include_once() where appropriate, fix incorrect information in heading comment Index: editgroups.php =================================================================== RCS file: /cvsroot/openfirst/projects/admin/editgroups.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** editgroups.php 23 Oct 2003 12:43:28 -0000 1.5 --- editgroups.php 23 Oct 2003 13:22:09 -0000 1.6 *************** *** 1,5 **** <?php /* ! * openFIRST.projects - groups.php * * Copyright (C) 2003, --- 1,5 ---- <?php /* ! * openFIRST.projects - admin/editgroups.php * * Copyright (C) 2003, *************** *** 28,34 **** // Include globals and set header condense (not coded yet) ! include("../../config/globals.php"); $header_condense = true; ! include($header); --- 28,34 ---- // Include globals and set header condense (not coded yet) ! include_once("../../config/globals.php"); $header_condense = true; ! include_once($header); *************** *** 44,48 **** if(! isset($_POST['confirm'])){ echo "<br><br>Your request to remove the group was denied because you have not confirmed! [ <a href='editgroups.php?GroupID=".$_GET['GroupID']."'>Groups</a> ]<br><br>"; ! die(include($footer)); } --- 44,48 ---- if(! isset($_POST['confirm'])){ echo "<br><br>Your request to remove the group was denied because you have not confirmed! [ <a href='editgroups.php?GroupID=".$_GET['GroupID']."'>Groups</a> ]<br><br>"; ! die(include_once($footer)); } *************** *** 54,58 **** echo "<br><br>Group removed! [ <a href='../groups.php'>Groups</a> ]<br><br>"; ! die(include($footer)); } --- 54,58 ---- echo "<br><br>Group removed! [ <a href='../groups.php'>Groups</a> ]<br><br>"; ! die(include_once($footer)); } *************** *** 116,119 **** <p> </p> <?php ! } include($footer); ?> --- 116,119 ---- <p> </p> <?php ! } include_once($footer); ?> |
From: <i-...@us...> - 2003-10-23 11:42:38
|
Update of /cvsroot/openfirst/news/admin In directory sc8-pr-cvs1:/tmp/cvs-serv10399/news/admin Modified Files: editnews.php Log Message: Improved efficiency Index: editnews.php =================================================================== RCS file: /cvsroot/openfirst/news/admin/editnews.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** editnews.php 13 Oct 2003 17:59:50 -0000 1.2 --- editnews.php 23 Oct 2003 00:55:49 -0000 1.3 *************** *** 41,56 **** if(! isset($_POST["news"])) { // Display a form for news. ! $query = ofirst_dbquery("SELECT * FROM ofirst_news ORDER BY ID DESC"); ! $title=""; ! $found=false; if (ofirst_dbnum_rows($query) != 0){ ! while($news = ofirst_dbfetch_object($query)){ ! if($news->ID==$articleid){ ! $found=true; ! break; ! } ! } ! } ! if($found){ ?> <form name="NewsForm" id="NewsForm" method="post" action="<?php echo($_SERVER["PHP_SELF"]); ?>"> --- 41,47 ---- if(! isset($_POST["news"])) { // Display a form for news. ! $query = ofirst_dbquery("SELECT * FROM ofirst_news WHERE ID='$articleid'"); if (ofirst_dbnum_rows($query) != 0){ ! $news = ofirst_dbfetch_object($query); ?> <form name="NewsForm" id="NewsForm" method="post" action="<?php echo($_SERVER["PHP_SELF"]); ?>"> |
From: <i-...@us...> - 2003-10-23 01:04:28
|
Update of /cvsroot/openfirst/news/admin In directory sc8-pr-cvs1:/tmp/cvs-serv10001/news/admin Modified Files: killnews.php Log Message: Improved efficiency Index: killnews.php =================================================================== RCS file: /cvsroot/openfirst/news/admin/killnews.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** killnews.php 13 Oct 2003 17:59:50 -0000 1.2 --- killnews.php 23 Oct 2003 00:52:43 -0000 1.3 *************** *** 43,58 **** } if($admin) { if(!isset($_POST["StoryID"])) { ! $query = ofirst_dbquery("SELECT * FROM ofirst_news ORDER BY ID DESC"); $title=""; $found=false; if (ofirst_dbnum_rows($query) != 0){ ! while($news = ofirst_dbfetch_object($query)){ ! if($news->ID==$_GET["id"]){ ! $found=true; ! $title=$news->title; ! break; ! } ! } } ?> --- 43,58 ---- } if($admin) { + $id=0; + if(isset($_GET["id"])){ + $id=$_GET["id"]; + } if(!isset($_POST["StoryID"])) { ! $query = ofirst_dbquery("SELECT * FROM ofirst_news WHERE ID='".$id."'"); $title=""; $found=false; if (ofirst_dbnum_rows($query) != 0){ ! $news = ofirst_dbfetch_object($query); ! $found=true; ! $title=$news->title; } ?> |
From: <i-...@us...> - 2003-10-22 01:02:49
|
Update of /cvsroot/openfirst/news In directory sc8-pr-cvs1:/tmp/cvs-serv30823/news Modified Files: rssfeed.php Log Message: Minor bug fixes in RSS code. Limit actually works, fixed link bug, provided default values for flags. Index: rssfeed.php =================================================================== RCS file: /cvsroot/openfirst/news/rssfeed.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** rssfeed.php 13 Oct 2003 17:59:42 -0000 1.3 --- rssfeed.php 22 Oct 2003 01:00:37 -0000 1.4 *************** *** 40,47 **** $numhead = "all"; }else{ ! $numhead = $_POST['headlines']; } ! $link = $home.$basepath."/news/rss/rss.php?headlines=".$numhead."&rss=".$_POST['version']; ?> --- 40,47 ---- $numhead = "all"; }else{ ! $numhead = $_POST['headlines']; } ! $link = $home."/news/rss/rss.php?headlines=".$numhead."&rss=".$_POST['version']; ?> |
From: <i-...@us...> - 2003-10-22 01:02:29
|
Update of /cvsroot/openfirst/news/rss In directory sc8-pr-cvs1:/tmp/cvs-serv30823/news/rss Modified Files: rss.php Log Message: Minor bug fixes in RSS code. Limit actually works, fixed link bug, provided default values for flags. Index: rss.php =================================================================== RCS file: /cvsroot/openfirst/news/rss/rss.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** rss.php 13 Oct 2003 17:59:51 -0000 1.3 --- rss.php 22 Oct 2003 01:00:36 -0000 1.4 *************** *** 27,30 **** --- 27,36 ---- */ + if(isset($_GET['headlines'])){ + $limit = $_GET['headlines']; + } else { + $limit = 5; + } + include_once("../../config/globals.php"); *************** *** 70,74 **** // Data for a single RSS item ! $query = ofirst_dbquery("SELECT * FROM ofirst_news LIMIT 0,5"); while($news = ofirst_dbfetch_object($query)){ --- 76,80 ---- // Data for a single RSS item ! $query = ofirst_dbquery("SELECT * FROM ofirst_news LIMIT ".$limit); while($news = ofirst_dbfetch_object($query)){ *************** *** 89,93 **** // $rssfile->getRSSOutput($version); ! $version = $_GET['rss']; $rssfile->outputRSS($version); --- 95,103 ---- // $rssfile->getRSSOutput($version); ! if(isset($_GET['rss'])){ ! $version = $_GET['rss']; ! } else { ! $version = "2.0"; ! } $rssfile->outputRSS($version); |
From: <i-...@us...> - 2003-10-22 00:06:01
|
Update of /cvsroot/openfirst/forum In directory sc8-pr-cvs1:/tmp/cvs-serv20688/forum Modified Files: editpost.php index.php newpost.php thread.php Log Message: Full multiple page functionality for entire forum. Index: editpost.php =================================================================== RCS file: /cvsroot/openfirst/forum/editpost.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** editpost.php 15 Oct 2003 00:50:08 -0000 1.2 --- editpost.php 21 Oct 2003 23:47:42 -0000 1.3 *************** *** 69,73 **** if(isset($_POST["message"])){ ! if($_POST["delete"]==1){ if($msg->ReplyTo==0){ if(!$admin){ --- 69,73 ---- if(isset($_POST["message"])){ ! if(isset($_POST["delete"])&&$_POST["delete"]==1){ if($msg->ReplyTo==0){ if(!$admin){ *************** *** 101,105 **** } } ! $query=ofirst_dbquery("UPDATE ofirst_forumposts SET Title='".$_POST["title"]."', Message='".strip_tags($msgtext,allowed_tags)."', DatePosted='".date("Y-m-d H:i:s")."' WHERE ID='".$msg->ID."'"); //redirect back to forum header("Location: thread.php?id=".$forumid); --- 101,105 ---- } } ! $query=ofirst_dbquery("UPDATE ofirst_forumposts SET Title='".$_POST["title"]."', Message='".strip_tags($msgtext,allowed_tags)."' WHERE ID='".$msg->ID."'"); //redirect back to forum header("Location: thread.php?id=".$forumid); Index: index.php =================================================================== RCS file: /cvsroot/openfirst/forum/index.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** index.php 21 Oct 2003 21:51:37 -0000 1.4 --- index.php 21 Oct 2003 23:47:42 -0000 1.5 *************** *** 226,229 **** --- 226,232 ---- if($num>posts_page){ echo("<tr><td class=sub colspan=3 align=right>"); + if($page>1){ + echo('<a href="index.php?forum='.$forum.'&page=1">[First]</a> ... '); + } if($page>0){ echo('<a href="index.php?forum='.$forum.'&page='.($page).'"><<Prev</a> '); *************** *** 232,235 **** --- 235,241 ---- if($page<ceil($num/posts_page)-1){ echo(' <a href="index.php?forum='.$forum.'&page='.($page+2).'">Next>></a>'); + } + if($page<ceil($num/posts_page)-2){ + echo(' ... <a href="index.php?forum='.$forum.'&page='.ceil($num/posts_page).'">[Last]</a>'); } echo("</td></tr>"); Index: newpost.php =================================================================== RCS file: /cvsroot/openfirst/forum/newpost.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** newpost.php 15 Oct 2003 00:50:08 -0000 1.2 --- newpost.php 21 Oct 2003 23:47:42 -0000 1.3 *************** *** 84,88 **** } else{ ! header("Location: thread.php?id=".$reply); } exit; --- 84,88 ---- } else{ ! header("Location: thread.php?page=last&id=".$reply); } exit; Index: thread.php =================================================================== RCS file: /cvsroot/openfirst/forum/thread.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** thread.php 13 Oct 2003 20:10:37 -0000 1.1 --- thread.php 21 Oct 2003 23:47:42 -0000 1.2 *************** *** 27,30 **** --- 27,33 ---- */ + //number of threads per page + define("posts_page",10); + include("../config/globals.php"); include($header); *************** *** 74,92 **** echo("<table width=600><tr><th colspan=2>$msg->Title</th></tr>"); echo("<tr><td width=200 valign=top class=sub>".userdetails($msg->Author)."<div>Date: $msg->DatePosted</div></td><td valign=top>".$msg->Message."</td></tr>"); ! echo("<tr><td colspan=2 align=right class=sub><a href=".$basepath."/members/profile.php?id=".urlencode($msg->Author).'>Profile</a> | <a href="editpost.php?id='.$msg->ID.'&threadid='.$thread.'">Edit</a></td></tr>'); $query = ofirst_dbquery("SELECT * FROM ofirst_forumposts WHERE ReplyTo=$thread ORDER BY DatePosted"); ! if(ofirst_dbnum_rows($query)!=0){ ! while($msg=ofirst_dbfetch_object($query)){ ! echo('<tr><td width=200 valign=top class=sub>'.userdetails($msg->Author)."<div>Date: $msg->DatePosted</div></td>"); ! echo("<td valign=top>"); ! if($msg->Title!=""){ ! echo("<p><b>$msg->Title</b></p>"); } - echo("<div>$msg->Message</div></td></tr>"); - echo("<tr><td colspan=2 align=right class=sub><a href=".$basepath."/members/profile.php?id=".urlencode($msg->Author).'>Profile</a> | <a href="editpost.php?id='.$msg->ID.'&threadid='.$thread.'">Edit</a></td></tr>'); } } - echo("<tr><th colspan=2> </th></tr></table>"); echo('<br /><div><a href="newpost.php?forumid='.urlencode($forum).'&replyto='.$reply.'">New Reply</a></div>'); } --- 77,141 ---- echo("<table width=600><tr><th colspan=2>$msg->Title</th></tr>"); echo("<tr><td width=200 valign=top class=sub>".userdetails($msg->Author)."<div>Date: $msg->DatePosted</div></td><td valign=top>".$msg->Message."</td></tr>"); ! echo("<tr><td colspan=2 align=right class=sub><a href=".$basepath."/members/profile.php?id=".urlencode($msg->Author).'>Profile</a> | <a href="editpost.php?id='.$msg->ID.'&threadid='.$thread.'">Edit</a></td></tr></table><br />'); $query = ofirst_dbquery("SELECT * FROM ofirst_forumposts WHERE ReplyTo=$thread ORDER BY DatePosted"); ! $num=ofirst_dbnum_rows($query); ! $page=0; ! if(isset($_GET["page"])){ ! if($_GET["page"]=="last"){ ! $page=ceil($num/posts_page)-1; ! }else{ ! $page=$_GET["page"]-1; ! } ! } ! if($page<0){ ! $page=0; ! } ! ! if($num!=0){ ! echo("<table width=600><tr><th colspan=2>"); ! if($num==1){ ! echo("1 Reply"); ! }else{ ! echo("$num Replies"); ! } ! echo("</th></tr>"); ! //skip ! for($i=0;$i<$page*posts_page;$i++){ ! if(!ofirst_dbfetch_object($query)){ ! break; } } + for($i=0;$i<posts_page;$i++){ + if($msg=ofirst_dbfetch_object($query)){ + echo('<tr><td width=200 valign=top class=sub>'.userdetails($msg->Author)."<div>Date: $msg->DatePosted</div></td>"); + echo("<td valign=top>"); + if($msg->Title!=""){ + echo("<p><b>$msg->Title</b></p>"); + } + echo("<div>$msg->Message</div></td></tr>"); + echo("<tr><td colspan=2 align=right class=sub><a href=".$basepath."/members/profile.php?id=".urlencode($msg->Author).'>Profile</a> | <a href="editpost.php?id='.$msg->ID.'&threadid='.$thread.'">Edit</a></td></tr>'); + }else{ + break; + } + } + echo('<tr><th colspan=2><div style="font-size:12px" align=right> '); + if($num>posts_page){ + if($page>1){ + echo('<a href="thread.php?id='.$thread.'&page=1">[First]</a> ... '); + } + if($page>0){ + echo('<a href="thread.php?id='.$thread.'&page='.($page).'"><<Prev</a> '); + } + echo("Page ".($page+1)." of ".ceil($num/posts_page)); + if($page<ceil($num/posts_page)-1){ + echo(' <a href="thread.php?id='.$thread.'&page='.($page+2).'">Next>></a>'); + } + if($page<ceil($num/posts_page)-2){ + echo(' ... <a href="thread.php?id='.$thread.'&page='.ceil($num/posts_page).'">[Last]</a>'); + } + } + echo("</div></th></tr></table>"); } echo('<br /><div><a href="newpost.php?forumid='.urlencode($forum).'&replyto='.$reply.'">New Reply</a></div>'); } |
From: <i-...@us...> - 2003-10-21 23:03:37
|
Update of /cvsroot/openfirst/forum In directory sc8-pr-cvs1:/tmp/cvs-serv1085/forum Modified Files: index.php Log Message: Added multiple page functionality for thread viewer. Index: index.php =================================================================== RCS file: /cvsroot/openfirst/forum/index.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** index.php 15 Oct 2003 00:50:08 -0000 1.3 --- index.php 21 Oct 2003 21:51:37 -0000 1.4 *************** *** 27,30 **** --- 27,33 ---- */ + //number of threads per page + define("posts_page",10); + include("../config/globals.php"); include($header); *************** *** 189,205 **** if($cat->subforum!=0){ $query = ofirst_dbquery("SELECT ID,Title,Author,DatePosted FROM ofirst_forumposts WHERE forum='".$forum."' AND ReplyTo=0 ORDER BY DatePosted DESC"); ! if(ofirst_dbnum_rows($query)!=0){ echo("<table width=600><tr><th colspan=3>".ucfirst($cat->name)."</th></tr>"); echo("<tr><td class=sub width=400><b>Topic</b></td><td class=sub><b>Author</b></td><td class=sub><b>Date</b></td></tr>"); ! while($post=ofirst_dbfetch_object($query)){ ! if(isset($user)){ ! echo("<tr><td>".getimage($_SESSION["forumvisit".$uname],$post->DatePosted).' <a href="thread.php?id='.$post->ID.'">'.$post->Title."</a></td>"); } ! else{ ! echo('<tr><td><img src=old.png align=absmiddle><a href="thread.php?id='.$post->ID.'">'.$post->Title."</a></td>"); } ! echo('<td><a href="../members/profile.php?id='.urlencode($post->Author).'">'.$post->Author."</a></td>"); ! echo("<td>".$post->DatePosted."</td></tr>"); } echo("</table><br>"); --- 192,237 ---- if($cat->subforum!=0){ + $page=0; + if(isset($_GET["page"])){ + $page=$_GET["page"]-1; + } + if($page<0){ + $page=0; + } $query = ofirst_dbquery("SELECT ID,Title,Author,DatePosted FROM ofirst_forumposts WHERE forum='".$forum."' AND ReplyTo=0 ORDER BY DatePosted DESC"); ! $num=ofirst_dbnum_rows($query); ! if($num!=0){ ! //skip ! for($i=0;$i<$page*posts_page;$i++){ ! if(!ofirst_dbfetch_object($query)){ ! break; ! } ! } echo("<table width=600><tr><th colspan=3>".ucfirst($cat->name)."</th></tr>"); echo("<tr><td class=sub width=400><b>Topic</b></td><td class=sub><b>Author</b></td><td class=sub><b>Date</b></td></tr>"); ! for($i=0;$i<posts_page;$i++){ ! if($post=ofirst_dbfetch_object($query)){ ! if(isset($user)){ ! echo("<tr><td>".getimage($_SESSION["forumvisit".$uname],$post->DatePosted).' <a href="thread.php?id='.$post->ID.'">'.$post->Title."</a></td>"); ! } ! else{ ! echo('<tr><td><img src=old.png align=absmiddle><a href="thread.php?id='.$post->ID.'">'.$post->Title."</a></td>"); ! } ! echo('<td><a href="../members/profile.php?id='.urlencode($post->Author).'">'.$post->Author."</a></td>"); ! echo("<td>".$post->DatePosted."</td></tr>"); ! }else{ ! break; } ! } ! if($num>posts_page){ ! echo("<tr><td class=sub colspan=3 align=right>"); ! if($page>0){ ! echo('<a href="index.php?forum='.$forum.'&page='.($page).'"><<Prev</a> '); } ! echo("Page ".($page+1)." of ".ceil($num/posts_page)); ! if($page<ceil($num/posts_page)-1){ ! echo(' <a href="index.php?forum='.$forum.'&page='.($page+2).'">Next>></a>'); ! } ! echo("</td></tr>"); } echo("</table><br>"); |
From: <xt...@us...> - 2003-10-19 11:40:30
|
Update of /cvsroot/openfirst/messenger In directory sc8-pr-cvs1:/tmp/cvs-serv786 Modified Files: viewmsg.php Log Message: Make profile link actually work (bug discovery courtesy Katelyn Knapp) Index: viewmsg.php =================================================================== RCS file: /cvsroot/openfirst/messenger/viewmsg.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** viewmsg.php 16 Oct 2003 23:52:59 -0000 1.8 --- viewmsg.php 18 Oct 2003 23:31:37 -0000 1.9 *************** *** 54,58 **** <tr> <th>Sender</th> ! <td><a href='profiles.php?ID=<?php echo $msg->Sender ?>'><?php echo("$msg->Sender"); $querymember = ofirst_dbquery("SELECT firstname, lastname FROM ofirst_members WHERE user = '$msg->Sender';"); $member = ofirst_dbfetch_object($querymember); --- 54,58 ---- <tr> <th>Sender</th> ! <td><a href='../members/profile.php?ID=<?php echo $msg->Sender ?>'><?php echo("$msg->Sender"); $querymember = ofirst_dbquery("SELECT firstname, lastname FROM ofirst_members WHERE user = '$msg->Sender';"); $member = ofirst_dbfetch_object($querymember); |
From: <dav...@us...> - 2003-10-17 02:19:51
|
Update of /cvsroot/openfirst/projects In directory sc8-pr-cvs1:/tmp/cvs-serv29123 Modified Files: notes.php Log Message: Fixed bug which doesn't allow the note to be added if there is an actual upload for the database. Index: notes.php =================================================================== RCS file: /cvsroot/openfirst/projects/notes.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** notes.php 13 Oct 2003 23:31:30 -0000 1.12 --- notes.php 17 Oct 2003 02:18:05 -0000 1.13 *************** *** 53,58 **** 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)); } ! } // Addcompletion button process --- 53,69 ---- 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 + TaskID = '".$_GET['TaskID']."', + GroupID = '".$_GET['GroupID']."', + ProjectID = '".$_GET['ProjectID']."', + Description = '".$_POST['description']."', + Commiter = '".$user->user."', + Dates = '".time()."'") or die(ofirst_dberror()); + + 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)); } ! } // Addcompletion button process |