summaryrefslogtreecommitdiffstats
path: root/application/helpers/filebin_helper.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-09-04 14:59:34 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-09-04 14:59:34 +0200
commitcce1fe9bfea359cebae585eaaa944650bace4966 (patch)
treededd328007271e40545fa0cfe493cfd63763be4a /application/helpers/filebin_helper.php
parent54d5d869ad2c525dd276f28a8409658a106d9e3f (diff)
Only store session information for stateful clients
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/helpers/filebin_helper.php')
-rw-r--r--application/helpers/filebin_helper.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/application/helpers/filebin_helper.php b/application/helpers/filebin_helper.php
index 7ba68b839..53fc4f280 100644
--- a/application/helpers/filebin_helper.php
+++ b/application/helpers/filebin_helper.php
@@ -356,4 +356,19 @@ function static_storage($key, $value = null)
return $storage[$key];
}
+function stateful_client()
+{
+ $CI =& get_instance();
+
+ if ($CI->input->post("apikey")) {
+ return false;
+ }
+
+ if (is_cli_client()) {
+ return false;
+ }
+
+ return true;
+}
+
# vim: set noet: