tco99
17-01-2004, 20:04
Bis heute habe ich nie daran gedacht das sowas möglich wäre.
Im NN und mozilla funzt alles ordnungsgemäß im IE und Opera nicht.
DAs komische ist der PHP-Code funzt da nicht
probieren könnt ihr das hier (http://www.grooy.html-kurse.com/index.php?id=3&page=index) (loggt euch mal mit dem nick test und dem pw 12 ein (verwendet verschiedne Browser))
der Code
<?php
include "config.php";
include "db.php";
include "_funktionen.php";
session_start();
if (isset($_POST['login'])){
$query = mysql_query("SELECT * FROM `member`");
while($member = mysql_fetch_array($query)){
if ($_POST['nick'] == $member['nick'] && $_POST['passwort']== $member['passwort']){
$nick = $_POST['nick']."&&".$member['rang'];
session_register("nick");
unset($_POST['login']);
}
}
}
if ($HTTP_SESSION_VARS["nick"]){
$login_name = explode("&&", $HTTP_SESSION_VARS["nick"]);
for($i=0; $i<=count($rang); $i++){
$rechte = ($i == $login_name[1])? $rang[$i]."-Rechte": $rechte;
}
$login = 1;
}
else
unset($login);
?>
<html>
<head>
<title>index</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="design/style.css" type="text/css">
<script language="Javascript">
<!--
window.name="main";
//-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="1024" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="26">
<img src="images/index_01.gif" width="1024" height="10" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="10" alt="" /></td>
</tr>
<tr>
<form action="" method="post">
<td colspan="20" rowspan="4">
<img src="images/index_02.gif" width="770" height="60" alt="" /></td>
<td style="width:29px; height:17px;"> <!-- Absende Button-->
<input type="Image" src="images/index_03.gif" name="login" value="login" /></td>
<td colspan="2" rowspan="2">
<img src="images/index_04.gif" width="2" height="22" alt=""/></td>
<td style="background-color:4E7778;width:99px; height:17px;">
<input type="Text" name="nick" value="Nick" style="background-color:4E7778;width:99px; height:15px; vertical-align:top; color:#A6AEB7; font-size:10px; border:0px;"></td> <!--Nick -->
<td colspan="2" rowspan="8">
<img src="images/index_06.gif" width="124" height="174" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="17" alt="" /></td>
</tr>
<tr>
<td rowspan="7">
<img src="images/index_07.gif" width="29" height="157" alt="" /></td>
<td>
<img src="images/index_08.gif" width="99" height="5" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="5" alt="" /></td>
</tr>
<tr>
<td rowspan="6">
<img src="images/index_09.gif" width="1" height="152" alt="" /></td>
<td colspan="2" style="background-color:4E7778;width:100px; height:17px;">
<input type="password" name="passwort" value="Passwort" style="background-color:4E7778;width:100px; height:15px; vertical-align:top; color:#A6AEB7; font-size:10px; border:0px;"></td> <!-- Passwort--></form>
<td>
<img src="images/spacer.gif" width="1" height="17" alt="" /></td>
</tr>
<tr>
<td colspan="2" rowspan="5" style="background-image:url(images/index_11.gif); background-repeat:no;" id="CP">
<div><?
if ($login){
print "Eingelogt als <b>".$login_name[0]."</b><br>";
print "Du hast <a href=\"index.php?id=9\">".$rechte."</a>";
}
print $_POST['nick'].$_POST['passwort'];
?> </div>
</td>
[...]
Nochmal im NN und Mozilla funzt es!!!!!!!!!
Im NN und mozilla funzt alles ordnungsgemäß im IE und Opera nicht.
DAs komische ist der PHP-Code funzt da nicht
probieren könnt ihr das hier (http://www.grooy.html-kurse.com/index.php?id=3&page=index) (loggt euch mal mit dem nick test und dem pw 12 ein (verwendet verschiedne Browser))
der Code
<?php
include "config.php";
include "db.php";
include "_funktionen.php";
session_start();
if (isset($_POST['login'])){
$query = mysql_query("SELECT * FROM `member`");
while($member = mysql_fetch_array($query)){
if ($_POST['nick'] == $member['nick'] && $_POST['passwort']== $member['passwort']){
$nick = $_POST['nick']."&&".$member['rang'];
session_register("nick");
unset($_POST['login']);
}
}
}
if ($HTTP_SESSION_VARS["nick"]){
$login_name = explode("&&", $HTTP_SESSION_VARS["nick"]);
for($i=0; $i<=count($rang); $i++){
$rechte = ($i == $login_name[1])? $rang[$i]."-Rechte": $rechte;
}
$login = 1;
}
else
unset($login);
?>
<html>
<head>
<title>index</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="design/style.css" type="text/css">
<script language="Javascript">
<!--
window.name="main";
//-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="1024" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="26">
<img src="images/index_01.gif" width="1024" height="10" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="10" alt="" /></td>
</tr>
<tr>
<form action="" method="post">
<td colspan="20" rowspan="4">
<img src="images/index_02.gif" width="770" height="60" alt="" /></td>
<td style="width:29px; height:17px;"> <!-- Absende Button-->
<input type="Image" src="images/index_03.gif" name="login" value="login" /></td>
<td colspan="2" rowspan="2">
<img src="images/index_04.gif" width="2" height="22" alt=""/></td>
<td style="background-color:4E7778;width:99px; height:17px;">
<input type="Text" name="nick" value="Nick" style="background-color:4E7778;width:99px; height:15px; vertical-align:top; color:#A6AEB7; font-size:10px; border:0px;"></td> <!--Nick -->
<td colspan="2" rowspan="8">
<img src="images/index_06.gif" width="124" height="174" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="17" alt="" /></td>
</tr>
<tr>
<td rowspan="7">
<img src="images/index_07.gif" width="29" height="157" alt="" /></td>
<td>
<img src="images/index_08.gif" width="99" height="5" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="5" alt="" /></td>
</tr>
<tr>
<td rowspan="6">
<img src="images/index_09.gif" width="1" height="152" alt="" /></td>
<td colspan="2" style="background-color:4E7778;width:100px; height:17px;">
<input type="password" name="passwort" value="Passwort" style="background-color:4E7778;width:100px; height:15px; vertical-align:top; color:#A6AEB7; font-size:10px; border:0px;"></td> <!-- Passwort--></form>
<td>
<img src="images/spacer.gif" width="1" height="17" alt="" /></td>
</tr>
<tr>
<td colspan="2" rowspan="5" style="background-image:url(images/index_11.gif); background-repeat:no;" id="CP">
<div><?
if ($login){
print "Eingelogt als <b>".$login_name[0]."</b><br>";
print "Du hast <a href=\"index.php?id=9\">".$rechte."</a>";
}
print $_POST['nick'].$_POST['passwort'];
?> </div>
</td>
[...]
Nochmal im NN und Mozilla funzt es!!!!!!!!!

