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
54
55
56
57
58
|
<?php
# Lifter010: TODO
/*
* LoginNavigation.php - navigation for login page
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* @author Elmar Ludwig
* @license http://www.gnu.org/licenses/gpl-2.0.html GPL version 2
* @category Stud.IP
*/
class LoginNavigation extends Navigation
{
/**
* Initialize the subnavigation of this item. This method
* is called once before the first item is added or removed.
*/
public function initSubNavigation()
{
parent::initSubNavigation();
$navigation = new Navigation(_('Login'), 'index.php?again=yes');
$navigation->setDescription(_('für registrierte NutzerInnen'));
$this->addSubNavigation('login', $navigation);
if (in_array('CAS', $GLOBALS['STUDIP_AUTH_PLUGIN'])) {
$navigation = new Navigation(_('Login'), 'index.php?again=yes&sso=cas');
$navigation->setDescription(_('für Single Sign On mit CAS'));
$this->addSubNavigation('login_cas', $navigation);
}
if (in_array('Shib', $GLOBALS['STUDIP_AUTH_PLUGIN'])) {
$navigation = new Navigation(_('Shibboleth Login'), 'index.php?again=yes&sso=shib');
$navigation->setDescription(_('für Single Sign On mit Shibboleth'));
$this->addSubNavigation('login_shib', $navigation);
}
if (Config::get()->ENABLE_SELF_REGISTRATION) {
$navigation = new Navigation(_('Registrieren'), 'register1.php');
$navigation->setDescription(_('um NutzerIn zu werden'));
$this->addSubNavigation('register', $navigation);
}
if (Config::get()->ENABLE_FREE_ACCESS) {
$navigation = new Navigation(_('Freier Zugang'), 'dispatch.php/public_courses');
$navigation->setDescription(_('ohne Registrierung'));
$this->addSubNavigation('browse', $navigation);
}
$navigation = new Navigation(_('Hilfe'), format_help_url('Basis.Allgemeines'));
$navigation->setDescription(_('zu Bedienung und Funktionsumfang'));
$this->addSubNavigation('help', $navigation);
}
}
|