source: extensions/oAuth/admin.php @ 20293

Last change on this file since 20293 was 20293, checked in by mistic100, 11 years ago

first commit of oAuth plugin, still in developpement

File size: 871 bytes
Line 
1<?php
2defined('OAUTH_PATH') or die('Hacking attempt!');
3 
4global $template, $page, $conf;
5
6if (!$conf['allow_user_registration'])
7{
8  array_push($page['errors'], 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'] = 'config';
14
15// tabsheet
16include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
17$tabsheet = new tabsheet();
18$tabsheet->set_id('oauth');
19
20$tabsheet->add('config', l10n('Configuration'), OAUTH_ADMIN . '-config');
21$tabsheet->select($page['tab']);
22$tabsheet->assign();
23 
24// include page
25include(OAUTH_PATH . 'admin/' . $page['tab'] . '.php');
26
27// template vars
28$template->assign('OAUTH_PATH', get_root_url() . OAUTH_PATH);
29 
30// send page content
31$template->assign_var_from_handle('ADMIN_CONTENT', 'oauth_content');
32
33?>
Note: See TracBrowser for help on using the repository browser.