diff options
Diffstat (limited to 'www-ssl/inc/UserCVS.php')
-rwxr-xr-x | www-ssl/inc/UserCVS.php | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/www-ssl/inc/UserCVS.php b/www-ssl/inc/UserCVS.php index 48e4d012..f6bc30ed 100755 --- a/www-ssl/inc/UserCVS.php +++ b/www-ssl/inc/UserCVS.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>"; } ?> |