Welcome to the Website

= '$presday')) ORDER BY start DESC"); if (mysqli_num_rows($result) == 0) { echo "

Please login.

"; } else { $row = mysqli_fetch_array($result); $item = $row["item"]; $notes = $row["notes"]; $picture_loc = $row["picture_loc"]; $picture_type = $row["picture_type"]; $item = str_replace(chr(10), "", $item); $item = str_replace(chr(13), "
", $item); $notes = str_replace(chr(10), "", $notes); $notes = str_replace(chr(13), "
", $notes); ?>

"; //****************************************************************** if ($picture_loc) { // $pic_name = '../../Reunion-2019/SPEUOReunion2019-Remember7.jpg'; //Reunion ******************************************************************************** $pic_name = '../../sd/fp/system20090816171618.jpg'; //SPE Shield - standard front page picture // $pic_name = '../../sd/fp/system20090815111453.jpg'; //Fire Truck - optional front page picture $output = ""; $cmd = "identify -format '%w' " . $pic_name; exec ($cmd, $output); $picsz = $output[0]; if ($picsz > $pic_w_fp) { ?>
>


Home Page

"; for ($i=0; $i<=2; $i++) { $disp_mmdd = date("m-d", $compnow); $cal_result = mysqli_query($db, "SELECT * FROM site_calendar WHERE this_day = 'y' AND this_day_mmdd = '$disp_mmdd' ORDER BY title"); while ($cal_row = mysqli_fetch_array($cal_result)) { $title = $cal_row['title']; $title_color = $cal_row['title_color']; $title_pic = $cal_row['title_pic']; $prntln = ""; if ($title_pic != "") { $pic = "../../sd/" . $title_pic; $prntln .= " "; } if ($i == 0) { $when = " is Today
"; } elseif ($i == 1) { $when = " is Tomorrow
"; } else { $when = " is in Two Days
"; } $prntln .= "$title $when"; echo "$prntln"; } $compnow = $compnow + $aday; } echo ""; ?>
$valid_user, since you were last here"; if ($chg_message != "") { echo " changes have been made in the following area(s):

$chg_message"; } else { echo "...

... no changes have been made, tell us what has happened to you recently."; } ?>

On this day in history ...      Add a new event

