diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2008-11-09 08:53:52 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2008-11-09 08:53:52 +0000 |
| commit | ebfc5ba06b1e3c33e2fbfc9a1d1312d032670372 (patch) | |
| tree | 21a96050124bb0acc6a9759d948c0140339523d7 /admin/plugins/data_code.php | |
| parent | 5eb4aeebf2404ec73cbc2567cf5f74cdbb2d0e77 (diff) | |
| download | liberty-ebfc5ba06b1e3c33e2fbfc9a1d1312d032670372.tar.gz liberty-ebfc5ba06b1e3c33e2fbfc9a1d1312d032670372.tar.bz2 liberty-ebfc5ba06b1e3c33e2fbfc9a1d1312d032670372.zip | |
clean up liberty plugin admin, move files to better dirs to keep things tidy, clean up {code} plugin and add UI for default code source.
Diffstat (limited to 'admin/plugins/data_code.php')
| -rw-r--r-- | admin/plugins/data_code.php | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/admin/plugins/data_code.php b/admin/plugins/data_code.php new file mode 100644 index 0000000..cbdcb77 --- /dev/null +++ b/admin/plugins/data_code.php @@ -0,0 +1,73 @@ +<?php +require_once( '../../../bit_setup_inc.php' ); +require_once( KERNEL_PKG_PATH.'/simple_form_functions_lib.php' ); +$gBitSystem->verifyPermission( 'p_admin' ); + +$feedback = array(); + +$sources = array( + 'ASP' => 'ASP', + 'ActionScript' => 'ActionScript', + 'Ada' => 'Ada', + 'Apache' => 'Apache Log File', + 'AppleScript' => 'AppleScript', + 'Asm' => 'ASM (NASM based)', + 'Bash' => 'Bash', + 'Blitz Basic' => 'Blitz Basic', + 'C' => 'C', + 'CSS' => 'CSS', + 'CSharp' => 'C#', + 'C_Mac' => 'C for Macs', + 'CadDcl' => 'AutoCAD DCL', + 'CadLisp' => 'AutoCAD LISP', + 'Cpp' => 'C++', + 'D' => 'D', + 'DIV' => 'DIV', + 'DOS' => 'DOS', + 'Delphi' => 'Delphi', + 'Diff' => 'Diff Output', + 'Eiffel' => 'Eiffel', + 'FreeBasic' => 'FreeBasic', + 'GML' => 'GML', + 'Html4Strict' => 'HTML (4.0.1)', + 'Inno' => 'Inno', + 'Java' => 'Java', + 'JavaScript' => 'JavaScript', + 'Lisp' => 'Lisp', + 'Lua' => 'Lua', + 'MatLab' => 'MatLab', + 'MpAsm' => 'MpAsm', + 'MySQL' => 'MySQL', + 'Niss' => 'NullSoft Installer', + 'OCaml' => 'OCaml', + 'ObjC' => 'Objective C', + 'OoBas' => 'OpenOffice.org Basic', + 'Oracle8' => 'Oracle8', + 'Pascal' => 'Pascal', + 'Perl' => 'Perl', + 'Php' => 'Php', + 'Php_Brief' => 'Php_Brief', + 'Python' => 'Python', + 'QBasic' => 'QuickBasic', + 'Ruby' => 'Ruby', + 'SQL' => 'SQL', + 'Scheme' => 'Scheme', + 'Smarty' => 'Smarty', + 'VHDL' => 'VHDL', + 'Vb' => 'VisualBasic', + 'VbNet' => 'VB.NET', + 'Visual Basic' => 'Visual Basic', + 'VisualFoxPro' => 'VisualFoxPro', + 'XML' => 'XML', + 'ini' => 'ini', +); +$gBitSmarty->assign( 'sources', $sources ); + +if( !empty( $_REQUEST['plugin_settings'] )) { + simple_set_value( 'liberty_plugin_code_default_source', LIBERTY_PKG_NAME ); + $feedback['success'] = tra( 'The plugin was successfully updated' ); +} + +$gBitSmarty->assign( 'feedback', $feedback ); +$gBitSystem->display( 'bitpackage:liberty/plugins/data_code_admin.tpl', tra( 'Data Code Plugin Settings' ), array( 'display_mode' => 'admin' )); +?> |
