From 7bee3ce4d20a569e76ad6405e3cafa4aebe23c58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20H=C3=A4usler?= Date: Fri, 3 Jun 2011 16:30:00 +0200 Subject: [PATCH] config cleanup, removed unused files --- default-conf/var_www_includes/config.php | 3 - includes/UserCVS.php | 80 ------------------------ includes/menu.php | 52 --------------- www-ssl/ShowUserPicture.php | 3 + www-ssl/lageplan.php | 12 ---- 5 files changed, 3 insertions(+), 147 deletions(-) delete mode 100644 includes/UserCVS.php delete mode 100644 includes/menu.php delete mode 100644 www-ssl/lageplan.php diff --git a/default-conf/var_www_includes/config.php b/default-conf/var_www_includes/config.php index ca0c39c9..574c44ae 100644 --- a/default-conf/var_www_includes/config.php +++ b/default-conf/var_www_includes/config.php @@ -23,9 +23,6 @@ $LETZTES_AUSTRAGEN=3; $crypt_system="md5"; //$crypt_system="crypt"; -// the archangels -$arch_angels="fnord"; - // timezonen offsett $gmdateOffset=3600; diff --git a/includes/UserCVS.php b/includes/UserCVS.php deleted file mode 100644 index b7fb412c..00000000 --- a/includes/UserCVS.php +++ /dev/null @@ -1,80 +0,0 @@ - $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 ""; - } -?> diff --git a/includes/menu.php b/includes/menu.php deleted file mode 100644 index 6a209a0f..00000000 --- a/includes/menu.php +++ /dev/null @@ -1,52 +0,0 @@ - - - -= 1) { - $inc_name = $_SERVER['PHP_SELF']; - $filenamepos = strrpos($inc_name, '/'); - $filenamepos += 1; - $filename = substr($inc_name, $filenamepos); - $filepost = substr($filename, 0, -4); - $filepre = substr($filename, -4); - $verzeichnis = substr($inc_name, 0, $filenamepos); - - for ($index_nummer = 1; $index_nummer <= $submenus; $index_nummer++) { -?> - - - - - - - - diff --git a/www-ssl/ShowUserPicture.php b/www-ssl/ShowUserPicture.php index 96b1092a..5a222c07 100644 --- a/www-ssl/ShowUserPicture.php +++ b/www-ssl/ShowUserPicture.php @@ -1,4 +1,7 @@ " . Get_Text("lageplan_text1") . "

"; -echo "

\"\""; - -include "includes/footer.php"; -?>