Last change
on this file since 24491 was
21303,
checked in by mistic100, 12 years ago
|
display errors as warnings in order to no block parameters save
|
File size:
952 bytes
|
Line | |
---|
1 | <?php |
---|
2 | defined('OAUTH_PATH') or die('Hacking attempt!'); |
---|
3 | |
---|
4 | global $template, $page, $conf; |
---|
5 | |
---|
6 | if (!$conf['allow_user_registration']) |
---|
7 | { |
---|
8 | array_push($page['warnings'], l10n('Users are not allowed to register on your gallery. OAuth will not work correctly.')); |
---|
9 | } |
---|
10 | |
---|
11 | |
---|
12 | // get current tab |
---|
13 | $page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : $page['tab'] = 'providers'; |
---|
14 | |
---|
15 | // tabsheet |
---|
16 | include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php'); |
---|
17 | $tabsheet = new tabsheet(); |
---|
18 | $tabsheet->set_id('oauth'); |
---|
19 | |
---|
20 | $tabsheet->add('providers', l10n('Providers'), OAUTH_ADMIN . '-providers'); |
---|
21 | $tabsheet->add('config', l10n('Configuration'), OAUTH_ADMIN . '-config'); |
---|
22 | $tabsheet->select($page['tab']); |
---|
23 | $tabsheet->assign(); |
---|
24 | |
---|
25 | // include page |
---|
26 | include(OAUTH_PATH . 'admin/' . $page['tab'] . '.php'); |
---|
27 | |
---|
28 | // template vars |
---|
29 | $template->assign('OAUTH_PATH', get_root_url() . OAUTH_PATH); |
---|
30 | |
---|
31 | // send page content |
---|
32 | $template->assign_var_from_handle('ADMIN_CONTENT', 'oauth_content'); |
---|
33 | |
---|
34 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.