public flack entfernt, wird jetzt ueber UserCVS=-1 geregelt
git-svn-id: svn://svn.cccv.de/engel-system@22 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
parent
7cc7fce8de
commit
59948c9d8c
|
@ -1,8 +1,6 @@
|
|||
<?PHP
|
||||
|
||||
$title = "DB Update from XML";
|
||||
$header = "DB Update from XML";
|
||||
$Page["Public"] = "N";
|
||||
include ("./inc/header.php");
|
||||
include ("./inc/funktion_user.php");
|
||||
include ("./inc/funktion_xml.php");
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
$title = "Engelsystem - DECT";
|
||||
$header = "DECT send call";
|
||||
$Page["Public"] = "N";
|
||||
include ("./inc/header.php");
|
||||
|
||||
include ("./inc/funktion_modem.php");
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
<?php
|
||||
$title = "Index";
|
||||
$header = "FAQ";
|
||||
$Page["Public"] = "Y";
|
||||
include ("./inc/header.php");
|
||||
|
||||
|
||||
|
|
|
@ -1,12 +1,25 @@
|
|||
<?php
|
||||
|
||||
if( !isset($Page["Public"])) $Page["Public"]="N";
|
||||
if( !isset($_SESSION['UID']))
|
||||
$_SESSION['UID'] = -1;
|
||||
|
||||
// CVS import Data
|
||||
$SQL = "SELECT * FROM `UserCVS` WHERE UID=".$_SESSION['UID'];
|
||||
$Erg_CVS = mysql_query($SQL, $con);
|
||||
$_SESSION['CVS'] = mysql_fetch_array($Erg_CVS);
|
||||
|
||||
//pagename ermitteln
|
||||
$Page["Name"] = substr( $_SERVER['PHP_SELF'], strlen($ENGEL_ROOT) );
|
||||
|
||||
|
||||
//recht für diese seite auslesen
|
||||
if( isset( $_SESSION['CVS'][ $Page["Name"] ]))
|
||||
$Page["CVS"] = $_SESSION['CVS'][ $Page["Name"] ];
|
||||
else
|
||||
$Page["CVS"] = "";
|
||||
{
|
||||
echo "SYSTEM ERROR: now right for ". $Page["Name"]. "exist";
|
||||
die;
|
||||
}
|
||||
|
||||
if( $DEBUG )
|
||||
{
|
||||
|
@ -21,10 +34,6 @@ if( $DEBUG )
|
|||
else
|
||||
echo "CVS: ". $Page["Name"]. " => '". $Page["CVS"]. "'<br>";
|
||||
|
||||
if( $Page["Public"] == "Y")
|
||||
echo "<h3>Page is Public !!!</h3>";
|
||||
else
|
||||
echo "<h4>Page is non Public</h4>";
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -18,10 +18,11 @@ function ShowMenu( $Menu )
|
|||
$MenuFile = $Menu["Path"]. $Entry["File"];
|
||||
|
||||
if( $_SESSION['CVS'][$MenuFile] == "Y")
|
||||
{
|
||||
echo "\t\t\t<li><a href=\"". $Entry["File"]. "\">". $Entry["Name"]. "</a></li>\n";
|
||||
if( isset($Entry["Line"]))
|
||||
echo $Entry["Line"];
|
||||
|
||||
if( isset($Entry["Line"]))
|
||||
echo $Entry["Line"];
|
||||
}
|
||||
|
||||
//DEBUG
|
||||
if( $DEBUG )
|
||||
|
|
|
@ -9,6 +9,9 @@ include ("./inc/secure.php");
|
|||
exit ();
|
||||
} // Ende Rechte f. Nonpublic'*/
|
||||
|
||||
if( !isset($_SESSION['IP']))
|
||||
$_SESSION['IP'] = $_SERVER['REMOTE_ADDR'];
|
||||
|
||||
if (IsSet($_SESSION['UID']) and ($_SESSION['IP'] <> $_SERVER['REMOTE_ADDR']))
|
||||
{
|
||||
header("Location: https://".$_SERVER['HTTP_HOST'].$ENGEL_ROOT);
|
||||
|
@ -64,7 +67,8 @@ if( $Page["ShowTabel"]=="Y" )
|
|||
|
||||
?>
|
||||
<div align="center">
|
||||
<a name="#top"><img src="./inc/himmel<? if ($_SESSION['color']==6) { echo "_w"; } ?>.png" alt="Unser Himmel"></a>
|
||||
<a name="#top"><img src="./inc/himmel<? if( isset($_SESSION['color']))
|
||||
if ($_SESSION['color']==6) echo "_w"; ?>.png" alt="Unser Himmel"></a>
|
||||
<p>
|
||||
<table width="95%" align="center" border="0" cellpadding="7" cellspacing="0">
|
||||
<tr>
|
||||
|
@ -108,7 +112,7 @@ function SetHeaderGo2Back ()
|
|||
}
|
||||
|
||||
|
||||
if ( $Page["Public"]!= "Y" && $Page["CVS"] != "Y" ) {
|
||||
if ( $Page["CVS"] != "Y" ) {
|
||||
echo "Du besitzt kein Rechte für diesen Bereich.<br>\n";
|
||||
If (IsSet($_SESSION['oldurl']))
|
||||
echo "<a href=\"".$oldurl."\">".Get_Text(11)."</a> geht's zurück...\n";
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
<?php
|
||||
$title = "Index";
|
||||
$header = "Index";
|
||||
$Page["Public"] = "Y";
|
||||
include ("./inc/header.php");
|
||||
|
||||
echo Get_Text("index_text1")."<br><br>";
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
<?php
|
||||
$title = "Index";
|
||||
$header = "Lageplan";
|
||||
$Page["Public"] = "Y";
|
||||
include ("./inc/header.php");
|
||||
?>
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
<?php
|
||||
$title = "Himmel";
|
||||
$header = "News";
|
||||
$Page["Public"] = "Y";
|
||||
|
||||
// Die Session zerstoeren...
|
||||
session_start();
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
$title = "MakeNewUser";
|
||||
$header = "Make New User";
|
||||
$Page["Public"]="N^";
|
||||
include ("./inc/header.php");
|
||||
include ("./inc/db.php");
|
||||
include ("./inc/crypt.php");
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
<?PHP
|
||||
/*
|
||||
<? echo $MenueTableStart; ?>
|
||||
|
||||
<h4><? echo Get_Text("menu_Name")?></h4>
|
||||
|
@ -12,3 +14,24 @@
|
|||
</div>
|
||||
|
||||
<? echo $MenueTableEnd; ?>
|
||||
|
||||
*/
|
||||
|
||||
$Menu["Path"] = "";
|
||||
$Menu["Name"] = Get_Text("menu_Name");
|
||||
$Menu["Entry"][0]["File"] = "index.php";
|
||||
$Menu["Entry"][0]["Name"] = Get_Text("menu_index");
|
||||
$Menu["Entry"][0]["Line"] = "<br>";
|
||||
$Menu["Entry"][1]["File"] = "faq.php";
|
||||
$Menu["Entry"][1]["Name"] = Get_Text("menu_FAQ");
|
||||
$Menu["Entry"][1]["Line"] = "<br>";
|
||||
$Menu["Entry"][2]["File"] = "lageplan.php";
|
||||
$Menu["Entry"][2]["Name"] = Get_Text("menu_plan");
|
||||
$Menu["Entry"][2]["Line"] = "<br>";
|
||||
$Menu["Entry"][3]["File"] = "makeuser.php";
|
||||
$Menu["Entry"][3]["Name"] = Get_Text("menu_MakeUser");
|
||||
$Menu["Entry"][3]["Line"] = "<br>";
|
||||
$Menu["Entry"][4]["File"] = "nonpublic/schichtplan_beamer.php";
|
||||
$Menu["Entry"][4]["Name"] = Get_Text("pub_menu_SchichtplanBeamer");
|
||||
|
||||
?>
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
<?
|
||||
$title = "Index";
|
||||
$header = "Index";
|
||||
$Page["Public"] = "Y";
|
||||
|
||||
include ("./inc/db.php");
|
||||
include ("./inc/crypt.php");
|
||||
|
|
Loading…
Reference in New Issue