include ("./inc/config.php"); include ("./inc/db.php"); include ("./inc/funktion_lang.php"); include("./inc/funktion_menu.php"); session_start(); include ("./inc/secure.php"); /*if ( (!IsSet($_SESSION['UID'])) && (strstr ($_SERVER['PHP_SELF'], "nonpublic") !="" ) ) { header("Location: https://".$_SERVER['HTTP_HOST'].$ENGEL_ROOT); exit (); } // Ende Rechte f. Nonpublic'*/ if( !isset($_SESSION['IP'])) $_SESSION['IP'] = $_SERVER['REMOTE_ADDR']; if (IsSet($_SESSION['UID']) and ($_SESSION['IP'] <> $_SERVER['REMOTE_ADDR'])) { header("Location: https://".$_SERVER['HTTP_HOST'].$ENGEL_ROOT); } include ("./inc/UserCVS.php"); //UPdate LASTlogin if( isset($_SESSION['UID'])) { $SQLlastLogIn = "UPDATE `User` SET ". "`lastLogIn` = '". gmdate("Y-m-j H:i:s", time()). "'". " WHERE `UID` = '". $_SESSION['UID']. "' LIMIT 1;"; mysql_query ($SQLlastLogIn, $con); } echo "\n"; ?>
echo "
//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 "
". Get_Text("pub_messages_new1").
" ". mysql_num_rows( $erg ). " ".
Get_Text("pub_messages_new2"). "
";
}
?>
|