isMobile() && !$detect->isTablet() ){ header('Location: ' . $config_http . 'mobile/'); exit(); } */ // Start Session HTTP_Session::start(); HTTP_Session::setExpire(time() + $session_expire); HTTP_Session::setIdle(time() + $session_idle); // Check Session if ((HTTP_Session::isNew()) || (HTTP_Session::isIdle())) { $_SESSION['referer'] = get_refererinfo($_SESSION['referer'], true); $_SESSION['form_variables'] = array(); } else { $_SESSION['referer'] = get_refererinfo($_SESSION['referer'], false); } $GLOBALS['smarty'] = & new MySmarty(); $GLOBALS['smarty']->assign('kw', urlencode($_SESSION['referer']['kw'])); $GLOBALS['smarty']->assign('ps', urlencode($_SESSION['referer']['program_search'])); $GLOBALS['smarty']->assign('subid', urlencode($_SESSION['referer']['kw'] . '@' . $_SESSION['referer']['session_id'])); $GLOBALS['smarty']->assign('lp', $_SESSION['referer']['lp']); if ( ($_SESSION['referer']['cam'] == "how-we-help") || ($_SERVER['PHP_SELF'] == "/how-we-help.html")) { $GLOBALS['smarty']->display('how-we-help.html'); } elseif ( ($_SESSION['referer']['cam'] == "about") || ($_SERVER['PHP_SELF'] == "/about-us.html")) { $GLOBALS['smarty']->display('about-us.html'); } elseif ( ($_SESSION['referer']['cam'] == "contact") || ($_SERVER['PHP_SELF'] == "/contact-us.html")) { $GLOBALS['smarty']->display('contact-us.html'); } elseif ( ($_SESSION['referer']['cam'] == "privacy") || ($_SERVER['PHP_SELF'] == "/privacy-policy.html")) { $GLOBALS['smarty']->display('privacy-policy.html'); } elseif ( ($_SESSION['referer']['cam'] == "terms") || ($_SERVER['PHP_SELF'] == "/terms-and-conditions.html")) { $GLOBALS['smarty']->display('terms-and-conditions.html'); } else { $GLOBALS['smarty']->display('all_form_index.html'); } ?>