Hab ein Probelm -.-
hatt einen Rat?
Hab ein Probelm -.-
hatt einen Rat?
Code würde helfen um zusehen wo der Fehler liegt.
Mit freundlichen Grüßen
Sebastian aka Thendo
<?
$VORRANGIG = "";// ../
$datei = file("panel.cfg");
for ($i = 0; $i <= count($datei); $i++) {
if (strtok($datei[$i]," ") == "server_ip") //
{
$server_ip = trim(strtok(" "));
}
if (strtok($datei[$i]," ") == "server_port") //
{
$server_port = trim(strtok(" "));
}
}
?>
<html>
<head>
<title>Game CP Lite</title>
<style type="text/css">
#p1 { padding-left: 10px; padding-right: 10px; padding-top:10px; font-family:'VERDANA','ARIAL','HELVETICA';}
#tleft {
padding-left: 25px;
}
#bluefeld {
border-width:1px;
border-style:solid;
border-color:#0064C8;
text-align:justify;
}
#bluebox {
background-image:url(http://cp.breadfish.de/bilder/icon_info.png);
background-position:10px 50%;
background-repeat:no-repeat;
background-color:#C8C8FF;
border-width:2px;
border-style:solid;
border-color:#0064C8;
padding:1.0em;
text-align:justify;
vertical-align: middle;
padding-left: 80px;
font-family:'CALIBRI';
}
#greenbox {
background-image:url(http://cp.breadfish.de/bilder/icon_success.png);
background-position:10px 50%;
background-repeat:no-repeat;
background-color:#84FB8A;
border-width:2px;
border-style:solid;
border-color:#2FBA1B;
padding:1.0em;
text-align:justify;
vertical-align: middle;
padding-left: 80px;
font-family:'CALIBRI';
}
#orangebox {
background-image:url(http://cp.breadfish.de/bilder/icon_warn.png);
background-position:10px 50%;
background-repeat:no-repeat;
background-color:#F4FB84;
border-width:2px;
border-style:solid;
border-color:#E9F409;
padding:1.0em;
text-align:justify;
vertical-align: middle;
padding-left: 80px;
font-family:'CALIBRI';
}
#redbox {
background-image:url(http://cp.breadfish.de/bilder/icon_error.png);
background-position:10px 50%;
background-repeat:no-repeat;
background-color:#FA8588;
border-width:2px;
border-style:solid;
border-color:#FF0006;
padding:1.0em;
text-align:justify;
vertical-align: middle;
padding-left: 80px;
font-family:'CALIBRI';
}
#graybox {
background-color:#E4E4E4;
border-width:2px;
border-style:solid;
border-color:#F3F3F3;
padding:1.0em;
text-align:justify;
vertical-align: middle;
padding-left: 80px;
font-family:'CALIBRI';
}
#startschriftlayer {
background-color:#7E017E;
color:#F0F0F0;
padding:0.2em;
text-align:left;
padding-left: 20px;
font-family:'CALIBRI';
}
#startschriftlayer_link {
color:#F0F0F0;
}
#form_falsch {
background-color:#FAB4BE;
border-color:#6A6A6A;
border-width:1px;
}
#form_leer {
background-color:#FFFFFF;
border-color:#6A6A6A;
border-width:1px;
}
#iconlist {
text-align:center;
}
a:link { text-decoration:none; }
a:visited { text-decoration:none; }
a:focus { text-decoration:none; }
a:hover { text-decoration:none; }
a:active { text-decoration:none; }
a, img, button {border:0 none}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- Save for Web Slices (webdesign.psd) -->
<p align="center">
<table width="900" height="0" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3">
<img src="<?echo $VORRANGIG;?>images/webdesign_01.jpg" width="900" height="20" alt=""></td>
</tr>
<tr>
<td rowspan="6">
<img src="<?echo $VORRANGIG;?>images/left.jpg" width="20" alt=""></td>
<td>
<a style="" href = "index.php"><img src="<?echo $VORRANGIG;?>images/header.jpg" width="860" height="150" alt=""></a></td>
<td rowspan="6">
<img src="<?echo $VORRANGIG;?>images/right.jpg" width="20" alt=""></td>
</tr>
<tr>
<td height="30" background="<?echo $VORRANGIG;?>images/middle_up.jpg">
</td>
</tr>
<tr>
<td id="p1" valign="top" background="<?echo $VORRANGIG;?>images/webdesign_06.jpg">
<?
if ($_GET['COMMAND'] != "")
{
if ($_GET['COMMAND'] == "start")
{
$output = shell_exec('./gtaserver.sh start');
}
if ($_GET['COMMAND'] == "stop")
{
$output = shell_exec('./gtaserver.sh stop');
}
echo "<p id=\"bluebox\">".htmlspecialchars($output)."</p>" ;
}
?>
<center><a href="http://www.nanospy.de/sa-mp/<?echo trim($server_ip);?>:<?echo trim($server_port);?>/server_status.html" target="_blank"><img src="http://www.nanospy.de/sa-mp/<?echo trim($server_ip);?>:<?echo trim($server_port);?>/468x60.gif" width="468" height="60" alt="nanospy" border="0" title="NanoSpy Server Image Status"></a></center>
<p id="startschriftlayer"><a id="startschriftlayer_link" href="index.php?SHOW=Serversteuerung">Serversteuerung</a></p>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><a href="index.php?COMMAND=start"><img src="<?echo $VORRANGIG."images/icons/start.png";?>" alt="" border="0"><br />Start</a></td>
<td align="center"><a href="index.php?COMMAND=stop"><img src="<?echo $VORRANGIG."images/icons/logout.png";?>" alt="" border="0"><br />Stop</a></td>
</tr>
</table>
</td>
</td>
</tr>
<tr>
<td>
<img src="<?echo $VORRANGIG;?>images/footer.gif" width="860" height="55" alt=""></td>
</tr>
</table></p>
<!-- End Save for Web Slices -->
</body>
</html>
Alles anzeigen
Ist von ´pjanfred noch das standart design aber ich darf es ändern hab erlaubnis!