Last change
on this file since 27130 was
26626,
checked in by mistic100, 11 years ago
|
add 'allow_merge_accounts' parameter
|
File size:
729 bytes
|
Rev | Line | |
---|
[20293] | 1 | <?php |
---|
| 2 | defined('OAUTH_PATH') or die('Hacking attempt!'); |
---|
| 3 | |
---|
| 4 | if (isset($_POST['save_config'])) |
---|
| 5 | { |
---|
[20323] | 6 | // plugin config |
---|
| 7 | $conf['oauth'] = array( |
---|
| 8 | 'display_register' => isset($_POST['display_register']), |
---|
| 9 | 'display_menubar' => isset($_POST['display_menubar']), |
---|
[26626] | 10 | 'allow_merge_accounts' => isset($_POST['allow_merge_accounts']), |
---|
[20323] | 11 | 'identification_icon' => $_POST['identification_icon'], |
---|
| 12 | 'menubar_icon' => $_POST['menubar_icon'], |
---|
| 13 | ); |
---|
[20293] | 14 | |
---|
[20323] | 15 | conf_update_param('oauth', serialize($conf['oauth'])); |
---|
[26556] | 16 | $page['infos'][] = l10n('Information data registered in database'); |
---|
[20293] | 17 | } |
---|
| 18 | |
---|
| 19 | $template->assign($conf['oauth']); |
---|
| 20 | |
---|
| 21 | // define template file |
---|
| 22 | $template->set_filename('oauth_content', realpath(OAUTH_PATH . 'admin/template/config.tpl')); |
---|
Note: See
TracBrowser
for help on using the repository browser.