aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-21 17:24:13 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-21 17:24:13 +0000
commitc5dd69b30761786ca22878222d42f17e920ae8b2 (patch)
treeac7770bc2006637bb0926b9f5e8b31ac3b385887 /engine/lib/elgglib.php
parentb10b63780291e223dc30ece31ea2899ddd8078e1 (diff)
downloadelgg-c5dd69b30761786ca22878222d42f17e920ae8b2.tar.gz
elgg-c5dd69b30761786ca22878222d42f17e920ae8b2.tar.bz2
Fixed input for people with magic quotes on.
git-svn-id: https://code.elgg.org/elgg/trunk@2037 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 272dd08dc..87fd40172 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -1618,6 +1618,21 @@
system_message("Gatekeeper'd function called from {$callstack[1]['file']}:{$callstack[1]['line']}\n\nStack trace:\n\n" . print_r($callstack, true));
return false;
+ }
+
+ /**
+ * Returns true or false depending on whether a PHP .ini setting is on or off
+ *
+ * @param string $ini_get_arg The INI setting
+ * @return true|false Depending on whether it's on or off
+ */
+ function ini_get_bool($ini_get_arg) {
+ $temp = ini_get($ini_get_arg);
+
+ if ($temp == '1' or strtolower($temp) == 'on') {
+ return true;
+ }
+ return false;
}
/**