summaryrefslogtreecommitdiff
path: root/final/app/include/tools.inc.php
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-07-05 00:25:51 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-07-05 00:25:51 +0200
commitac54f5224d4470de9d8ae088e1338dea52668c9d (patch)
tree7f77b2a8176343e6632fbd99ff431c21974ef482 /final/app/include/tools.inc.php
parent9738017972a6d4fea655926525b3c67dd85740cf (diff)
download2007-AWOR-ac54f5224d4470de9d8ae088e1338dea52668c9d.tar.gz
2007-AWOR-ac54f5224d4470de9d8ae088e1338dea52668c9d.tar.bz2
2007-AWOR-ac54f5224d4470de9d8ae088e1338dea52668c9d.zip
Renommage beta_accents -> final pour diffs
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