2005-09-10 19:25:43 +02:00
|
|
|
|
<?php
|
|
|
|
|
|
2005-11-06 18:59:03 +01:00
|
|
|
|
if( !isset($_SESSION['UID']))
|
|
|
|
|
$_SESSION['UID'] = -1;
|
2005-09-10 19:25:43 +02:00
|
|
|
|
|
2005-11-06 18:59:03 +01:00
|
|
|
|
// 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
|
2005-09-10 19:25:43 +02:00
|
|
|
|
$Page["Name"] = substr( $_SERVER['PHP_SELF'], strlen($ENGEL_ROOT) );
|
2005-11-06 18:59:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//recht f<>r diese seite auslesen
|
2005-11-06 01:44:48 +01:00
|
|
|
|
if( isset( $_SESSION['CVS'][ $Page["Name"] ]))
|
|
|
|
|
$Page["CVS"] = $_SESSION['CVS'][ $Page["Name"] ];
|
2005-11-06 17:33:22 +01:00
|
|
|
|
else
|
2005-11-06 18:59:03 +01:00
|
|
|
|
{
|
|
|
|
|
echo "SYSTEM ERROR: now right for ". $Page["Name"]. "exist";
|
|
|
|
|
die;
|
|
|
|
|
}
|
2005-09-10 19:25:43 +02:00
|
|
|
|
|
|
|
|
|
if( $DEBUG )
|
|
|
|
|
{
|
2005-10-21 20:50:26 +02:00
|
|
|
|
// echo "UserID:". $_SESSION["UID"]. "<br>";
|
|
|
|
|
// echo "Nick:". $_SESSION["Nick"]. "<br>";
|
|
|
|
|
|
|
|
|
|
foreach( $_SESSION as $k => $v)
|
|
|
|
|
echo "$k = $v<br>\n";
|
|
|
|
|
|
2005-09-10 19:25:43 +02:00
|
|
|
|
if( strlen($Page["CVS"]) == 0 )
|
|
|
|
|
echo "<h1><u> CVS ERROR, on page '". $Page["Name"]. "'</u></h1>";
|
|
|
|
|
else
|
|
|
|
|
echo "CVS: ". $Page["Name"]. " => '". $Page["CVS"]. "'<br>";
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
?>
|