[-] BO : AdminModule shows when connected to Addons and have a logout button

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13731 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
fSerny
2012-02-29 10:29:12 +00:00
parent 28f2912d04
commit 0f22c97c6e
5 changed files with 70 additions and 3 deletions

View File

@@ -289,6 +289,13 @@ class AdminModulesControllerCore extends AdminController
die($result);
}
public function ajaxProcessLogOutAddonsWebservices()
{
$this->context->cookie->username_addons = '';
$this->context->cookie->password_addons = '';
die('OK');
}
public function ajaxProcessReloadModulesList()
{
if (Tools::getValue('filterCategory'))
@@ -1084,7 +1091,10 @@ class AdminModulesControllerCore extends AdminController
$tpl_vars['check_openssl'] = (extension_loaded('openssl') ? 'ok' : 'ko');
if ($this->logged_on_addons)
{
$tpl_vars['logged_on_addons'] = 1;
$tpl_vars['username_addons'] = $this->context->cookie->username_addons;
}
$smarty->assign($tpl_vars);
}