source: extensions/oAuth/admin.php @ 26089

Last change on this file since 26089 was 21303, checked in by mistic100, 12 years ago

display errors as warnings in order to no block parameters save

File size: 952 bytes
RevLine 
[20293]1<?php
2defined('OAUTH_PATH') or die('Hacking attempt!');
3 
4global $template, $page, $conf;
5
6if (!$conf['allow_user_registration'])
7{
[21303]8  array_push($page['warnings'], l10n('Users are not allowed to register on your gallery. OAuth will not work correctly.'));
[20293]9}
10
11
12// get current tab
[20323]13$page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : $page['tab'] = 'providers';
[20293]14
15// tabsheet
16include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
17$tabsheet = new tabsheet();
18$tabsheet->set_id('oauth');
19
[20323]20$tabsheet->add('providers', l10n('Providers'), OAUTH_ADMIN . '-providers');
[20293]21$tabsheet->add('config', l10n('Configuration'), OAUTH_ADMIN . '-config');
22$tabsheet->select($page['tab']);
23$tabsheet->assign();
24 
25// include page
26include(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.