ZapCMS [PHP, OOP, From Scratch]

Status
Not open for further replies.
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!
 
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).
 
This.


This would be extremely easy to fix for every revision and for that matter every page.

PHP:
$data = array();

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

 $data[ str_replace('bean_', '', $key) ] = mysql_real_escape_string( $value );

}

extract($data);

echo $password2;//lol123445667
 
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'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!
 
Status
Not open for further replies.
Back