PDA

View Full Version : Official HNFM DJ Panel Mods



Dentafrice1
08-11-2006, 01:09 AM
Current Mods:

Timetable -

Demo: http://www.habbonewsiefm.net/timetable.php
The admin version is similar except:
Admins can clear a certain day
DJ's can book.
Download:
http://www.habbonewsie.net/MODS/Timetable.zip

Comes with install file :)

Enjoy

redtom
08-11-2006, 01:26 AM
Nice, +rep (I gave you rep for it in the other thread)

Also on my requests line I am having a problem changing the Background colour If I post the code and the colour code could you help me out?

Dentafrice1
08-11-2006, 01:27 AM
Yes ;)

redtom
08-11-2006, 01:34 AM
Colour: #c4f27c


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<!--Serif WebPlus 9 HTML Export-->
<!--Supports HTML 4.01-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Serif WebPlus 9.0.1b">
<title>Page 2</title>
<style type="text/css">
<!--
body {margin: 0px; padding: 0px;}
.Normal-P
{
margin:0.0px 0.0px 0.0px 0.0px; text-align:left; font-weight:400;
}
.Normal-C
{
font-family:"Verdana", sans-serif; font-size:13.0px;
line-height:1.23; color:#609c00;
}
-->
</style>
</head>

<body bgcolor="#c4f27c" link="#609c00" vlink="#609c00" text="#609c00">
<noscript>
<center>
<div style="position:relative;width:375px;">
</noscript>
<script type="text/javascript">
<!--
if (!document.layers) { document.write("<center> <div style=\"position:relative;width:375px;\">"); }
//-->
</script>
<div style="position:absolute; left:0px; top:0px; width:375px; height:369px;">
<p class="Normal-P"><span class="Normal-C">

<?

include "dbConfig.php";

include "front_page_stats.php";

?>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<title>Teen-Tunes - Request Line</title>

</head>



<style type="text/css">

body {background-color: #c4f27c}

</style>

<style type="text/css">

<!--




}

-->

</style>

</head>



<body bgcolor="#c4f27c">

<p align="left"><font color="#609c00" size="1" face="Verdana"><b>Request Line</b><br>
</font><i><font face="Verdana" color="#609c00" size="1">Contact The DJ</font></i>
</p>
<p align="left"><font face="Verdana"><span class="underheader">
<span style="FONT-STYLE: normal"><font color="#609c00" size="1">Welcome to the
Teen-Tunes request line.<br>
From here you send in your shoutouts and requests and hope that they will be
read out on air. (Remember to be patient as there are hundreds sent in every
hour)<br>
Please do not abuse the request line or you will be banned immediately!</font></span></span></font><FONT FACE="Verdana" SIZE="1"><BR> <BR>

<background-color: #c4f27c'>

Your IP Is: <I><? $ip=$_SERVER['REMOTE_ADDR']; echo "<font face='Verdana' size='1'><b>$ip</b>"; ?>

<br>

</I>Please Note, Your IP Is Sent With The Message.<br>
&nbsp; </p><P STYLE="margin-top: 0; margin-bottom: 0" align="left"> <?



