MyBB.de Forum

Normale Version: Scroller und Abfrage
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Hallo,
Ich möchte etwas in diesen code einfügen:
Code:
<style type="text/css">
#notificationbar {
    position: fixed;
    bottom: 0px;
    left: 0px;
    z-index: 7132;
    width: 100%;
    height: 32px;
    background: transparent url(http://static4.gigagfx.de/2008/grafik/notification/kachel.png) repeat-x;
    color: #fff;
    text-align: center;
    padding: 18px 0 2px 0;
    font-size: 14px;
    font-family: Arial, Helvetica, Verdana, sans-serif;
}

* html #notificationbar {
    position: absolute;
}

#notificationloading {
    vertical-align: middle;
}

.notificationmessage,
.notificationmessage a {
    color: #00a513;
    text-decoration: none;
}

.ntf_arrow {
    vertical-align: middle;
    margin-bottom: 2px;
}

.okbtn {
    cursor: pointer;
    vertical-align: bottom;
}



</style>
<div id="notificationbar">

<div id="notificationtext"><img id='notificationloading' src='http://static4.gigagfx.de/spacer.gif' width='21' height='20' alt='' style='visibility:hidden;' />&nbsp;

</table>
</div>

und in diesen möchte ich dieses php script einbauen:
Code:
<?php

$ip = "funnymetin2.ath.cx";   // Server IP angeben
$login = "11002";   // Login Server port angeben (Standart 11002)
$char = "13000";   // Char Server port angeben (Standart 13000)
$world = "13003";   // World Server port angeben (Standart 13003)
$mysql = "3306";   // MySQL port angeben (Standart 3306)
$on_img = "on.gif";   // Pfad zum Online image angeben.
$off_img = "off.gif";  // Pfad zum Offline image angeben.


// MySQL Server
@$fp = fsockopen($ip, $mysql, $errno, $errstr, 30);
if (!$fp) {echo 'MySQL Server : <img src="'.$off_img.'"/>&nbsp;&nbsp;&nbsp;';} else {echo 'MySQL Server : <img src="'.$on_img.'"/> &nbsp;|&nbsp;&nbsp;';}

// Login Server
@$fp = fsockopen($ip, $login, $errno, $errstr, 30);
if (!$fp) {echo 'Login Server : <img src="'.$off_img.'"/>&nbsp;&nbsp;&nbsp;';} else {echo 'Login Server : <img src="'.$on_img.'"/> &nbsp;|&nbsp;&nbsp;';}

// Char Server
@$fp = fsockopen($ip, $char, $errno, $errstr, 30);
if (!$fp) {echo 'Char Server : <img src="'.$off_img.'"/>&nbsp;&nbsp;&nbsp;';} else {echo 'Char Server : <img src="'.$on_img.'"/> &nbsp;|&nbsp;&nbsp;';}

// World Server
@$fp = fsockopen($ip, $world, $errno, $errstr, 30);
if (!$fp) {echo 'World Server : <img src="'.$off_img.'"/>&nbsp;&nbsp;&nbsp;';} else {echo 'World Server : <img src="'.$on_img.'"/>&nbsp;&nbsp;&nbsp;';}

?>

wenn ich es direkt einfüge geht es nicht...
bitte helft mir Wink
lg
mc
Ich habe keine Ahnung was du machen willst. Vielleicht hilft das weiter: https://www.mybb.de/forum/thread-11773.html