diff options
| author | Nick Palmer <nick@sluggardy.net> | 2007-04-16 14:03:15 +0000 |
|---|---|---|
| committer | Nick Palmer <nick@sluggardy.net> | 2007-04-16 14:03:15 +0000 |
| commit | 58c2d0a1c6ef96864cdc224a4be7b3e566d84cf2 (patch) | |
| tree | 95ef8cc51b5dc6153db012658c869a7b0b2ac13f /admin/admin_liberty_inc.php | |
| parent | 838c97945792884f228975c0955c3b78a2eb4345 (diff) | |
| download | liberty-58c2d0a1c6ef96864cdc224a4be7b3e566d84cf2.tar.gz liberty-58c2d0a1c6ef96864cdc224a4be7b3e566d84cf2.tar.bz2 liberty-58c2d0a1c6ef96864cdc224a4be7b3e566d84cf2.zip | |
AJAX attachment uploader. This stuff ROCKS!
Diffstat (limited to 'admin/admin_liberty_inc.php')
| -rw-r--r-- | admin/admin_liberty_inc.php | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/admin/admin_liberty_inc.php b/admin/admin_liberty_inc.php index 3e57a61..563618c 100644 --- a/admin/admin_liberty_inc.php +++ b/admin/admin_liberty_inc.php @@ -16,10 +16,6 @@ $formLibertyFeatures = array( 'label' => 'External image cache', 'note' => 'Enabling this will download and cache external images that are included.', ), - "liberty_multiple_attachments" => array( - 'label' => 'Allow Multiple Attachments', - 'note' => 'Allow multiple attachments in a single upload.', - ), ); if( $gBitSystem->isPackageActive( 'quota' ) ) { @@ -37,6 +33,23 @@ if( $gBitSystem->isPackageActive( 'protector' ) ) { } $gBitSmarty->assign( 'formLibertyFeatures', $formLibertyFeatures ); +$formLibertyAttachmentStyle = array( + "standard" => array( + 'label' => 'Use Standard Attachment System', + 'note' => 'Allows a single upload when content is saved.', + ), + "multiple" => array( + 'label' => 'Allow Multiple Attachments', + 'note' => 'Allow multiple attachments in a single upload.', + ), + "ajax" => array( + 'label' => 'Allow Ajax Attachments', + 'note' => 'Allow Ajax attachments where attachment is made before save so attachment id can be used in current edit.', + ), +); +$gBitSmarty->assign( 'formLibertyAttachmentStyle', $formLibertyAttachmentStyle); + + $cacheTimes = array( 0 => tra( "(no cache)" ), 60 => "1 ".tra( "minute" ), @@ -87,9 +100,9 @@ if( !empty( $_REQUEST['change_prefs'] ) ) { foreach( $formFeatures as $item => $data ) { simple_set_toggle( $item, LIBERTY_PKG_NAME ); } - - $gBitSystem->storeConfig('liberty_cache', $_REQUEST['liberty_cache'] ); - $gBitSystem->storeConfig('liberty_auto_display_attachment_thumbs', $_REQUEST['liberty_auto_display_attachment_thumbs'] ); + simple_set_value('liberty_attachment_style', LIBERTY_PKG_NAME); + $gBitSystem->storeConfig('liberty_cache', $_REQUEST['liberty_cache'], LIBERTY_PKG_NAME ); + $gBitSystem->storeConfig('liberty_auto_display_attachment_thumbs', $_REQUEST['liberty_auto_display_attachment_thumbs'], LIBERTY_PKG_NAME ); if( $_REQUEST['approved_html_tags'] != DEFAULT_ACCEPTABLE_TAGS ) { $tags = preg_replace( '/\s/', '', $_REQUEST['approved_html_tags'] ); |
