Rev | Line | |
---|
[19361] | 1 | <?php |
---|
| 2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 3 | |
---|
| 4 | global $conf, $template, $page; |
---|
| 5 | |
---|
| 6 | load_language('plugin.lang', TUMBLR_PATH); |
---|
| 7 | $conf['TumblrShare'] = unserialize($conf['TumblrShare']); |
---|
| 8 | |
---|
| 9 | if (isset($_POST['submit'])) |
---|
| 10 | { |
---|
| 11 | $conf['TumblrShare'] = array( |
---|
| 12 | 'type' => $_POST['type'], |
---|
| 13 | 'position' => $_POST['position'], |
---|
| 14 | ); |
---|
| 15 | |
---|
| 16 | conf_update_param('TumblrShare', serialize($conf['TumblrShare'])); |
---|
| 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 | 'type' => $conf['TumblrShare']['type'], |
---|
| 25 | 'position' => $conf['TumblrShare']['position'], |
---|
| 26 | 'TUMBLR_PATH' => TUMBLR_PATH, |
---|
| 27 | )); |
---|
| 28 | |
---|
| 29 | $template->set_filename('tumblr_content', dirname(__FILE__).'/admin.tpl'); |
---|
| 30 | $template->assign_var_from_handle('ADMIN_CONTENT', 'tumblr_content'); |
---|
| 31 | |
---|
| 32 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.