summaryrefslogtreecommitdiff
path: root/final/app/include/tools.inc.php
blob: bf75d1fae28a73ca1965076ae6ca477d8ac120dc (plain)
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
<?php
function addslashes_if_needed($texte)
{
	if(get_magic_quotes_gpc() == 0)
	{
		return addslashes($texte);
	}
	else
	{
		return $texte;
	}
}

function stripslashes_if_needed($texte)
{
	if(get_magic_quotes_gpc() != 0)
	{
		return stripslashes($texte);
	}
	else
	{
		return $texte;
	}
}
?>