2005-11-30 23:13:38 +01:00
|
|
|
|
<?PHP
|
2005-09-10 19:25:43 +02:00
|
|
|
|
include ("./inc/config.php");
|
2006-12-01 16:20:38 +01:00
|
|
|
|
include ("./inc/error_handler.php");
|
2006-11-23 18:39:05 +01:00
|
|
|
|
include ("./inc/config_db.php");
|
2005-09-10 19:25:43 +02:00
|
|
|
|
include ("./inc/funktion_lang.php");
|
2006-04-19 19:29:11 +02:00
|
|
|
|
include ("./inc/funktion_menu.php");
|
2006-08-29 15:46:38 +02:00
|
|
|
|
|
|
|
|
|
if( !isset($_SESSION))
|
|
|
|
|
session_start();
|
2005-09-10 19:25:43 +02:00
|
|
|
|
include ("./inc/secure.php");
|
|
|
|
|
|
2005-11-06 18:59:03 +01:00
|
|
|
|
if( !isset($_SESSION['IP']))
|
|
|
|
|
$_SESSION['IP'] = $_SERVER['REMOTE_ADDR'];
|
|
|
|
|
|
2005-09-10 19:25:43 +02:00
|
|
|
|
if (IsSet($_SESSION['UID']) and ($_SESSION['IP'] <> $_SERVER['REMOTE_ADDR']))
|
|
|
|
|
{
|
2006-11-10 19:23:04 +01:00
|
|
|
|
session_destroy ();
|
|
|
|
|
header("Location: $url". substr($ENGEL_ROOT,1) );
|
2005-09-10 19:25:43 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
include ("./inc/UserCVS.php");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//UPdate LASTlogin
|
|
|
|
|
if( isset($_SESSION['UID']))
|
|
|
|
|
{
|
|
|
|
|
$SQLlastLogIn = "UPDATE `User` SET ".
|
2005-11-09 18:51:20 +01:00
|
|
|
|
"`lastLogIn` = '". gmdate("Y-m-j H:i:s", time()). "'".
|
2005-09-10 19:25:43 +02:00
|
|
|
|
" WHERE `UID` = '". $_SESSION['UID']. "' LIMIT 1;";
|
|
|
|
|
mysql_query ($SQLlastLogIn, $con);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
|
|
|
|
|
?>
|
|
|
|
|
<HTML>
|
|
|
|
|
<HEAD>
|
2005-11-30 23:13:38 +01:00
|
|
|
|
<?PHP
|
2006-08-31 07:22:05 +02:00
|
|
|
|
|
|
|
|
|
$Version = "";
|
|
|
|
|
|
|
|
|
|
if( is_readable( "./inc/.svn/entries"))
|
|
|
|
|
{
|
|
|
|
|
$file = fopen( "./inc/.svn/entries", "r");
|
|
|
|
|
while(!feof($file))
|
|
|
|
|
if( strpos( ($temp = fgets($file)) , "revision" ) ) $Version = $temp;
|
|
|
|
|
fclose( $file);
|
|
|
|
|
|
|
|
|
|
$start = strpos( $Version, "=\"")+2;
|
|
|
|
|
$len = strpos( $Version, "\"/") - $start;
|
|
|
|
|
$Version = "(r ". substr( $Version, $start, $len ). ")";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
echo "<TITLE>--- $title $Version ---</TITLE>";
|
2005-09-10 19:25:43 +02:00
|
|
|
|
?>
|
|
|
|
|
<meta name="keywords" content="Engel, Himmelsverwaltung">
|
|
|
|
|
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
|
|
|
|
|
<meta http-equiv="Content-Style-Type" content="text/css">
|
|
|
|
|
<meta http-equiv="expires" content="0">
|
|
|
|
|
<meta name="robots" content="index">
|
|
|
|
|
<meta name="revisit-after" content="1 days">
|
|
|
|
|
<meta http-equiv="content-language" content="de">
|
2005-11-30 23:13:38 +01:00
|
|
|
|
<link rel=stylesheet type="text/css" href="./inc/css/style<?PHP
|
|
|
|
|
if (!IsSet($_SESSION['color']))
|
|
|
|
|
echo "1";
|
|
|
|
|
else
|
|
|
|
|
echo $_SESSION['color'];
|
|
|
|
|
?>.css">
|
|
|
|
|
<?PHP
|
2005-09-10 19:25:43 +02:00
|
|
|
|
if (isset($reload)) {
|
|
|
|
|
if ($reload=="") $reload=3330;
|
|
|
|
|
echo "\n<meta http-equiv=\"refresh\" content=\"".$reload.
|
|
|
|
|
"; URL=./?reload=".$reload."\">\n";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (isset($Page["AutoReload"])) {
|
|
|
|
|
echo "\n<meta http-equiv=\"refresh\" content=\"". $Page["AutoReload"].
|
|
|
|
|
"; URL=". substr($url, 0, strlen($url)-1). $ENGEL_ROOT. $Page["Name"]."\">\n";
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
</HEAD>
|
|
|
|
|
<BODY>
|
2005-11-30 23:13:38 +01:00
|
|
|
|
<?PHP
|
2005-12-25 06:50:08 +01:00
|
|
|
|
|
|
|
|
|
if( isset($SystemDisableMessage))
|
|
|
|
|
if( strlen($SystemDisableMessage)>0)
|
|
|
|
|
{
|
|
|
|
|
echo $SystemDisableMessage;
|
|
|
|
|
echo "\n\n<BODY>\n</HTML>";
|
|
|
|
|
die();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-09-10 19:25:43 +02:00
|
|
|
|
if( !isset($Page["ShowTabel"]) ) $Page["ShowTabel"]="Y";
|
|
|
|
|
if( $Page["ShowTabel"]=="Y" )
|
|
|
|
|
{
|
|
|
|
|
//############################### ShowTable Start ##############################
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
<div align="center">
|
2005-11-30 23:13:38 +01:00
|
|
|
|
<a name="#top"><img src="./inc/himmel<?PHP if( isset($_SESSION['color']))
|
2005-11-06 18:59:03 +01:00
|
|
|
|
if ($_SESSION['color']==6) echo "_w"; ?>.png" alt="Unser Himmel"></a>
|
2005-09-10 19:25:43 +02:00
|
|
|
|
<p>
|
2005-11-30 23:13:38 +01:00
|
|
|
|
<?PHP
|
2005-11-30 00:51:32 +01:00
|
|
|
|
//ausgabe new message
|
|
|
|
|
if( isset($_SESSION['CVS']["nonpublic/messages.php"]))
|
|
|
|
|
if( $_SESSION['CVS']["nonpublic/messages.php"] == "Y")
|
|
|
|
|
{
|
|
|
|
|
$SQL = "SELECT `Datum` FROM `Messages` WHERE `RUID`=". $_SESSION["UID"]. " AND `isRead`='N'";
|
|
|
|
|
$erg = mysql_query($SQL, $con);
|
|
|
|
|
if( mysql_num_rows( $erg ) > 0 )
|
|
|
|
|
echo "<br><a href=\"". $url. substr($ENGEL_ROOT, 1).
|
|
|
|
|
"nonpublic/messages.php\">". Get_Text("pub_messages_new1").
|
|
|
|
|
" ". mysql_num_rows( $erg ). " ".
|
|
|
|
|
Get_Text("pub_messages_new2"). "</a><br><br>";
|
|
|
|
|
}
|
|
|
|
|
?>
|
2005-09-10 19:25:43 +02:00
|
|
|
|
<table width="95%" align="center" border="0" cellpadding="7" cellspacing="0">
|
|
|
|
|
<tr>
|
2005-11-30 23:13:38 +01:00
|
|
|
|
<?PHP
|
2005-11-30 00:51:32 +01:00
|
|
|
|
//ausgaeb Menu
|
2005-11-21 19:45:08 +01:00
|
|
|
|
if( !isset($_SESSION['Menu'])) $_SESSION['Menu'] = "L";
|
|
|
|
|
if( $_SESSION['Menu'] =="L") include("./inc/menu.php");
|
|
|
|
|
?>
|
2005-11-30 00:51:32 +01:00
|
|
|
|
|
2005-09-10 19:25:43 +02:00
|
|
|
|
<td valign="top" align="center">
|
|
|
|
|
<table border="0" width="100%" align="center" class="border" cellpadding="5" cellspacing="1">
|
|
|
|
|
<tr class="contenttopic">
|
|
|
|
|
<td>
|
2005-11-30 23:13:38 +01:00
|
|
|
|
<?PHP
|
2005-09-10 19:25:43 +02:00
|
|
|
|
echo "\t<a name=\"#$header\" class=\"contenttopic\">";
|
2005-11-17 01:08:10 +01:00
|
|
|
|
if( strlen( $header) == 0 )
|
2005-09-10 19:25:43 +02:00
|
|
|
|
echo "\n\t<b>". Get_Text($Page["Name"]). "</b></a>\n";
|
|
|
|
|
else
|
|
|
|
|
echo "\n\t<b>$header</b></a>\n";
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr class="content">
|
|
|
|
|
<td>
|
|
|
|
|
<br>
|
|
|
|
|
<?php
|
|
|
|
|
echo "\n\n\n";
|
|
|
|
|
|
|
|
|
|
if (IsSet($_SESSION['UID'])) {
|
2005-11-06 01:44:48 +01:00
|
|
|
|
if( isset($_SESSION['oldurl']))
|
|
|
|
|
$BACKUP_SESSION_OLDURL = $_SESSION['oldurl'];
|
|
|
|
|
if( isset($_SESSION['newurl']))
|
|
|
|
|
$_SESSION['oldurl'] = $_SESSION['newurl'];
|
|
|
|
|
$_SESSION['newurl'] = $_SERVER["REQUEST_URI"];
|
2005-09-10 19:25:43 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//############################### ShowTable Start ##############################
|
|
|
|
|
} /* if (ShowTabel....*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function SetHeaderGo2Back ()
|
|
|
|
|
{
|
|
|
|
|
global $BACKUP_SESSION_OLDURL;
|
|
|
|
|
$_SESSION['oldurl'] = $BACKUP_SESSION_OLDURL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-11-23 21:51:39 +01:00
|
|
|
|
if ( $Page["CVS"] != "Y" )
|
|
|
|
|
{
|
2005-09-10 19:25:43 +02:00
|
|
|
|
echo "Du besitzt kein Rechte f<>r diesen Bereich.<br>\n";
|
|
|
|
|
If (IsSet($_SESSION['oldurl']))
|
2005-11-23 21:51:39 +01:00
|
|
|
|
echo "<a href=\"". $_SESSION["oldurl"]. "\">".Get_Text("back")."</a> geht's zurück...\n";
|
2005-09-10 19:25:43 +02:00
|
|
|
|
else
|
2005-11-23 21:51:39 +01:00
|
|
|
|
echo "<a href=\"". $url. substr($ENGEL_ROOT, 0, -1 )."\">".Get_Text("back")."</a> geht's zurück...\n";
|
2005-09-10 19:25:43 +02:00
|
|
|
|
exit ();
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ende des header parts //-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|