ZapCMS [PHP, OOP, From Scratch]

Page 5 of 5 FirstFirst 12345
Results 61 to 68 of 68
  1. #61
    The one and only! Hejula is offline
    MemberRank
    Nov 2008 Join Date
    4,128Posts

    Re: ZapCMS [PHP, OOP, From Scratch]

    Quote Originally Posted by Predict View Post
    Instead of doing this, use..

    Code:
    function Filter($input = '') {
    return mysql_real_escape_string($input); }
    Depending if you make new classes. It would be something like this.

    $blabab(blababa is your class)->(or ::)Filter;

    $name = $blabab->Filter($_POST['bean_avatarName']);
    uberCMS has filter() built into the core. I chose not to use it though. Pure had a better method anyway!

  2. #62
    Novice danr0ka is offline
    MemberRank
    Sep 2011 Join Date
    2Posts

    Re: ZapCMS [PHP, OOP, From Scratch]

    Quote Originally Posted by Predict View Post
    Instead of doing this, use..

    Code:
    function Filter($input = '') {
    return mysql_real_escape_string($input); }
    Depending if you make new classes. It would be something like this.

    $blabab(blababa is your class)->(or ::)Filter;

    $name = $blabab->Filter($_POST['bean_avatarName']);
    There is no point in that or anything else written above regarding this. Just run a foreach and filter all post variables in the global file (for input filtering).

  3. #63
    Account Upgraded | Title Enabled! Predict is offline
    MemberRank
    Aug 2008 Join Date
    760Posts

    Re: ZapCMS [PHP, OOP, From Scratch]

    Quote Originally Posted by Hejula View Post
    uberCMS has filter() built into the core. I chose not to use it though. Pure had a better method anyway!
    Depends if you want to use it for more than 1 thing (bean).

  4. #64
    The one and only! Hejula is offline
    MemberRank
    Nov 2008 Join Date
    4,128Posts

    Re: ZapCMS [PHP, OOP, From Scratch]

    Quote Originally Posted by Predict View Post
    Depends if you want to use it for more than 1 thing (bean).
    Well if you dont then use the filter that comes in uberCore.

  5. #65
    Live Ocottish Sverlord Joopie is offline
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts
    Quote Originally Posted by danr0ka View Post
    There is no point in that or anything else written above regarding this. Just run a foreach and filter all post variables in the global file (for input filtering).
    Finally someone knows better ....
    Posted via Mobile Device

  6. #66
    Account Upgraded | Title Enabled! Pure is offline
    MemberRank
    May 2008 Join Date
    809Posts
    This.


    Quote Originally Posted by Pure View Post
    This would be extremely easy to fix for every revision and for that matter every page.

    PHP Code:

    $data 
    = array();

    foreach( 
    $_POST as $key => $value )
    {

     
    $datastr_replace('bean_'''$key) ] = mysql_real_escape_string$value );

    }

    extract($data);

    echo 
    $password2;//lol123445667 
    Posted via Mobile Device

  7. #67
    :joy: Jonteh is offline
    MemberRank
    Apr 2007 Join Date
    New York, USALocation
    3,375Posts

    Re: ZapCMS [PHP, OOP, From Scratch]

    I'm starting a complete recode tonight. I'll take your suggestions into mind - but i'm not coding this to impress everyone, just to learn so yeah, you might not like some of the stuff i'm doing but there will be improvements. Design will be the design by Hejula for the JabboCMS project that was cancelled. Credits will be given where due.

  8. #68
    Account Upgraded | Title Enabled! Grant is offline
    MemberRank
    Sep 2009 Join Date
    Scotland, UK.Location
    728Posts

    Re: ZapCMS [PHP, OOP, From Scratch]

    Quote Originally Posted by Jontycat View Post
    I'm starting a complete recode tonight. I'll take your suggestions into mind - but i'm not coding this to impress everyone, just to learn so yeah, you might not like some of the stuff i'm doing but there will be improvements. Design will be the design by Hejula for the JabboCMS project that was cancelled. Credits will be given where due.
    I loved that design!



Page 5 of 5 FirstFirst 12345

Advertisement