diff options
author | Friendika <info@friendika.com> | 2011-01-27 18:45:19 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-01-27 18:45:19 -0800 |
commit | 33037754d80dce07e6d806b6cee6df56311bb954 (patch) | |
tree | 399238f478515afdbe6d045ed4c096cadaf8989e /addon/java_upload | |
parent | ebba294189d87c0016f2fd33a7bacf8c08090d66 (diff) | |
download | volse-hubzilla-33037754d80dce07e6d806b6cee6df56311bb954.tar.gz volse-hubzilla-33037754d80dce07e6d806b6cee6df56311bb954.tar.bz2 volse-hubzilla-33037754d80dce07e6d806b6cee6df56311bb954.zip |
removed java photo uploader from mainline. Photo uploaders are now plugins, but a single item upload is available by default.
Diffstat (limited to 'addon/java_upload')
-rw-r--r-- | addon/java_upload/java_upload.php | 33 | ||||
-rw-r--r-- | addon/java_upload/jumploader_z.jar | bin | 0 -> 962772 bytes |
2 files changed, 32 insertions, 1 deletions
diff --git a/addon/java_upload/java_upload.php b/addon/java_upload/java_upload.php index 3d627b08f..8b8a57604 100644 --- a/addon/java_upload/java_upload.php +++ b/addon/java_upload/java_upload.php @@ -1,12 +1,43 @@ <?php +/** + * + * Java photo uploader, uses Jumploader + * + * WARNING: This module currently has privacy issues. + * The java package does not pass the permissions array intact and could lead to + * photos being seen by people that were excluded from seeing them. + * + */ + + +function java_upload_install() { + register_hook('photo_upload_form', 'addon/java_upload/java_upload.php', 'java_upload_form'); + register_hook('photo_post_init', 'addon/java_upload/java_upload.php', 'java_upload_post_init'); + register_hook('photo_post_end', 'addon/java_upload/java_upload.php', 'java_upload_post_end'); +} + +function java_upload_uninstall() { + unregister_hook('photo_upload_form', 'addon/java_upload/java_upload.php', 'java_upload_form'); + unregister_hook('photo_post_init', 'addon/java_upload/java_upload.php', 'java_upload_post_init'); + unregister_hook('photo_post_end', 'addon/java_upload/java_upload.php', 'java_upload_post_end'); +} function java_upload_form(&$a,&$b) { + $uploadurl = $b['post_url']; + $sessid = session_id(); + $archive = $a->get_baseurl() . '/addon/java_upload/jumploader_z.jar'; + $filestext = t('Select files to upload: '); + + $nojava = t('Use the following controls only if the Java uploader [above] fails to launch.'); + + $b['default_upload'] = true; + -$b .= <<< EOT; +$b['addon_text'] .= <<< EOT <div id="photos-upload-select-files-text">$filestext</div> diff --git a/addon/java_upload/jumploader_z.jar b/addon/java_upload/jumploader_z.jar Binary files differnew file mode 100644 index 000000000..30a85a33f --- /dev/null +++ b/addon/java_upload/jumploader_z.jar |