session_name('NDSID'); session_cache_limiter('anzeiger'); session_cache_expire(30); session_start(); echo $NDSID; require("system/register_global.php"); require("config/data.php"); if($refid) { $_SESSION["refid"] = $refid;} if($parefid) { $_SESSION["parefid"] = $parefid; } echo "
";
print_r($_SESSION);
include("system/zahlungen.php");
include("system/rechnungsstatus.php");
if($anzeigenpower=="off")
{
echo "
$anzeigenpowertext";
exit;
}
if($ac=="logout")
{
mysql_query("DELETE FROM $user_online_db WHERE seid='$NDSID'");
session_destroy();
$logoutmeldung="
Sie wurden erfolgreich ausgeloggt";
}
if($login=="go")
{
$member1="SELECT * FROM $user_db WHERE username='".$_REQUEST["username"]."' AND passwd='".$_REQUEST["passwd"]."' AND userstatus='1'";
$member=mysql_query($member1, $db);
$numofrows = mysql_num_rows($member);
if($numofrows)
{
$username =$_REQUEST["username"];
$passwd =$_REQUEST["passwd"];
$_SESSION["username"] = $username;
$_SESSION["passwd"] = $passwd;
mysql_query("UPDATE $user_online_db SET username = '$username' WHERE seid='".$NDSID."'");
mysql_query("UPDATE $user_db SET letztesdatum = '$date' WHERE username='$username'");
$timestamp = time();
$datum=date("d.m.Y H:i:s",$timestamp);
$ip=getenv("REMOTE_ADDR");
$host=gethostbyaddr($ip);
$query = "INSERT INTO $log_db (username, datum, ip, host) VALUES ('$username', '$datum', '$ip', '$host')";
$result = mysql_query($query,$db);
}
}
?>