if sub: and another reason to be happy is
*/ $labelblock = "\"the
"; /*$tover1 - prev link (conditional, fill in url) move backward through the blessing collection */ if($ppost != ""){ $tover1 = <<move backward through the blessing collection EOM; } else { $tover1 = <<no more previous blessings EOM; } /* $tover4 - next link (conditional, fill in url)
move forward through the blessing collection */ if($npost != ""){ $tover4 = <<move forward through the blessing collection EOM; } else { $tover4 = <<no more next blessings EOM; } //$retweet - urlencoded RT of the tweetversion (with "BLESSING:" at the front, g0b link, and RT @blessmeme) $retweet = urlencode("RT @blessmeme HAPPINESS: $tweetversion http://g0b.us/$g0bValue"); //$imageorvideo - word "Image" or "Video" based on type /* $contentblock - photo or video - video has an id of "mainvideo" and is 450 tall for a 344 tall embed plus 468x60 blessing image also make sure it's set AFTER $mediaDesc is extracted from the database info.
$mediaDesc
*/ if($mediaType == "I"){ $imageorvideo = "Image"; $contentblock = << $mediaDesc
EOM; } elseif ($mediaType="V") { $imageorvideo = "Video"; $contentblock = <<
$videoEmbed
$mediaDesc
EOM; } //$permalink - permanent link to page $permalink = "http://tweetedblessings.com/happiness/$urlSlug"; //$sendtype - "Twitter" or "Contact Page" depending on Submitter Type //$sendtypeurl - link for Twitter or Contact page depending on Submitter Type switch($submitterType) { case "S": $sendtype="Contact Page"; $sendtypeurl="/contact.html"; break; case "E": $sendtype="E-mail"; $sendtypeurl="mailto:blessmeme@tweetedblessings.com"; break; case "T": $sendtype="Twitter"; $sendtypeurl="http://www.twitter.com"; break; } //$pbcontent (set by blessingbase.php) - must come before pagebase.php, but after all other variables. include('/home/tweetypi/public_html/modil/blessingbase.php'); //$pagebase (set by pagebase.php) - must come last include('/home/tweetypi/public_html/modil/pagebase.php'); echo $pagebase; //so we can get the database good housekeeping seal of approval mysql_close($dbconnect); exit; //refer the error to the custom 404 page function dumpit($error){ $ugh = urlencode($error); $url = "http://tweetedblessings.com/404.html?error=$ugh"; header( "HTTP/1.1 404 Not Found" ); header( "Location: " . $url ); } ?>