Hallo,
habe mir ein CP geladen, bekomme jedoch ein Fehler, damit ich es starten kann.
Sieht den Fehler jemand, ist angeblich in der letzten Zeile.
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>
</div>
</body>
</html>
Alles anzeigen