30 lines
748 B
PHP
30 lines
748 B
PHP
<?php defined('SYSPATH') or die('No direct access allowed.');
|
|
|
|
/**
|
|
* 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
|
|
*/
|
|
class Controller_Welcome extends Controller_TemplateDefault {
|
|
protected $auth_required = FALSE;
|
|
|
|
public function action_index() {
|
|
if (! Kohana::config('config.client'))
|
|
Request::current()->redirect('guide/pta');
|
|
|
|
if (! Auth::instance()->logged_in())
|
|
Request::current()->redirect('login');
|
|
|
|
Block::add(array(
|
|
'title'=>sprintf('%s: %s (%s)',_('Server'),TSM::name(),TSM::version()),
|
|
'body'=>'hello, world!',
|
|
));
|
|
}
|
|
}
|
|
?>
|