<?php
require_once 'config.php';
require_once 'dbconnect.php';
require_once 'activity.php';
/*
<--
* LICENSE:
*
* Copyright 2005 Matt Kubilus
*
* This file is part of crimemap.
*
* Crimemap is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Crimemap is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Crimemap; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-->
*/?>
<html>
<style type="text/css">
#whole{
width:90%;
margin: auto;
padding: 20px;
border: 1px solid #666;
background: #DDEEFF;
min-height: 900px;
}
.floatright
{
float: right;
margin: 10px 0px 0px 10px;
border: 1px solid #666;
width:500px;
height:600px;
}
</style>
<div id="whole">
<head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>St. Elmo Crime Map</title>
</head>
<body>
<?php
include 'header.php';
include 'users.php';
session_start();
if (!isset($_SESSION['userid'])) {
$_SESSION['userid'] = -1;
}
if (isset($_GET['id']))
{
$id = $_GET['id'];
}
else
{
$id = 'home';
}
//Determine Browser type
if (preg_match("/opera/i",$_SERVER["HTTP_USER_AGENT"])) {
$browser = "opera";
} else if (preg_match("/gecko/i",$_SERVER["HTTP_USER_AGENT"])) {
$browser = "gecko";
} else if (preg_match("/msie.[4|5|6]/i",$_SERVER["HTTP_USER_AGENT"])) {
$browser = "ie";
} else if (preg_match("/nav/i",$_SERVER["HTTP_USER_AGENT"]) ||
preg_match("/Mozilla\/4\./", $_SERVER["HTTP_USER_AGENT"])) {
$browser = "netscape";
} else {
$browser = "other";
}
if($browser=="ie")
{
include 'ieBody.php';
}
else
{
include 'ieBody.php';
//include 'netscapeBody.php';
}
?>
</body>
</html>