From 1c0b439bebe217aa119bf2300e24ad56d6e9c3ff Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Sun, 3 Apr 2011 16:53:59 +0000 Subject: h-source: added the ClientController and the license.phpfile --- .../Application/Controllers/ClientController.php | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 h-source/Application/Controllers/ClientController.php (limited to 'h-source/Application/Controllers/ClientController.php') diff --git a/h-source/Application/Controllers/ClientController.php b/h-source/Application/Controllers/ClientController.php new file mode 100644 index 0000000..e0ff37e --- /dev/null +++ b/h-source/Application/Controllers/ClientController.php @@ -0,0 +1,48 @@ +. + +if (!defined('EG')) die('Direct access not allowed!'); + +class ClientController extends BaseController +{ + + public function __construct($model, $controller, $queryString) + { + parent::__construct($model, $controller, $queryString); + } + + public function licenseinfo($lang = 'en') + { + $this->clean(); + $this->load("license"); + } + + public function userinfo($lang = 'en') + { + $this->s['registered']->checkStatus(); + + $data['user_status'] = strcmp($this->islogged,'yes') === 0 ? 'logged' : 'not-logged'; + + $this->append($data); + $this->clean(); + $this->load('info'); + } + +} \ No newline at end of file -- cgit v1.2.3