[geeklog-cvs] geeklog-1.3/system/classes upload.class.php,1.24,1.25
blaine at geeklog.net
blaine at geeklog.net
Sat Mar 8 20:20:37 EST 2003
Update of /usr/cvs/geeklog/geeklog-1.3/system/classes
In directory internal.geeklog.net:/tmp/cvs-serv14296/system/classes
Modified Files:
upload.class.php
Log Message:
Added new function to allow changing the maximum number of files per form supported. Default was 5 with no support to change.
Index: upload.class.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/system/classes/upload.class.php,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** upload.class.php 2 Feb 2003 21:14:07 -0000 1.24
--- upload.class.php 9 Mar 2003 01:20:35 -0000 1.25
***************
*** 614,617 ****
--- 614,630 ----
/**
+ * Sets the max number of files that can be uploaded per form
+ *
+ * @param int $maxfiles Maximum number of files to allow. Default is 5
+ * @return boolean True if set, false otherwise
+ *
+ */
+ function setMaxFileUploads($maxfiles)
+ {
+ $this->_maxFileUploadsPerForm = $maxfiles;
+ return true;
+ }
+
+ /**
* Extra security option that forces all attempts to upload a file to be done
* so from a set of VERY specific IP's. This is only good for those who are
More information about the geeklog-cvs
mailing list