Bevor ich nochmal ein Thread aufmache, schreibe ich es hier gleich mit rein:
Wenn ich die alte Header Datei von meiner Community hochlade, kann ich mich richtig Registrieren & Einloggen... Lade ich aber die aktuelle Header Datei hoch, kann ich mich nicht mehr Einloggen es steht zwar Fehler aber irgendwas ist falsch. Habe beide Dateien schon verglichen... aber wo der Fehler liegt - Keine Ahnung...
Neue Header Datei:
PHP:
<? session_start();?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<html>
<body>
<div align="center">
<table><tr><td>
<?
$domain = "http://".$_SERVER['SERVER_NAME'];
?>
<?
$username_session = (isset($_SESSION['username'])) ? $_SESSION['username'] : null;
if ($username_session !== null) {
include("connect.inc.php");
include("inc/onlinestatus.inc.php");
include("inc/status.inc.php");
$usernasme_session = $_SESSION["username"];
$username_get = $_GET["username"];
if($username_session == $username_get){$s = "mp";}
###################User Daten###########################
$abfrage_ud = "SELECT * FROM member WHERE username = '$username_session'";
$ergebnis_ud = mysql_query($abfrage_ud);
$user_daten = mysql_fetch_object($ergebnis_ud) ;
}
?>
<title>WakeStars</title>
<script type="text/javascript" src="<?echo $domain;?>/design/JS.js"></script>
<script type="text/javascript" src="<?echo $domain;?>/design/bbcode.js"></script>
<script type="text/javascript" src="<?echo $domain;?>/design/suche_username.js"></script>
<link rel="stylesheet" type="text/css" href="<?echo $domain;?>/design/standart.css">
<meta name="description"
content="WakeStars" />
<meta name="keywords"
content="WakeStars.de" />
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Language" content="de" />
<meta name="verify-v1"
content="d+qBg9z9e+hzbIvwRCnCFpYwmxsFxFFywTaRCtIQiMs=" />
<meta name="google-site-verification"
content="z0mDMDpmPpStyFlwo6F1e0ttfm14vSXJBM6frf6vjP8" />
<meta name="robots" content="INDEX" />
<link href="<?echo $domain;?>/design/style.php"
rel="stylesheet" type="text/css" />
<link href="<?echo $domain;?>/design/template.css"
rel="stylesheet" type="text/css" />
<link rel="shortcut icon"
href="<?echo $domain;?>/favicon.ico"
type="image/x-icon" />
<link rel="alternate" type="application/rss+xml"
title="Galerie Feed"
href="<?echo $domain;?>/RSS/galerie.php" />
</script>
<style type="text/css">
<!--
#ft-title-ft{
font-weight:normal;
padding:5px;
width:458px;
color:#D3D600;
font-size:11px;
}
#ft-title-ft a{
color:#FFF;
font-size:15px;
}
#ft-title-ft a:hover{
text-decoration: underline;
curser: pointer;
}
-->
a, img { border: 0px none; }
</style>
</head>
<body>
<div id="zentrierer" style="display: none;">
</div>
<div id="header">
<div class="bildHochladen"><a
href="<?echo $domain;?>/Bild-hochladen.php"
class="icona">
<img
src="<?echo $domain;?>/icon_header/icon_plus.gif"
alt="Bild hochladen" width="16" height="16" /></a>
<ul class="bildHochladenDown round">
<li>
<a class="pict"
href="<?echo $domain;?>/Bild-hochladen.php" style="text-decoration: none">Bild
hochladen</a></li>
<li>
<a
href="<?echo $domain;?>/Tutorial-hochladen.php" style="text-decoration: none">Tutorial
hochladen</a></li>
<li>
<a
href="<?echo $domain;?>/Download-hochladen.php" style="text-decoration: none">Download
hochladen</a></li>
<li>
<a
href="<?echo $domain;?>/Anzeige-aufgeben.php" style="text-decoration: none">Inserat
verfassen</a></li>
<li>
<a href="<?echo $domain;?>/Blog/eintragen.php" style="text-decoration: none">Blogeintrag
verfassen</a></li>
</ul>
</div>
<div class="dn icona"><span class="dnHide"><strong>
<a href="login/">Login</a></strong></span><a class="icona" style="margin-top: 0pt;" target="_blank" href="<?echo $domain;?>/login/"><img
src="<?echo $domain;?>/icon_header/icon_key.gif"
alt="Login" width="16" height="16" /></a></div>
<div class="dn icona"><span style="margin-left: -30px;"
class="dnHide"><strong><a href="<?echo $domain;?>/anmelden/">Kostenlos
registrieren</a></strong></span><a
href="<?echo $domain;?>/Anmelden/"
style="margin-top: 0pt;" class="icona"><img
src="<?echo $domain;?>/icon_header/icon_profil.gif"
alt="Registrieren" width="16" height="16" /></a></div>
<a href="register">
<img
src="<?echo $domain;?>/icon_header/logo.gif"
class="logo" alt="WakeStars" width="180" height="36" /></a>
<br class="clear" />
</div>
<div id="navigation" class="round">
<form name="dieSuche" class="search"
action="<?echo $domain;?>/Suchen.php"
method="post">
<input name="suche" class="field"
value="" type="text" size="20" />
<input alt="Absenden"
src="<?echo $domain;?>/icon_header/icon_search.gif"
class="button" type="image" width="33" height="23" /> </form>
<div class="bildHochladen"><a
href="Forum" class="navi sonst">
<img
src="<?echo $domain;?>/icon_header/icon_more.gif"
alt="Tutorials" style="margin-top: 6px;" width="11" height="7" /> </a>
<ul style="margin-left: -107px;"
class="bildHochladenDown round">
<li><a class="extra forums"
href="<?echo $domain;?>/Forum">Forum</a></li>
<li><a class="extra tut"
href="<?echo $domain;?>/tutorials.php">Tutorials</a></li>
<li><a class="extra down"
href="<?echo $domain;?>/downloads.php">Downloads</a></li>
<li><a class="extra markt"
href="<?echo $domain;?>/marktplatz.php">Marktplatz</a></li>
</ul>
</div>
<?php if ($username_session !== null) { ?>
<!-- Eingeloggter Bereich -->
<a class="navi wallpaper" href="<?echo $domain;?>/Test/" style="text-decoration: none">Test</a>
<a class="navi wallpaper" href="<?echo $domain;?>/News/" style="text-decoration: none">News</a>
<a class="navi wallpaper" href="<?echo $domain;?>/veranstaltungen/" style="text-decoration: none">Events</a>
<a class="navi wallpaper" href="<?echo $domain;?>/Profil/" style="text-decoration: none">Profil</a>
<?php } else { ?>
<a href="<?echo $domain;?>/impressum.php"
class="navi sonst" style="text-decoration: none">Impressum</a>
<a
href="<?echo $domain;?>/hilfe.php"
class="navi zeich" style="text-decoration: none">Hilfe</a>
<a class="navi wallpaper" href="<?echo $domain;?>/Forum/" style="text-decoration: none">Forum</a>
<a class="navi dim" href="<?echo $domain;?>/Support/livezilla.php?code=U0VSVkVSUEFHRQ__" style="text-decoration: none">Support</a>
<a class="navi digku" href="<?echo $domain;?>/anmelden/" style="text-decoration: none">Anmelden</a>
<?php } ?>
<a class="navi foto" href="<?echo $domain;?>" style="text-decoration: none">Startseite</a>
<a class="navi uebersicht" href="<?echo $domain;?>">
<img
src="<?echo $domain;?>/icon_header/icon_home.gif"
alt="WakeStars" width="16" height="16" /></a><a
href="<?echo $domain;?>" class="navi uebersicht">
</a>
</div>
<ul class="color">
<li class="red"> </li>
<li class="orange"> </li>
<li class="yellow"> </li>
<li class="green"> </li>
<li class="mh"> </li>
<li class="blue"> </li>
</ul>
</body>
</html>
Alte Header Datei:
PHP:
<? session_start();?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?
$domain = "http://".$_SERVER['SERVER_NAME'];
?>
<title>Wen kennst Du - Wer kennt dich - Vernetze dich mit anderen</title>
<script type="text/javascript" src="<?echo $domain;?>/design/JS.js"></script>
<script type="text/javascript" src="<?echo $domain;?>/design/bbcode.js"></script>
<script type="text/javascript" src="<?echo $domain;?>/design/suche_username.js"></script>
<link rel="stylesheet" type="text/css" href="<?echo $domain;?>/design/standart.css">
</head>
<?
include("connect.inc.php");
include("inc/onlinestatus.inc.php");
include("inc/status.inc.php");
$usernasme_session = $_SESSION["username"];
$username_get = $_GET["username"];
if($username_session == $username_get){$s = "mp";}
###################User Daten###########################
$abfrage_ud = "SELECT * FROM member WHERE username = '$username_session'";
$ergebnis_ud = mysql_query($abfrage_ud);
$user_daten = mysql_fetch_object($ergebnis_ud) ;
?>
<body>
<center><img src=../../../icon_start/head.jpg></center>
<div id="all">
<div id="header">
<!--Buttons-->
<div id="navitop">
<ul>
<?
if($_SESSION["asdfghjkl"]== "dd"){
if($_GET["s"]== "start"){echo "<li class='b_aktiv'><a href='$domain/startseite_/' title=''>Neues</a></li>";}else {echo "<li><a href='$domain/startseite_/' title=''>Neues</a></li>";}
if($s == "mp"){echo "<li class='b_aktiv'><a href='$domain/$username_session' title=''>Ich</a></li>";}else {echo "<li><a href='$domain/$username_session' title=''>Ich</a></li>";}
if($_GET["s"]== "s"){echo "<li class='b_aktiv'><a href='$domain/mitglieder/suchen/' title=''>Suchen</a></li>";} else {echo "<li><a href='$domain/mitglieder/suchen/' title=''>Suchen</a></li>";}
if($_GET["s"]== "nachrichten"){echo "<li class='b_aktiv'><a href='$domain/nachrichten/'>Nachrichten</a></li>";} else {echo "<li><a href='$domain/nachrichten/'>Nachrichten</a></li>";}
if($_GET["s"]== "st"){echo "<li class='b_aktiv'><a href='$domain/stadt/'>In Deiner Stadt</a></li>";} else {echo "<li><a href='$domain/stadt/'>In Deiner Stadt</a></li>";}
if($_GET["s"]== "f"){echo "<li class='b_aktiv'><a href='$domain/meinefreunde/' title=''>Freunde</a></li>";} else {echo "<li><a href='$domain/meinefreunde/' title=''>Freunde</a></li>";}
if($_GET["s"]== "g"){echo "<li class='b_aktiv'><a href='$domain/gruppen/' title=''>Gruppen</a></li>";} else {echo "<li><a href='$domain/gruppen/' title=''>Gruppen</a></li>";}
if($_GET["s"]== "v"){echo "<li class='b_aktiv'><a href='$domain/veranstaltungen/' title=''>Events</a></li>";} else {echo "<li><a href='$domain/veranstaltungen/' title=''>Events</a></li>";}
}
else
{
if($_GET["s"]== "start" XOR $seite == "index"){echo "<li class='b_aktiv'><a href='$domain' title=''>Startseite</a></li>";} else {echo "<li><a href='$domain' title=''>Startseite</a></li>";}
if($_GET["s"]== "mw"){echo "<li class='b_aktiv'><a href='$domain/anmelden/' title=''>Anmelden</a></li>";} else {echo "<li><a href='$domain/anmelden/' title=''>Anmelden</a></li>";}
}
?>
</ul>
<?if($_SESSION["asdfghjkl"]== "dd"){?>
<div style="float:right;margin-right:20px;margin-top:5px;">
<span>Hallo <?echo $username_session;?></span>
<span style="margin-left:7px;margin-right:7px;">|</span>
<span><a href="<?echo $domain;?>/logout/">Ausloggen</a></span>
</div>
<?}
else{?>
<div style="float:right;margin-right:20px;margin-top:5px;">
<span>Nicht eingeloggt</span>
</div>
<?}?>
</div>
</div>
<!--Links-->
<div id="links">
<?
if($_SESSION["asdfghjkl"]== "dd")
{
include("inc/zentrale.inc.php");
}
else{?>
<div class="standart-box">
<div class="boxheader-r">
<div class="boxheader-l" style="width:140px;">Login für Mitglieder</div>
</div>
<div class="box-content" style="padding:10px;">
<form action="<?echo $domain;?>/login/" method="post">
<ul class="loginfeld">
<li>Username:</li>
<li><input class="login_maske" type="text" name="username" value="Benutzername" onBlur="if(this.value=='') this.value='Benutzername';" onFocus="if(this.value=='Benutzername') this.value='';"></input></li>
<li>Passwort:</li>
<li><input class="login_maske" type="password" name="passwort" value="Passwort" onBlur="if(this.value=='') this.value='Passwort';" onFocus="if(this.value=='Passwort') this.value='';"></input></li>
<li><input type="hidden" name="ok"></input><input class="form_button" type="submit" value="Login" src="design/images/login_button.gif"></input></li>
<li><a href="<?echo $domain;?>/passwort/">Passwort vergessen?</a></li>
<li><a href="<?echo $domain;?>/anmelden/">Jetzt anmelden?</a></li>
</ul>
</form>
<div class="clear"></div>
</div>
<div class="boxfooter-r">
<div class="boxfooter-l"></div>
</div>
</div>
<?}
?>
<div id="links">
<?
if($_SESSION["asdfghjkl"]== "dd")
{
}
else{?>
<div class="standart-box">
<div class="boxheader-r">
<div class="boxheader-l" style="width:140px;">Vielleicht kennst Du :</div>
</div>
<div class="box-content" style="padding:10px;">
<?
include("inc/bidlerwand.inc.php");
?>
<div class="clear"></div>
</div>
<div class="boxfooter-r">
<div class="boxfooter-l"></div>
</div>
</div>
<?}
?>
</div></div>
<div id="rechts">