This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.

30 lines
728 B
PHP
Raw Normal View History

2011-03-04 10:06:18 +11:00
<?php defined('SYSPATH') or die('No direct access allowed.');
2011-01-14 01:49:56 +11:00
2011-05-23 20:01:27 +10:00
/**
* phpTSMadmin Main home page
*
* @package PTA
* @subpackage Page/Home
* @category Controllers
* @author Deon George
* @copyright (c) 2010 phpTSMadmin Development Team
* @license http://phptsmadmin.sf.net/license.html
*/
2011-03-04 10:06:18 +11:00
class Controller_Welcome extends Controller_TemplateDefault {
2011-06-27 17:24:39 +10:00
protected $auth_required = FALSE;
2011-05-23 20:01:27 +10:00
public function action_index() {
2012-11-26 16:57:18 +11:00
if (! Kohana::$config->load('config')->client)
HTTP::redirect('guide/app');
2011-06-27 17:24:39 +10:00
if (! Auth::instance()->logged_in())
2012-11-26 16:57:18 +11:00
HTTP::redirect('login');
2011-06-27 17:24:39 +10:00
2011-03-04 10:06:18 +11:00
Block::add(array(
'title'=>sprintf('%s: %s (%s)',_('Server'),TSM::name(),TSM::version()),
'body'=>'hello, world!',
));
2011-01-14 01:49:56 +11:00
}
2011-05-23 20:01:27 +10:00
}
2011-03-04 10:06:18 +11:00
?>