mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 02:12:17 +00:00
- schönere Fehlermeldung wenn keine Berechtigung für Content vorhanden ist
- Global Menü Links korrigiert
This commit is contained in:
@@ -25,7 +25,7 @@ require_once(dirname(__FILE__).'/basis_db.class.php');
|
||||
function get_uid()
|
||||
{
|
||||
if(isset($_SERVER['REMOTE_USER']))
|
||||
return (isset($_SERVER['REMOTE_USER'])?mb_strtolower(trim($_SERVER['REMOTE_USER'])):'');
|
||||
return mb_strtolower(trim($_SERVER['REMOTE_USER']));
|
||||
else
|
||||
{
|
||||
if(isset($_SESSION['user']))
|
||||
@@ -41,7 +41,7 @@ function get_uid()
|
||||
function get_original_uid()
|
||||
{
|
||||
if(isset($_SERVER['REMOTE_USER']))
|
||||
return (isset($_SERVER['REMOTE_USER'])?mb_strtolower(trim($_SERVER['REMOTE_USER'])):'');
|
||||
return mb_strtolower(trim($_SERVER['REMOTE_USER']));
|
||||
else
|
||||
{
|
||||
if(isset($_SESSION['user_original']))
|
||||
@@ -49,6 +49,7 @@ function get_original_uid()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function login_as_user($uid)
|
||||
{
|
||||
$_SESSION['user']=$uid;
|
||||
|
||||
@@ -31,8 +31,8 @@ $p = new phrasen($sprache);
|
||||
?>
|
||||
<div id="GlobalMenu">
|
||||
[ <a class='Item' href="index.html" target="_top"><?php echo $p->t('profil/home');?></a>
|
||||
| <a class='Item' href="private/menu.php" target="menu"><?php echo $p->t('profil/meinCis');?></a>
|
||||
| <a class='Item' href="private/lehre/menu.php" target="menu"><?php echo $p->t('lvaliste/lehrveranstaltungen');?></a>
|
||||
| <a class='Item' href="private/menu.php?content_id=173" target="menu"><?php echo $p->t('profil/meinCis');?></a>
|
||||
| <a class='Item' href="private/lehre/menu.php?content_id=166" target="menu"><?php echo $p->t('lvaliste/lehrveranstaltungen');?></a>
|
||||
<?php
|
||||
if(CHOOSE_LAYOUT)
|
||||
echo '| <a class="Item" href="../layouts.php" target="content">Layouts</a>';
|
||||
|
||||
Reference in New Issue
Block a user