hallo wenn ich die seite aufrufen will
Code
0){ $row = mysqli_fetch_object($query); if($row->passwort == $_SESSION['ildm_password']){ header("Location: " . $URL . "home.php"); die(); } } }else{ $_SESSION['ildm_loggedin'] = 0; $_SESSION['ildm_password'] = ""; $_SESSION['ildm_userid'] = -1; } $error = 0; $onlyAdmins = 0; if($_SERVER['REQUEST_METHOD'] == 'POST'){ if($_POST['username'] != "" && $_POST['password'] != ""){ $query = mysqli_query($mysqli, "SELECT * FROM accounts WHERE name = '".mysqli_real_escape_string($mysqli, $_POST['username'])."'"); if(mysqli_num_rows($query) > 0){ $row = mysqli_fetch_object($query); $password = $_POST['password'] . $passKey; if(strtoupper(hash("whirlpool", $password)) == $row->passwort){ if($row->banned == 1){ $error = 1; }else{ if($row->tban > time()){ $error = 2; }else{ if($onlyAdmins == 1 && $row->adminlevel < 5){ $error = 6; }else{ $_SESSION['ildm_loggedin'] = true; $_SESSION['ildm_userid'] = $row->id; $_SESSION['ildm_password'] = strtoupper(hash("whirlpool", $password)); header("Location: " . $URL . "home.php"); die(); } } } }else{ $error = 3; writeLog($mysqli, "IP ".mysqli_real_escape_string($mysqli, $_SERVER['REMOTE_ADDR'])." hat sich versucht in den Account [user]".intval($row->id)."[/user] einzuloggen.", 30); } }else{ $error = 4; } }else{ $error = 5; } } ?>
Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\resources\header.php on line 161
header.php in zeile 161 steht nix
PHP
<?php $maintance = 0;
if($maintance > 0 && $_GET['key'] != "KILLA"){
if($maintance == 1){
echo "Zur Zeit werden Wartungsarbeiten aufgrund von technischen Problemen durchgeführt. Bitte entschuldigen Sie uns.";
}else if($maintance == 2){
echo "Zur Zeit werden Wartungsarbeiten aufgrund von neuen Updates durchgeführt. Bitte entschuldigen Sie uns.";
}
die();
}
?>
<html>
<head>
<link rel="stylesheet" type="text/css" media="screen" href="/resources/bootstrap-3.3.7-dist/css/bootstrap.min.css">
<script src="/resources/jquery.js"></script>
<script src="/resources/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="/resources/font-awesome-4.6.3/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" media="screen" href="/resources/style.css">
<script type="text/javascript">
$(function() {
$('a').tooltip({placement: 'top'});
});
/*
function getElementsByClass(searchClass,node,tag) {
var classElements = new Array();
if ( node == null ) node = document;
if ( tag == null ) tag = '*';
var els = node.getElementsByTagName(tag);
var elsLen = els.length;
var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
var j = 0;
for (var i = 0, j = 0; i < elsLen; i++) {
if ( pattern.test(els[i].className) ) {
classElements[j] = els[i]; j++;
}
}
return classElements;
}
window.onload = function() {
var spoilers = getElementsByClass('spoiler');
for(x in spoilers) {
spoilers[x].getElementsByTagName('span')[0].style.display = 'none';
}
};
function spoiler(obj) {
var st = obj.getElementsByTagName('span')[0].style;
st.display = (st.display == 'none' || st.display == '') ? 'block' : 'none';
}
*/
</script>
<meta charset="utf-8">
<title>I Love DM Control Panel</title>
</head>
<body>
<img src="./resources/images/header.png" alt="Header" style="width: 100%; margin-top: 0px auto; top:0px;">
<?php if($_SESSION['ildm_loggedin'] == true){
$navquery = mysqli_query($mysqli, "SELECT * FROM accounts WHERE id = ".intval($_SESSION['ildm_userid']));
$navrow = mysqli_fetch_object($navquery);
}
?>
<nav class="navbar navbar-default navbar-static-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown"><font size="3"><b>I Love DM</b></font> <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="team.php">Team</a></li>
<li><a href="whoisonline.php">Wer ist Online</a></li>
<?php if($_SESSION['ildm_loggedin'] == true){?>
<li><a href="searchprofile.php">Profil suchen</a></li>
<?php }?>
<li><a href="serverstats.php">Server Statistiken</a></li>
</ul>
</li>
<li><a href="index.php"><b>Startseite</b></a></li>
<li><a href="<?echo $forumURL;?>"><b>Forum</b></a></li>
<?php if($_SESSION['ildm_loggedin'] == true){?>
<li><a href="clans.php"><b>Clans</b></a></li>
<li><a href="surveys.php"><b>Umfragen</b></a></li>
<?php if($row->clan != -1){?>
<li><a href="myclan.php"><b>Mein Clan</b></a></li>
<?php }
?><li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown"><b>Beschwerden</b><b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="listComplaints.php">Übersicht</a></li>
<li><a href="createComplaint.php">Beschwerde erstellen</a></li>
</ul>
</li><?
}?>
<?php if($_SESSION['ildm_loggedin'] == true && $navrow->adminlevel > 0){?>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown"><font color=<?echo rankColor(3);?>><?echo "<b>Admin</b>";?></font><b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#"><font color=<?echo rankColor(1);?>><b>Supporter</font></b></a></li>
<li><a href="accounts.php">Accounts</a></li>
<li><a href="geoWhitelist.php">GEO-Whitelist</a></li>
<?if($navrow->adminlevel > 1){?>
<li><a href="#"><font color=<?echo rankColor(2);?>><b>Trial Admin</font></b></a></li>
<?}
if($navrow->adminlevel > 2){?>
<li><a href="#"><font color=<?echo rankColor(3);?>><b>Admin</font></b></a></li>
<li><a href="logs.php">Logs</a></li>
<li><a href="complaintOverview.php">Beschwerden</a></li>
<?}
if($navrow->adminlevel > 3){?>
<li><a href="#"><font color=<?echo rankColor(4);?>><b>Head Admin</font></b></a></li>
<li><a href="news.php">News hinzufügen</a></li>
<li><a href="announce.php">In-Game Nachricht</a></li>
<li><a href="banIP.php">IP sperren</a></li>
<li><a href="unbanIP.php">IP entsperren</a></li>
<li><a href="coupons.php">Gutscheine</a></li>
<li><a href="globalAnnouncement.php">Globale Ankündigung</a></li>
<?}
if($navrow->adminlevel > 4){?>
<li><a href="#"><font color=<?echo rankColor(5);?>><b>Projektleitung</font></b></a></li>
<li><a href="undercoverAccounts.php">Undercover Accounts</a></li>
<?}?>
</ul>
</li>
<?}?>
</ul>
<?if($_SESSION['ildm_loggedin'] == true){?>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown"><?echo "<b>Angemeldet als ".$navrow->name."</b>";?><b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="profil.php?userID=<?echo $navrow->id;?>">Mein Profil</a></li>
<li><a href="settings.php">Einstellungen</a></li>
<li><a href="myCoupons.php">Meine Gutscheine</a></li>
<li><a href="registerMultiAcc.php">Multiaccount Anmelden</a></li>
<li><a href="logout.php">Ausloggen</a></li>
</ul>
</li>
</ul>
<?}?>
</div>
</div>
</nav>
<div class="main">
<?php $aquery = mysqli_query($mysqli, "SELECT * FROM globalannouncement WHERE id = 1");
$arow = mysqli_fetch_object($aquery);
?>
<div class="alert alert-info alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<?php echo BBCode(htmlspecialchars($arow->text, ENT_QUOTES));?>
</div>
Alles anzeigen