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 9 of 9

Thread: DJ Panel Help

  1. #1
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default DJ Panel Help

    Hello

    I have the DJ Panel that .:jack120:. posted a day or so ago. There are two users in the Database but nothing appears on the login page. http://tom.median-designs.info/panel/index.php is the link. Here is the index.php code:

    PHP Code:
    <?php
    session_start
    ();
    $host "localhost";
    $user "tom_panel";
    $pass "*****";
    $db    "tom_panel";
    $ms mysql_connect($host$user$pass);
    if(!
    $ms) { echo "Error connecting to database.\n"; }
    mysql_select_db($db);
     
    if(
    $_GET['login'] == "login") {
    $user1_post addslashes($_POST["username_post"]);
    $pass1_post addslashes($_POST["password_post"]);
    $pass1_post = ($pass1_post);
    if(
    $user1_post == "" or $pass1_post == "") { echo "<center>
    <table style=\"BORDER-COLLAPSE: collapse\" borderColor=\"#ffaaaa\" width=\"50%\" bgColor=\"#ffdddd\" border=\"1\" id=\"table1\">
     <tr>
      <td align=\"middle\"><font size=\"2\" face=\"Verdana\"><b>Login Error:</b><br>
      <br>
      <font size=\"1\">Unfortunatley, you have entered an incorrect username or 
      password.<br>
      <br>
      Please, Click one of the following links:<br>
      <font color=\"black\"><a href=\"index.php\">Login again</a><br>
      </font><a href=\"http://crazyhabbo.net\"><font color=\"black\">Return to 
      CrazyHabbo</font></a><br>
      <br>
      CrazyHabbo© Copyright 2006</font></font></td>
     </tr>
    </table>
    </center>"
    ; exit; }
     
    list(
    $user) = mysql_fetch_array(mysql_query("SELECT `username` FROM `staff` WHERE username='$user1_post'"));
    list(
    $pass) = mysql_fetch_array(mysql_query("SELECT `password` FROM `staff` WHERE password='$pass1_post'"));
     
    if(
    $user1_post == "$userand $pass1_post == "$pass") {
    $sql mysql_query("SELECT * FROM `staff` WHERE username='$user' AND password='$pass'");
    if(
    mysql_num_rows($sql)!= 1) { exit; }
    $result mysql_fetch_array($sql);
     
    $_SESSION['session_username'] = $result['username'];
    $_SESSION['session_level'] = $result['level'];
    $_SESSION['session_ip'] = $_SERVER['REMOTE_ADDR'];
     
    echo 
    "<meta http-equiv=\"refresh\" content=\"0;url=main.php\">";
            exit;
    } else { echo 
    "<center>
    <table style=\"BORDER-COLLAPSE: collapse\" borderColor=\"#ffaaaa\" width=\"50%\" bgColor=\"#ffdddd\" border=\"1\" id=\"table1\">
     <tr>
      <td align=\"middle\"><font size=\"2\" face=\"Verdana\"><b>Login Error:</b><br>
      <br>
      <font size=\"1\">You have entered an incorrect password.<br>
      <br>
      Please, Click one of the following links:<br>
      <font color=\"black\"><a href=\"index.php\">Login again</a><br>
      </font><a href=\"http://crazyhabbo.net\"><font color=\"black\">Return to 
      CrazyHabbo</font></a><br>
      <br>
      CrazyHabbo.Net© Copyright 2006</font></font></td>
     </tr>
    </table>
    </center>"
    ; }
    } else { 
    ?>
     
    <body bgcolor="#F45000" bgproperties="fixed" style="background-image: url('habboback.gif')">
     
     
     
    <p align="center">
    <font size="1" face="Verdana">Login as: <a href="index4.php">Blue</a> &gt;
    <a href="index3.php">Pink</a> &gt; <b><a href="index.php"><font color="#FFFFFF">
    Habbo Style</font></a></b></font></p>
     
    <center>
    <div align="center">
     <title>CrazyHabbo DJ Panel</title>
     <table width="329" height="3" style="border-collapse: collapse" cellpadding="0" cellspacing="0" id="table2" border="1" bordercolor="#000000">
    <tr>
        <td width="330" height="11" align="center" background="http://habbo-gold.freehostia.com/bg3.png">
                    <p></p>
        <p>
        <span style="font-weight: 700">
        <font face="Tahoma" style="font-size: 9pt" color="#FFFFFF">
        CrazyHabbo</font></span><font face="Tahoma" style="font-size: 9pt; font-weight: 700" color="#FFFFFF">
        DJ Panel</font></td>
       </tr>
    <tr>
        <td align="center" width="400" height="342" bgcolor="#47839D">
        <form action="<?php echo "$PHP_SELF"?>?login=login" method="POST">
                      <font size="1" face="Verdana"><br>
         &nbsp;</font><table border="0" id="table3" width="252" height="87">
     <tr>
      <td>
      <p align="center"><b><font size="1" face="Verdana">Username:</font></b></td>
      <td><font face="Verdana" size="1"><?
    echo "<select size='1' name='username_post'>
    <option selected>Choose Your DJ Name</option>"
    ;
    include(
    'dbConfig.php');
    $result mysql_query("SELECT * FROM `staff`");
    while(
    $worked mysql_fetch_array($result)) {
    $username $worked["username"];
    echo 
    "<option value=$username>DJ $username</option>";
    }
    mysql_close(); ?>
    </select></font></td>
      <td height="77" rowspan="4">&nbsp;</td>
      </tr>
     <tr>
      <td>
      <p align="center"><font size="1" face="Verdana"><b>Password:</b></font></td>
      <td>
      <p align="center"><font face="Verdana" size="1" color="#FFFFFF"> 
      <input type="password" name="password_post" size="18" style="float: left"></font></td>
     </tr>
     <tr>
      <td width="62"></td>
      <td width="172">
      <p align="center"><font face="Verdana" size="1">&nbsp;<input type='image' name='myclicker' src='enter.gif' width="76" height="16"></font></td>
      </tr>
      <tr>
      <td valign="top" colspan="2">
      <p align="center"></td>
      </tr>
    </table>
         <p align="center">
                      <img border="0" src="management.gif" width="299" height="86"></p>
    <p align="center"><font face="Verdana" size="1">This Area is 
    Only for CrazyHabbo DJ's and Admins.&nbsp; If you try use this Log in and you 
    are not staff, you will be banned from the site immediately. </font></p>
         <p align="center"><font face="Verdana" size="1">Please note 
         that the panel is </font><b><font size="1" face="Verdana">
         CaSe SeNsItIvE.</font></b></p>
    </form></td>
    </tr>
    </table>
     
    </div>
     
     
     
     
     
     
    <p align="center">&nbsp;</p>
     
     
     
     
     
     
     
    <?php ?>
    Thanks
    Tom

    EDIT: HERE IS THE DB:

    [img]http://www.****************/uploads/6b0ef9590f.png[/img]
    Last edited by Recursion; 10-11-2006 at 05:23 PM.
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  2. #2
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    C'mon! I really need this

    +REP to whoever helps

    Sorry for Double Post.
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  3. #3
    Join Date
    Jul 2006
    Location
    HxHog
    Posts
    412
    Tokens
    0

    Default

    If this is the panel i think it is try logging in on another index page i think there was 4

    EDIT: Oh and another random stab in the dark is that you dont have an admin account on that panell
    Last edited by Matt,; 10-11-2006 at 08:32 PM.

  4. #4
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    I have 2 according to PHP My Admin. Also none appear on any page
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  5. #5
    Join Date
    Jul 2006
    Location
    HxHog
    Posts
    412
    Tokens
    0

    Default

    should the level not be 1 for admin? also try going to www.yoursite.com/panel/index4.php that might work

  6. #6
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    No users come up on any index pages. Whether admin or not.
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  7. #7
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    Solution:
    Await the release of Atomic Radio Panel Free V1.0

    We have the template coded so we will have it up and downloadable very soon

  8. #8
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    I would like this one to work as I want a habbo layout and i wont get the pro version
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  9. #9
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    Fair play ;P

    We'll probably offer a habbo style layout

Posting Permissions

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