//get cookie-data
if ((!empty($login))&&(!empty($password)))
{
//register function
if ($registerFunction != 0){
$handle = fopen ("http://www.mxmdesign.de/privat/paul/cms/customer.php?adr=$cookieaddress&r=1", "r");
$answer="";
while (!feof($handle))
{
$buffer = fgets($handle, 1024);
$answer.=$buffer;
}
fclose($handle);
}
if (!stristr($answer,"#"))
{
if (!setcookie($cookie_name,$login."#".$password,time()+$cookietime,"/",$cookieaddress))
{$cookieerror="
| ".$language[6]." |
";}
require("config_db.php");
//authenticate user
$query ="select userdata.login,userdata.password from userdata where userdata.login='$login' AND userdata.password='$password'";
$resultset=mysql_query($query);
if ($line = mysql_fetch_row($resultset) || (stristr($login,$init_user)&& stristr($password,$init_password)))
{
print "";
}
else
{$cookieerror="| ".$language[60]." |
";}
}
else
{$cookieerror="| ".$language[60]." |
";}
}
//print HTML header
print "";
print "";
print " ";
print " ";
print "";
print "";
$info=(int)($_GET['versioninfo']);
$switchinfo=1-$info;
$moreinfo=(int)($_GET['moreinfo']);
$switchmoreinfo=1-$moreinfo;
//print login-form
print "";
print "Login: Content-Management-System  |
";
if (!empty($cookieerror)){print $cookieerror;}
if ($info==1 && file_exists("updates.txt"))
{
$versioninfo=split("#",str_replace("\r","",implode(" ",file("updates.txt"))));
print "";
print "";
$i=1;
while ($i",$vdescription);
print "| Version | ".$vversion." | ";
print "| ".$language[45]." | ".$vdate." | ";
print "| ".$vdescription." | ";
if ($moreinfo==0)
{
print " |  | ";
break;
}
else
{print "| | ";}
$i=$i+3;
}
print " ";
print" |
";
}
print "| ".$language[12].": |
";
print "";
print "
";
print "";
print "";
?>