diff options
Diffstat (limited to 'application/controllers')
-rw-r--r-- | application/controllers/file.php | 2 | ||||
-rw-r--r-- | application/controllers/user.php | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php index f9c576536..18e570b20 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -674,7 +674,7 @@ class File extends CI_Controller { $dh = opendir($upload_path."/".$dir); $empty = true; - + while (($file = readdir($dh)) !== false) { if ($file == ".." || $file == ".") { continue; diff --git a/application/controllers/user.php b/application/controllers/user.php index 7e6b2f27e..0550b0f6a 100644 --- a/application/controllers/user.php +++ b/application/controllers/user.php @@ -25,13 +25,13 @@ class User extends CI_Controller { $this->load->model("muser"); $this->data["title"] = "FileBin"; - + $this->load->helper(array('form', 'filebin')); $this->var->view_dir = "user/"; $this->data['username'] = $this->muser->get_username(); } - + function index() { $this->data["username"] = $this->muser->get_username(); @@ -40,7 +40,7 @@ class User extends CI_Controller { $this->load->view($this->var->view_dir.'index', $this->data); $this->load->view('footer', $this->data); } - + function login() { $this->muser->require_session(); @@ -197,13 +197,13 @@ class User extends CI_Controller { $this->load->view($this->var->view_dir.'register', $this->data); $this->load->view('footer', $this->data); } - + function logout() { $this->muser->logout(); redirect('/'); } - + function hash_password() { $process = $this->input->post("process"); |