source: extensions/DynamicResize/admin/admin.php @ 31813

Last change on this file since 31813 was 12181, checked in by arno, 13 years ago

feature : dynamicResize 1er commit, suite et fin

File size: 874 bytes
Line 
1<?php
2if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
3
4global $conf, $template, $page;
5
6load_language('plugin.lang', DR_PATH);
7$conf['dynamicResize'] = explode(',', $conf['dynamicResize']);
8
9if (isset($_POST['submit']))
10{
11  $conf['dynamicResize'] = array(
12    $_POST['debugMode'],
13    $_POST['dynMode'],
14    );
15 
16  conf_update_param('dynamicResize', implode(',', $conf['dynamicResize']));
17  array_push($page['infos'], l10n('Information data registered in database'));
18 
19  // the prefilter changes, we must delete compiled templatess
20  $template->delete_compiled_templates();
21}
22
23$template->assign(array(
24  'button_size' => $conf['dynamicResize'][0],
25  'position' => $conf['dynamicResize'][1],
26  'DR_PATH' => DR_PATH,
27));
28
29$template->set_filename('dr_content', dirname(__FILE__).'/admin.tpl');
30$template->assign_var_from_handle('ADMIN_CONTENT', 'dr_content');
31
32?>
Note: See TracBrowser for help on using the repository browser.