summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2011-06-03 16:30:00 +0200
committerPhilip Häusler <msquare@notrademark.de>2011-06-03 16:30:00 +0200
commit7bee3ce4d20a569e76ad6405e3cafa4aebe23c58 (patch)
tree8213a0690894394b8f79b983b9a3c2ffd75bd20e /includes
parent7a6f4b2750465da6f59b13aefa575d734f5471f3 (diff)
config cleanup, removed unused files
Diffstat (limited to 'includes')
-rw-r--r--includes/UserCVS.php80
-rw-r--r--includes/menu.php52
2 files changed, 0 insertions, 132 deletions
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 @@
-<?php
- if(!isset($_SESSION['UID']))
- $_SESSION['UID'] = -1;
-
- // CVS import Data
- $SQL_CVS = "SELECT * FROM `UserCVS` WHERE UID=" . $_SESSION['UID'];
- $Erg_CVS = mysql_query($SQL_CVS, $con);
- $_SESSION['CVS'] = mysql_fetch_array($Erg_CVS);
-
- // Group import Data, if nesseary
- if(isset($_SESSION['CVS']["GroupID"])) {
- $SQL_GRP = "SELECT * FROM `UserCVS` WHERE UID=" . $_SESSION['CVS'][ "GroupID" ];
- $Erg_GRP = mysql_query($SQL_GRP, $con);
- $_SESSION['CVS_Group'] = mysql_fetch_array($Erg_GRP);
-
- foreach($_SESSION['CVS'] as $k => $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 "<pre>\$_SESSION:\n";
- print_r($_SESSION);
- echo "</pre>";
-
- if( strlen($Page["CVS"]) == 0 )
- echo "<h1><u> CVS ERROR, on page '". $Page["Name"]. "'</u></h1>";
- else
- echo "CVS: ". $Page["Name"]. " => '". $Page["CVS"]. "'<br />";
- }
-
- 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 "<a href=\"" . $url. $ENGEL_ROOT . $PageName . "\">" . $LinkText . "</a>";
-
- return $LinkText;
- }
-
- function funktion_isLinkAllowed_addLink_OrEmpty( $PageName, $LinkText) {
- global $url, $ENGEL_ROOT;
-
- if(funktion_isLinkAllowed( $PageName) === true)
- return "<a href=\"" . $url . $ENGEL_ROOT . $PageName . "\">" . $LinkText . "</a>";
-
- 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 @@
-
-<!-- anfang des menue parts //-->
- <td width="160" valign="top">
-<?php
-ShowMenu("");
-ShowMenu("nonpublic");
-ShowMenu("admin");
-
-if (!isset ($submenus))
- $submenus = 0;
-
-if ($submenus >= 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++) {
-?>
-<nav class="container">
- <?php include ("./".$filepost.".".$index_nummer.$filepre); ?>
-</nav>
-<?php
-
-
- }
-}
-
-if (isset ($_SESSION['UID'])) {
-?>
-<nav class="container">
- <?php include("funktion_activeUser.php"); ?>
-</nav>
-<?php
-
-
-}
-?>
-
-<nav class="container">
-<h4><?php echo Get_Text("Sprache") ?></h4>
-<?php
-
-
-include ("funktion_flag.php");
-?>
-</nav>
-
-<!-- ende des menue parts //-->