Env::dumpError($e); } else { Logger::log($e, Logger::FATAL); Env::executeAction('error', 'db_connect'); } // if } // try */ mysql_connect(DB_HOST, DB_USER, DB_PASS) or die("Couldn't connect!"); mysql_select_db(DB_NAME); mysql_query("SET NAMES 'utf8'"); $project_id = 0; $page_id = 0; $pages = pp_pages(); $nav = ''; foreach ($pages as $row) { $nav .= navitem($row); if ($row['project_index']) { $project_id = $row['project_id']; $page_id = $row['page_id']; } } if (isset($_REQUEST['project'])) { $project_id = 0 + $_REQUEST['project']; } if (isset($_REQUEST['page'])) { $page_id = 0 + $_REQUEST['page']; } ?> <div id="wrapper"> <!-- header --> <div id="headerWrapper">
<?php echo navGroup(navItem('/learn/', 'Learn'), navItem('/learn/ls101.php', 'Landslides 101') . navitem('http://www.usgs.gov/faq/?q=taxonomy/term/9752', 'Frequently Asked Questions (FAQ)') . navItem('/learn/glossary.php', 'Landslides Glossary') . navItem('/learn/useful_links.php', 'Additional Landslide Information') . navItem('/learn/majorls.php', 'Catastrophic Landslides') . navItem('/learn/prepare.php', 'Landslide Preparedness') . navItem('/learn/photos/', 'Photo Collections') . navItem('/learn/movie/', 'Landslide Hazards Video'));