Hallo,
Ich habe ein LOGIN script aus dem I-Net, das Problem ist das dieser Script nun Sehr lange braucht um zu laden (30 sec)
Kann ich das irgendwie verschnellern?
Quellcode:
Danke
LG
Ich habe ein LOGIN script aus dem I-Net, das Problem ist das dieser Script nun Sehr lange braucht um zu laden (30 sec)
Kann ich das irgendwie verschnellern?
Quellcode:
PHP:
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>Acery World...Die Community für Gamer,Programmierer und
Grafiker</title>
<style type="text/css">
body, html {
height:100%;
}
body {
background-color:#86c9ef;
background-image:url('http://acery-web.cwsurf.de/images/bb_1.png');
background-position:center;
background-repeat:no-repeat;
}
</style>
</head>
<body
style="margin-top: 0px; height: 546px; margin-left: 144px; width: 716px;">
<br>
<img style="width: 200px; height: 55px;" alt="Acery World"
src="http://acery-web.cwsurf.de/images/logo.png"><br>
<span style="color: rgb(102, 102, 102);"> </span><span
style="font-family: Arial; color: rgb(102, 102, 102);">
Home Games News
Chat Tutorials</span> <span
style="color: rgb(102, 102, 102); font-family: Arial;">Uploader</span><br
style="color: rgb(153, 153, 153); font-family: Arial;">
<br>
<?php
session_start();
// Check if he wants to login:
if (!empty($_POST[username]))
{
require_once("connect.php");
// Check if he has the right info.
$query = mysql_query("SELECT * FROM members
WHERE username = '$_POST[username]'
AND password = '$_POST[password]'")
or die ("Error - Couldn't login user.");
$row = mysql_fetch_array($query)
or die ("Error - Couldn't login user.");
if (!empty($row[username])) // he got it.
{
$_SESSION[username] = $row[username];
echo "Welcome $_POST[username]! You've been successfully logged in.";
exit();
}
else // bad info.
{
echo "Error - Couldn't login user.<br /><br />
Please try again.";
exit();
}
}
?>
<form action="login.php" method="post">
<table width="75%" border="1" align="center" cellpadding="3" cellspacing="1">
<tr>
<td width="100%"><h5>Login</h5></td>
</tr>
<tr>
<td width="100%"><label>Username: <input type="text" name="username" size="25" value="<? echo $_POST[username]; ?>"></label></td>
</tr>
<tr>
<td width="100%"><label>Password: <input type="password" name="password" size="25" value=""></label></td>
</tr>
<tr>
<td width="100%"><input type="submit" value="Login!"></td>
</tr>
</table>
</form>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<form action="non" name="footer"><span
style="color: rgb(102, 102, 102); font-family: Arial;"> <small>
<small>©2010-2011 Acery Web </small></small></span><b
style="color: rgb(102, 102, 102); font-family: Arial;"><small><small>Alle
Rechte vorbehalten</small> </small>
Kontakt <a
style="color: rgb(102, 102, 102);" href="impressum.html">Impressum</a>
</b></form>
</body>
</html>
Danke
LG