示例#1
0
/*
This file dumps out the requested query in RSS form.  Accepts
most of the same HTTP_GET_VARS as the showRides.php page.

NPS: This functionality doesn't work.  Until I have an actual user
     of an RSS feed, this file won't be fixed.
*/
require 'RD/RDdbclasses.php';
//Initialize Variables and queries.
$getVars = $HTTP_GET_VARS;
$start = (int) $getVars["start"];
$num = (int) $getVars["num"];
if (!$num) {
    $num = 10;
}
$currentQuery = new RDquery($getVars);
unset($getVars);
$getVars[units] = $units->unitsString();
if ($HTTP_GET_VARS[showRidesFor]) {
    $getVars[showRidesFor] = $HTTP_GET_VARS[showRidesFor];
}
//Create the URL to the real site that does
//the same search.  Remember to clobber &
$about = "{$RD_baseURL}/showRides.php" . encodeGet($getVars);
Header("Content-Type: text/xml");
//Dump our rss header out
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n";
?>
<rss version="2.00">
<channel>
  <title><?php 
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";
//Initialize Variables and queries.
$getVars = $HTTP_GET_VARS;
$start = (int) $getVars["start"];
$num = (int) $getVars["num"];
if (!$num) {
    $num = 10;
}
$currentQuery = new RDquery($getVars);
//HTML HEADER
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Ride Dammit! Ride Log</TITLE>
<link rel="stylesheet" href="<?php 
echo $RD_baseURL;
?>
/default.css">
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</HEAD>
<BODY>
<table border=0 cellpadding=0 cellspacing=0>
 <tr>