|
|
|
@ -164,19 +164,20 @@ if (api_get_setting('allow_browser_sniffer') == 'true') { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Display the Site Use Cookie Warning Validation |
|
|
|
|
$useCookieValidation = api_get_configuration_value('cookie_warning'); |
|
|
|
|
if ($useCookieValidation) { |
|
|
|
|
if (isset($_POST['acceptCookies'])) { |
|
|
|
|
api_set_site_use_cookie_warning_cookie(); |
|
|
|
|
} else if (!api_site_use_cookie_warning_cookie_exist()) { |
|
|
|
|
if (Template::isToolBarDisplayedForUser()) { |
|
|
|
|
$controller->tpl->assign('toolBarDisplayed', true); |
|
|
|
|
} else { |
|
|
|
|
$controller->tpl->assign('toolBarDisplayed', false); |
|
|
|
|
} else { |
|
|
|
|
if (!api_site_use_cookie_warning_cookie_exist()) { |
|
|
|
|
if (Template::isToolBarDisplayedForUser()) { |
|
|
|
|
$controller->tpl->assign('toolBarDisplayed', true); |
|
|
|
|
} else { |
|
|
|
|
$controller->tpl->assign('toolBarDisplayed', false); |
|
|
|
|
} |
|
|
|
|
$controller->tpl->assign('displayCookieUsageWarning', true); |
|
|
|
|
} |
|
|
|
|
$controller->tpl->assign('displayCookieUsageWarning', true); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|