diff options
| author | lsces <lester@lsces.co.uk> | 2026-04-02 09:56:41 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-04-02 09:56:41 +0100 |
| commit | 2e132cbab719b9d1ff93ce932096e6a21b6c8977 (patch) | |
| tree | 096377e7f1647fe6f4fc59f5b3cfaf984f29ad5b /admin | |
| parent | cb8a70fed8e6667a3b6f61e090786b6cd2f67216 (diff) | |
| download | liberty-2e132cbab719b9d1ff93ce932096e6a21b6c8977.tar.gz liberty-2e132cbab719b9d1ff93ce932096e6a21b6c8977.tar.bz2 liberty-2e132cbab719b9d1ff93ce932096e6a21b6c8977.zip | |
Cull unused plugins. Flash is no longer available and pdfx thumbnails have been sorted in non-flash version of pdf plugin
Diffstat (limited to 'admin')
| -rwxr-xr-x | admin/plugins/mime_pdfx.php | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/admin/plugins/mime_pdfx.php b/admin/plugins/mime_pdfx.php deleted file mode 100755 index 3ac230f..0000000 --- a/admin/plugins/mime_pdfx.php +++ /dev/null @@ -1,59 +0,0 @@ -<?php -use Bitweaver\KernelTools; - -require_once '../../../kernel/includes/setup_inc.php'; -include_once KERNEL_PKG_INCLUDE_PATH . 'simple_form_functions_lib.php'; - -$gBitSystem->verifyPermission( 'p_admin' ); - -$feedback = []; - -$pdfSettings = [ - 'pdf2swf_path' => [ - 'label' => 'Path to pdf2swf', - 'note' => 'Path to the pdf2swf executable.', - 'type' => 'text', - ], - 'swfcombine_path' => [ - 'label' => 'Path to swfcombine', - 'note' => 'Path to the swfcombine executable.', - 'type' => 'text', - ], - 'mwconvert_path' => [ - 'label' => 'Path to ImageMagick convert', - 'note' => 'Path to the ImageMagick convert executable.', - 'type' => 'text', - ], - 'pdf_thumbnails' => [ - 'label' => 'PDF Upload Thumbnails', - 'note' => 'Create thumbnails for PDF uploads.', - 'type' => 'checkbox', - ], -]; - -if( function_exists( 'shell_exec' )) { - $pdfSettings['pdf2swf_path']['default'] = shell_exec( 'which pdf2swf' ); - $pdfSettings['swfcombine_path']['default'] = shell_exec( 'which swfcombine' ); - $pdfSettings['mwconvert_path']['default'] = shell_exec( 'which convert' ); -} else { - $feedback['error'] = "You can not execute binaries on your server. You can not make use of this plugin."; -} - -$gBitSmarty->assign( 'pdfSettings', $pdfSettings ); - -if( !empty( $_REQUEST['plugin_settings'] )) { - foreach( $pdfSettings as $item => $data ) { - if( $data['type'] == 'checkbox' ) { - simple_set_toggle( $item, LIBERTY_PKG_NAME ); - } elseif( $data['type'] == 'numeric' ) { - simple_set_int( $item, LIBERTY_PKG_NAME ); - } else { - simple_set_value( $item, LIBERTY_PKG_NAME ); - } - } - - $feedback['success'] = KernelTools::tra( 'The plugin was successfully updated' ); -} - -$gBitSmarty->assign( 'feedback', $feedback ); -$gBitSystem->display( 'bitpackage:liberty/mime/pdf/adminx.tpl', KernelTools::tra( 'PDF Plugin Settings' ), [ 'display_mode' => 'admin' ]); |
