2010-11-22 12:50:12 +00:00
|
|
|
<?php
|
|
|
|
class IndexController extends Zend_Controller_Action
|
|
|
|
{
|
|
|
|
protected $appConfig;
|
|
|
|
|
|
|
|
public function init()
|
|
|
|
{
|
|
|
|
/* Initialize action controller here */
|
|
|
|
}
|
|
|
|
|
|
|
|
public function preDispatch()
|
|
|
|
{
|
|
|
|
$auth = Zend_Auth::getInstance();
|
|
|
|
if (!$auth->hasIdentity()){
|
2010-11-22 12:57:11 +00:00
|
|
|
$this->_redirect('/user/login');
|
2010-11-22 12:50:12 +00:00
|
|
|
} else {
|
|
|
|
$bootstrap = $this->getInvokeArg('bootstrap');
|
|
|
|
$this->appConfig = $bootstrap->getOptions();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public function indexAction()
|
|
|
|
{
|
2011-01-06 08:37:20 +00:00
|
|
|
/*
|
|
|
|
require_once 'Scores/WsScores.php';
|
|
|
|
$auth = Zend_Auth::getInstance();
|
|
|
|
$login = $auth->getIdentity()->username;
|
|
|
|
$ws = new WsScores();
|
|
|
|
$InfosLogin = $ws->getInfosLogin($login);
|
|
|
|
$this->view->assign('identity', $InfosLogin);
|
|
|
|
*/
|
2010-11-22 12:50:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|