summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LibertyAttachable.php3
-rw-r--r--attachment_uploader.php18
2 files changed, 19 insertions, 2 deletions
diff --git a/LibertyAttachable.php b/LibertyAttachable.php
index 7120f29..e2bd254 100644
--- a/LibertyAttachable.php
+++ b/LibertyAttachable.php
@@ -3,7 +3,7 @@
* Management of Liberty Content
*
* @package liberty
- * @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyAttachable.php,v 1.70 2007/04/08 15:54:10 nickpalmer Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyAttachable.php,v 1.71 2007/04/08 17:19:54 nickpalmer Exp $
* @author spider <spider@steelsun.com>
*/
// +----------------------------------------------------------------------+
@@ -221,7 +221,6 @@ Disable for now - instead fend off new uploads once quota is exceeded. Need a ni
$field = $upload_array."_".$i;
if(isset($_FILES[$field]) &&
$_FILES[$field]['error'] == 0) {
- vd("verify: " . $field);
$this->verifyAttachment($pParamHash, $field);
}
}
diff --git a/attachment_uploader.php b/attachment_uploader.php
index e69de29..46a7950 100644
--- a/attachment_uploader.php
+++ b/attachment_uploader.php
@@ -0,0 +1,18 @@
+<?php
+/**
+ * @version $Header: /cvsroot/bitweaver/_bit_liberty/attachment_uploader.php,v 1.2 2007/04/08 17:19:54 nickpalmer Exp $
+ * @package liberty
+ * @subpackage functions
+ */
+
+/**
+ * required setup
+ */
+require_once( '../bit_setup_inc.php' );
+include (LIBERTY_PKG_PATH."LibertyAttachable.php");
+$la = new LibertyAttachable();
+if (!$la->storeAttachments($_REQUEST)) {
+ // Do something to indicate failure.
+}
+// Do whatever you do on success
+?>