summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
Diffstat (limited to 'application')
-rw-r--r--application/controllers/file.php3
-rw-r--r--application/models/file_mod.php11
2 files changed, 0 insertions, 14 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php
index 29ff24ca1..9d872fbb0 100644
--- a/application/controllers/file.php
+++ b/application/controllers/file.php
@@ -88,7 +88,6 @@ class File extends CI_Controller {
// Allow users to delete IDs if their password matches the one used when uploading
function delete()
{
- $this->file_mod->check_client_version();
$data = array();
$id = $this->uri->segment(3);
$password = $this->file_mod->get_password();
@@ -123,7 +122,6 @@ class File extends CI_Controller {
// XXX: this is too vulnerable to bots
function do_paste()
{
- $this->file_mod->check_client_version();
// FIXME: disable until bot problem is really fixed
return $this->upload_form();
@@ -162,7 +160,6 @@ class File extends CI_Controller {
// TODO: merge with do_paste()
function do_upload()
{
- $this->file_mod->check_client_version();
$data = array();
$extension = $this->input->post('extension');
// TODO: Display nice error for cli clients
diff --git a/application/models/file_mod.php b/application/models/file_mod.php
index dfb203226..62c613ebe 100644
--- a/application/models/file_mod.php
+++ b/application/models/file_mod.php
@@ -146,17 +146,6 @@ class File_mod extends CI_Model {
$this->load->view($this->var->view_dir.'/footer', $data);
}
- function check_client_version()
- {
- if ($this->var->cli_client == "fb-client") {
- $client_version = substr($_SERVER['HTTP_USER_AGENT'], 10);
- if ($this->var->latest_client != $client_version) {
- echo "Your are using an old client version. Latest is ".$this->var->latest_client."\n";
- }
- }
-
- }
-
// download a given ID
// TODO: make smaller
function download()