Apr 19 2007

Forbidden Words

Tag: MySqlberrisch @ 5:17 pm


$forbidden = array(’;',’DELETE’,'DO’,'INSERT’,'UPDATE’,'REPLACE’,'ALTER’,'CREATE’,'DROP’,'RENAME’,'DESCRIBE’,'USE’,'LOAD’);
$tmp_found = false;
foreach ($forbidden as $forbidden_word) {
if (stristr($_POST['request'],$forbidden_word)) $tmp_found = true;
}


Apr 19 2007

Prototype ajax updater response

Tag: Phpberrisch @ 12:10 pm

Very important: for each php response add this line - with the appropriate charset

header('Content-type: text/html; charset=iso-8859-1');
date("Y-m-d H:i:s");

Apr 17 2007

Prototype: eval request response

Tag: JavaScriptberrisch @ 3:04 pm
new Ajax.Request(
	'../include/update_update_dropdown.php', {
		method: 'post',
		encoding: 'ISO-8859-1',
		parameters: 'updateDropDown=1&sender='+sender.id,
		onComplete:function(transport) { eval(transport.responseText); },
		asynchronous: true
});

Next Page »