2014-06-21, 11:59 AM
Could you please tell me if is it safe to use this code?
PHP code
HTML code
Also when these cookies will expire and what is the difference betwenn them????
my_setcookie('mybb[allowed_cookies]', '1');
my_setcookie('mybb[allowed_cookies]', '0');
PHP code
if($mybb->input['action'] == 'cookielaw_change')
if(isset($mybb->input['allow']))
{
my_setcookie('mybb[allowed_cookies]', '1');
header('Location: '.$_SERVER['REQUEST_URI']);
}
HTML code
<form action="{$mybb->settings['bburl']}/misc.php?action=cookielaw_change" method="post">
<div align="right"><input type="submit" name="allow" value="Hide this message" /></div>
Also when these cookies will expire and what is the difference betwenn them????
my_setcookie('mybb[allowed_cookies]', '1');
my_setcookie('mybb[allowed_cookies]', '0');