diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-09-04 14:59:34 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-09-04 14:59:34 +0200 |
commit | cce1fe9bfea359cebae585eaaa944650bace4966 (patch) | |
tree | dedd328007271e40545fa0cfe493cfd63763be4a /application/helpers | |
parent | 54d5d869ad2c525dd276f28a8409658a106d9e3f (diff) |
Only store session information for stateful clients
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/helpers')
-rw-r--r-- | application/helpers/filebin_helper.php | 15 |
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: |