diff options
author | neoraider <devnull@localhost> | 2006-03-04 15:41:05 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-03-04 15:41:05 +0100 |
commit | 75057f07edfe2fd8cad316701555b7a56dc01da6 (patch) | |
tree | ce5b3d47874d2eeebfd8f000f828259f722263af /code/util.inc.php | |
parent | cea3e4c0de51683979fdad6868c9e383e9039f10 (diff) | |
download | neon-75057f07edfe2fd8cad316701555b7a56dc01da6.tar neon-75057f07edfe2fd8cad316701555b7a56dc01da6.zip |
Unnoetige DB-Klasse entfernt + alle Aufrufe auf AdoDB umgestellt;
Unquote-Funktion hinzugefuegt
Diffstat (limited to 'code/util.inc.php')
-rw-r--r-- | code/util.inc.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/code/util.inc.php b/code/util.inc.php index c2a8adf..724f8bd 100644 --- a/code/util.inc.php +++ b/code/util.inc.php @@ -12,5 +12,16 @@ return strtr($string, $tr); } + + if(get_magic_quotes_gpc()) { + function Unquote($string) { + return stripslashes($string); + } + } + else { + function Unquote($string) { + return $string; + } + } } ?> |