[Tool/Web/Other] UCP 0.1
#6

PHP код:
function sanitizeString($var){
$var stripslashes($var);
$var htmlentities($var);
$var strip_tags($var);
return 
$var;

Use this for escaping forms.

PHP код:
function sanitizeSQL($var){
$var mysql_real_escape_string($var);
$var sanitizeString($var);
return 
$var;

Use this for escaping mysql string.

These codes are efficient and enhances security against SQL and XSS attacks.

If you want more security against passwords use this technique:

PHP код:

$Salt1 
"#$@#%#$!@$@#1234223233";
$Salt2 "#*$(#@$&AJDSU#341224334";
$Hash md5("$Salt1$password$Salt2"); 
Reply


Messages In This Thread
UCP 0.1 - by Gigi-The-Beast - 23.04.2011, 09:52
Re: UCP 0.1 - by [ADC]Aldi96 - 23.04.2011, 09:52
Re: UCP 0.1 - by Sensitive - 23.04.2011, 09:53
Re: UCP 0.1 - by Oliverraisk - 23.04.2011, 09:58
Re: UCP 0.1 - by Gigi-The-Beast - 23.04.2011, 10:10
Re: UCP 0.1 - by XFlawless - 23.04.2011, 10:15
Re: UCP 0.1 - by Gigi-The-Beast - 23.04.2011, 10:22
Re: UCP 0.1 - by TheArcher - 23.04.2011, 10:24
Re: UCP 0.1 - by Gigi-The-Beast - 23.04.2011, 10:28
Re: UCP 0.1 - by XFlawless - 23.04.2011, 10:29
Re: UCP 0.1 - by Gigi-The-Beast - 23.04.2011, 10:43
Re: UCP 0.1 - by TheArcher - 23.04.2011, 12:03
Re: UCP 0.1 - by Gigi-The-Beast - 23.04.2011, 12:05
Re: UCP 0.1 - by royal_king - 23.04.2011, 16:19
Re: UCP 0.1 - by XFlawless - 23.04.2011, 16:20
Re: UCP 0.1 - by LoLaMan - 24.04.2011, 20:18
Re: UCP 0.1 - by TheArcher - 24.04.2011, 20:20
Re: UCP 0.1 - by CODMW5 Owner - 24.04.2011, 21:04
Re: UCP 0.1 - by NicoBellic - 24.04.2011, 22:03
Re: UCP 0.1 - by Gigi-The-Beast - 25.04.2011, 16:32
Re: UCP 0.1 - by XFlawless - 25.04.2011, 16:38
Re: UCP 0.1 - by Gigi-The-Beast - 25.04.2011, 16:58

Forum Jump:


Users browsing this thread: 10 Guest(s)