diff options
| author | Nick Palmer <nick@sluggardy.net> | 2007-04-08 17:19:54 +0000 |
|---|---|---|
| committer | Nick Palmer <nick@sluggardy.net> | 2007-04-08 17:19:54 +0000 |
| commit | 7ee5b09ffbb797780cb0c957c16091049966b7b7 (patch) | |
| tree | 048ab875dce50f49caddaba979cbc587226c3cdc | |
| parent | 14108403337d3ad7f20e3704c628354ca958c940 (diff) | |
| download | liberty-7ee5b09ffbb797780cb0c957c16091049966b7b7.tar.gz liberty-7ee5b09ffbb797780cb0c957c16091049966b7b7.tar.bz2 liberty-7ee5b09ffbb797780cb0c957c16091049966b7b7.zip | |
Remove vd from LibertyAttachable. Add first pass of attachment_uploader.
| -rw-r--r-- | LibertyAttachable.php | 3 | ||||
| -rw-r--r-- | attachment_uploader.php | 18 |
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 +?> |
