summaryrefslogtreecommitdiffstats
path: root/application/models/muser.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-04-09 00:27:17 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-04-09 20:48:04 +0200
commit40970e2cb0480cd0016a0a4f88b69d33b9c95c22 (patch)
treedeeb775f5fbf6cb4b6709fbb55605cce4d66740f /application/models/muser.php
parentccf2d88f9e17bc2884d31cee9ce4ae2ab563b8c1 (diff)
muser: fix handling of cli clients without account
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/models/muser.php')
-rw-r--r--application/models/muser.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/application/models/muser.php b/application/models/muser.php
index 5ba4b4922..0fc99ab85 100644
--- a/application/models/muser.php
+++ b/application/models/muser.php
@@ -56,13 +56,15 @@ class Muser extends CI_Model {
if ($this->logged_in()) {
return true;
} else {
- if ($this->file->var->cli_client) {
- echo "FileBin requires you to have an account, please go to the homepage for more information.";
+ if ($this->file_mod->is_cli_client()) {
+ echo "FileBin requires you to have an account, please go to the homepage for more information.\n";
+ exit();
} else {
$this->session->set_flashdata("uri", $this->uri->uri_string());
redirect('user/login');
}
}
+ exit();
}
function hash_password($password)