[3700] | 1 | <?php |
---|
| 2 | load_language('plugin.lang', PAMOORAMICS_PATH); |
---|
| 3 | |
---|
| 4 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 5 | $me = get_plugin_data($plugin_id); |
---|
| 6 | if ( isset($_POST['submit']) ) |
---|
| 7 | { |
---|
| 8 | $me->my_config['paMOOramics_mode'] = $_POST['paMOOramics_mode']; |
---|
| 9 | $me->my_config['paMOOramics_use_name'] = isset($_POST['paMOOramics_use_name']) ? "true" : "false"; |
---|
| 10 | $me->my_config['paMOOramics_name'] = $_POST['paMOOramics_name']; |
---|
| 11 | $me->my_config['paMOOramics_use_ratio'] = isset($_POST['paMOOramics_use_ratio']) ? "true" : "false"; |
---|
| 12 | $me->my_config['paMOOramics_ratio'] = $_POST['paMOOramics_ratio']; |
---|
| 13 | $me->my_config['paMOOramics_width'] = $_POST['paMOOramics_width']; |
---|
| 14 | $me->my_config['paMOOramics_border'] = $_POST['paMOOramics_border']; |
---|
| 15 | $me->my_config['paMOOramics_bordercolor'] = $_POST['paMOOramics_bordercolor']; |
---|
| 16 | $me->my_config['paMOOramics_footercolor'] = $_POST['paMOOramics_footercolor']; |
---|
| 17 | $me->my_config['paMOOramics_captioncolor'] = $_POST['paMOOramics_captioncolor']; |
---|
| 18 | $me->my_config['paMOOramics_autoscrollSpeed'] = $_POST['paMOOramics_autoscrollSpeed']; |
---|
| 19 | $me->my_config['paMOOramics_activateSlider'] = isset($_POST['paMOOramics_activateSlider']) ? "true" : "false"; |
---|
| 20 | $me->my_config['paMOOramics_enableAutoscroll'] = isset($_POST['paMOOramics_enableAutoscroll']) ? "true" : "false"; |
---|
| 21 | $me->my_config['paMOOramics_autoscrollOnLoad'] = isset($_POST['paMOOramics_autoscrollOnLoad']) ? "true" : "false"; |
---|
| 22 | $me->my_config['paMOOramics_displayfooter'] = isset($_POST['paMOOramics_displayfooter']) ? "display:none;" : ""; |
---|
| 23 | $me->my_config['pamooramics_Slideshow_displayfooter']= isset($_POST['pamooramics_Slideshow_displayfooter']) ? "display:none;" : ""; |
---|
| 24 | $me->save_config(); |
---|
| 25 | |
---|
| 26 | } |
---|
| 27 | |
---|
| 28 | global $template; |
---|
| 29 | $template->set_filenames( array('paMOOramics_admin_content' => dirname(__FILE__).'/paMOOramics_admin.tpl') ); |
---|
| 30 | $template->append('head_elements', |
---|
| 31 | '<script type="text/javascript" src="./plugins/paMOOramics/farbtastic/farbtastic.js"></script> |
---|
| 32 | <link rel="stylesheet" type="text/css" |
---|
| 33 | href="./plugins/paMOOramics/farbtastic/farbtastic.css" /> |
---|
| 34 | <link rel="stylesheet" type="text/css" |
---|
| 35 | href="./plugins/paMOOramics/paMOOramics_admin.css" />'); |
---|
| 36 | |
---|
| 37 | $template->assign('PAMOORAMICS_NAME', $me->my_config['paMOOramics_name']); |
---|
| 38 | $template->assign('PAMOORAMICS_RATIO', $me->my_config['paMOOramics_ratio']); |
---|
| 39 | $template->assign('PAMOORAMICS_WIDTH', $me->my_config['paMOOramics_width']); |
---|
| 40 | $template->assign('PAMOORAMICS_BORDER', $me->my_config['paMOOramics_border']); |
---|
| 41 | $template->assign('PAMOORAMICS_BORDERCOLOR', $me->my_config['paMOOramics_bordercolor']); |
---|
| 42 | $template->assign('PAMOORAMICS_FOOTERCOLOR', $me->my_config['paMOOramics_footercolor']); |
---|
| 43 | $template->assign('PAMOORAMICS_CAPTIONCOLOR', $me->my_config['paMOOramics_captioncolor']); |
---|
| 44 | $template->assign('PAMOORAMICS_AUTOSCROLLSPEED', $me->my_config['paMOOramics_autoscrollSpeed']); |
---|
| 45 | |
---|
| 46 | if ($me->my_config['paMOOramics_activateSlider']=='true') |
---|
| 47 | $template->assign('PAMOORAMICS_ACTIVATESLIDER','checked'); |
---|
| 48 | if ($me->my_config['paMOOramics_enableAutoscroll']=='true') |
---|
| 49 | $template->assign('PAMOORAMICS_ENABLEAUTOSCROLL','checked'); |
---|
| 50 | if ($me->my_config['paMOOramics_autoscrollOnLoad']=='true') |
---|
| 51 | $template->assign('PAMOORAMICS_AUTOSCROLLONLOAD','checked'); |
---|
| 52 | if ($me->my_config['paMOOramics_displayfooter']=='display:none;') |
---|
| 53 | $template->assign('PAMOORAMICS_DISPLAYFOOTER','checked'); |
---|
| 54 | if ($me->my_config['pamooramics_Slideshow_displayfooter']=='display:none;') |
---|
| 55 | $template->assign('PAMOORAMICS_SLIDE_DISPLAYFOOTER','checked'); |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | |
---|
| 59 | if ($me->my_config['paMOOramics_mode']=='modename') |
---|
| 60 | $template->assign('PAMOORAMICS_USENAME','checked'); |
---|
| 61 | if ($me->my_config['paMOOramics_mode']=='moderatio') |
---|
| 62 | $template->assign('PAMOORAMICS_USERATIO','checked'); |
---|
| 63 | |
---|
| 64 | |
---|
| 65 | $template->assign_var_from_handle( 'ADMIN_CONTENT', 'paMOOramics_admin_content'); |
---|
| 66 | ?> |
---|