No, not the actual POST action, yet the "edit" or the thing that changes the sql...
No, not the actual POST action, yet the "edit" or the thing that changes the sql...
Last edited by CJ-real; 16-12-2006 at 08:55 PM.
PM ME FOR QUICK HELP ON WEBDESIGNING, CODING, AND COMPUTER PROBLEMS! I WILL BE GLAD TO HELP FOR FREE!
I AM A GOLD HC MEMBER! 16 MONTHS! I have been on Habbo since the layout with the Newsie, and 14 of my articles were posted! I'm trusted when trading HC stuff for coding!
Noob person (this is true):da hotel manager getz paid 20 credz ay day n habbo staff clik a button n furni chang color
The only thing i can think of is possibly an error with the func.php file you have included.
Post the code for that and ill have a look![]()
PHP Code:<?php
ob_start();
function anti_hack($value)
{
if(get_magic_quotes_gpc()) {
$value = stripslashes($value);
}
if(!is_numeric($value)) {
$value = mysql_real_escape_string($value);
}
return $value;
}
function login()
{
if(!isset($_SESSION["session_username"]) || empty($_SESSION["session_username"]) || $_SERVER["REMOTE_ADDR"] != $_SESSION["session_ip"])
{
session_unset();
session_destroy();
die("Umm.. gotta login there mate");
}
}
function generateRandStr($length)
{
$randstr = "";
for($i=0; $i<$length; $i++)
{
$randnum = mt_rand(0,61);
if($randnum < 10)
{
$randstr .= chr($randnum+48);
}
else if($randnum < 36)
{
$randstr .= chr($randnum+55);
}
else
{
$randstr .= chr($randnum+61);
}
}
return $randstr;
}
?>
Thats the problem I do believe. Hmmm.. ill take a look at it.
its trying to use $_SESSION[session_username] When his usersystem uses cookies.
I built this for my DJ panel so I did not convert it over to cookies for his.
Ill post a fixed version later today .
Be happy.. im doing this on christmas eve![]()
I think i found the error now anyways. Thanks for pointing that outSure i can fix it
![]()
Last edited by Lilian; 26-12-2006 at 01:54 PM.
Its ok im sure i can fix it now, Thank you for all your help![]()
Want to hide these adverts? Register an account for free!