From ab23338fe9f1b3ed21455867f1c032d7b146ceb8 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 2 Mar 2015 16:51:04 +0100 Subject: Initial Commit --- modules/logout.inc.php | 12 ++++++++++++ modules/main.inc.php | 29 +++++++++++++++++++++++++++++ modules/register.inc.php | 25 +++++++++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 modules/logout.inc.php create mode 100644 modules/main.inc.php create mode 100644 modules/register.inc.php (limited to 'modules') diff --git a/modules/logout.inc.php b/modules/logout.inc.php new file mode 100644 index 0000000..90cd225 --- /dev/null +++ b/modules/logout.inc.php @@ -0,0 +1,12 @@ + User::getLastName(), + )); + if (User::isLoggedIn()) { + // Logged in user -- + if (User::getOrganization() !== false) { + // Organization is known, show signup form + if (User::isShibbolethAuth() && !User::isInDatabase()) { + Render::addTemplate('main/deploy'); + } + } else if (User::getRemoteOrganizationId() !== false) { + Message::addWarning('Ihre Hochschule/Einrichtung {{0}} ist leider nicht bekannt. Bitte kontaktieren Sie den Support.', User::getRemoteOrganizationId()); + } + } + } + +} diff --git a/modules/register.inc.php b/modules/register.inc.php new file mode 100644 index 0000000..ca5f4bf --- /dev/null +++ b/modules/register.inc.php @@ -0,0 +1,25 @@ +