/* index.html
*
* main entry point for startupplanet.com
*
* @author
* @modified 041125
**/
// get required includes
require_once('include/common.inc.php');
require_once('include/popupcookie.class.php');
// execute initialization routines (eg. connect to a database, load up parameter files, etc)
// (none yet)
// check preconditions (ie. check for assumptions that are needed to be true before execution)
// (none yet)
$myClientID = 2; // client id of $_CONFIG['cookie_clients'] in cookieserver.inc.php
$myHomeAddr = 'www.clevelbootcamp.com/index.html?s=yes'; // redirect page after successful subscription
// fetch GET/POST variables
$sAction = $_GET['s'];
$cForce = $_GET['sc'];
// fetch cookie
$pCookie = new popupCookie();
// get GET parameter 's'
if ( $sAction ) {
if ( $sAction == 'yes' ) {
$pCookie->setSubscribed();
$pCookie->registerWithServer();
}
if ( $sAction == 'no' ) {
$pCookie->setUnsubscribed();
$pCookie->registerWithServer();
}
}
// see if we have to go to a cookie server
if ( !$pCookie->getStatus() && !$cForce ) {
// go to the cookie server
header("Location: ".$_CONFIG['cookie_server']."?cid=$myClientID");
exit;
} else if ( $cForce != $_CONFIG['POPUP_NONE'] ) {
$pCookie->setStatus($cForce);
}
// take action based on cookie status
switch ( $pCookie->getStatus() ) {
case $_CONFIG['POPUP_SUBSCRIBED']:
$showPopup = false;
break;
case $_CONFIG['POPUP_UNSUBSCRIBED']:
$showPopup = false;
break;
default:
$showPopup = true;
break;
}
?>
The CEO and Entrepreneur Boot Camp: The Art & Science of Business Design - executive training seminar.
if ( $browserAlert ) { ?>
} ?>