wcf.regNote.message

|
|
PHP Source code |
1 2 3 4 5 6 7 8 9 |
echo "<div class='login'>";
include("./login/login.php");
</div>
if ($section=='checklogin')
{
include("checklogin.php");
}
|
|
|
PHP Source code |
1 2 3 4 5 6 7 8 9 |
<?
echo "<div align='right'><table>
<form method='post' action='index.php?section=checklogin'>
<tr><td> <input type='text' size='18' maxsize='20' name='username' value='nickname'></td></tr>
<tr><td> <input type='password' size='18' maxsize='20' name='userpw' value='nickname'></td></tr>
<tr><td> <input type='image' src='./images/login/login.jpg' name='Submit'> <a href='lostpw.php'><img border='0' src='./images/login/pw.jpg'></a></td></tr>
</table>
</form></div>";
?>
|
|
|
PHP Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
<?
session_start();
$sql="Select * from accounts where nick='$username' and passwort='$userpw' order by nr";
$result=mysql_db_query($db, $sql);
$row=mysql_num_rows($result);
if ($row>0)
{
if ($_SESSION["login"]="true")
{
$login='true';
session_register("$login");
}
echo "<br>eingeloggt als $username .<br>";
echo "<a href='index.php'>Weiter</a>";
}
else
{
$_SESSION["login"]="false";
$SESSION="false";
echo "<meta http-equiv='refresh' content='1; URL=index.php?section=home'>";
echo "Logindaten sind falsch! bitte versuche es erneut!<br>";
echo "<a href='index.php?section=news'>wenn die automatische Weiterleitung nicht funktioniert bitte hier klicken!</a>";
}
?>
|



|
|
PHP Source code |
1 |
echo "<a href='index.php".SID."'>Weiter</a>";
|




... leider ist das design nicht von mir... 

|
|
PHP Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
<?
if ($_SESSION['login']==false)
{
echo "<div align='right'><table>
<form method='post' action='index.php?section=checklogin'>";
?>
<tr><td> <input type='text' size='18' maxsize='20' name='username' value='nickname' onFocus="if (this.value == this.defaultValue) this.value='';" onBlur="if (this.value == '') this.value=this.defaultValue;" ></td></tr>
<tr><td> <input type='password' size='18' maxsize='20' name='userpw' value='nickname' onFocus="if (this.value == this.defaultValue) this.value='';" onBlur="if (this.value == '') this.value=this.defaultValue;" ></td></tr>
<?
echo" <tr><td> <input type='image' src='./images/login/login.jpg' name='Submit'> <a href='index.php?section=lostpw'><img border='0' src='./images/login/pw.jpg'></a></td></tr>
<tr>
<td colspan=2>
<a href='index.php?section=register'><img border='0' src='./images/login/register.jpg'></a>
</td>
</tr>
</table>
</form></div>";
}
else
{
echo "<b>logged in as ";echo $_SESSION['username'];echo"</b>";
echo "<br><a href='./index.php?section=logout'>logout</a>";
}
?>
|
|
|
PHP Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
<?
$crypteduserpw=md5($userpw);
$sql="Select * from accounts where nick='$username' and passwort='$crypteduserpw'";
$result=mysql_db_query($db, $sql);
$row=mysql_num_rows($result);
if ($row>0)
{
$aktiviert=mysql_result($result,0,"aktiviert");
$email=mysql_result($result,0,"email");
if ($aktiviert=='1')
{
$_SESSION['login']=true; //login = true
$_SESSION['username']=$username;
$_SESSION['email']=$email;
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>";
echo " <tr>";
echo " <td height='27' background='./images/main/news_top.jpg'> <b>Login - Check</b></td>";
echo " </tr>";
echo " <tr>";
echo " <td background='./images/main/news_middle.jpg'>";
echo "<table width='99%' border='0' cellpadding='0' cellspacing='2' align='center'>";
echo "<tr><td><br>";
echo "<table><tr><td>";
echo "Erfolgreich Eingeloggt! Willkommen <b>"; echo $_SESSION['username'];
echo"</b>!<br>Du wirst sofort weitergeleitet oder klicke ";
echo "<a href='index.php?'>hier</a>";
echo "</td></tr></table>";
echo "<META CONTENT='1;URL=index.php?' HTTP-EQUIV='refresh'>";
echo "<br> </td></tr></table>";
echo " </td>";
echo " </tr>";
echo " <tr>";
echo " <td height='29' background='./images/main/news_ending.jpg'> </div></td>";
echo " </tr>";
echo "</table>";
echo "<br><br>";
}
else
{
echo "Bitte erst aktivieren!";
}
}
else
{
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>";
echo " <tr>";
echo " <td height='27' background='./images/main/news_top.jpg'> <b>Falsche Eingabe</b></td>";
echo " </tr>";
echo " <tr>";
echo " <td background='./images/main/news_middle.jpg'>";
echo "<table width='99%' border='0' cellpadding='0' cellspacing='2' align='center'>";
echo "<tr><td><br>";
$_SESSION['login']=false;
echo "<meta http-equiv='refresh' content='1; URL=index.php?section=home'>";
echo "Logindaten sind falsch! bitte versuche es erneut!<br>";
echo "<a href='index.php?section=news'>wenn die automatische Weiterleitung nicht funktioniert bitte hier klicken!</a>";
echo "<br> </td></tr></table>";
echo " </td>";
echo " </tr>";
echo " <tr>";
echo " <td height='29' background='./images/main/news_ending.jpg'> </div></td>";
echo " </tr>";
echo "</table>";
echo "<br><br>";
}
?>
|

This post has been edited 2 times, last edit by "flo" (Jul 25th 2005, 6:13pm)