openfirst-cvscommit Mailing List for openFIRST (Page 59)
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: <xt...@us...> - 2004-01-20 00:35:19
|
Update of /cvsroot/openfirst/awards In directory sc8-pr-cvs1:/tmp/cvs-serv19410 Modified Files: index.php Log Message: Fix bug which will cause errors on systems without short tags enabled. Index: index.php =================================================================== RCS file: /cvsroot/openfirst/awards/index.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** index.php 24 Dec 2003 17:43:25 -0000 1.11 --- index.php 20 Jan 2004 00:35:15 -0000 1.12 *************** *** 59,63 **** <td><?php echo $awards->Recipient; ?></td> </tr> ! <? } ?> </table> <?php --- 59,63 ---- <td><?php echo $awards->Recipient; ?></td> </tr> ! <?php } ?> </table> <?php |
From: <xt...@us...> - 2004-01-20 00:30:47
|
Update of /cvsroot/openfirst/base/config/functions In directory sc8-pr-cvs1:/tmp/cvs-serv18529 Modified Files: wysiwyg.php Log Message: Fix bug which will cause errors on systems without short tags enabled. Index: wysiwyg.php =================================================================== RCS file: /cvsroot/openfirst/base/config/functions/wysiwyg.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** wysiwyg.php 23 Nov 2003 23:39:07 -0000 1.3 --- wysiwyg.php 20 Jan 2004 00:30:43 -0000 1.4 *************** *** 47,51 **** //--> </SCRIPT> ! <? } ?> --- 47,51 ---- //--> </SCRIPT> ! <?php } ?> |
From: <i-...@us...> - 2004-01-19 23:49:46
|
Update of /cvsroot/openfirst/news/rss In directory sc8-pr-cvs1:/tmp/cvs-serv9231/news/rss Modified Files: rss.php Log Message: Fixed bug with special characters such as Index: rss.php =================================================================== RCS file: /cvsroot/openfirst/news/rss/rss.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** rss.php 24 Dec 2003 03:24:10 -0000 1.8 --- rss.php 19 Jan 2004 23:49:40 -0000 1.9 *************** *** 80,96 **** // Data for a single RSS item ! $query = ofirst_dbquery("SELECT * FROM ofirst_news LIMIT ".$limit); while($news = ofirst_dbfetch_object($query)){ ! $about = $link = $home.$base.'/news/readnews.php?ID='.$news->ID; $title = strip_tags($news->title); ! $description = strip_tags($news->news); $subject = (string) ''; // optional DC value ! $date = (string) date('Y-m-d\TH:i:sO'); // optional DC value $author = (string) $news->poster; // author of item $comments = (string) ''; // url to comment page rss 2.0 value $image = (string) $news->image; // optional mod_im value for dispaying a different pic for every item ! $rssfile->addItem($about, $title, $link, $description, $subject, $date, $author, $comments, $image); } --- 80,103 ---- // Data for a single RSS item ! $query = ofirst_dbquery("SELECT * FROM ofirst_news ORDER BY `date` LIMIT ".$limit); while($news = ofirst_dbfetch_object($query)){ ! $about = $link = $home.'/news/readnews.php?ID='.$news->ID; $title = strip_tags($news->title); ! if (function_exists('html_entity_decode')){ ! $description = html_entity_decode(strip_tags($news->news)); ! } else { ! $description = str_replace(' ',' ',strip_tags($news->news)); ! } $subject = (string) ''; // optional DC value ! $timestamp=strtotime($news->date); ! if ($timestamp!=-1){ ! $date = (string) date('Y-m-d\TH:i:sO',$timestamp); ! } $author = (string) $news->poster; // author of item $comments = (string) ''; // url to comment page rss 2.0 value $image = (string) $news->image; // optional mod_im value for dispaying a different pic for every item ! $rssfile->addItem($about, $title, $link, $description, $subject, $date, $author, $comments, $image); } *************** *** 104,108 **** $version = "2.0"; } ! $rssfile->outputRSS($version); ob_end_flush(); --- 111,115 ---- $version = "2.0"; } ! $rssfile->outputRSS($version); ob_end_flush(); |
From: <xt...@us...> - 2004-01-13 01:05:39
|
Update of /cvsroot/openfirst/photogallery In directory sc8-pr-cvs1:/tmp/cvs-serv9845 Modified Files: email.php Log Message: Fix error reported via debugging system which apparently didn't make it to the Bugzilla stage. Index: email.php =================================================================== RCS file: /cvsroot/openfirst/photogallery/email.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** email.php 24 Dec 2003 01:01:36 -0000 1.11 --- email.php 13 Jan 2004 01:05:28 -0000 1.12 *************** *** 30,33 **** --- 30,37 ---- include_once("admin/galleryglobals.php"); + + if(! isset($_GET["PHOTO"])) { $_GET["PHOTO"] = ""; } + if(! isset($_GET["ID"])) { $_GET["ID"] = ""; } + // Get gallery information $query = ofirst_dbquery("SELECT * FROM ofirst_photogallery_galleries WHERE ID = '".$_GET['ID']."'"); *************** *** 180,182 **** <?php include_once($footer); ! ?> \ No newline at end of file --- 184,186 ---- <?php include_once($footer); ! ?> |
From: <xt...@us...> - 2004-01-09 23:46:10
|
Update of /cvsroot/openfirst/members/phpicalendar/languages In directory sc8-pr-cvs1:/tmp/cvs-serv20587 Added Files: korean.inc.php Log Message: Add missing Korean language information --- NEW FILE: korean.inc.php --- (This appears to be a binary file; contents omitted.) |
From: <i-...@us...> - 2004-01-08 01:19:16
|
Update of /cvsroot/openfirst/downloads In directory sc8-pr-cvs1:/tmp/cvs-serv9269/downloads Modified Files: getfile.php Log Message: Fixed bug with spaces (and other special characters) in filenames. Index: getfile.php =================================================================== RCS file: /cvsroot/openfirst/downloads/getfile.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** getfile.php 23 Dec 2003 23:30:08 -0000 1.3 --- getfile.php 8 Jan 2004 01:19:13 -0000 1.4 *************** *** 44,48 **** if(ereg("location:*",$file->FileData)){ ! header("Location: ".substr($file->FileData,9)); } else{ header("Content-type: ".$file->mime); --- 44,48 ---- if(ereg("location:*",$file->FileData)){ ! header("Location: ".rawurlencode(substr($file->FileData,9))); } else{ header("Content-type: ".$file->mime); *************** *** 51,53 **** } ! ?> \ No newline at end of file --- 51,53 ---- } ! ?> |
From: <i-...@us...> - 2004-01-08 00:48:53
|
Update of /cvsroot/openfirst/news In directory sc8-pr-cvs1:/tmp/cvs-serv4421/news Modified Files: comments.php Log Message: Fixed the script, removing the last modification. Added a comment to avoid furhter confusion, as there were already some problems with this in the past. Index: comments.php =================================================================== RCS file: /cvsroot/openfirst/news/comments.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** comments.php 6 Jan 2004 23:57:07 -0000 1.7 --- comments.php 8 Jan 2004 00:48:50 -0000 1.8 *************** *** 40,45 **** if(function_exists("latest_posts")){ ! //forum integration ! $q=ofirst_dbquery("SELECT Website FROM ofirst_news_comments WHERE ID='$id'"); if(ofirst_dbnum_rows($q)!=0){ $redirect=ofirst_dbfetch_object($q); --- 40,47 ---- if(function_exists("latest_posts")){ ! /*!!!important!!! ! The StoryID Field is required for Forum integration. ! If you encounter Bug#34, re-run the setup script for the news module*/ ! $q=ofirst_dbquery("SELECT Website FROM ofirst_news_comments WHERE StoryID='$id'"); if(ofirst_dbnum_rows($q)!=0){ $redirect=ofirst_dbfetch_object($q); |
From: <ste...@us...> - 2004-01-07 00:08:24
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv13509 Modified Files: adduser.php Log Message: Correct name of picturelocation text input. Fixes bug ID #35 Index: adduser.php =================================================================== RCS file: /cvsroot/openfirst/members/adduser.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** adduser.php 23 Nov 2003 19:07:28 -0000 1.7 --- adduser.php 7 Jan 2004 00:08:21 -0000 1.8 *************** *** 169,173 **** <tr> <th>Picture Location</th> ! <td><input type="text" name="picture" /> <font size="1">(Leave blank for no photo)</font></td> </tr> --- 169,173 ---- <tr> <th>Picture Location</th> ! <td><input type="text" name="picturelocation" /> <font size="1">(Leave blank for no photo)</font></td> </tr> |
From: <ste...@us...> - 2004-01-06 23:57:10
|
Update of /cvsroot/openfirst/news In directory sc8-pr-cvs1:/tmp/cvs-serv11352 Modified Files: comments.php Log Message: Correct database query. Fixes bug ID #34 Index: comments.php =================================================================== RCS file: /cvsroot/openfirst/news/comments.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** comments.php 24 Dec 2003 00:46:37 -0000 1.6 --- comments.php 6 Jan 2004 23:57:07 -0000 1.7 *************** *** 41,45 **** 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); --- 41,45 ---- if(function_exists("latest_posts")){ //forum integration ! $q=ofirst_dbquery("SELECT Website FROM ofirst_news_comments WHERE ID='$id'"); if(ofirst_dbnum_rows($q)!=0){ $redirect=ofirst_dbfetch_object($q); |
From: <i-...@us...> - 2004-01-06 17:16:26
|
Update of /cvsroot/openfirst/news/admin In directory sc8-pr-cvs1:/tmp/cvs-serv16159/news/admin Modified Files: editnews.php index.php Added Files: uploader.php Log Message: Added the requested image upload feature. --- NEW FILE: uploader.php --- <?php $image=""; if ($_POST['imagesrc']==1){ //use an existing file if ($_POST['image']!='(none)'){ $image=$basepath.'/news/images/upload/'.$_POST['image']; } } elseif ($_POST['imagesrc']==2) { //upload new image if(function_exists('is_uploaded_file')&&is_uploaded_file($_FILES['imgfile']['tmp_name'])){ if(preg_match("/.jpg$|.jpeg$|.gif$|.bmp$|.png$/i",$_FILES['imgfile']['name'])){ if(@move_uploaded_file($_FILES['imgfile']['tmp_name'],$fbasepath.'/news/images/upload/'.$_FILES['imgfile']['name'])){ $image=$basepath.'/news/images/upload/'.$_FILES['imgfile']['name']; } else { echo("<div style=\"color:red\">Could not upload image file ".$_FILES['imgfile']['name']."</div>"); } } } else { //version for old versions of PHP if (!$tmp_file = get_cfg_var('upload_tmp_dir')) { $tmp_file = dirname(tempnam('', '')); } $tmp_file .= '/' . @basename($HTTP_POST_FILES['imgfile']); if(ereg_replace('/+', '/', $tmp_file) == $tmp_file && preg_match("/.jpg$|.jpeg$|.gif$|.bmp$|.png$/i",$HTTP_POST_FILES['imgfile'])){ if(@copy($tmp_file, $fbasepath.'/news/images/upload/'.basename($HTTP_POST_FILES['imgfile']))){ $image=$basepath.'/news/images/upload/'.basename($HTTP_POST_FILES['imgfile']); } else { echo("<div style=\"color:red\">Could not upload image file ".$HTTP_POST_FILES['imgfile']."</div>"); } } } } elseif ($_POST['imagesrc']==3) { //custom image path $image=$_POST['customimg']; } ?> Index: editnews.php =================================================================== RCS file: /cvsroot/openfirst/news/admin/editnews.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** editnews.php 6 Jan 2004 01:06:01 -0000 1.4 --- editnews.php 6 Jan 2004 17:16:23 -0000 1.5 *************** *** 45,49 **** $news = ofirst_dbfetch_object($query); ?> ! <form name="NewsForm" id="NewsForm" method="post" action="<?php echo($_SERVER["PHP_SELF"]); ?>"> <p><br /> <br /> --- 45,49 ---- $news = ofirst_dbfetch_object($query); ?> ! <form name="NewsForm" id="NewsForm" method="post" action="editnews.php" enctype="multipart/form-data"> <p><br /> <br /> *************** *** 55,65 **** </tr> <tr> ! <td><div align="right">Headline:</div></td> <td><input name="title" type="text" value="<?php {echo($news->title);} ?>" style="width: 250px;"></td> </tr> ! <tr> ! <td width="156"><div align="right">Image:</div></td> ! <td width="332"> <input type="text" name="image" value="<?php {echo($news->image);} ?>" ! style="width: 250px;"> </td> </tr> <tr> --- 55,87 ---- </tr> <tr> ! <td><div align="right">Headline</div></td> <td><input name="title" type="text" value="<?php {echo($news->title);} ?>" style="width: 250px;"></td> </tr> ! <tr valign="top"> ! <td width="156"><div align="right">Image</div></td> ! <td width="332"><input type="radio" name="imagesrc" id="imagesrc1" value="1"><label for="imagesrc1">Select Image</label> ! <select name="image" style="width:250px"> ! <option selected>(none)</option> ! <?php ! if(is_readable(getcwd()."/../images/upload/")) { ! $dir=opendir(getcwd()."/../images/upload/"); ! while (false !== ($filename = readdir($dir))) { ! if ($filename != "." && $filename != "..") { ! echo("<option>$filename</option>"); ! } ! } ! } ! ?> ! </select> ! <br><input type="radio" name="imagesrc" id="imagesrc2" value="2"><label for="imagesrc2">Upload New Image</label> ! <?php ! if(is_writeable($fbasepath."/news/images/upload/")){ ! echo('<input type="file" name="imgfile" accept="image/*" style="width: 250px;">'); ! }else{ ! echo('<br>Image uploading is disabled'); ! }?> ! <br><input type="radio" name="imagesrc" id="imagesrc3" value="3" checked><label for="imagesrc3">Specify Filename (Advanced)</label> ! <input type="text" name="customimg" value="<?php {echo($news->image);} ?>" style="width: 250px;"> ! </td> </tr> <tr> *************** *** 103,108 **** // Add the news. $now = date("D M j G:i:s T Y"); ! ! $query=ofirst_dbquery("UPDATE ofirst_news SET date='".$now."', poster='".$user->user."', title='".$_POST["title"]."', news='".$_POST["news"]."', image='".$_POST["image"]."' WHERE ID='".$_POST["StoryID"]."';"); echo("The news item "" . $_POST["title"] . "" has been modified. [ <a href='../index.php'>Main</a> ]"); --- 125,130 ---- // Add the news. $now = date("D M j G:i:s T Y"); ! include('uploader.php'); ! $query=ofirst_dbquery("UPDATE ofirst_news SET date='".$now."', poster='".$user->user."', title='".$_POST["title"]."', news='".$_POST["news"]."', image='".$image."' WHERE ID='".$_POST["StoryID"]."';"); echo("The news item "" . $_POST["title"] . "" has been modified. [ <a href='../index.php'>Main</a> ]"); Index: index.php =================================================================== RCS file: /cvsroot/openfirst/news/admin/index.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** index.php 24 Dec 2003 00:48:14 -0000 1.15 --- index.php 6 Jan 2004 17:16:23 -0000 1.16 *************** *** 36,40 **** // Display a form for news. ?> ! <form name="NewsForm" id="NewsForm" method="post" action="index.php"> <p><br /> <br /> --- 36,40 ---- // Display a form for news. ?> ! <form name="NewsForm" id="NewsForm" method="post" action="index.php" enctype="multipart/form-data"> <p><br /> <br /> *************** *** 46,56 **** </tr> <tr> ! <td><div align="right">Headline:</div></td> <td><input name="title" type="text" value="openFIRST News" style="width: 250px;"></td> </tr> ! <tr> ! <td width="156"><div align="right">Image:</div></td> ! <td width="332"> <input type="text" name="image" value="<?php echo $basepath . "/images/openfirst.png"; ?>" ! style="width: 250px;"> </td> </tr> <tr> --- 46,78 ---- </tr> <tr> ! <td><div align="right">Headline</div></td> <td><input name="title" type="text" value="openFIRST News" style="width: 250px;"></td> </tr> ! <tr valign="top"> ! <td width="156"><div align="right">Image</div></td> ! <td width="332"><input type="radio" name="imagesrc" id="imagesrc1" value="1" checked><label for="imagesrc1">Select Image</label> ! <select name="image" style="width:250px"> ! <option selected>(none)</option> ! <?php ! if(is_readable(getcwd()."/../images/upload/")) { ! $dir=opendir(getcwd()."/../images/upload/"); ! while (false !== ($filename = readdir($dir))) { ! if ($filename != "." && $filename != "..") { ! echo("<option>$filename</option>"); ! } ! } ! } ! ?> ! </select> ! <br><input type="radio" name="imagesrc" id="imagesrc2" value="2"><label for="imagesrc2">Upload New Image</label> ! <?php ! if(is_writeable($fbasepath."/news/images/upload/")){ ! echo('<input type="file" name="imgfile" accept="image/*" style="width: 250px;">'); ! }else{ ! echo('<br>Image uploading is disabled'); ! }?> ! <br><input type="radio" name="imagesrc" id="imagesrc3" value="3"><label for="imagesrc3">Specify Filename (Advanced)</label> ! <input type="text" name="customimg" style="width: 250px;"> ! </td> </tr> <tr> *************** *** 89,94 **** // Add the news. $now = date("D M j G:i:s T Y"); ! ! $query = ofirst_dbquery("INSERT INTO ofirst_news (date, poster, title, news, image) VALUES ('$now', '$user->user', '" . $_POST["title"] . "', '" . $_POST["news"] . "', '" . $_POST["image"] . "');"); echo("The news item " . $_POST["title"] . " has been added. [ <a href='../index.php'>Main</a> ]"); --- 111,116 ---- // Add the news. $now = date("D M j G:i:s T Y"); ! include('uploader.php'); ! $query = ofirst_dbquery("INSERT INTO ofirst_news (date, poster, title, news, image) VALUES ('$now', '$user->user', '" . $_POST["title"] . "', '" . $_POST["news"] . "', '" . $image . "');"); echo("The news item " . $_POST["title"] . " has been added. [ <a href='../index.php'>Main</a> ]"); |
From: <i-...@us...> - 2004-01-06 17:16:26
|
Update of /cvsroot/openfirst/news/images In directory sc8-pr-cvs1:/tmp/cvs-serv16159/news/images Added Files: README Log Message: Added the requested image upload feature. --- NEW FILE: README --- openFIRST News Module =================================== IT IS SAFE TO DELETE THIS FILE =================================== The /upload directory is used for uploaded images. Scripts must have write permissions for the upload directory. It is also a good idea to disallow execution of scripts in the directory. =================================== IT IS SAFE TO DELETE THIS FILE =================================== |
From: <i-...@us...> - 2004-01-06 17:15:40
|
Update of /cvsroot/openfirst/news/images/upload In directory sc8-pr-cvs1:/tmp/cvs-serv15973/upload Log Message: Directory /cvsroot/openfirst/news/images/upload added to the repository |
From: <i-...@us...> - 2004-01-06 15:11:16
|
Update of /cvsroot/openfirst/forum In directory sc8-pr-cvs1:/tmp/cvs-serv19775/forum Modified Files: editpost.php newpost.php Log Message: Allowed extra html tags to support more of the editor features. Index: editpost.php =================================================================== RCS file: /cvsroot/openfirst/forum/editpost.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** editpost.php 24 Dec 2003 21:11:33 -0000 1.6 --- editpost.php 6 Jan 2004 15:11:13 -0000 1.7 *************** *** 26,30 **** * */ ! define("allowed_tags","<br><b><i><u><div><span><a><hr><font>"); include("../config/globals.php"); --- 26,30 ---- * */ ! define("allowed_tags","<br><b><i><u><div><span><a><hr><font><p><b><i><u><strong><em><li><ul><ol><blockquote>"); include("../config/globals.php"); Index: newpost.php =================================================================== RCS file: /cvsroot/openfirst/forum/newpost.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** newpost.php 24 Dec 2003 21:11:33 -0000 1.5 --- newpost.php 6 Jan 2004 15:11:13 -0000 1.6 *************** *** 26,30 **** * */ ! define("allowed_tags","<br><b><i><u><div><span><a><hr><font>"); include("../config/globals.php"); --- 26,30 ---- * */ ! define("allowed_tags","<br><b><i><u><div><span><a><hr><font><p><b><i><u><strong><em><li><ul><ol><blockquote>"); include("../config/globals.php"); |
From: <i-...@us...> - 2004-01-06 14:54:21
|
Update of /cvsroot/openfirst/forum In directory sc8-pr-cvs1:/tmp/cvs-serv14239/forum Modified Files: thread.php Log Message: Fixed Bug#16. Checks for "http://" in image location before appending $basepath. Index: thread.php =================================================================== RCS file: /cvsroot/openfirst/forum/thread.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** thread.php 6 Jan 2004 14:38:20 -0000 1.8 --- thread.php 6 Jan 2004 14:54:18 -0000 1.9 *************** *** 200,204 **** $ret = "<h4>$username</h4><div>$user->description</div>"; if ($user->picturelocation != "") { ! $ret .= '<div><img src="'.$GLOBALS["basepath"]."/members/".$user->picturelocation.'"></div>'; } if ($user->membertype == "administrator") { --- 200,208 ---- $ret = "<h4>$username</h4><div>$user->description</div>"; if ($user->picturelocation != "") { ! if (stristr($user->picturelocation,"http://")) { ! $ret .= '<div><img src="'.$user->picturelocation.'"></div>'; ! } else { ! $ret .= '<div><img src="'.$GLOBALS["basepath"]."/members/".$user->picturelocation.'"></div>'; ! } } if ($user->membertype == "administrator") { |
From: <i-...@us...> - 2004-01-06 14:38:23
|
Update of /cvsroot/openfirst/forum In directory sc8-pr-cvs1:/tmp/cvs-serv7182/forum Modified Files: thread.php Log Message: Critical fix - put security checks removed in the previous audits back in. This bug would allow anyone to view an admin-only conversation :) Index: thread.php =================================================================== RCS file: /cvsroot/openfirst/forum/thread.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** thread.php 1 Jan 2004 21:55:57 -0000 1.7 --- thread.php 6 Jan 2004 14:38:20 -0000 1.8 *************** *** 52,55 **** --- 52,66 ---- $sub = $forum; + + //check to see if this forum is private + $qh = ofirst_dbquery("SELECT hidden FROM ofirst_forum WHERE name='".$forum."'"); + if (ofirst_dbnum_rows($qh) != 0){ + $hide = ofirst_dbfetch_object($qh); + if (($hide->hidden==1)&&($admin==false)){ + echo("</p>You do not have permission to view this thread</p>"); + die(include($footer)); + } + } + $res = ""; while ($sub != "") { *************** *** 78,85 **** if(function_exists("emoticon_translate")){ echo(emoticon_translate($msg->Message)); ! echo('<div><br><hr width=200 align=left>'.emoticon_translate($usersig).'</div>'); }else{ echo($msg->Message); ! echo('<div><br><hr width=200 align=left>'.$usersig.'</div>'); } echo "</td></tr>"; --- 89,100 ---- if(function_exists("emoticon_translate")){ echo(emoticon_translate($msg->Message)); ! if($usersig!=""){ ! echo('<div><br><hr width=200 align=left>'.emoticon_translate($usersig).'</div>'); ! } }else{ echo($msg->Message); ! if($usersig!=""){ ! echo('<div><br><hr width=200 align=left>'.$usersig.'</div>'); ! } } echo "</td></tr>"; *************** *** 108,111 **** --- 123,127 ---- if ($num != 0) { + echo('<div><a href="'.$basepath.'/forum/newpost.php?forumid='.urlencode($forum).'&replyto='.$reply.'">New Reply</a></div><br>'); echo("<table width=600><tr><th colspan=2>"); *************** *** 133,140 **** if(function_exists("emoticon_translate")){ echo(emoticon_translate($msg->Message)); ! echo('<div><br><hr width=200 align=left>'.emoticon_translate($usersig).'</div>'); }else{ echo($msg->Message); ! echo('<div><br><hr width=200 align=left>'.$usersig.'</div>'); } echo "</div></td></tr>"; --- 149,160 ---- if(function_exists("emoticon_translate")){ echo(emoticon_translate($msg->Message)); ! if($usersig!=""){ ! echo('<div><br><hr width=200 align=left>'.emoticon_translate($usersig).'</div>'); ! } }else{ echo($msg->Message); ! if($usersig!=""){ ! echo('<div><br><hr width=200 align=left>'.$usersig.'</div>'); ! } } echo "</div></td></tr>"; |
From: <xt...@us...> - 2004-01-06 01:06:05
|
Update of /cvsroot/openfirst/news/admin In directory sc8-pr-cvs1:/tmp/cvs-serv1220 Modified Files: editnews.php Log Message: Fix bug preventing news changes from actually being saved. Index: editnews.php =================================================================== RCS file: /cvsroot/openfirst/news/admin/editnews.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** editnews.php 23 Oct 2003 00:55:49 -0000 1.3 --- editnews.php 6 Jan 2004 01:06:01 -0000 1.4 *************** *** 83,90 **** <?php if($dhtml){ ! echo('<input name="news2" type="button" id="news" value="Save Changes" onclick="dhtmlEditorPrepareSubmit(); document.NewsForm.submit();" />'); } else { ! echo('<input name="news2" type="submit" id="news" value="Save Changes" />'); } ?> --- 83,90 ---- <?php if($dhtml){ ! echo('<input name="news2" type="button" id="news2" value="Save Changes" onclick="dhtmlEditorPrepareSubmit(); document.NewsForm.submit();" />'); } else { ! echo('<input name="news2" type="submit" id="news2" value="Save Changes" />'); } ?> |
From: <xt...@us...> - 2004-01-03 05:25:59
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv8370 Modified Files: skills.php Log Message: Declare skilled equal to nothing before its first use. Index: skills.php =================================================================== RCS file: /cvsroot/openfirst/members/skills.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** skills.php 23 Nov 2003 19:07:28 -0000 1.4 --- skills.php 3 Jan 2004 05:25:56 -0000 1.5 *************** *** 36,39 **** --- 36,40 ---- if(isset($_POST["$skills[0]"]) == true) { + $skilled = ""; for($x=0; $x < count($skills); $x++) { if (isset($_POST["$skills[$x]"]) == true) { |
From: <i-...@us...> - 2004-01-01 21:56:01
|
Update of /cvsroot/openfirst/forum/setup In directory sc8-pr-cvs1:/tmp/cvs-serv18639/forum/setup Modified Files: setup.mssql setup.mysql Log Message: Bug fixes - signatures, some setup changes Index: setup.mssql =================================================================== RCS file: /cvsroot/openfirst/forum/setup/setup.mssql,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** setup.mssql 23 Nov 2003 20:04:24 -0000 1.3 --- setup.mssql 1 Jan 2004 21:55:57 -0000 1.4 *************** *** 1,4 **** --- 1,7 ---- CREATE TABLE IF NOT EXISTS `ofirst_forum` (`ID` int(6) unsigned NOT NULL auto_increment, `name` varchar(45) NOT NULL default 'main', `message` tinytext, `subforum` bigint(12) unsigned NOT NULL default '0', `hidden` tinyint(1) NOT NULL default '0', `closed` tinyint(1) default '0', UNIQUE KEY `ID` (`ID`), UNIQUE KEY `name` (`name`)) TYPE=MyISAM; CREATE TABLE IF NOT EXISTS `ofirst_forumposts` (`ID` bigint(8) unsigned NOT NULL auto_increment, `forum` varchar(45) NOT NULL default '', `ReplyTo` bigint(45) unsigned NOT NULL default '0', `Title` tinytext NOT NULL, `Author` tinytext NOT NULL, `Message` text, `DatePosted` datetime NOT NULL default '0000-00-00 00:00:00', UNIQUE KEY `ID` (`ID`)) TYPE=MyISAM; + INSERT INTO ofirst_forum SET ID=1,name='main',message='Welcome to our forums!'; + INSERT INTO ofirst_forum SET ID=2,name='news',subforum=1,message='Discussion related to news posted on this site'; + INSERT INTO ofirst_forum SET ID=3,name='team',subforum=1,hidden=1,message='Private forum for administrator team discussion'; INSERT INTO ofirst_config SET modulename='forum',showonmenu='0',active='0',adminnavigation='<a href="$basepath/forum/admin/">Forum Admin</a>',modulenavigation='<a href="$basepath/forum/">Forum Home</a>',includes='forumvisit.php'; ALTER TABLE `ofirst_members` ADD `forumvisit` DATETIME; Index: setup.mysql =================================================================== RCS file: /cvsroot/openfirst/forum/setup/setup.mysql,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** setup.mysql 23 Nov 2003 20:04:25 -0000 1.3 --- setup.mysql 1 Jan 2004 21:55:57 -0000 1.4 *************** *** 1,4 **** --- 1,7 ---- CREATE TABLE IF NOT EXISTS `ofirst_forum` (`ID` int(6) unsigned NOT NULL auto_increment, `name` varchar(45) NOT NULL default 'main', `message` tinytext, `subforum` bigint(12) unsigned NOT NULL default '0', `hidden` tinyint(1) NOT NULL default '0', `closed` tinyint(1) default '0', UNIQUE KEY `ID` (`ID`), UNIQUE KEY `name` (`name`)) TYPE=MyISAM; CREATE TABLE IF NOT EXISTS `ofirst_forumposts` (`ID` bigint(8) unsigned NOT NULL auto_increment, `forum` varchar(45) NOT NULL default '', `ReplyTo` bigint(45) unsigned NOT NULL default '0', `Title` tinytext NOT NULL, `Author` tinytext NOT NULL, `Message` text, `DatePosted` datetime NOT NULL default '0000-00-00 00:00:00', UNIQUE KEY `ID` (`ID`)) TYPE=MyISAM; + INSERT INTO ofirst_forum SET ID=1,name='main',message='Welcome to our forums!'; + INSERT INTO ofirst_forum SET ID=2,name='news',subforum=1,message='Discussion related to news posted on this site'; + INSERT INTO ofirst_forum SET ID=3,name='team',subforum=1,hidden=1,message='Private forum for administrator team discussion'; INSERT INTO ofirst_config SET modulename='forum',showonmenu='0',active='0',adminnavigation='<a href="$basepath/forum/admin/">Forum Admin</a>',modulenavigation='<a href="$basepath/forum/">Forum Home</a>',includes='forumvisit.php'; ALTER TABLE `ofirst_members` ADD `forumvisit` DATETIME; |
From: <i-...@us...> - 2004-01-01 21:56:01
|
Update of /cvsroot/openfirst/forum In directory sc8-pr-cvs1:/tmp/cvs-serv18639/forum Modified Files: thread.php Log Message: Bug fixes - signatures, some setup changes Index: thread.php =================================================================== RCS file: /cvsroot/openfirst/forum/thread.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** thread.php 27 Dec 2003 01:04:55 -0000 1.6 --- thread.php 1 Jan 2004 21:55:57 -0000 1.7 *************** *** 42,45 **** --- 42,46 ---- $reply=0; $forum=""; + $usersig=""; if ($thread != 0) { *************** *** 77,82 **** --- 78,85 ---- if(function_exists("emoticon_translate")){ echo(emoticon_translate($msg->Message)); + echo('<div><br><hr width=200 align=left>'.emoticon_translate($usersig).'</div>'); }else{ echo($msg->Message); + echo('<div><br><hr width=200 align=left>'.$usersig.'</div>'); } echo "</td></tr>"; *************** *** 130,135 **** --- 133,140 ---- if(function_exists("emoticon_translate")){ echo(emoticon_translate($msg->Message)); + echo('<div><br><hr width=200 align=left>'.emoticon_translate($usersig).'</div>'); }else{ echo($msg->Message); + echo('<div><br><hr width=200 align=left>'.$usersig.'</div>'); } echo "</div></td></tr>"; *************** *** 164,167 **** --- 169,174 ---- } } + unset($usersig); + include($footer); *************** *** 184,187 **** --- 191,195 ---- $ret .= "<div>Team $user->team</div>"; } + $GLOBALS["usersig"]=$user->signature; return $ret; } else { |
From: <i-...@us...> - 2004-01-01 21:43:23
|
Update of /cvsroot/openfirst/manual/openfirst.forum In directory sc8-pr-cvs1:/tmp/cvs-serv16596/manual/openfirst.forum Modified Files: forum.php Added Files: screen1.png screen2.png screen3.png screen4.png setup.php Log Message: Updated the manuals for the Forum and Downloads modules --- NEW FILE: screen1.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: screen2.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: screen3.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: screen4.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: setup.php --- <?php /* * openFIRST.manual - /openfirst.emoticon/emoticon.php * * Copyright (C) 2003, * openFIRST Project * Original Author: David Di Biase <dav...@ea...> * * 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("../../config/globals.php"); include("$header"); ?> <h2>openFIRST Manual Module</h2> <table width="65%" cellpadding="4"> <tr> <th>Forum Setup Guide</th> </tr> <tr> <td><div align="center"><img src="screen4.png" width="267" height="222"></div></td> </tr> <tr> <td class='sub' ><strong>Installation Tips</strong></td> </tr> <tr> <td><ul><li>Log in as an administrator. Go to the forum configuration page in your browser.</li> <li>There are three pre-defined forums - Main, News, and Team. If you wish, you can remove them. You have to have a root forum in order to use the module however. It is recommended that you do not delete these three forums. If you want to rename your News forum, you have to change its name in the openFIRST.news/comments.php script as well.</li> <li>To create a subforum in any forum, select the parent forum and enter a title for a new forum.</li> <li>You can remove forums as well. Removing a forum deletes any messages in it.</li> <li>To create a top-level forum, create a forum with Main as its parent.</li> <li>To change a forum message, delete it and create another forum with the same title.</li> <li>To create a root forum, do not select a subforum when you create a new forum</li> </ul></td> </tr> </table> <p><strong></strong></p> <?php include("$footer"); ?> Index: forum.php =================================================================== RCS file: /cvsroot/openfirst/manual/openfirst.forum/forum.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** forum.php 24 Dec 2003 18:02:36 -0000 1.1 --- forum.php 1 Jan 2004 21:43:17 -0000 1.2 *************** *** 37,45 **** </tr> <tr> ! <td><div align="center"> ! <p> </p> ! <p align="center">[ No screenshots ]</p> ! <p> </p> ! </div></td> </tr> <tr> --- 37,42 ---- </tr> <tr> ! <td><div align="center"><img src="screen1.png" width="267" height="222"> <img src="screen2.png" width="267" height="222"></div> ! <div align="center"><img src="screen3.png" width="267" height="222"> <img src="screen4.png" width="267" height="222"></div></td> </tr> <tr> *************** *** 48,53 **** <tr> <td>The openFIRST.forum should act as a discussion and conversing area of ! your website. Team members have the ability to login and display thoughts ! and comments on particular subjects.</td> </tr> <tr> --- 45,51 ---- <tr> <td>The openFIRST.forum should act as a discussion and conversing area of ! your website. Registered members have the ability to login and display thoughts ! and comments on particular subjects. There is a private discussion area for website ! administrators only.</td> </tr> <tr> *************** *** 61,65 **** </tr> <tr> ! <td>ofirst_forum</td> </tr> <tr> --- 59,63 ---- </tr> <tr> ! <td>ofirst_forum<br>ofirst_forumposts</td> </tr> <tr> *************** *** 67,71 **** </tr> <tr> ! <td>none</td> </tr> <tr> --- 65,69 ---- </tr> <tr> ! <td>forumvisit.php</td> </tr> <tr> *************** *** 73,77 **** </tr> <tr> ! <td>--</td> </tr> <tr> --- 71,86 ---- </tr> <tr> ! <td><p>Just like any other discussion forum on the web, this module allows users to ! converse online on any subject. If you have used a forum before, you should find using this ! module easy. If not, it is very easy to learn. Once you select a forum area, click on a thread ! title to read messages. You can reply to a thread by clicking "New Reply". When you are viewing ! a forum area you can also create a new thread for discussion. It is generally advisable to discuss ! one topic per thread.</p> ! <p>While this module does not provide all of the functionality of vBulletin or phpBB it should be ! sufficient for most team sites. An unlimited number of subforums and messages is supported. ! Users are able to edit or delete their posts.</p> ! <p>The website administrators can control the forum discussion. An administrator has the ability ! to edit or delete any message, as well as set up and configure the forums. ! Please refer to the <a href="setup.php">Forum Setup Guide</a></p></td> </tr> <tr> *************** *** 79,83 **** </tr> <tr> ! <td>--</td> </tr> <tr> --- 88,92 ---- </tr> <tr> ! <td>none</td> </tr> <tr> *************** *** 85,90 **** </tr> <tr> ! <td><p>--</p> ! </td> </tr> <tr> --- 94,100 ---- </tr> <tr> ! <td><p>function latest_posts() - shows a number of recent posts from all areas of the forums. ! Useful for the front page of your portal</p> ! </td> </tr> <tr> *************** *** 92,96 **** </tr> <tr> ! <td>--</td> </tr> <tr> --- 102,110 ---- </tr> <tr> ! <td>index.php, thread.php - allow users to browse the forums<br> ! newpost.php, editpost.php - post new messages or edit existing ones<br> ! login.php - handles user authentication for the module<br> ! forumvisit.php - determines which messages have been read<br> ! admin/index.php - configuration script</td> </tr> <tr> *************** *** 99,103 **** </tr> <tr> ! <td>openFIRST.base, openFIRST.membres, openFIRST.news (optional)</td> </tr> </table> --- 113,117 ---- </tr> <tr> ! <td>openFIRST.base, openFIRST.members, openFIRST.news (optional)</td> </tr> </table> |
From: <i-...@us...> - 2004-01-01 21:43:23
|
Update of /cvsroot/openfirst/manual/openfirst.news In directory sc8-pr-cvs1:/tmp/cvs-serv16596/manual/openfirst.news Modified Files: news.php Log Message: Updated the manuals for the Forum and Downloads modules Index: news.php =================================================================== RCS file: /cvsroot/openfirst/manual/openfirst.news/news.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** news.php 24 Dec 2003 18:06:18 -0000 1.3 --- news.php 1 Jan 2004 21:43:17 -0000 1.4 *************** *** 53,57 **** </tr> <tr> ! <td>ofirst_news</td> </tr> <tr> --- 53,57 ---- </tr> <tr> ! <td>ofirst_news<br>ofirst_news_comments</td> </tr> <tr> *************** *** 99,108 **** admin/killnews.php - used to delete news entirely</td> </tr> ! <tr> ! <td class='sub' ><strong>Related Modules <font size="2">(required for using this module)</font></strong></td> </tr> <tr> ! <td>openFIRST.base</td> </tr> </table> --- 99,108 ---- admin/killnews.php - used to delete news entirely</td> </tr> ! <tr> ! <td class='sub' ><strong>Related Modules <font size="2">(required for using this module)</font></strong></td> </tr> <tr> ! <td>openFIRST.base, openFIRST.forum (optional)</td> </tr> </table> |
From: <i-...@us...> - 2004-01-01 21:43:23
|
Update of /cvsroot/openfirst/manual/openfirst.logger In directory sc8-pr-cvs1:/tmp/cvs-serv16596/manual/openfirst.logger Modified Files: logger.php Log Message: Updated the manuals for the Forum and Downloads modules Index: logger.php =================================================================== RCS file: /cvsroot/openfirst/manual/openfirst.logger/logger.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** logger.php 24 Dec 2003 18:05:22 -0000 1.3 --- logger.php 1 Jan 2004 21:43:17 -0000 1.4 *************** *** 49,53 **** </tr> <tr> ! <td>David Di Biase of openFIRST</td> </tr> <tr> --- 49,53 ---- </tr> <tr> ! <td><p>David Di Biase of openFIRST<br>Greg Inozemtsev of openFIRST (Usage Statistics)</p></td> </tr> <tr> *************** *** 55,59 **** </tr> <tr> ! <td>ofirst_logger</td> </tr> <tr> --- 55,59 ---- </tr> <tr> ! <td>ofirst_logger<br>ofirst_hitcount</td> </tr> <tr> *************** *** 101,105 **** database.<br> track.php - allows you to track indepth information about the visiting user.<br> ! reset.php - resets the entire logger so that no hits are logged</td> </tr> <tr> --- 101,108 ---- database.<br> track.php - allows you to track indepth information about the visiting user.<br> ! reset.php - resets the entire logger so that no hits are logged.<br> ! stats.php - generates usage statistics for the portal based on the information ! in the logger database.<br> ! graph.php - used in conjunction with stats.php. Generates a graph in PNG format.</td> </tr> <tr> |
From: <i-...@us...> - 2004-01-01 21:43:23
|
Update of /cvsroot/openfirst/manual/openfirst.downloads In directory sc8-pr-cvs1:/tmp/cvs-serv16596/manual/openfirst.downloads Modified Files: downloads.php Added Files: screen.png Log Message: Updated the manuals for the Forum and Downloads modules --- NEW FILE: screen.png --- (This appears to be a binary file; contents omitted.) Index: downloads.php =================================================================== RCS file: /cvsroot/openfirst/manual/openfirst.downloads/downloads.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** downloads.php 24 Dec 2003 18:02:00 -0000 1.1 --- downloads.php 1 Jan 2004 21:43:17 -0000 1.2 *************** *** 37,45 **** </tr> <tr> ! <td><div align="center"> ! <p> </p> ! <p align="center">[ No screenshots ]</p> ! <p> </p> ! </div></td> </tr> <tr> --- 37,41 ---- </tr> <tr> ! <td><div align="center"><img src="screen.png" width="267" height="222"></div></td> </tr> <tr> *************** *** 60,64 **** </tr> <tr> ! <td>ofirst_forum</td> </tr> <tr> --- 56,60 ---- </tr> <tr> ! <td>ofirst_downloads</td> </tr> <tr> *************** *** 72,76 **** </tr> <tr> ! <td>--</td> </tr> <tr> --- 68,78 ---- </tr> <tr> ! <td>This module is used to provide the website visitors with downloadable files. ! The files are stored either in the /files subdirectory, or the database table. This allows, ! for example, making an exe or zip file available for download when your hosting provider does ! not allow these file types. Placing an exe or script file in the database is secure, since it cannot be ! executed on the server.</p> ! <p>The module is easy to use. If you log in as an administrator, you will be able to upload and manage files. ! The category manager works similarly to the Forum configurator.</td> </tr> <tr> *************** *** 78,82 **** </tr> <tr> ! <td>--</td> </tr> <tr> --- 80,84 ---- </tr> <tr> ! <td>none</td> </tr> <tr> *************** *** 91,95 **** </tr> <tr> ! <td>--</td> </tr> <tr> --- 93,102 ---- </tr> <tr> ! <td>index.php - category browser<br> ! getfile.php, notfound.php - file downloads<br> ! admin/index.php - category manager<br> ! admin/upload.php - file uploads<br> ! admin/killfile.php - deletes a file<br> ! admin/editinfo.php - edits file descriptions</td> </tr> <tr> *************** *** 98,102 **** </tr> <tr> ! <td>openFIRST.base, openFIRST.members</td> </tr> </table> --- 105,109 ---- </tr> <tr> ! <td>openFIRST.base, openFIRST.members (optional)</td> </tr> </table> |
From: <xt...@us...> - 2003-12-31 06:22:33
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv20937 Modified Files: workspace.php Log Message: Fix directory permissions issue which was previously overlooked. Index: workspace.php =================================================================== RCS file: /cvsroot/openfirst/members/workspace.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** workspace.php 31 Dec 2003 05:19:18 -0000 1.18 --- workspace.php 31 Dec 2003 06:22:29 -0000 1.19 *************** *** 86,90 **** } if(isset($_POST["action"]) == true && $_POST["action"] == "makedirectory") { ! mkdir(getcwd() . "/virtfs/$user->user/$filepath/" . $_POST["directory"], 0644); $uf = ofirst_dbquery("INSERT INTO ofirst_workspace_files (size, location, owner, permissions, date, description, filetype, name) VALUES('0', '$filepath', '$user->user', 'drw-------', '" . date('D M d Y h:m:s') . "', 'Sub Directory', 'dir-" . $_POST["directorytype"] . "', '" . $_POST["directory"] . "');"); echo("Sub directory Created [<a href='workspace.php?filepath=$filepath'>Return to Workspace</a> ]"); --- 86,90 ---- } if(isset($_POST["action"]) == true && $_POST["action"] == "makedirectory") { ! mkdir(getcwd() . "/virtfs/$user->user/$filepath/" . $_POST["directory"], 0744); $uf = ofirst_dbquery("INSERT INTO ofirst_workspace_files (size, location, owner, permissions, date, description, filetype, name) VALUES('0', '$filepath', '$user->user', 'drw-------', '" . date('D M d Y h:m:s') . "', 'Sub Directory', 'dir-" . $_POST["directorytype"] . "', '" . $_POST["directory"] . "');"); echo("Sub directory Created [<a href='workspace.php?filepath=$filepath'>Return to Workspace</a> ]"); |
From: <xt...@us...> - 2003-12-31 05:19:22
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv12050 Modified Files: workspace.php Log Message: Remove single quotes in favour of no quotes. Fixes Bug ID #23 Index: workspace.php =================================================================== RCS file: /cvsroot/openfirst/members/workspace.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** workspace.php 29 Dec 2003 16:54:58 -0000 1.17 --- workspace.php 31 Dec 2003 05:19:18 -0000 1.18 *************** *** 123,127 **** } closedir($current_dir); ! rmdir('$dir'); } --- 123,127 ---- } closedir($current_dir); ! rmdir($dir); } |