if($_GET["op"] == "reg") {

//$result = mysql_query("SELECT * FROM `staff`");

//while($worked = mysql_fetch_array($result)) {

//$get_word = $worked['username'];

//if(preg_match("/$get_word/i", "$servertitle")) { $dj_name = "$get_word"; }

//}

$dj_name = addslashes($_POST["dj_name"]);

if($dj_name == "Choose One...") { echo "<font color='#609c00' face='Verdana' size='1'><b><font face=Verdana color=white size=2>You Need To Select A DJ Or No One Will Recieve It !<br>"; exit; }

if($habboname == "") { echo "<b><font face=Verdana color=black size=2>Please Go Back And Tell Us Your Name !<br>"; exit; }

$habboname = addslashes($_POST["habboname"]);

$request = addslashes($_POST["request"]);

$type = addslashes($_POST["type"]);

$ip = getenv("REMOTE_ADDR");

$date = date("d.m.y - H:i:s");

$query = mysql_query("INSERT INTO `requests` (`habboname`, `type`, `dj_name`, `message`, `ip`, `date`) VALUES('$habboname', '$type', '$dj_name', '$request', '$ip', '$date' )");



echo "<font color='#000000' face='Verdana' size='1'><br>Thank you <b>$habboname</b> for your <b>$type.</b> Stay Tuned To Hear Your Message !<p><META HTTP-EQUIV='Refresh'

CONTENT='10; URL=request.php'>

<br></font>

";

} else { echo "

<form method='post' action='?op=reg'>

<table border='0'>

<td valign='top' align='left'><font face='Verdana' size='1' color='#609c00'><b> Name:</b><br>

<input type='text' name='habboname' size='25'></font></td>

<tr>

<td valign='top' align='left'><font face='Verdana' size='1' color='#609c00'><b>Type:</b><br>

<font size='1' face='Verdana'><select name='type' size='1' style='color: #609c00; font-family: Verdana; font-size: 10px; border: 1px solid #609c00; background-color: #c4f27c'>

<option value='Request'>Request</option>

<option value='Shoutout'>Shoutout</option>

<option value='Joke'>Joke</option>

<option value='Other'>Other</option>

<option value='Comp'>Competition</option>

</select></td>

</tr>

<tr>

<td valign='top' align='left'><font face='Verdana' size='1' color='#609c00'><b>Select DJ: < Please Select!</b><br>

<font size='1' face='Verdana'><select name='dj_name' size='1' style='color: #000000; font-family: Verdana; font-size: 10px; border: 1px solid #609c00; background-color: #c4f27c'>";

$result = mysql_query("SELECT * FROM `staff`");

while($worked = mysql_fetch_array($result)) {

$get_word = $worked['username'];

if(preg_match("/$get_word/i", "$servertitle")) { echo "<option value='$get_word' selected>DJ $get_word</option>"; }

else { echo "<option value='$get_word'>DJ $get_word</option>"; }

}

echo "</select></td><tr>

<td valign='top' align='left'><font face='Verdana' size='1' color='#000000'><b>Message:</b><br>

<textarea rows='8' cols='35' type='text' name='request' class='button'></textarea></font></td>

</tr>

<tr>

<td valign='top' align='left'><font face='Verdana' size='1' color='#609c00'><input type='submit' name='submit' value='Send'></font></td>

</tr>

</table>

</form>";}

?> </P>

</body>

</html>
</span></p>
</div>
<noscript>
</div>
</center>
</noscript>
<script type="text/javascript">
<!--
if (!document.layers) { document.write("</div></center>"); }
//-->
</script>
</body>
</html>

When you open it as a page on its own its fine but when its on my site its got a white bg

Site: www.teen-tunes.com > go to request page

Dentafrice1
08-11-2006, 01:38 AM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<!--Serif WebPlus 9 HTML Export-->
<!--Supports HTML 4.01-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Serif WebPlus 9.0.1b">
<title>Page 2</title>
<style type="text/css">
<!--
body {margin: 0px; padding: 0px;}
.Normal-P
{
margin:0.0px 0.0px 0.0px 0.0px; text-align:left; font-weight:400;
}
.Normal-C
{
font-family:"Verdana", sans-serif; font-size:13.0px;
line-height:1.23; color:#609c00;
}
-->
</style>
</head>

<body bgcolor="#c4f27c" link="#609c00" vlink="#609c00" text="#609c00">
<noscript>
<center>
<div style="position:relative;width:375px;">
</noscript>
<script type="text/javascript">
<!--
if (!document.layers) { document.write("<center> <div style=\"position:relative;width:375px;\">"); }
//-->
</script>
<div style="position:absolute; left:0px; top:0px; width:375px; height:369px;">
<p class="Normal-P"><span class="Normal-C">

<?

include "dbConfig.php";

include "front_page_stats.php";

?>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<title>Teen-Tunes - Request Line</title>

</head>



<style type="text/css">

body {background-color: #c4f27c}

</style>

<style type="text/css">

<!--




}

-->

</style>

</head>



<body bgcolor="#c4f27c">

<p align="left"><font color="#609c00" size="1" face="Verdana"><b>Request Line</b><br>
</font><i><font face="Verdana" color="#609c00" size="1">Contact The DJ</font></i>
</p>
<p align="left"><font face="Verdana"><span class="underheader">
<span style="FONT-STYLE: normal"><font color="#609c00" size="1">Welcome to the
Teen-Tunes request line.<br>
From here you send in your shoutouts and requests and hope that they will be
read out on air. (Remember to be patient as there are hundreds sent in every
hour)<br>
Please do not abuse the request line or you will be banned immediately!</font></span></span></font><FONT FACE="Verdana" SIZE="1"><BR> <BR>

<body bgcolor="#c4f27c">

Your IP Is: <I><? $ip=$_SERVER['REMOTE_ADDR']; echo "<font face='Verdana' size='1'><b>$ip</b>"; ?>

<br>

</I>Please Note, Your IP Is Sent With The Message.<br>
&nbsp; </p><P STYLE="margin-top: 0; margin-bottom: 0" align="left"> <?



if($_GET["op"] == "reg") {

//$result = mysql_query("SELECT * FROM `staff`");

//while($worked = mysql_fetch_array($result)) {

//$get_word = $worked['username'];

//if(preg_match("/$get_word/i", "$servertitle")) { $dj_name = "$get_word"; }

//}

$dj_name = addslashes($_POST["dj_name"]);

if($dj_name == "Choose One...") { echo "<font color='#609c00' face='Verdana' size='1'><b><font face=Verdana color=white size=2>You Need To Select A DJ Or No One Will Recieve It !<br>"; exit; }

if($habboname == "") { echo "<b><font face=Verdana color=black size=2>Please Go Back And Tell Us Your Name !<br>"; exit; }

$habboname = addslashes($_POST["habboname"]);

$request = addslashes($_POST["request"]);

$type = addslashes($_POST["type"]);

$ip = getenv("REMOTE_ADDR");

$date = date("d.m.y - H:i:s");

$query = mysql_query("INSERT INTO `requests` (`habboname`, `type`, `dj_name`, `message`, `ip`, `date`) VALUES('$habboname', '$type', '$dj_name', '$request', '$ip', '$date' )");



echo "<font color='#000000' face='Verdana' size='1'><br>Thank you <b>$habboname</b> for your <b>$type.</b> Stay Tuned To Hear Your Message !<p><META HTTP-EQUIV='Refresh'

CONTENT='10; URL=request.php'>

<br></font>

";

} else { echo "

<form method='post' action='?op=reg'>

<table border='0'>

<td valign='top' align='left'><font face='Verdana' size='1' color='#609c00'><b> Name:</b><br>

<input type='text' name='habboname' size='25'></font></td>

<tr>

<td valign='top' align='left'><font face='Verdana' size='1' color='#609c00'><b>Type:</b><br>

<font size='1' face='Verdana'><select name='type' size='1' style='color: #609c00; font-family: Verdana; font-size: 10px; border: 1px solid #609c00; background-color: #c4f27c'>

<option value='Request'>Request</option>

<option value='Shoutout'>Shoutout</option>

<option value='Joke'>Joke</option>

<option value='Other'>Other</option>

<option value='Comp'>Competition</option>

</select></td>

</tr>

<tr>

<td valign='top' align='left'><font face='Verdana' size='1' color='#609c00'><b>Select DJ: < Please Select!</b><br>

<font size='1' face='Verdana'><select name='dj_name' size='1' style='color: #000000; font-family: Verdana; font-size: 10px; border: 1px solid #609c00; background-color: #c4f27c'>";

$result = mysql_query("SELECT * FROM `staff`");

while($worked = mysql_fetch_array($result)) {

$get_word = $worked['username'];

if(preg_match("/$get_word/i", "$servertitle")) { echo "<option value='$get_word' selected>DJ $get_word</option>"; }

else { echo "<option value='$get_word'>DJ $get_word</option>"; }

}

echo "</select></td><tr>

<td valign='top' align='left'><font face='Verdana' size='1' color='#000000'><b>Message:</b><br>

<textarea rows='8' cols='35' type='text' name='request' class='button'></textarea></font></td>

</tr>

<tr>

<td valign='top' align='left'><font face='Verdana' size='1' color='#609c00'><input type='submit' name='submit' value='Send'></font></td>

</tr>

</table>

</form>";}

?> </P>

</body>

</html>
</span></p>
</div>
<noscript>
</div>
</center>
</noscript>
<script type="text/javascript">
<!--
if (!document.layers) { document.write("</div></center>"); }
//-->
</script>
</body>
</html>

redtom
08-11-2006, 01:46 AM
It's still got a white bg for me :(

Dentafrice1
08-11-2006, 01:47 AM
Put
<body bgcolor="#c4f27c">

In:
dbConfig.php
and front_page_stats.php

Kevin

redtom
08-11-2006, 01:55 AM
Still white :(, this is werid every things telling it to be green and nothings saying to be white

Blinger1
08-11-2006, 05:32 AM
looks fine to me

http://img213.imageshack.us/img213/8296/omgfullynotsickvs8.png (http://imageshack.us)

beer
08-11-2006, 09:49 AM
try clearing ur cache. if ur using FF tools>options>clear private data. u dont need to clear history if u dont want to just uncheck the box. if ur using IE i think its clear temp internet files or sommin :s & blinger tht FF skin RAWKS! -downloads-

TimmyMallet
08-11-2006, 10:23 AM
+rep Kevin, the work you have put into these dj panels is so impressive.

Are the panels secure as in they check for a valid login/session? as i tried a previous version and it was hacked to the point that another website nutter deleted the admin login.

have a great day

Tim

Dentafrice1
08-11-2006, 12:26 PM
Yes it seems we missed securing the add_user.php and anyone could add a user and then go in and delete everything.

That was fixed in 3.1 ;)

beer
08-11-2006, 01:52 PM
hey kev ne chance of a profile MOD? So visitors could read the DJ's profiles?

redtom
08-11-2006, 03:44 PM
kevin could you post a link to a download of the panel you have uploaded as the one from the other thread has loads of things wrong with it

TimmyMallet
08-11-2006, 04:04 PM
Am I being stupid or missing something.. but I cannot see where to add DJ's lol

redtom
08-11-2006, 04:15 PM
Am I being stupid or missing something.. but I cannot see where to add DJ's lol

The admin account is not an admin, check the other thread on the 1st or 2ed page I've posted how to make it so you have an admin account

TimmyMallet
08-11-2006, 04:40 PM
The admin account is not an admin, check the other thread on the 1st or 2ed page I've posted how to make it so you have an admin account

+rep to you, for teaching me to read all the posts lol.

All though from your previous post I was unable to create a new user.

The way I got round this was:

Go into CPanel

Click on Mysql databases

Select the DJ panel database in the left hand drop down menu

You should then see a list of 45 tables

Scroll down and click on the one called staff

Wait untill it is loaded in the right hand panel then click on browse

You will then see at the bottom of the page a box similar to below

http://www.habbo4girls.com:2082/3rdparty/phpMyAdmin/themes/original/img/s_fulltext.png (http://www.habbo4girls.com:2082/3rdparty/phpMyAdmin/sql.php?db=habbo4_panel&table=staff&token=441b2ecf3ade8e6da7f6b2b5821d1b32&sql_query=SELECT+%2A+FROM+%60staff%60&session_max_rows=30&pos=0&disp_direction=horizontal&repeat_cells=100&goto=tbl_properties_structure.php&dontlimitchars=1) id username password email level ban lastlogin ip avatar

habboname http://www.habbo4girls.com:2082/3rdparty/phpMyAdmin/themes/original/img/b_edit.png (http://www.habbo4girls.com:2082/3rdparty/phpMyAdmin/tbl_change.php?db=habbo4_panel&table=staff&token=441b2ecf3ade8e6da7f6b2b5821d1b32&pos=0&session_max_rows=30&disp_direction=horizontal&repeat_cells=100&dontlimitchars=0&primary_key=+%60staff%60.%60id%60+%3D+284&sql_query=SELECT+%2A+FROM+%60staff%60&goto=sql.php) http://www.habbo4girls.com:2082/3rdparty/phpMyAdmin/themes/original/img/b_drop.png (http://www.habbo4girls.com:2082/3rdparty/phpMyAdmin/sql.php?db=habbo4_panel&table=staff&token=441b2ecf3ade8e6da7f6b2b5821d1b32&pos=0&session_max_rows=30&disp_direction=horizontal&repeat_cells=100&dontlimitchars=0&sql_query=DELETE+FROM+%60staff%60+WHERE+%60staff%6 0.%60id%60+%3D+284+LIMIT+1&zero_rows=The+row+has+been+deleted&goto=sql.php%3Fdb%3Dhabbo4_panel%26table%3Dstaff%2 6token%3D441b2ecf3ade8e6da7f6b2b5821d1b32%26pos%3D 0%26session_max_rows%3D30%26disp_direction%3Dhoriz ontal%26repeat_cells%3D100%26dontlimitchars%3D0%26 sql_query%3DSELECT%2B%252A%2BFROM%2B%2560staff%256 0%26zero_rows%3DThe%2Brow%2Bhas%2Bbeen%2Bdeleted%2 6goto%3Dtbl_properties_structure.php) 284 Admin changeme email 2 0n ever


click on the small icon of the pencil

You will then see a box on the right

you will see the number two, click on it and change it for 1

then click on save at the bottom

All done the DJ Admin account is now an admin

Recursion
08-11-2006, 04:43 PM
would be good if i had the working panel ;)

Recursion
08-11-2006, 05:13 PM
Sorry for Double Post just seen the DL Thread :)

Also is it the Panel that isnt working or is it my EasyPHP Localhost server !?

Thanks
Tom

uber
08-11-2006, 05:47 PM
What panel are we all using here?
The one posted a few threads down?

TimmyMallet
08-11-2006, 05:58 PM
Sorry for Double Post just seen the DL Thread :)

Also is it the Panel that isnt working or is it my EasyPHP Localhost server !?

Thanks
Tom

Well I sure I am missing something too, on a previous version I am sure I had to CHmod a specific file to give it rights to edit files, at the moment I have it all running but none of the dj accounts or admin accounts can edit their passwords etc..

Recursion
08-11-2006, 06:28 PM
Lottery
DJ profiles
Staff Forum
Installers
Basic CMS with WSYG Editor
Uploader built in

Im thinking of these randomly. So if some are already in then oh well...

Dentafrice1
08-11-2006, 09:19 PM
This is for both panels. Im going to make an official HNFM DJ Panel thread. It will have versions and etc. This will be for all mods ;)

-::Mr.Dave::-
08-11-2006, 10:14 PM
the timetable links dead

Dentafrice1
08-11-2006, 10:34 PM
No its not?

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