mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
- schönere Fehlermeldung wenn keine Berechtigung für Content vorhanden ist
- Global Menü Links korrigiert
This commit is contained in:
+15
-1
@@ -27,6 +27,7 @@ require_once('../config/cis.config.inc.php');
|
||||
require_once('../include/content.class.php');
|
||||
require_once('../include/template.class.php');
|
||||
require_once('../include/functions.inc.php');
|
||||
require_once('../include/phrasen.class.php');
|
||||
|
||||
if(isset($_GET['content_id']))
|
||||
$content_id = $_GET['content_id'];
|
||||
@@ -37,6 +38,7 @@ $version = (isset($_GET['version'])?$_GET['version']:null);
|
||||
$sprache = (isset($_GET['sprache'])?$_GET['sprache']:getSprache());
|
||||
$sichtbar = !isset($_GET['sichtbar']);
|
||||
|
||||
$p = new phrasen($sprache);
|
||||
//XML Content laden
|
||||
$content = new content();
|
||||
|
||||
@@ -44,7 +46,19 @@ if($content->islocked($content_id))
|
||||
{
|
||||
$uid = get_uid();
|
||||
if(!$content->berechtigt($content_id, $uid))
|
||||
die($uid.': Sie haben keine Berechtigung fuer diese Seite');
|
||||
{
|
||||
echo '<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>'.CAMPUS_NAME.'</h1>
|
||||
'.$p->t('global/keineBerechtigungFuerDieseSeite').'
|
||||
</body>
|
||||
</html>';
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
if(!$content->getContent($content_id, $sprache, $version, $sichtbar, true))
|
||||
|
||||
@@ -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>';
|
||||
|
||||
@@ -2675,7 +2675,7 @@ $tabellen=array(
|
||||
"fue.tbl_aktivitaet" => array("aktivitaet_kurzbz","beschreibung"),
|
||||
"fue.tbl_projekt" => array("projekt_kurzbz","nummer","titel","beschreibung","beginn","ende","oe_kurzbz"),
|
||||
"fue.tbl_projektbenutzer" => array("projektbenutzer_id","uid","funktion_kurzbz","projekt_kurzbz"),
|
||||
"fue.tbl_projektphase" => array("projektphase_id","projekt_kurzbz","projektphase_fk","bezeichnung","beschreibung","start","ende","budget","insertamum","insertvon","updateamum","updatevon"),
|
||||
"fue.tbl_projektphase" => array("projektphase_id","projekt_kurzbz","projektphase_fk","bezeichnung","beschreibung","start","ende","budget","insertamum","insertvon","updateamum","updatevon","personentage"),
|
||||
"fue.tbl_projekttask" => array("projekttask_id","projektphase_id","bezeichnung","beschreibung","aufwand","mantis_id","insertamum","insertvon","updateamum","updatevon"),
|
||||
"kommune.tbl_match" => array("match_id","team_sieger","wettbewerb_kurzbz","team_gefordert","team_forderer","gefordertvon","gefordertamum","matchdatumzeit","matchort","matchbestaetigtvon","matchbestaetigtamum","ergebniss","bestaetigtvon","bestaetigtamum"),
|
||||
"kommune.tbl_team" => array("team_kurzbz","bezeichnung","beschreibung","logo"),
|
||||
|
||||
Reference in New Issue
Block a user