check('waterwatch'); if (!$ok) {exit;} $up = $auth->get_up(); define("UP", $up); $_REQUEST['upw'] = $up; } ?> sanitize(); include_once "xww_setup.php"; $xww_setup = new XWW_Setup(); $class_nm = $xww_setup->class_nm(); $map_type = $xww_setup->map_type(); include_once "ww.php"; $xww = "ww_{$class_nm}.php"; if (include_once($xww)) { $class_nm = strtoupper($class_nm); $ww = new $class_nm(); } else { $ww = new WaterWatch(); } $ww_phps_dir = ''; if ($ww_phps_dir) { $ww->set_phps_dir($ww_phps_dir); } if ($ww->istrue($_REQUEST, 'h')) {$ww->wwhelp_show();} $mt = ($map_type)? $map_type : $_REQUEST['map_type']; if ( ($ww->istrue($_REQUEST,'download') && $ww->downloadable()) || (preg_match('/real|stategage/', $mt) && preg_match('/kml/', $_REQUEST['web_type']) && ($_REQUEST['regions'] || $_REQUEST['region_cd'] != 'us')) ) { $ww_body=$ww->ww_body(0); } $usgs_banner = (isset($ww->usgs_banner))? $ww->usgs_banner : 1; if ($usgs_banner ) { $xusgs = $ww->ww_banner_usgs(); } ?> head(); if ($xusgs) {print $xusgs->style();} ?> body(); ?> banner(); $ww->ww_control($xusgs); } else { $ww->ww_menu(); } ?>
ww_title(); $ww->ww_body(); if ($xusgs) { print $xusgs->footer(); } else { $ww->ww_tail(); } ?>
xtail(); ?>