Re: ZapCMS [PHP, OOP, From Scratch]
Quote:
Originally Posted by
Predict
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!
Re: ZapCMS [PHP, OOP, From Scratch]
Quote:
Originally Posted by
Predict
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).
Re: ZapCMS [PHP, OOP, From Scratch]
Quote:
Originally Posted by
Hejula
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).
Re: ZapCMS [PHP, OOP, From Scratch]
Quote:
Originally Posted by
Predict
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.
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.
Re: ZapCMS [PHP, OOP, From Scratch]
Quote:
Originally Posted by
Jontycat
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!