 |
|
#Array contains all the FAQ includes
$tabs = array ();
$tabs['signup'] = "webmasters_signup.php";
$tabs['hosted'] = "webmasters_hosted.php";
$tabs['promo'] = "webmasters_promo.php";
# Set the variable from HTTP
# And picks out the page from the array above
# $tab = $tabs[$HTTP_GET_VARS['tab']]; changed this because of variable reverse conflict thing er,
$page = $tabs[$HTTP_GET_VARS['tab']];
# Checks if the variable is in the $tabs array
# If it is, in will include the file
# If not, default var, and include set
if (in_array($page, $tabs)) {
$faq_current = "layout/includes/" . $tabs[$HTTP_GET_VARS['tab']];
} else {
$tab = "signup";
$faq_current = "layout/includes/webmasters_signup.php";
}
?>
|
|
 |