-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathauth_config.html
54 lines (44 loc) · 1.46 KB
/
auth_config.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
$page = optional_param('page', '', PARAM_ALPHA);
if ($page == 'sreg') {
$file = '/auth_config_sreg.html';
} elseif ($page == 'servers') {
$file = '/auth_config_servers.html';
} else {
$page = 'users';
$file = '/auth_config_users.html';
}
$tabs = array();
$tabs[] = new tabobject('users', $CFG->wwwroot.'/admin/auth_config.php?auth=openid&page=users', get_string('openid_tab_users', 'auth_openid'));
/**
* Disable SREG tab page since Google, Yahoo ... use AX (Attribute Exchange)
*
$tabs[] = new tabobject('sreg', $CFG->wwwroot.'/admin/auth_config.php?auth=openid&page=sreg', get_string('openid_tab_sreg', 'auth_openid'));
*
**/
$tabs[] = new tabobject('servers', $CFG->wwwroot.'/admin/auth_config.php?auth=openid&page=servers', get_string('openid_tab_servers', 'auth_openid'));
print_tabs(array($tabs), $page);
?>
<style type="text/css">
.openid_servers {
border-style: solid;
border-color: black;
border-width: 1px;
# border-collapse: separate;
border-spacing: 2px 2px;
# outline: solid 1px black;
# background-color: lightgrey;
# background-clip: -box;
# background-origin: border-box;
# display: table;
padding-top: 3px;
padding-left: 3px;
padding-right: 3px;
padding-bottom: 3px;
empty-cells: show;
}
</style>
<input type="hidden" name="page" value="<?php echo $page; ?>" />
<table cellspacing="0" cellpadding="10" border="0">
<?php include dirname(__FILE__).$file; ?>
</table>