include ("../include/includes.inc");
if (($REQUEST_METHOD=='POST')) {
for(reset($HTTP_POST_VARS);
$key=key($HTTP_POST_VARS);
next($HTTP_POST_VARS)) {
$var = addslashes($HTTP_POST_VARS[$key]);
$var = stripslashes($var);
$var = strtr($var, "|", " ");
$var = strtr($var, "'", "''");
$$key = $var;
}
}
$year or $year = 'Overview';
$title="History :: $year";
require ("../include/header.php");
require ("../include/history_menu.html");
if ($year != 'Overview'){
$endyear = $year+1001;
$startyear = $year+1000;
$start = strtotime("$startyear-1-1");
$end = strtotime("$endyear-1-1");
$select = "select * from events where name = '#General' and
event_date between $start and $end ";
connect_db();
$result = mysql_query($select) or die("Select Failed $select");
while($event = mysql_fetch_array($result)){
$att = get_memories($event['event_id']);
foreach ($att as $name => $memory){
?>
}}
?>
$select = "select * from events where name != '#General' and
event_date between
$start and $end order by event_date asc";
$result = mysql_query($select) or die("Select Failed $select");
while($event = mysql_fetch_array($result)){
$att = get_memories($event['event_id']);
if (count ($att)) {
$ev_name = $event['name'];
$date = $event['event_date'];
$time = localtime($date, 1);
$day = $time['tm_mday'];
$month = $months[$time['tm_mon']];
$year = $time['tm_year'] + 900;
$event_date = "$month $day, $year";
?>
|
foreach ($att as $name => $memory){
?>
|
|
|
|
echo $memory; ?>
|
}
?>
|
}
}
} else {
?>
This is the collected history of the Barony of Banecroft.
}
require ("../include/footer.html");
?>