Regpage anti-sql injection?

Results 1 to 5 of 5
  1. #1
    Valued Member Looky is offline
    MemberRank
    Apr 2009 Join Date
    142Posts

    Regpage anti-sql injection?

    Hi,

    PLease, what script regpage anti-sql injection works 100% ? Thanks.


  2. #2
    Account Upgraded | Title Enabled! ~Fallen is offline
    MemberRank
    Dec 2008 Join Date
    Behind you look BehindLocation
    407Posts

    Re: Regpage anti-sql injection?

    here we go -- we can't say it works 100% but it's up to date

    PHP Code:
    function antisql($sql) {
        
    $sql preg_replace(sql_regcase("(select|union|0x|cast|exec|varchar|insert into|delete from|update account|update login|update character|ugradeid|drop table|show tables)"),"",$sql);
        
    $sql trim($sql);
        
    $sql strip_tags($sql);
        
    $sql addslashes($sql);
        return 
    $sql;

    all credits to wizkid

  3. #3
    Valued Member Looky is offline
    MemberRank
    Apr 2009 Join Date
    142Posts

    Re: Regpage anti-sql injection?

    Thank you Fallen

  4. #4
    Account Upgraded | Title Enabled! ~Fallen is offline
    MemberRank
    Dec 2008 Join Date
    Behind you look BehindLocation
    407Posts

    Re: Regpage anti-sql injection?

    no problem..

  5. #5
    Infraction Banned Team Dragon is offline
    MemberRank
    May 2009 Join Date
    96Posts

    Re: Regpage anti-sql injection?

    Quote Originally Posted by ~Fallen View Post
    no problem..
    @signature
    its our job to make your player happy ^_^



Advertisement