# This include file is used in each page of our signup process to
# allow users to switch between normal and large text.
#
# The user's state, with larger text being on or off, is stored in
# a cookie. The default state is 'off'.
#
# This file does the following:
#
# 1. If the flag "larger" is set (to "on" or "off"),
# set the cookie appropriate.
# Otherwise,
# read the state from the cookie.
#
# 2. Set the following variables appropriately:
# $stylesheet: which stylesheet to use.
# $switchsize_link: the HTML for the "Make text larger/smaller"
# link.
# 1. Determine (set or retrieve) the state.
if ( $larger )
{
# The boolean state variable:
$ShowLargerText = 0;
if ( $larger == 'on' )
$ShowLargerText = 1;
setcookie("ShowLargerText", $ShowLargerText, 0 , "/" , "www.okbridge.com");
}
# else the cookie's value is already stored in $ShowLargerText.
# Set the variables appropriately.
if ( $ShowLargerText )
{
$stylesheet = 'resources/okb-style-larger.css';
$switchsize_link = 'Use Smaller Text';
}
else
{
# The default.
$stylesheet = 'resources/okb-style-normal.css';
$switchsize_link = 'Use Larger Text';
}
?>