[Openfirst-cvscommit] members workspace.php,1.18,1.19
Brought to you by:
xtimg
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> ]"); |