zentaopms/extension/max/common/ext/model/hook/checkPriv.web.php
2023-05-16 10:50:42 +08:00

11 lines
337 B
PHP

<?php
if($this->app->viewType == 'mhtml')
{
$module = $this->app->getModuleName();
$tab = isset($this->lang->navGroup->$module) ? $this->lang->navGroup->$module : $module;
setcookie('tab', $tab, 0, $this->config->webRoot, '', $this->config->cookieSecure, false);
$_COOKIE['tab'] = $tab;
$this->app->tab = $tab;
}