$v) { if($v == "G") $_SESSION['CVS'][$k] = $_SESSION['CVS_Group'][$k]; } } // pagename ermitteln $Page["Name"] = basename($_SERVER['PHP_SELF']); // $Page["Name"] = str_replace($ENGEL_ROOT, '', $_SERVER['PHP_SELF']); //recht fuer diese seite auslesen if(isset($_SESSION['CVS'][$Page["Name"]])) $Page["CVS"] = $_SESSION['CVS'][$Page["Name"]]; else { echo "SYSTEM ERROR: no right for " . $Page["Name"] . " exists."; die; } if($debug) { echo "
\$_SESSION:\n";
    print_r($_SESSION);
    echo "
"; if( strlen($Page["CVS"]) == 0 ) echo "

CVS ERROR, on page '". $Page["Name"]. "'

"; else echo "CVS: ". $Page["Name"]. " => '". $Page["CVS"]. "'
"; } function funktion_isLinkAllowed($PageName) { global $_SESSION; // separate page parameter $ParameterPos = strpos($PageName, ".php?"); if($ParameterPos === false) $pName = $PageName; else $pName = substr($PageName, 0, $ParameterPos + 4); // check rights if((isset( $_SESSION['CVS'][ $pName ]) === true) && $_SESSION['CVS'][ $pName ] == "Y") return true; return false; } function funktion_isLinkAllowed_addLink_OrLinkText( $PageName, $LinkText) { global $url, $ENGEL_ROOT; if(funktion_isLinkAllowed( $PageName) === true) return "" . $LinkText . ""; return $LinkText; } function funktion_isLinkAllowed_addLink_OrEmpty( $PageName, $LinkText) { global $url, $ENGEL_ROOT; if(funktion_isLinkAllowed( $PageName) === true) return "" . $LinkText . ""; return ""; } ?>