From 1a42c1c617bea6ec2c9344073fcef082fae9cb35 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Tue, 5 Apr 2011 15:28:19 +0000 Subject: h-source:improved the way license is shown --- h-source/Application/Controllers/ClientController.php | 7 +++++++ h-source/Application/Controllers/UsersController.php | 11 ----------- 2 files changed, 7 insertions(+), 11 deletions(-) (limited to 'h-source/Application/Controllers') diff --git a/h-source/Application/Controllers/ClientController.php b/h-source/Application/Controllers/ClientController.php index e0ff37e..51966c9 100644 --- a/h-source/Application/Controllers/ClientController.php +++ b/h-source/Application/Controllers/ClientController.php @@ -30,12 +30,19 @@ class ClientController extends BaseController public function licenseinfo($lang = 'en') { + header ("Content-Type:text/xml"); + + $data["xml"] = "\n"; + + $this->append($data); $this->clean(); $this->load("license"); } public function userinfo($lang = 'en') { + header ("Content-Type:text/xml"); + $this->s['registered']->checkStatus(); $data['user_status'] = strcmp($this->islogged,'yes') === 0 ? 'logged' : 'not-logged'; diff --git a/h-source/Application/Controllers/UsersController.php b/h-source/Application/Controllers/UsersController.php index 651b371..b8fe57e 100644 --- a/h-source/Application/Controllers/UsersController.php +++ b/h-source/Application/Controllers/UsersController.php @@ -118,17 +118,6 @@ class UsersController extends BaseController $this->load('logout'); } -// public function info($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'); -// } - public function add($lang = 'en') { $data['title'] = 'create account - '.Website::$generalName; -- cgit v1.2.3