i got error from server status (PHP)

Results 1 to 1 of 1
  1. #1
    Apprentice numer is offline
    MemberRank
    Mar 2004 Join Date
    ThailandLocation
    7Posts

    i got error from server status (PHP)

    <head>
    <title>Lineage 2 Status Serveur</title>
    <script>
    <!--
    //enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59
    var limit="0:20"

    if (document.images){
    var parselimit=limit.split(":")
    parselimit=parselimit[0]*60+parselimit[1]*1
    **
    function beginrefresh(){
    if (!document.images)
    return
    if (parselimit==1)
    window.location.reload()
    else{
    parselimit-=1
    curmin=Math.floor(parselimit/60)
    cursec=parselimit%60
    if (curmin!=0)
    curtime=curmin+" minutes and "+cursec+" seconds left until page refresh!"
    else
    curtime=cursec+" secs left until server status refresh!"
    window.status=curtime
    setTimeout("beginrefresh()",1000)
    **
    **

    window.onload=beginrefresh
    //-->
    </script>
    <style type="text/css">
    <!--
    .Style1 {font-family: Verdana, Arial, Helvetica, sans-serif**
    .Style2 {font-size: x-small**
    .Style3 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: x-small; **
    -->
    </style>
    </head>
    <body scroll=no>

    <DIV
    style="HEIGHT: 32px; LEFT: 30px; POSITION: absolute; TOP: 75px; WIDTH: 270px">
    <TABLE>
    <TR>
    <TD>
    </TR>
    </TD>
    </TABLE>
    </DIV>


    <DIV
    style="HEIGHT: 32px; LEFT: 10px; POSITION: absolute; TOP: 15px; WIDTH: 100%">
    <span class="Style1"><span class="Style2"><font color="#FF0000">This section will auto refresh</font>
    <FONT COLOR="#cccccc">TRANSLATION:</FONT> <FONT COLOR="green">UP</FONT> / <FONT COLOR="blue">DOWN</FONT> status is not 100% accurate.<BR>
    <TABLE cellpadding=0 cellspacing=0 width=400 BORDER="0">

    <TR>
    <TD class="Style3"><DIV style="font-weight:bold"><H2>Server</H2></DIV></TD>
    <TD class="Style3"><DIV style="font-weight:bold"><H2>Status</H2></DIV></TD>
    <br>
    </TR><TR>
    </DIV>
    </body>
    <?PHP
    /*

    rights of aegis and others
    */
    error_reporting(0);

    $IP = array(
    "Login Server" => "YOURIPHERE:2106",
    "Game Server" => "YOURIPHERE:7777",
    ); while(list($ServerName,$Host)=each($IP)) {
    list($IPAddress,$Port)=explode(":",$Host);
    echo("<TD><DIV>".$ServerName."</DIV></TD><TD>");
    if($fp=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) {
    echo("<DIV style=\"color:'green';font-weight:'bold'\">UP</DIV>");
    fclose($fp);
    **
    else {
    echo ("<DIV style=\"color:'blue';font-weight:'bold'\">DOWN</DIV>");
    **
    echo ("</TD></TR><TR>");
    **
    echo ("</TABLE>");
    ?><BR><BR>

    Made By <a href="mailto:bibi_7@msn.com">Nounours</a>

    it error like this
    Parse error: syntax error, unexpected '*' in C:\Inetpub\diskw\www\svstatus.php on line 83

    how do i do?

    thanks




Advertisement