}
if ($riderCount > 1) {
    echo "<tr>\n";
    echo " <td class=\"tbLogHeader\">" . "All Together" . "</td>\n";
    echo " <td class=\"tbLogBody\">" . $orides . "</td>\n";
    echo " <td class=\"tbLogBody\">" . number_format($odist, 2) . "</td>\n";
    echo " <td class=\"tbLogBody\">" . number_format($oaDist / $orides, 2) . "</td>\n";
    echo " <td class=\"tbLogBody\">" . number_format($omDist, 2) . "</td>\n";
    echo " <td class=\"tbLogBody\">" . time_format($otime) . "</td>\n";
    echo " <td class=\"tbLogBody\">" . ($otime > 0 ? number_format($odist / $otime * 3600, 2) : "0.00") . "</td>\n";
    echo " <td class=\"tbLogBody\">" . number_format($omAvgSpeed, 2) . "</td>\n";
    echo "</tr>\n";
}
?>
 </tbody>
</table>
<p class="tinyPrint"><!-- NPS: Taking out rss feed for now
  <a href="rss.php<?php 
echo encodeGet($getVars);
?>
">RSS Feed for current listing</a>
&nbsp;&nbsp;&nbsp; -->
<?php 
drawUnitsLinks();
?>
</p>
<?php 
include "footer.inc.html";
?>
</BODY>
Esempio n. 2
0
  <title><?php 
echo htmlentities(S_SITE_TITLE);
?>
 RSS feed</title>
  <link><?php 
echo htmlentities($RD_baseURL . "/showRides.php");
?>
</link>
  <description>RSS feed for <?php 
echo htmlentities(S_SITE_TITLE);
?>
</description>
<?php 
$rides = new RDride(DBconnect(), $units);
$result = $rides->queryRides($currentQuery->getWhereStatement(), $start, $num);
while ($rides->parseNextRow($result)) {
    unset($tmpGetVars);
    $tmpGetVars["units"] = $units->unitsString();
    $tmpGetVars["rideID"] = $rides->f_rideID;
    $itemLink = "{$RD_baseURL}/showRide.php" . encodeGet($tmpGetVars);
    $title = $rides->f_riderID_firstName . " - " . $rides->getDatePart() . ", " . number_format($units->metricToSetting($rides->f_distance), 2) . " " . $units->distanceString() . ", " . fixFieldForHtml($rides->f_locationID_location, false);
    echo "<item>\n";
    echo " <title>" . htmlentities($title) . "</title>\n";
    echo " <description>" . htmlentities($title . fixFieldForHtml("\n\n" . $rides->f_notes, true)) . "</description>\n";
    echo " <link>" . htmlentities($itemLink) . "</link>\n";
    echo "</item>\n";
}
?>
</channel>
</rss>
function drawUnitLink($newUnits, $curUnits, $url, $getVars)
{
    if ($newUnits->mode != $curUnits->mode) {
        echo "<a href=\"{$url}";
        $tgetVars = $getVars;
        $tgetVars["units"] = $newUnits->unitsString();
        echo encodeGet($tgetVars);
        echo "\">";
    }
    echo $newUnits->unitsString();
    if ($newUnits->mode != $curUnits->mode) {
        echo "</a>\n";
    }
}
Esempio n. 4
0
  </items>
 </channel>

<?php 
//reset result
mysql_data_seek($result, 0);
while ($rides->parseNextRow($result)) {
    unset($tmpGetVars);
    $tmpGetVars[units] = $units->unitsString();
    $tmpGetVars[rideID] = $rides->f_rideID;
    echo "<item rdf:about=\"{$RD_baseURL}/showRide.php" . encodeGet($tmpGetVars) . "\">\n";
    $title = $rides->f_date . ", " . $rides->f_time . ", " . number_format($rides->f_distance, 2) . ", " . fixFieldForRSS($rides->f_locationID_location);
    echo " <title>" . $title . "</title>\n";
    echo " <description>" . $title . fixFieldForRSS("\n\n" . $rides->f_notes) . "</description>\n";
    echo " <link>{$RD_baseURL}/showRide.php" . encodeGet($tmpGetVars) . "</link>\n";
    /*
       echo " <image>\n";
       echo "  <url>$conf->baseURL$imageURL?image=$data[imageID]&amp;format=thumb</url>\n";
       echo "  <link>$conf->baseURL$topURL?dir=".
            "$data[dirID]&amp;image=$data[imageID]</link>\n";
       echo "  <width>$width</width>\n";
       echo "  <height>$height</height>\n";
       echo "  <description>".fixFieldForHtml($data[name])."</description>\n";
       echo " </image>\n";
    */
    echo "</item>\n";
}
?>

</rdf:RDF>
    $verify = unFixQuotes($HTTP_POST_VARS["verify"]);
    $code = unFixQuotes($HTTP_POST_VARS["code"]);
    //Check for code word
    if (md5($code) != $RD_authCodeMD5) {
        $errMsg = "Invalid Code!  No permission to create an account.";
    }
    //Check for password mismatch
    if (!$errMsg && $pword != $verify) {
        $errMsg = "Passwords do not match!  Please enter them again.";
    }
    if (!$errMsg) {
        $errMsg = $rider->insertNew($pword);
        if (!$errMsg) {
            //Inserted, send them back to the front!
            $getVars["riderID"] = $rider->f_riderID;
            header("Location: {$RD_baseURL}/showRides.php" . encodeGet($getVars));
            return;
        }
    }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title><?php 
echo S_SITE_TITLE . " New " . S_PERSON;
?>
</title>
  <link rel="stylesheet" href="<?php 
echo $RD_baseURL;
?>