';
// Add e-mail link
$output[] = ' To e-mail a list of URLs of these images, copy and paste this text into the body of your e-mail: ';
$output[] = 'Hint: Use CTL-A to select the box contents, then CTL-C to copy the text (on a PC)
';
$output[] = '';
}
else
$output[] = '
Sorry - you have not selected any Favorites (yet).
Click when viewing photos to add them to your Favorites list.
';
return join('',$output);
}
?>
// PRE-HEADER CODE /////////////
// Set $hdr_keywords, $hdr_description, and $webtitle
$hdr_keywords = "fine,art,nature,photography,photographs,pennsylvania,bucks,county,bucks county,sunsets,trees,farms,country,rural,natural,mountains,flowers,poconos,philadelphia,birds,wildlife,foxes, bucks county art, bucks county fine art, bucks county photography, bucks county fine art photography, buck county prints, bucks county pa art, bucks county canvas prints, bucks county artists, philadelphia art, philadelphia pa art, philadelphia photography, philadelphia pa photography, philly art, philly fine art, philly canvas prints, philadelphia canvas, philadelphia artist, new jersery art, new jersey fine art, new jersey fine art photography, new jersey artist, new jersey canvas prints, new jersery sunrise, new jersey beach photos, new jersey beach photography, new jersey shore photography, avalon photography, avalon art, avalon photographs, avalon sunrise, avalon lifeboat, avalon beautiful photos, ocean city nj, ocean city photography, ocean city nj beach art, ocean city beach photography, ocean city nj lifeboat, nj boardwalk photos, nj boardwalk photography, ocean city nj artist";
$webtitle = "Bucks County, Philadelphia, and New Jersery Fine Art Photography by Matt Schrier";
$hdr_description = "Fine Art Photography by Matt Schrier. Bucks COunty fine art, Philadelphia photo art, Poconos nature photography, New Jersey shore scenic photography. Framed and matted prints. Affordable and high quality prints for sale directly from the artist.";
?>
echo "\n";
echo "\n";
echo "".$webtitle."\n";
?>
include 'header2014.php'; // must end with
////////// Page-specific Content starts HERE ///////////////
?>
include '../mysql.inc';
include 'statsi.inc';
$mysqli = new mysqli(localhost, $username, $password, $dbuse);
$favorites = $_SESSION['favorites'];
$action = $_GET['action'];
$debug = 0;
switch ($action) {
case 'debug': $debug = 1; break;
case 'add':
// Check whether this image is already in the list, otherwise add it
if ($_GET['id'])
{
if ($favorites) {
$foundit = 0;
$items = explode(',',$favorites);
foreach ($items as $item) {
if ($_GET['id'] == $item)
$foundit = 1;
}
if ($foundit == 0)
$favorites .= ','.$_GET['id'];
}
else {
$favorites = $_GET['id'];
}
}
break;
case 'delete':
if ($favorites) {
$items = explode(',',$favorites);
$newfav = '';
foreach ($items as $item) {
if ($_GET['id'] != $item) {
if ($newfav != '') {
$newfav .= ','.$item;
} else {
$newfav = $item;
}
}
}
$favorites = $newfav;
}
break;
}
$_SESSION['favorites'] = $favorites;
?>
Your Favorites
(Note: Favorites will be cleared if you close your browser)