source: extensions/oAuth/admin/config.php @ 23800

Last change on this file since 23800 was 20323, checked in by mistic100, 12 years ago

fix redirect error, provide 3 sizes of icons, display login info on register page

File size: 673 bytes
Line 
1<?php
2defined('OAUTH_PATH') or die('Hacking attempt!');
3
4
5if (isset($_POST['save_config']))
6{
7  // plugin config
8  $conf['oauth'] = array(
9    'display_register' => isset($_POST['display_register']),
10    'display_menubar' => isset($_POST['display_menubar']),
11    'identification_icon' => $_POST['identification_icon'],
12    'menubar_icon' => $_POST['menubar_icon'],
13    );
14   
15  conf_update_param('oauth', serialize($conf['oauth']));
16  array_push($page['infos'], l10n('Information data registered in database'));
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'));
23
24?>
Note: See TracBrowser for help on using the repository browser.