<rss version="2.00"> <channel> <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>
?> </TH> <TH class="tbLogHeader">Location</TH> <TH class="tbLogHeader">Dist<br><?php echo $units->distanceString(); ?> </TH> <TH class="tbLogHeader">Time</TH> <TH class="tbLogHeader">Avg<br><?php echo $units->velocityString(); ?> </TH> <TH class="tbLogHeader">Effort</TH> </TR> <?php $rides = new RDride(DBconnect(), $units); $result = $rides->queryRides($currentQuery->getWhereStatement(), $start, $num + 1); $totalTime = 0; $totalDist = 0; $numRides = 0; //Not really num rides, used to see if more data is available. while ($rides->parseNextRow($result)) { $numRides++; if ($numRides > $num) { break; } echo "<TR>"; echo "<TD class=\"tbLogBody\">" . "<a href=\"showRide.php"; $tgetvars = $getVars; $tgetvars["rideID"] = $rides->f_rideID; echo encodeGet($tgetvars) . "\">" . $rides->getDatePart() . " " . $rides->getTimePart() . "</a> " . "<img width='10' height='16' src=\"" . getImgForTemp($rides->f_temperature, $units) . "\">" . "<img width='25' height='16' src=\"s" . $rides->f_sky . ".png\">" . "<img width='16' height='16' src=\"w" . $rides->f_wind . ".png\">" . "</TD>";
?> </link> <description>RSS feed for Ride Dammit!</description> <?php /* <image> <url><?php echo "$conf->baseURL$conf->siteIconSmall"; ?></url> <link><?php echo "$conf->baseURL$conf->siteIconURL"; ?></link> <description><?php echo $conf->siteTitle; ?></description> </image> */ ?> <items> <rdf:Seq> <?php $rides = new RDride(DBconnect(), $units); $result = $rides->queryRidesForRider($HTTP_GET_VARS[showRidesFor]); while ($rides->parseNextRow($result)) { unset($tmpGetVars); $tmpGetVars[units] = $units->unitsString(); $tmpGetVars[rideID] = $rides->f_rideID; echo "<rdf:li rdf:resource=\"{$RD_baseURL}/showRide.php" . encodeGet($tmpGetVars) . "\"/>\n"; } ?> </rdf:Seq> </items> </channel> <?php //reset result
it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Ride Dammit! is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Ride Dammit!; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ require "RD/RDdbclasses.php"; $getVars = $HTTP_GET_VARS; $ride = new RDride(DBConnect(), $units); $msg = $ride->getDB_id((int) $getVars[rideID]); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title><?php echo S_SITE_TITLE . " " . S_EVENT; ?> Details</title> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> <link rel="stylesheet" href="<?php echo $RD_baseURL; ?> /default.css">
?> </TH> <TH class="tbLogHeader">Time</TH> <TH class="tbLogHeader">Avg<br><?php echo $units->velocityString(); ?> </TH> <TH class="tbLogHeader">Max<br><?php echo $units->velocityString(); ?> </TH> <TH class="tbLogHeader">Effort</TH> <!-- <TH class="tbLogHeader">T/Wind/Sky</TH> --> </TR> <?php $rides = new RDride(DBconnect(), $units); $result = $rides->queryRides($currentQuery->getWhereStatement(), $start, $num + 1); $maxSpd = 0; $totalTime = 0; $totalDist = 0; $numRides = 0; //Not really num rides, used to see if more data is available. while ($rides->parseNextRow($result)) { $numRides++; if ($numRides > $num) { break; } echo "<TR>"; echo "<TD class=\"tbLogBody\">" . "<a href=\"showRide.php"; $tgetvars = $getVars; $tgetvars["rideID"] = $rides->f_rideID;
/** * Utility function which reads the rider * information for a ride without changing anything * else in the class. Affects only f_riderID* variables. */ function getRiderInfo() { //Take the easy way out ;-) $rideTmp = new RDride($this->conn, $this->units); $errMsg = $rideTmp->getDB_id($this->f_rideID); if ($errMsg) { return $errMsg; } $this->f_riderID = $rideTmp->f_riderID; $this->f_riderID_firstName = $rideTmp->f_riderID_firstName; $this->f_riderID_lastName = $rideTmp->f_riderID_lastName; }
but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Ride Dammit!; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ //Stupid PHP includes: chdir(".."); require "RD/RDdbclasses.php"; $rideID = (int) $HTTP_GET_VARS["rideID"]; unset($getVars); $getVars["units"] = $units->unitsString(); $newRide = $rideID == 0; $ride = new RDride(DBConnect(), $units); //Check for form submit and handle it here if ($HTTP_POST_VARS["submit"]) { //Fill in the info they submitted. $ride->f_riderID = (int) $HTTP_POST_VARS["rider"]; $ride->f_date = unFixQuotes($HTTP_POST_VARS["date"]) . " " . unFixQuotes($HTTP_POST_VARS["hour"]); $ride->f_distance = (double) $HTTP_POST_VARS["distance"]; $ride->f_maxSpeed = (double) $HTTP_POST_VARS["maxSpeed"]; $ride->f_time = unFixQuotes($HTTP_POST_VARS["time"]); $ride->f_locationID = (int) $HTTP_POST_VARS["location"]; $ride->f_temperature = (double) $HTTP_POST_VARS["temperature"]; $ride->f_wind = unFixQuotes($HTTP_POST_VARS["wind"]); $ride->f_sky = unFixQuotes($HTTP_POST_VARS["sky"]); $ride->f_effortLevel = unFixQuotes($HTTP_POST_VARS["effort"]); $ride->f_bikeID = (int) $HTTP_POST_VARS["bike"]; $ride->f_notes = unFixQuotes($HTTP_POST_VARS["notes"]);
but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Ride Dammit!; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ //Stupid PHP includes: chdir(".."); require "RD/RDdbclasses.php"; $rideID = (int) $HTTP_GET_VARS["rideID"]; unset($getVars); $getVars["units"] = $units->unitsString(); $newRide = $rideID == 0; $ride = new RDride(DBConnect(), $units); //Check for form submit and handle it here if ($HTTP_POST_VARS["submit"]) { //Fill in the info they submitted. $ride->f_riderID = (int) $HTTP_POST_VARS["rider"]; $ride->fromLocalizedTime(unFixQuotes($HTTP_POST_VARS["date"]) . " " . unFixQuotes($HTTP_POST_VARS["hour"])); $ride->f_distance = (double) $HTTP_POST_VARS["distance"]; $ride->f_maxSpeed = (double) $HTTP_POST_VARS["maxSpeed"]; $ride->f_time = unFixQuotes($HTTP_POST_VARS["time"]); $ride->f_locationID = (int) $HTTP_POST_VARS["location"]; $ride->f_temperature = (double) $HTTP_POST_VARS["temperature"]; $ride->f_wind = unFixQuotes($HTTP_POST_VARS["wind"]); $ride->f_sky = unFixQuotes($HTTP_POST_VARS["sky"]); $ride->f_effortLevel = unFixQuotes($HTTP_POST_VARS["effort"]); $ride->f_bikeID = (int) $HTTP_POST_VARS["bike"]; $ride->f_notes = unFixQuotes($HTTP_POST_VARS["notes"]);
it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Ride Dammit! is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Ride Dammit!; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ require "RD/RDdbclasses.php"; $getVars = $HTTP_GET_VARS; $ride = new RDride(DBConnect(), $units); $msg = $ride->getDB_id((int) $getVars["rideID"]); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title><?php echo S_SITE_TITLE . " " . S_EVENT; ?> Details</title> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> <link rel="stylesheet" href="<?php echo $RD_baseURL; ?> /default.css">