Fragebogen/topframe.php
2024-02-29 14:16:21 +01:00

38 lines
888 B
PHP
Executable File

<?php
include("aespa/datenbankanbindung.php"); // f&uuml;gt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
if(isset($_COOKIE["uid1"])){
$uid=$_COOKIE["uid1"];
}else{
$uid='';
}
if($uid == "")
{
echo "Bitte melden Sie sich erst am System an!";
exit;
}
$db = dbconnect();
$datum=date("Y-m-d H:i:s");
$ip=getenv("REMOTE_ADDR");
$result_1 = $db->query("INSERT INTO aesp_userlog (Datum, IP, uid) VALUES ('$datum', '$ip', '$uid')");
// Ende Log Datei
echo"
<html>
<head>
<link rel=\"stylesheet\" href=\"styles_pc.css\" type=\"text/css\">
<meta http-equiv=\"Content-Language\" content=\"de\">
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
<title>Leitgedanken</title>
<base target=\"Inhalt\">
</head>
<body class=\"farbe\">
<p class=\"titel\"><b>AESPA Online</b></p>
</body>
</html>";
?>