Update of /cvsroot/phpwebsite-comm/modules/uplink/class
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31366/class
Modified Files:
Uplink.php
Log Message:
Add rights checking, disallow duplicate uploads
Index: Uplink.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/uplink/class/Uplink.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Uplink.php 27 Jul 2004 00:41:12 -0000 1.2
--- Uplink.php 28 Jul 2004 00:55:34 -0000 1.3
***************
*** 152,156 ****
if (is_file($file)) { // if the file already exists, add a unique prefix
! $file = time() . "_" . $file;
}
--- 152,159 ----
if (is_file($file)) { // if the file already exists, add a unique prefix
! $message = $_SESSION["translate"]->it("You have already uploaded the file") . " \"" . $_FILES["UPLNK_FILEPATH"]["name"] . "\".";
! $error = new PHPWS_Error("uplink", "PHPWS_Uplink::save()", $message, "continue", 0);
! $error->message("CNT_uplink");
! return $this->_edit();
}
|