summaryrefslogtreecommitdiff
path: root/final/app/include/tools.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'final/app/include/tools.inc.php')
-rw-r--r--final/app/include/tools.inc.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/final/app/include/tools.inc.php b/final/app/include/tools.inc.php
new file mode 100644
index 0000000..bf75d1f
--- /dev/null
+++ b/final/app/include/tools.inc.php
@@ -0,0 +1,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;
+ }
+}
+?> \ No newline at end of file