include("../../include/globals.php5");
include("../../include/contribution.class.php5");
include("http://townbike.com/contents.inc");
/*
if there is no querystring "contributionid" then display n number of latest contributions
if there IS a querystring "contributionid" then display the contributionid then n number of latest contributions exluding the selected one
*/
$qs = fmtQueryString($_SERVER["REQUEST_URI"]);
$storytoolbar = "";
$selectedcontribution=0;
$contribution="";
$toolbar = "
Email this";
$toolbar.= "
Digg this";
$toolbar.= "
Reddit this";
$ContributionObj->GetContributionByDirectoryName($qs[2]);
$directoryname= $ContributionObj->directoryname;
$toolbarline=sprintf($toolbar, $directoryname,$directoryname,$directoryname);
$contribution.= "
{$ContributionObj->content}
{$toolbarline}
"; $selectedcontribution = $ContributionObj->contributionid; unset($ContributionObj->recordset); ?>