index.php - dbh = TRUE"; else echo "

index.php - dbh = FALSE

"; include('include_APP/get_globals.php'); //if ($unit_id == '') $unit_id = 'AzScout'; include("include_APP/get_config.php"); //DEBUG echo "

index.php: unit_id = $unit_id unit_name = $unit_name

"; // SET TAB HEADERS if ($mode_id == '12') $pagetitle = 'Home Page Update'; if ($mode_id == '14') $pagetitle = 'Home Page Update'; if ($mode_id == '20') $pagetitle = 'Calendar'; if ($mode_id == '21') $pagetitle = 'Calendar - Maintenance '; if ($mode_id == '25') $pagetitle = 'Calendar - New'; if ($mode_id == '26') $pagetitle = 'Calendar - Update'; if ($mode_id == '102') $pagetitle = 'Calendar - Printable'; if ($mode_id == '130') $pagetitle = 'Calendar - Link'; if ($mode_id == '140') $pagetitle = 'Calendar - Grid'; if ($mode_id == '1000') $pagetitle = 'Administration'; if ($pagetitle == '') $pagetitle = 'Website'; //DEBUG echo "

pagetitle = $pagetitle

"; echo " $unit_id $pagetitle "; //$unit_id = 1; //$unit_type = "Troop"; //$unit_id = 118; // unit_type = 1 Boy Scout // unit_type = 2 Cub Scout if (($css_id < 1) || ($css_id > 3)) $css_id = 1; { $unit_name = "AzScout"; //$unit_id = "AzScout"; } $mode_id = intval($mode_id); if (is_int($mode_id)) echo ""; else $mode_id = 0; $dir_path = getcwd(); //DEBUG echo "

index.php - dir_path = $dir_path

"; //include("get_config.php"); // NAVIGATION HEADER AND FOOTER DEFAULT ON $nav_show = 'Y'; if ($mode_id == 102) $nav_show = 'N'; if ($mode_id == 500) $nav_show = 'N'; if ($mode_id == 940) $nav_show = 'N'; // CALENDAR NEW EVENT if ($mode_id == 950) $nav_show = 'N'; // CALENDAR BY TYPE //DETERMINE WHICH STYLE SHEET TO APPLY $style_sheet = 1; // UNIT_SPECIFIC (DEFAULT) if ($mode_id == 940) $style_sheet = 2; // PRINTER FRIENDLY if ($style_sheet == 1 ) echo " "; if ($style_sheet == 2 ) echo ""; echo " "; echo ""; $debug_text .= "

Start Debug Text

