Gulf War > Warbook"; function titleCase($string) { $len=strlen($string); $i=0; $last= ""; $new= ""; $string=strtoupper($string); while ($i<$len): $char=substr($string,$i,1); if (preg_match( "/[A-Z]/",$last)): $new.=strtolower($char); else: $new.=strtoupper($char); endif; $last=$char; $i++; endwhile; return($new); }; function wordcount($str) { return count(explode(" ",$str)); } $entry = $_GET['entry']; if (!$entry) { $category ="Gulf War > War Book"; $color="therow"; $data = ""; $query = "select myid, name, notes, status, DATE_FORMAT(mydate2, '%b %d %Y' ), display from warbook where myid > 40 and display is null and conflict = '1991' and notes not like ('%url%') and notes not like ('%.org%') and notes not like ('%href=%') order by myid DESC"; $result = mysql_query($query) or die("Query failed : " . mysql_error()); while ($row = mysql_fetch_array($result, MYSQL_NUM)) { $limit = titleCase(substr($row[2], 0,100)); $total = str_word_count($row[2]); # $total = wordcount($row[2]); if ($row[4]) { $data = $data . << end_here; if ($color == "oldrow") {$color = "therow";} else {$color="oldrow";} } } $data = $data . "
$row[4]  $limit $total words
"; } else { if(!is_numeric($entry)) {$entry = 152;} $data = ""; $query = "select myid, name, notes, status, DATE_FORMAT(mydate2, '%M %e %Y' ), display from warbook where myid = $entry"; $result = mysql_query($query) or die("Query failed : " . mysql_error()); while ($row = mysql_fetch_array($result, MYSQL_NUM)) { $limit = substr($row[2], 0,61); $total = strlen($row[2]); $name = $row[1]; $acategory ="Gulf War > Warbook > $row[1]"; if ($row[4]) { $data = $data . << end_here; } } $data = $data . "
Name:$row[1]
Status:$row[3]
Date:$row[4]
Comments:$row[2]

[Back to Warbook Listing]  [Suggest this listing to be removed]

"; $data = $data . <<
Google Ads

end_here; $category ="Gulf War > War Book > $name Warbook Entry"; } ?> CNN Fox News ABC Mitt Romney Rodney Dangerfield end_here; $sentence = <<$talk your own views about The 1991 Gulf War. You may $talk your own thoughts about The 1991 Gulf War. Do you have anything you want to $talk about The 1991 Gulf War. Lot's of people have thoughts about the The 1991 Gulf War, what about you? Thousands of people view this page and won't share their views, what about you? Like these views? Well why not voice your opinion? end_here; $tcr = explode("\n", $sentence); shuffle($tcr); // Shutting down the Gulf Warbook for now: // $formpromo = $tcr[2]; // Did you see that $realname voiced his view? $formpromo $content = <<
Gulf War Logo

New Entries to the '1991 Gulfwar Warbook' has been disable as the development team works on performance issues. Visit the main Gulf War page.
$data

end_here; $oldquote = <<

"Fight them with your faith in God, fight them in defense of every free honorable woman and every innocent child, add in defense of the values of manhood and the military honor...Fight them because with their defeat you will be at the last entrance of the conquest of all conquests. The war will end with...dignity, glory, and triumph for your people, army, and nation."
Saddam Hussein
Radio Broadcast
January 19, 1991

end_here; $promo = "1991 Persian Gulf War
Guestbook Page"; if ($entry) { $google_promo = ""; } else { $google_promo = << end_here; } // -- Now with Bootstrap 3.0! require_once("/home/cryan/public_html/include/webclass.php"); require_once("/home/cryan/public_html/include/gulfwarmenu.php"); $page = new WebTemplate("$name 1991 Gulf War Entry","website.inc"); $page->SetParameter("MetaDescription","UnOfficial Guestbook of the 1991 Gulf War"); $page->SetParameter("MetaKeyword", "Gulf War, Gulf War Deaths Facts, persian gulf war, the gulf war, desert storm"); $page->SetParameter("headertitle", "1991 Gulf War Info"); $page->SetParameter("content", $content); $page->SetParameter("leftnav", $bootstrap4menu ); $update = "Last modified: " . date ("F d Y H:i:s.", getlastmod()); $page->SetParameter("update", $update); $page->CreatePage(); ?>