<?php
//*Client Data System, Copyright (C) 2000, 2001, 2002 Tedd Kelleher. This is free software, subject to the
//*GNU GENERAL PUBLIC LICENSE, Version 2, June 1991 (in file named gpl.txt), which should accompany
//*any distribution of this file. Tedd Kelleher can be contacted at hide@address.com
/*
if ($HTTP_GET_VARS["logoff"] == "yes") {
//session_start();
//session_destroy();
session_unset('logged_in');
$logged_in = "fishswamp";
$_SESSION['logged_inB'] = "fishswamp";
}
*/
$page_access_levels = ":10:20:30:40:";
////Header for every page that finds the include directory, connects to db, authenticates user access
include("initialize_pointer.php");
if(!include($include_root."authenticate.inc")){echo "No Authentication"; exit; };
//include($include_root."Questions_into_array_class.inc");
//include($include_root."questions_display.inc");
//include($include_root."Questions_answers_validation_class.inc");
//include($include_root."questions_into_tags_function.inc");
include($include_root."head.inc");
include($include_root."template_parser.inc");
include($include_root."page_elements_display.inc");
//include($include_root."client_id_class.inc");
//include($include_root."client_report_entry_class.inc");
//include($include_root."client_profile_class.inc");
//include($include_root."reports_class.inc");
//include($include_root."report_date_questions_class.inc");
//include($include_root."relationships_class.inc");
//include($include_root."query_report_class.inc");
$page_title = 'Home Page';
$page_id = "index";
$page_profile = "Homepage";
$instructions .= "Choose an option below. ";
$html_template = "index.html";
$browser_type = getenv("HTTP_USER_AGENT");
//Define the values for tags contained in the html template
//$tag_values["{DEMO_WELCOME}"] = "<br/>";
$tag_values["{BROWSER_DETECT}"] = " ";
//$tag_values["{BROWSER_DETECT}"] = "<h3>Welcome to the Shelter Data System</h3><p></p><b>Your web browser is: ".$browser_type."<br></br>Any browser version 5.0 or higher should work OK</b><p></p>If your current browser is not new enough to use this system, you can download free upgrades of the following by clicking on the links below:<p></p><a href=\"http://www.microsoft.com/windows/ie/downloads/default.asp\">Microsoft Internet Explorer 5.5 or 6</a><br><a href=\"http://channels.netscape.com/ns/browsers/default.jsp\">Netscape Navigator 7.x</a><p></p>";
//$tag_values["{BROWSER_DETECT}"] .= "<a href=\"".$system_directory."READ_ME.html#walk_through\" target=\"_blank\"><h4>Click Here For a Walk Through of the System's Features</h4></a><p>";
$tag_values["{PAGE TITLE}"] = page_title_table();
$tag_values["{MENU}"] = menu();
$tag_values["{HEAD}"] = head ($page_title, $head_page_specific, $head_dynamic_style);
$tag_values["{FOOTER}"] = footer();
//echo "Template is: ".$html_template."<br>";
template_parser ($html_template, $tag_values);
//echo "XXX is".$_SESSION["xxx"];
//$_SESSION["xxx"] = "<p>smelly";
?>