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!


Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Coding Help

  1. #11
    Join Date
    Oct 2005
    Location
    London :D
    Posts
    899
    Tokens
    0

    Default

    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):

  2. #12
    Join Date
    Aug 2005
    Posts
    856
    Tokens
    0

    Default

    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

  3. #13
    Join Date
    Oct 2006
    Location
    Merseyside
    Posts
    2,335
    Tokens
    0

    Latest Awards:

    Default

    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;
               }
    ?>

  4. #14
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    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

  5. #15
    Join Date
    Oct 2006
    Location
    Merseyside
    Posts
    2,335
    Tokens
    0

    Latest Awards:

    Default

    I think i found the error now anyways. Thanks for pointing that out Sure i can fix it
    Last edited by Lilian; 26-12-2006 at 01:54 PM.

  6. #16
    Join Date
    Mar 2006
    Location
    Scotland
    Posts
    1,012
    Tokens
    175

    Latest Awards:

    Default

    I didn't look properly at the code but it seems that your trying to set the time as the session name. Its not the problem but it still is a problem. Forgive me if im wrong though.


    You don't like me
    Chances are I don't like you.

  7. #17
    Join Date
    Oct 2006
    Location
    Merseyside
    Posts
    2,335
    Tokens
    0

    Latest Awards:

    Default

    Its ok im sure i can fix it now, Thank you for all your help

Page 2 of 2 FirstFirst 12

Posting Permissions

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