Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2007
    Location
    Gloucester
    Posts
    44
    Tokens
    0

    Default [Help?] HSP Error!!!!!!!

    When i log-in into habbo site panel v1 i get this error.

    Parse error: syntax error, unexpected $end in /home/xxxxx/public_html/HSP/site.php on line 337


    Help???

    Im running on a paid host with unlimted databases. Ive installed it and the account is made but when u log-in i egt that ^^.

    HELP?!?!?!?!?!?
    Last edited by benny99; 28-12-2007 at 10:49 AM.

  2. #2
    Join Date
    Apr 2006
    Location
    Leamington Spa
    Posts
    1,375
    Tokens
    72

    Latest Awards:

    Default

    I'll look at it now, hang on.

    EDIT:
    PHP Code:
    <?php
    $latest 
    file_get_contents("http://grab.mattx.org/ver.txt");
    include(
    "config.php");
    ?>
    <script type="text/javascript">
    var iframeids=["main"]
    var iframehide="yes"

    var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
    var FFextraHeight=parseFloat(getFFVersion)>=0.1? 50 : 0 

    function resizeCaller() {
    var dyniframe=new Array()
    for (i=0; i<iframeids.length; i++){
    if (document.getElementById)
    resizeIframe(iframeids[i])
    if ((document.all || document.getElementById) && iframehide=="no"){
    var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
    tempobj.style.display="block"
    }
    }
    }

    function resizeIframe(frameid){
    var currentfr=document.getElementById(frameid)
    if (currentfr && !window.opera){
    currentfr.style.display="block"
    if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
    currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight; 
    else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
    currentfr.height = currentfr.Document.body.scrollHeight;
    if (currentfr.addEventListener)
    currentfr.addEventListener("load", readjustIframe, false)
    else if (currentfr.attachEvent){
    currentfr.detachEvent("onload", readjustIframe) // Bug fix line
    currentfr.attachEvent("onload", readjustIframe)
    }
    }
    }

    function readjustIframe(loadevt) {
    var crossevt=(window.event)? event : loadevt
    var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
    if (iframeroot)
    resizeIframe(iframeroot.id);
    }

    function loadintoIframe(iframeid, url){
    if (document.getElementById)
    document.getElementById(iframeid).src=url
    }

    if (window.addEventListener)
    window.addEventListener("load", resizeCaller, false)
    else if (window.attachEvent)
    window.attachEvent("onload", resizeCaller)
    else
    window.onload=resizeCaller

    </script><?php
    include("config.php");
    $config mysql_query("SELECT * FROM `config` WHERE `id` = '1' ;");
    $config mysql_fetch_array($config);
    if(
    $users[level] == "admin"){
    echo(
    "");
    }else{
    if (
    $config[panel] == 'off') {
    echo(
    "Sorry, but the panel has been disabled.");
    }
    }

    if(!isset(
    $users[username])){ echo("Please login to use this."); exit; }
    elseif (
    $users[banned] == 'yes') { 
    echo(
    "Your banned");
    } elseif (
    $users[word] == '') {
    include(
    "word.php");
    } else {
    ?>
    <center><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title><?php echo("$config[sitename]"?> > Powered by Habbo Site Panel</title>
    <style type="text/css">
    <!--
    body,td,th {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 10px;
    }
    body {
        margin-left: 0px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
    }
    a:link {
        color: #000000;
    }
    a:visited {
        color: #000000;
    }
    a:hover {
        color: #0099CC;
    }
    a:active {
        color: #000000;
    }
    -->
    </style></head>

    <body>
    <table width="658" border="0" cellpadding="0" cellspacing="0" background="images/main_background.png" height="288">
      <!--DWLayoutTable-->
      <tr>
        <td height="135" colspan="7" valign="top" background="images/staff_banner.png"><!--DWLayoutEmptyCell-->&nbsp;</td>
      </tr>
        <tr>
        <td valign="top"><img src="images/marquee_left.png" width="5" height="27" /></td>
        <td colspan="5" valign="center" background="images/marquee_spacer.png"><font color="White">You are running <?php echo $ver?> of HSP. The latest version of HSP is <?php echo $latest?><?php if($ver == $latest){ echo("You are up to date."); }else{ echo("Please update your HSP."); } ?></font></td>
        <td valign="top" height="27"><img src="images/marquee_right.png" width="5" height="27" /></td>
      </tr>
        <tr>
        <td></td>
        <td></td>
        <td></td>
            <td valign="top" colspan="4" height="18">
            <!-- MSCellType="empty" -->
            &nbsp;</td>
        </tr>
        <tr>
            <td></td>
            <td valign="top" colspan="2">
            <table border="0" width="166" cellspacing="0" cellpadding="0">
                <tr>
                    <td><img border="0" src="images/nav_top.png" width="166" height="10"></td>
                </tr>
                <tr>
                    <td background="images/nav_spacer.png"><div align="center"><? include("inc/nav.php"); ?></div></td>
                </tr>
                <tr>
                    <td><img border="0" src="images/nav_bottom.png" width="166" height="9"></td>
                </tr>
            </table>
            </td>
            <td>&nbsp;</td>
            <td valign="top" colspan="2">
            <table border="0" width="465" cellspacing="0" cellpadding="0">
                <tr>
                    <td>
                    <img border="0" src="images/content_top.png" width="465" height="9"></td>
                </tr>
                <tr>
                    <td background="images/content_spacer.png"><div align="center"><iframe src="home.php" id="main" name="main" allowtransparency="true" frameborder="0" height="500" width="450"></iframe></div></td>
                </tr>
                <tr>
                    <td>
                    <img border="0" src="images/content_bottom.png" width="465" height="8"></td>
                </tr>
            </table>
            </td>
            <td height="34"></td>
        </tr>
        <tr>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td height="14"></td>
        </tr>
        <tr>
            <td></td>
            <td>&nbsp;</td>
            <td valign="top" align="left" colspan="3">
            <table border="0" width="626" cellspacing="0" cellpadding="0">
                <tr>
                    <td>
                    <img border="0" src="images/disclaimer_top.png" width="626" height="10"></td>
                </tr>
                <tr>
                    <td background="images/disclaimer_spacer.png"><div align="center"><? echo("$config[sitename] is Powered by Habbo Site Panel and is Copyright to M. Chapman, E. Adams and Layout Copyrighted to Luke1194."?></div>
    </td>
                </tr>
                <tr>
                    <td>
                    <img border="0" src="images/disclaimer_bottom.png" width="626" height="10"></td>
                </tr>
            </table>
            </td>
            <td>&nbsp;</td>
            <td height="39"></td>
        </tr>
        <tr>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td height="11"></td>
        </tr>
        <tr>
        <td height="9" colspan="7" valign="top"><img src="images/main_bottom.png" width="658" height="9" /></td>
      </tr>
        <tr>
            <td width="6"></td>
            <td width="10"></td>
            <td width="156"></td>
            <td width="16"></td>
            <td width="454"></td>
            <td width="11"></td>
            <td height="1" width="5"></td>
        </tr>
    </table>
    </body>
    </html></center>
    <? ?>
    Last edited by lolwut; 28-12-2007 at 02:20 PM.
    i've been here for over 8 years and i don't know why

  3. #3
    Join Date
    Oct 2007
    Location
    Gloucester
    Posts
    44
    Tokens
    0

    Default

    Errrr ill try that now

    EDIT: Nope dont work
    Last edited by benny99; 28-12-2007 at 05:01 PM.

  4. #4
    Join Date
    Oct 2007
    Location
    Gloucester
    Posts
    44
    Tokens
    0

    Default

    EDIT SOZ FOR DOUBLE I GT LAG

  5. #5
    Join Date
    Apr 2006
    Location
    Leamington Spa
    Posts
    1,375
    Tokens
    72

    Latest Awards:

    Default

    PHP Code:
    <?php

    $latest 
    file_get_contents("http://grab.mattx.org/ver.txt");
    include(
    "config.php");
    ?>
    <script type="text/javascript">
    var iframeids=["main"]
    var iframehide="yes"

    var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
    var FFextraHeight=parseFloat(getFFVersion)>=0.1? 50 : 0 

    function resizeCaller() {
    var dyniframe=new Array()
    for (i=0; i<iframeids.length; i++){
    if (document.getElementById)
    resizeIframe(iframeids[i])
    if ((document.all || document.getElementById) && iframehide=="no"){
    var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
    tempobj.style.display="block"
    }
    }
    }

    function resizeIframe(frameid){
    var currentfr=document.getElementById(frameid)
    if (currentfr && !window.opera){
    currentfr.style.display="block"
    if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
    currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight; 
    else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
    currentfr.height = currentfr.Document.body.scrollHeight;
    if (currentfr.addEventListener)
    currentfr.addEventListener("load", readjustIframe, false)
    else if (currentfr.attachEvent){
    currentfr.detachEvent("onload", readjustIframe) // Bug fix line
    currentfr.attachEvent("onload", readjustIframe)
    }
    }
    }

    function readjustIframe(loadevt) {
    var crossevt=(window.event)? event : loadevt
    var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
    if (iframeroot)
    resizeIframe(iframeroot.id);
    }

    function loadintoIframe(iframeid, url){
    if (document.getElementById)
    document.getElementById(iframeid).src=url
    }

    if (window.addEventListener)
    window.addEventListener("load", resizeCaller, false)
    else if (window.attachEvent)
    window.attachEvent("onload", resizeCaller)
    else
    window.onload=resizeCaller

    </script><?php
    include("config.php");
    $config mysql_query("SELECT * FROM `config` WHERE `id` = '1' ;");
    $config mysql_fetch_array($config);
    if(
    $users[level] == "admin"){
    echo(
    "");
    }else{
    if (
    $config[panel] == 'off') {
    echo(
    "Sorry, but the panel has been disabled.");
    }
    }

    if(!isset(
    $users[username])){ echo("Please login to use this."); exit; }
    elseif (
    $users[banned] == 'yes') { 
    echo(
    "Your banned");
    } elseif (
    $users[word] == '') {
    include(
    "word.php");
    } else {
    ?>
    <center><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title><?php echo("$config[sitename]"?> > Powered by Habbo Site Panel</title>
    <style type="text/css">
    <!--
    body,td,th {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 10px;
    }
    body {
        margin-left: 0px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
    }
    a:link {
        color: #000000;
    }
    a:visited {
        color: #000000;
    }
    a:hover {
        color: #0099CC;
    }
    a:active {
        color: #000000;
    }
    -->
    </style></head>

    <body>
    <table width="658" border="0" cellpadding="0" cellspacing="0" background="images/main_background.png" height="288">
      <!--DWLayoutTable-->
      <tr>
        <td height="135" colspan="7" valign="top" background="images/staff_banner.png"><!--DWLayoutEmptyCell-->&nbsp;</td>
      </tr>
        <tr>
        <td valign="top"><img src="images/marquee_left.png" width="5" height="27" /></td>
        <td colspan="5" valign="center" background="images/marquee_spacer.png"><font color="White">You are running <?php echo $ver?> of HSP. The latest version of HSP is <?php echo $latest?><?php if($ver == $latest){ echo("You are up to date."); }else{ echo("Please update your HSP."); } ?></font></td>
        <td valign="top" height="27"><img src="images/marquee_right.png" width="5" height="27" /></td>
      </tr>
        <tr>
        <td></td>
        <td></td>
        <td></td>
            <td valign="top" colspan="4" height="18">
            <!-- MSCellType="empty" -->
            &nbsp;</td>
        </tr>
        <tr>
            <td></td>
            <td valign="top" colspan="2">
            <table border="0" width="166" cellspacing="0" cellpadding="0">
                <tr>
                    <td><img border="0" src="images/nav_top.png" width="166" height="10"></td>
                </tr>
                <tr>
                    <td background="images/nav_spacer.png"><div align="center"><? include("inc/nav.php"); ?></div></td>
                </tr>
                <tr>
                    <td><img border="0" src="images/nav_bottom.png" width="166" height="9"></td>
                </tr>
            </table>
            </td>
            <td>&nbsp;</td>
            <td valign="top" colspan="2">
            <table border="0" width="465" cellspacing="0" cellpadding="0">
                <tr>
                    <td>
                    <img border="0" src="images/content_top.png" width="465" height="9"></td>
                </tr>
                <tr>
                    <td background="images/content_spacer.png"><div align="center"><iframe src="home.php" id="main" name="main" allowtransparency="true" frameborder="0" height="500" width="450"></iframe></div></td>
                </tr>
                <tr>
                    <td>
                    <img border="0" src="images/content_bottom.png" width="465" height="8"></td>
                </tr>
            </table>
            </td>
            <td height="34"></td>
        </tr>
        <tr>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td height="14"></td>
        </tr>
        <tr>
            <td></td>
            <td>&nbsp;</td>
            <td valign="top" align="left" colspan="3">
            <table border="0" width="626" cellspacing="0" cellpadding="0">
                <tr>
                    <td>
                    <img border="0" src="images/disclaimer_top.png" width="626" height="10"></td>
                </tr>
                <tr>
                    <td background="images/disclaimer_spacer.png"><div align="center"><? echo("$config[sitename] is Powered by Habbo Site Panel and is Copyright to M. Chapman, E. Adams and Layout Copyrighted to Luke1194."?></div>
    </td>
                </tr>
                <tr>
                    <td>
                    <img border="0" src="images/disclaimer_bottom.png" width="626" height="10"></td>
                </tr>
            </table>
            </td>
            <td>&nbsp;</td>
            <td height="39"></td>
        </tr>
        <tr>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td height="11"></td>
        </tr>
        <tr>
        <td height="9" colspan="7" valign="top"><img src="images/main_bottom.png" width="658" height="9" /></td>
      </tr>
        <tr>
            <td width="6"></td>
            <td width="10"></td>
            <td width="156"></td>
            <td width="16"></td>
            <td width="454"></td>
            <td width="11"></td>
            <td height="1" width="5"></td>
        </tr>
    </table>
    </body>
    </html></center>
    <?php
    }
    ?>
    Try that.
    i've been here for over 8 years and i don't know why

  6. #6
    Join Date
    Oct 2007
    Location
    Gloucester
    Posts
    44
    Tokens
    0

    Default

    Yep that works thx +rep

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •