aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Controllers
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-06-22 14:51:14 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-06-22 14:51:14 +0000
commit34adb20d0ffe996bf454ade33ff02fef70968730 (patch)
tree2f095b0449a67150469b6baaaebbb67471126f63 /h-source/Application/Controllers
parentdcbc21e9680c54adc831b71cd1d22d3e680e03b0 (diff)
anonymous users can now insert devices, automatically set as hidden (to be approved)
Diffstat (limited to 'h-source/Application/Controllers')
-rw-r--r--h-source/Application/Controllers/GenericController.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/h-source/Application/Controllers/GenericController.php b/h-source/Application/Controllers/GenericController.php
index eececc9..92831f7 100644
--- a/h-source/Application/Controllers/GenericController.php
+++ b/h-source/Application/Controllers/GenericController.php
@@ -73,11 +73,11 @@ class GenericController extends BaseController
$this->s['registered']->checkStatus();
- if ($this->s['registered']->status['status'] === 'logged')
- {
- if (!$this->s['registered']->checkCsrf($clean['token'])) $this->redirect($this->controller.'/catalogue/'.$this->lang,2,'wrong token..');
+// if ($this->s['registered']->status['status'] === 'logged')
+// {
+// if (!$this->s['registered']->checkCsrf($clean['token'])) $this->redirect($this->controller.'/catalogue/'.$this->lang,2,'wrong token..');
- if ($this->m['UsersModel']->isBlocked($this->s['registered']->status['id_user'])) $this->redirect('my/home/'.$this->lang,2,'your account has been blocked..');
+// if ($this->m['UsersModel']->isBlocked($this->s['registered']->status['id_user'])) $this->redirect('my/home/'.$this->lang,2,'your account has been blocked..');
if (isset($_POST['insertAction']))
{
@@ -141,11 +141,11 @@ class GenericController extends BaseController
$this->clean();
$this->load('xml_response');
}
- }
- else
- {
- $this->redirect("users/login/".$this->lang."?redirect=".$this->controller."/catalogue/".$this->lang,0);
- }
+// }
+// else
+// {
+// $this->redirect("users/login/".$this->lang."?redirect=".$this->controller."/catalogue/".$this->lang,0);
+// }
}
public function del($lang = 'en', $token = '')