config cleanup, removed unused files

This commit is contained in:
Philip Häusler 2011-06-03 16:30:00 +02:00
parent 7a6f4b2750
commit 7bee3ce4d2
5 changed files with 3 additions and 147 deletions

View File

@ -23,9 +23,6 @@ $LETZTES_AUSTRAGEN=3;
$crypt_system="md5"; $crypt_system="md5";
//$crypt_system="crypt"; //$crypt_system="crypt";
// the archangels
$arch_angels="fnord";
// timezonen offsett // timezonen offsett
$gmdateOffset=3600; $gmdateOffset=3600;

View File

@ -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 "";
}
?>

View File

@ -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 //-->

View File

@ -1,4 +1,7 @@
<?php <?php
// Momentan keine Avatar-Funktionen
die();
require_once ('bootstrap.php'); require_once ('bootstrap.php');
include "config/config.php"; include "config/config.php";

View File

@ -1,12 +0,0 @@
<?php
require_once ('bootstrap.php');
$title = "Index";
$header = "Lageplan";
include "includes/header.php";
echo "<p>" . Get_Text("lageplan_text1") . "</p>";
echo "<p><img src=\"./pic/lageplan/lageplan.jpg\" alt=\"\" />";
include "includes/footer.php";
?>