source: extensions/oAuth/admin.php @ 31071

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

rename OAuth into Social Connect

File size: 949 bytes
Line 
1<?php
2defined('OAUTH_PATH') or die('Hacking attempt!');
3 
4global $template, $page, $conf;
5
6if (!$conf['allow_user_registration'])
7{
8  $page['warnings'][] = l10n('Users are not allowed to register on your gallery. Social Connect 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
16include_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
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');
Note: See TracBrowser for help on using the repository browser.