Rev | Line | |
---|
[11419] | 1 | <?php |
---|
| 2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 3 | |
---|
| 4 | global $conf, $template, $page; |
---|
| 5 | |
---|
| 6 | load_language('plugin.lang', TWEET_PATH); |
---|
| 7 | $conf['TweetThis'] = explode(',', $conf['TweetThis']); |
---|
| 8 | |
---|
| 9 | if (isset($_POST['submit'])) |
---|
| 10 | { |
---|
| 11 | $conf['TweetThis'] = array( |
---|
| 12 | $_POST['button_style'], |
---|
| 13 | $_POST['position'], |
---|
| 14 | ); |
---|
| 15 | |
---|
| 16 | conf_update_param('TweetThis', implode(',', $conf['TweetThis'])); |
---|
| 17 | array_push($page['infos'], l10n('Information data registered in database')); |
---|
| 18 | } |
---|
| 19 | |
---|
| 20 | $template->assign(array( |
---|
| 21 | 'button_style' => $conf['TweetThis'][0], |
---|
| 22 | 'position' => $conf['TweetThis'][1], |
---|
| 23 | 'TWEET_PATH' => TWEET_PATH, |
---|
| 24 | )); |
---|
| 25 | |
---|
| 26 | $template->set_filename('tweet_content', dirname(__FILE__).'/admin.tpl'); |
---|
| 27 | $template->assign_var_from_handle('ADMIN_CONTENT', 'tweet_content'); |
---|
| 28 | |
---|
| 29 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.