$max_words && $max_words > 0) { $phrase = implode(' ',array_slice($phrase_array, 0, $max_words)).'...' ;}; return $phrase; } //-------------------------------------------------------------------------- // Return an array with all image file paths for a specified directory // function getImages($dir) { $imagetypes = array("image/jpeg", "image/gif", "image/png"); // array to hold return value $retval = array(); // add trailing slash if missing if(substr($dir, -1) != "/") $dir .= "/"; // full server path to directory $fulldir = "{$_SERVER['DOCUMENT_ROOT']}/$dir"; $d = @dir($fulldir) or die("getImages: Failed opening directory $dir for reading"); while(false !== ($entry = $d->read())) { // skip hidden files if ($entry[0] == ".") continue; // check for image files $f = escapeshellarg("$fulldir$entry"); $mimetype = trim(`file -bi $f`); foreach($imagetypes as $valid_type) { if(preg_match("@^{$valid_type}@", $mimetype)) { $retval[] = "$entry"; break; } } } $d->close(); return $retval; } // Populate the three image arrays for the slideshow $slides[0] = getImages('/images/slides00/thumbnail/'); $slides[1] = getImages('/images/slides01/thumbnail/'); $slides[2] = getImages('/images/slides02/thumbnail/'); ?>
terracepark.com
terracepark.org
 

Community & Government Website 
 

About Terracepark.com

Terracepark.com was one of the first community websites in Greater Cincinnati. It was founded in 1997 by Terrace Park resident Gregg MacMillan, owner of Milford-based TechneGraphics. A later redesign was done by Terrace Park native Pete McClelland. In 2004 Gregg found a new home for the site with Cincinnati Computer Concepts, also located in Milford and publisher of Milford-Miami.com.

Terracepark.com serves the community with information for residents, business listings, clubs & associations, a calendar of events, an email listserv, links to outside resources, and most recently information from the Village Council and Administration.

Contact Terracepark.com


terracepark.com
The Terrace Park Ohio Community Website
AboutSponsorsContact

Mail GovCal CommCal