/** * */ function index() { $resp = $this->getResponse('html'); $resp->title = jLocale::get('gui.dashboard.title'); $resp->body->assignZone('MAIN', 'dashboard'); $user = jAuth::getUserSession(); $driver = jAuth::getDriver(); if (method_exists($driver, 'checkPassword') && $user->login == 'admin' && $driver->checkPassword('admin', $user->password)) { jMessage::add(jLocale::get('gui.message.admin.password'), 'error'); } $resp->body->assign('selectedMenuItem', 'dashboard'); return $resp; }