"; //NAVHEADER if ($nav_show == 'Y') include("include_APP/navheader.php"); if ($mode_id == 0) include("include_APP/home_form.php"); if ($mode_id == 10) include("include_APP/home_form.php"); // UNIT HOME PAGE FROM DATABASE if ($mode_id == 11) include("include_APP/home.php"); // UNIT HOME PAGE FROM FILE if ($mode_id == 12) include("include_APP/home_form_100.php"); if ($mode_id == 14) include("include_APP/home_form_110.php"); // HOME PAGE UPDATE if ($mode_id == 15) include("include_APP/unit_page.php"); // UNIT CUSTOM PAGE FROM DATABASE if ($mode_id == 16) include("include_APP/unit_page_100.php"); // UNIT PAGE UPDATE - START if ($mode_id == 17) include("include_APP/unit_page_110.php"); // UNIT PAGE UPDATE - UPDATE if ($mode_id == 20) include("include_APP/calendar.php"); // DISPLAY CALENDAR - AGENDA FORMAT if ($mode_id == 21) include("include_APP/calendar.php"); // DISPLAY CALENDAR - AGENDA FORMAT if ($mode_id == 25) include("include_APP/cal_form_10.php"); // CREATE A NEW CALENDAR EVENT if ($mode_id == 26) include("include_APP/cal_form_100.php"); // UPDATE A CALENDAR EVENT if ($mode_id == 27) include("include_APP/cal_form_170.php"); // DELETE A CALENDAR EVENT added 080513 if ($mode_id == 30) include("include_APP/contactlist.php"); // ADULT CONTACTS if ($mode_id == 40) include("include_APP/secure.php"); if ($mode_id == 50) include("include_APP/contact_scout.php"); // SCOUT CONTACTS if ($mode_id == 60) include("include_APP/leadertools.html"); if ($mode_id == 70) include("include_APP/achievements.html"); if ($mode_id == 75) include("include_APP/ranks.html"); if ($mode_id == 90) include("include_APP/training_detail.php"); // SCOUT TRAINING LIST if ($mode_id == 91) include("include_APP/training_reqts.php"); // ROLE TRAINING REQUIREMENTS LIST if ($mode_id == 92) include("include_APP/training_status.php"); // ROLE TRAINING STATUS LIST if ($mode_id == 93) include("include_APP/training_update.inc"); // ROLE TRAINING REQUIREMENTS LIST if ($mode_id == 94) include("include_APP/training_insert.inc"); // TRAINING RECORD INSERT if ($mode_id == 102) include("include_APP/calendar_p.php"); // CALENDAR - PRINT FORMAT if ($mode_id == 105) include("include_APP/cal_form_110.php"); // CALENDAR UPDATE if ($mode_id == 110) include("include_APP/donuts.php"); if ($mode_id == 120) include("unit/$unit_id/share/glossary.html"); if ($mode_id == 122) include("include_APP/custom_form.php"); if ($mode_id == 130) include("include_APP/cal_form_130.php"); // CALENDAR - SUBSCRIBE - START TO SUBSCRIBE TO ANOTHER UNIT'S CALENDAR EVENT if ($mode_id == 132) include("include_APP/cal_form_132.php"); // CALENDAR - SUBSCRIBE - CONFIRM if ($mode_id == 134) include("include_APP/cal_form_134.php"); // CALENDAR - SUBSCRIBE - CREATE if ($mode_id == 140) include("include_APP/cal_form_140.php"); // DISPLAY CALENDAR - RECTANGLE FORMAT if ($mode_id == 141) include("include_APP/cal_form_141.php"); if ($mode_id == 160) include("unit/$unit_id/secure/forms.html"); if ($mode_id == 210) include("include_APP/venturing.php"); // RESOURCE PAGE if ($mode_id == 220) include("unit/$unit_id/share/BoR.html"); if ($mode_id == 300) include("include_APP/form_300.php"); if ($mode_id == 301) include("include_APP/form_301.php"); // Find A DSRD Scout Troop (u_id = 3) if ($mode_id == 302) include("include_APP/form_302.php"); // FIND A CATHOLIC TROOP (u_id = 135) if ($mode_id == 310) include("include_APP/form_310.php"); if ($mode_id == 311) include("include_APP/form_311.php"); if ($mode_id == 321) include("include_APP/form_321.php"); if ($mode_id == 322) include("include_APP/form_322.php"); if ($mode_id == 323) include("include_APP/form_323.php"); if ($mode_id == 401) include("include_APP/patrol.php"); if ($mode_id == 410) include("include_APP/form_410.php"); // EXTENDED STAFF STATISTICS FROM CONTACTLIST.DATA FOR WOOD BADGE if ($mode_id == 411) include("include_APP/form_411.php"); // EXTENDED SCOUT STATISTICS FROM CONTACTLIST.DATA FOR WOOD BADGE if ($mode_id == 415) include("include_APP/form_415.php"); // BIOS FROM CONTACTLIST.DATA FOR WOOD BADGE if ($mode_id == 500) include("include_APP/pictures.php"); // PICTURES - DISPLAY if ($mode_id == 510) include("include_APP/pictures_160.php"); // PICTURE - NEW EVENT if ($mode_id == 550) include("include_APP/pictures_150.php"); // PICTURE - EDIT if ($mode_id == 900) include("include_APP/form_900.php"); // HOME PAGE ADMIN SCREEN (enabled by presence of admin_screen.txt) if ($mode_id == 910) include("include_APP/home_form_110.php"); // HOME PAGE ADMIN UPDATE (enabled by presence of admin_screen.txt) if ($mode_id == 930) include("include_APP/cal_form_20.php"); // CALENDAR EVENT - NEW - CREATE if ($mode_id == 940) include("include_APP/cal_form_160.php"); // CALENDAR EVENT - NEW - CREATE if ($mode_id == 950) include("include_APP/calendar_by_type.php"); // CALENDAR BY EVENT TYPE - DSRD Training Calendar if ($mode_id == 1000) include("include_APP/form_1000.php"); // ADMINISTRATION HOME PAGE if ($mode_id == 1010) include("include_APP/1010.inc"); // UPDATE HOME PAGE if ($mode_id == 1100) include("include_APP/1100.inc"); // CREATE NEW UNIT - Start if ($nav_show == 'Y') include("include_APP/navfooter.html"); mysql_close($dbh); //$SQL_DEBUG = 'Y'; //include('include_FATSO/fatso_debug.inc'); //echo "$debug_text"; ?>