StewardManscat
10-11-2004, 09:00 PM
At our site we require cookies.
Avoid support issues by turning people away at the door.
In register.php find
if (empty($_REQUEST['do']) AND empty($_REQUEST['a']))
{
$_REQUEST['do'] = 'signup';
}
Replace with
if (empty($_REQUEST['do']) AND empty($_REQUEST['a']))
{
$_REQUEST['do'] = 'cookie';
}
Find
if ($_REQUEST['do'] == 'signup')
Replace with
if ($_REQUEST['do'] == 'cookie')
{
vbsetcookie('signup', 'ok', 0);
exec_header_redirect("register.php?do=signup");
}
if ($_REQUEST['do'] == 'signup')
{
if ($_COOKIE[COOKIE_PREFIX . 'signup'] != 'ok' )
{
eval('print_output("' . fetch_template('manNeedsCookie') . '");');
}
Finally, create a template which informs the user why they cannot register. You'll want to include some links to help them out....
http://www.google.com/cookies.html
http://webmaster.info.aol.com/cookieguide.html
http://www.allaboutcookies.org/manage-cookies
http://www.cookiecentral.com/
Avoid support issues by turning people away at the door.
In register.php find
if (empty($_REQUEST['do']) AND empty($_REQUEST['a']))
{
$_REQUEST['do'] = 'signup';
}
Replace with
if (empty($_REQUEST['do']) AND empty($_REQUEST['a']))
{
$_REQUEST['do'] = 'cookie';
}
Find
if ($_REQUEST['do'] == 'signup')
Replace with
if ($_REQUEST['do'] == 'cookie')
{
vbsetcookie('signup', 'ok', 0);
exec_header_redirect("register.php?do=signup");
}
if ($_REQUEST['do'] == 'signup')
{
if ($_COOKIE[COOKIE_PREFIX . 'signup'] != 'ok' )
{
eval('print_output("' . fetch_template('manNeedsCookie') . '");');
}
Finally, create a template which informs the user why they cannot register. You'll want to include some links to help them out....
http://www.google.com/cookies.html
http://webmaster.info.aol.com/cookieguide.html
http://www.allaboutcookies.org/manage-cookies
http://www.cookiecentral.com/