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">
</head>
                $newRide = 0;
            }
        } else {
            $ride->f_rideID = $rideID;
            $errMsg = $ride->update($password);
            if (!$errMsg) {
                $normMsg = "Ride Updated";
            }
        }
    }
}
//Get the data from the db if we aren't doing a new
//ride and there was no error (on error, we want the
//values the user entered before to still be present)
if (!$newRide && !$errMsg) {
    $errMsg = $ride->getDB_id($rideID);
    if (!$ride->f_rideID || $errMsg) {
        //NPS: What o what to do with these people?  How about
        //we send them back to the original page.
        Header("Location:{$RD_baseURL}/showRides.php" . encodeGet($getVars));
        return;
    }
} else {
    if (!$newRide) {
        $ride->f_rideID = $rideID;
        $subErrMsg = $ride->getRiderInfo();
        if ($subErrMsg) {
            //NPS: report this?
            error_log($subErrMsg, 0);
        }
    }
 /**
  * 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;
 }
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">
</head>