function.php
Gesponsorde koppelingen
PHP script bestanden
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* @author Leon Kuipers
* @copyright 2011
* @filename function.php
*/
function rand_getallen() {
$_SESSION['getal1'] = rand(1, 10);
$_SESSION['getal2'] = rand(1, 10);
}
function scheldwoorden($text)
{
$i = array("***","reet","aars","anus","kloot","dikzak","hoer","slet","teef","gerukt","bef","anaal","neuk","porno","kut",
"klote","ass","shit","fuck","lul");
$text = str_replace($i, "^@#%", $text);
return $text;
}
function beveiliging ($_beveiliging_input){
$i = $_beveiliging_input;
$i = trim($i);
$i = htmlentities($i);
$i = nl2br($i);
$i = strip_tags($i);
$i = stripslashes($i);
$i = mysql_real_escape_string($i);
$i = scheldwoorden($i);
return $i;
}
function checkmail($email)
{
if(preg_match("/^[_\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$/i", $email))
{
$valid = "true";
}
else
{
$valid = "false";
}
return $valid;
}
?>
/**
* @author Leon Kuipers
* @copyright 2011
* @filename function.php
*/
function rand_getallen() {
$_SESSION['getal1'] = rand(1, 10);
$_SESSION['getal2'] = rand(1, 10);
}
function scheldwoorden($text)
{
$i = array("***","reet","aars","anus","kloot","dikzak","hoer","slet","teef","gerukt","bef","anaal","neuk","porno","kut",
"klote","ass","shit","fuck","lul");
$text = str_replace($i, "^@#%", $text);
return $text;
}
function beveiliging ($_beveiliging_input){
$i = $_beveiliging_input;
$i = trim($i);
$i = htmlentities($i);
$i = nl2br($i);
$i = strip_tags($i);
$i = stripslashes($i);
$i = mysql_real_escape_string($i);
$i = scheldwoorden($i);
return $i;
}
function checkmail($email)
{
if(preg_match("/^[_\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$/i", $email))
{
$valid = "true";
}
else
{
$valid = "false";
}
return $valid;
}
?>