PDA

View Full Version : DJ Panel Help



Recursion
10-11-2006, 05:18 PM
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
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&#169; 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 == "$user" and $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&#169; 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:

http://www.****************/uploads/6b0ef9590f.png (http://www.****************)

Recursion
10-11-2006, 08:28 PM
C'mon! I really need this :)

+REP to whoever helps :)

Sorry for Double Post. :)

Matt,
10-11-2006, 08:30 PM
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

Recursion
10-11-2006, 08:32 PM
I have 2 according to PHP My Admin. Also none appear on any page :(

Matt,
10-11-2006, 08:38 PM
should the level not be 1 for admin? also try going to www.yoursite.com/panel/index4.php that might work

Recursion
10-11-2006, 08:40 PM
No users come up on any index pages. Whether admin or not.

Jackboy
10-11-2006, 09:50 PM
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 :P

Recursion
10-11-2006, 09:58 PM
I would like this one to work as I want a habbo layout and i wont get the pro version :(

Jackboy
10-11-2006, 10:03 PM
Fair play ;P

We'll probably offer a habbo style layout

Want to hide these adverts? Register an account for free!