= $presday))) { $events = "y"; $id = $row["id"]; $username = $row["username"]; $title = $row["title"]; $origyear = $row["year"]; $item = $row["item"]; $item = str_replace(chr(10), "", $item); $item = str_replace(chr(13), "
", $item); $item = stripslashes($item); $source = $row["source"]; $source = stripslashes($source); $picture_loc = $row["picture_loc"]; $picture_type = $row["picture_type"]; echo ""; $msg = ""; if ($origyear != '0000') { $msg .= "In $origyear, "; $years_ago = date("Y") - $origyear; if ($years_ago == 1) { $msg .= "$years_ago year ago, "; } else { $msg .= "$years_ago years ago, "; } } $msg .= "$item
"; if ($source) $msg .= " ... Source: $source.
"; if ($picture_loc) { $pic_name = '../../sd/td/' . $picture_loc . $picture_type; $output = ""; $cmd = "identify -format '%w' " . $pic_name; exec ($cmd, $output); $picsz = $output[0]; if ($picsz > $pic_w_td) { ?> $msg

>
>
"; } else { echo "
$msg
"; } } } if ($events == "n") echo "
... not much happened.
"; ?>

Please login.

"; } else { $row = mysqli_fetch_array($result); $guess_id = $row['id']; $guess_title = $row["title"]; $guess_question = $row["question"]; $guess_question = str_replace("'", "'", $guess_question); $guess_question = str_replace('"', '"', $guess_question); $guess_pic_quest = $row["pic_quest"]; $guess_answer = $row["answer"]; $guess_answer = str_replace("'", "'", $guess_answer); $guess_answer = str_replace('"', '"', $guess_answer); $guess_pic_ans = $row["pic_ans"]; $guess_start = $row["start"]; } echo $guess_question; if ($guess_pic_quest) { $pic_quest_name = '../../sd/gs/' . $guess_pic_quest; $output = ""; $cmd = "identify -format '%w' " . $pic_quest_name; exec ($cmd, $output); $picsz = $output[0]; if ($picsz > $pic_w_gp) { ?>
>


Add your response

... and any comment you may have

Prior thoughts:
"; while ($dtl_row = mysqli_fetch_array($details)) { $username = $dtl_row["username"]; $dtl_question = $dtl_row["question"]; $dtl_question = str_replace("'", "'", $dtl_question); $dtl_question = str_replace('"', '"', $dtl_question); $dtl_answer = $dtl_row["answer"]; $dtl_answer = str_replace("'", "'", $dtl_answer); $dtl_answer = str_replace('"', '"', $dtl_answer); echo "
$username's response: $dtl_question"; if ($dtl_answer) echo "... and comments ... $dtl_answer"; echo "
"; } } else { echo "Come on $valid_user. You can answer this one. Be the first to respond.
"; } $row = mysqli_fetch_array($result); next($row); $guess_id = $row['id']; $guess_title = $row["title"]; $guess_question = $row["question"]; $guess_question = str_replace("'", "'", $guess_question); $guess_question = str_replace('"', '"', $guess_question); $guess_pic_quest = $row["pic_quest"]; $guess_answer = $row["answer"]; $guess_answer = str_replace("'", "'", $guess_answer); $guess_answer = str_replace('"', '"', $guess_answer); $guess_pic_ans = $row["pic_ans"]; $guess_start = $row["start"]; if ($guess_answer != "") { echo "



The answer to our PREVIOUS question is:
"; echo "$guess_question
"; if ($guess_pic_quest) { $pic_name = '../../sd/gs/' . $guess_pic_quest; $output = ""; $cmd = "identify -format '%w' " . $pic_name; exec ($cmd, $output); $picsz = $output[0]; if ($picsz > $pic_w_gp) { ?>
>


... and the answer is:
$guess_answer"; if ($guess_pic_ans) { $pic_name = '../../sd/gs/' . $guess_pic_ans; $output = ""; $cmd = "identify -format '%w' " . $pic_name; exec ($cmd, $output); $picsz = $output[0]; if ($picsz > $pic_w_gp) { ?>
>


Front Page News      Add your news

= $thisday))) { $id = $row["id"]; $username = $row["username"]; $title = $row["title"]; $category = $row["category"]; $item = $row["item"]; $notes = $row["notes"]; $picture_loc = $row["picture_loc"]; $picture_type = $row["picture_type"]; echo "
"; $msg = "$title by $username ($category)
"; $item = str_replace(chr(10), "", $item); $item = str_replace(chr(13), "
", $item); $item = stripslashes($item); $notes = stripslashes($notes); $msg .= "$item"; if ($notes != "") { $msg .= "
          Click here to read more
"; } else { $msg .= "
"; } echo ""; if ($picture_loc) { echo ""; $pic_name = '../../sd/fp/' . $picture_loc . $picture_type; $output = ""; $cmd = "identify -format '%w' " . $pic_name; exec ($cmd, $output); $picsz = $output[0]; if ($picsz > $pic_w_np) { ?>
$msg>
$msg"; } } } ?>


Joke Corner      Add a new joke

= '$thisday') ORDER BY lastused LIMIT 0, 1"); $row = mysqli_fetch_array($result); $start = $row["start"]; $end = $row["end"]; $id = $row["id"]; $username = $row["username"]; $title = $row["title"]; $beforepic = $row["beforepic"]; $afterpic = $row["afterpic"]; $source = $row["source"]; $picture_loc = $row["picture_loc"]; $picture_type = $row["picture_type"]; echo "
"; echo "$title added by $username
"; $beforepic = str_replace(chr(10), "", $beforepic); $beforepic = str_replace(chr(13), "
", $beforepic); $beforepic = stripslashes($beforepic); if ($beforepic) { echo "$beforepic"; } if ($picture_loc) { $pic_name = '../../sd/jk/' . $picture_loc . $picture_type; $output = ""; $cmd = "identify -format '%w' " . $pic_name; exec ($cmd, $output); $picsz = $output[0]; if ($picsz > $pic_w_jp) { ?>
>


", $afterpic); $afterpic = stripslashes($afterpic); if ($afterpic) { echo "$afterpic"; } if ($source) { echo "
... Source: $source.
"; } $joke_result = mysqli_query($db, "update site_jokes set lastused='$thisday' where id=$id"); ?>