From 17bfa284a6616d75e2912f022e4f0f758ba4d8e3 Mon Sep 17 00:00:00 2001 From: Karl Burkhart Date: Tue, 15 Oct 2013 08:44:31 +0000 Subject: [PATCH] =?UTF-8?q?KTU=20Addon=20-=20Studenten=20k=C3=B6nnen=20ein?= =?UTF-8?q?e=20Anfrage=20zum=20Verl=C3=A4ngern=20ihres=20Studiums=20schick?= =?UTF-8?q?en?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cis/private/profile/index.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/cis/private/profile/index.php b/cis/private/profile/index.php index 27dc5edae..877a3efa1 100644 --- a/cis/private/profile/index.php +++ b/cis/private/profile/index.php @@ -36,6 +36,7 @@ require_once('../../../include/mitarbeiter.class.php'); require_once('../../../include/student.class.php'); require_once('../../../include/kontakt.class.php'); require_once('../../../include/fotostatus.class.php'); +require_once('../../../include/addon.class.php'); $sprache = getSprache(); $p=new phrasen($sprache); @@ -461,6 +462,24 @@ if(!$ansicht) echo '

'.$p->t('profil/lvplanVon').' '.$user->nachname.'

'; } } + //Überprüfung ob Addon vorhanden ist + $addon = new addon(); + foreach($addon->aktive_addons as $ad) + { + // checken ob es file profil_array.php gibt + if(file_exists(DOC_ROOT.'/addons/'.$ad.'/cis/profil_array.php')) + { + include(DOC_ROOT.'/addons/'.$ad.'/cis/profil_array.php'); + // Wenn Mitarbeiter count == 0 + if(count($menu >0)) + { + foreach($menu as $entry) + { + echo "

".$entry['name']."

"; + } + } + } + } echo '

'.$p->t('global/hilfe').'

'; echo'