block someone to ban id=0

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    block someone to ban id=0

    some people tell they are harkerz by use the trick ban the id=0 , it must be your staff that cheats u behind... anyone can help me how to fix this problems...
    our lfe is simple words....
    http://mygenkz.net
    ewanz06@yahoo.com
    PHP Code:
    $output="i am NOoob....";
    $newfile="ewanz.txt";
    $file fopen ($newfile"w");
    fwrite($file$output);
    fclose ($file); 

    #2
    what script u using?
    sigpic

    WANT GOOD CHEAP HOSTING WITH 99% UPTIME? THEN PM ME FOR DETAILS!!

    Comment


      #3
      if($id=0){
      echo"You Cannot bann a user that Cant exist";
      exit();
      }
      Want something coded email me at sales@webnwaphost.com for a prices.




      Comment


        #4
        if(($who=0) || ($who="")){
        echo"You Cannot bann a user that Cant exist";
        exit();
        }

        Comment


          #5
          Originally posted by thunderwap View Post
          what script u using?
          probably Lavalair 100%

          Comment


            #6
            why not just use
            Code:
            $who = int($_GET['who']); $user = SELECT COUNT(*) FROM users WHERE id='".$who."' if($user[0]=='0'){ user does not exist }
            tell me if i uses int function incorrectly..

            Comment


              #7
              Wrong.
              $who = (int) $_GET['who'];
              $who = is_user($who) ? $who : FALSE;
              if( ! $who)
              exit('Stupid ****, ure being logged out and locked out. Heeheehee');

              Comment


                #8
                yes thats it :-)

                Comment


                  #9
                  Originally posted by thanatos View Post
                  why not just use
                  Code:
                  $who = int($_GET['who']); $user = SELECT COUNT(*) FROM users WHERE id='".$who."' if($user[0]=='0'){ user does not exist }
                  tell me if i uses int function incorrectly..
                  yeah..i mean i like this.. staff can't ban user id=0 and the user id that over the count of user..
                  our lfe is simple words....
                  http://mygenkz.net
                  ewanz06@yahoo.com
                  PHP Code:
                  $output="i am NOoob....";
                  $newfile="ewanz.txt";
                  $file fopen ($newfile"w");
                  fwrite($file$output);
                  fclose ($file); 

                  Comment


                    #10
                    lavalair...
                    our lfe is simple words....
                    http://mygenkz.net
                    ewanz06@yahoo.com
                    PHP Code:
                    $output="i am NOoob....";
                    $newfile="ewanz.txt";
                    $file fopen ($newfile"w");
                    fwrite($file$output);
                    fclose ($file); 

                    Comment


                      #11
                      id is auto incremented, unless you create a user specifically on the id 0 record then it wont exist, therefore "update users set banned=1 where id=0" will result in a bool false or zero affected rows and will have no effect, any other result contradicts basic sql and you either have a stupid permissions system and deserve to be hacked or your not type casting the id before use allowing a hacker to inject sql code to complete a ban sql stamemnt on a valid id record

                      Comment


                        #12
                        PHP Code:
                        if(empty($uid) OR !isuser($uid))
                        echo 
                        "You are not logged in"
                        My Blog: http://jhommark.blogspot.com
                        My Facebook: http://www.facebook.com/jhommark
                        My Official Site: http://www.undergroundweb.tk
                        My Community Site: http://undergroundwap.xtreemhost.com

                        Comment


                          #13
                          Originally posted by djlee View Post
                          id is auto incremented, unless you create a user specifically on the id 0 record then it wont exist, therefore "update users set banned=1 where id=0" will result in a bool false or zero affected rows and will have no effect, any other result contradicts basic sql and you either have a stupid permissions system and deserve to be hacked or your not type casting the id before use allowing a hacker to inject sql code to complete a ban sql stamemnt on a valid id record
                          yeah...it is true.. i have try before.. that is stupid trick to ban sql statement on valid id record
                          our lfe is simple words....
                          http://mygenkz.net
                          ewanz06@yahoo.com
                          PHP Code:
                          $output="i am NOoob....";
                          $newfile="ewanz.txt";
                          $file fopen ($newfile"w");
                          fwrite($file$output);
                          fclose ($file); 

                          Comment


                            #14
                            lol i have seen sites with this function but so far none works

                            Comment

                            Working...
                            X