aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Controllers/BaseController.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2010-12-06 21:19:57 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2010-12-06 21:19:57 +0000
commit87e2c9d5b67e2cd816da2ad27a9a6b9db8b43a4b (patch)
tree68fb3b84e425c985dc5b21e153457b3dd6540f0c /h-source/Application/Controllers/BaseController.php
parentb037354596f218a8bb42920437f8ea358fbabc8a (diff)
added NorepeatModel and other minor issues
Diffstat (limited to 'h-source/Application/Controllers/BaseController.php')
-rw-r--r--h-source/Application/Controllers/BaseController.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/h-source/Application/Controllers/BaseController.php b/h-source/Application/Controllers/BaseController.php
index 76fc4d3..db85405 100644
--- a/h-source/Application/Controllers/BaseController.php
+++ b/h-source/Application/Controllers/BaseController.php
@@ -24,8 +24,9 @@ class BaseController extends Controller
{
protected $lang;
- protected $ismoderator;
+ protected $ismoderator = false;
protected $querySanitized = true;
+ protected $token = 'token';
protected $_topMenuClasses = array(
"home" => null,
@@ -56,13 +57,13 @@ class BaseController extends Controller
$data['islogged'] = 'no';
$data['token'] = 'token';
$data['ismoderator'] = false;
- $this->ismoderator = false;
if ($this->s['registered']->status['status'] === 'logged')
{
$data['username'] = $this->s['registered']->status['user'];
$data['islogged'] = 'yes';
$data['token'] = $this->s['registered']->status['token'];
+ $this->token = $data['token'];
$data['ismoderator'] = in_array('moderator',$this->s['registered']->status['groups']) ? true : false;
$this->ismoderator = $data['ismoderator'];
}