Update of /cvsroot/openbash-org/openbash-org/pages
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17653/pages
Added Files:
quote.php
Log Message:
subida version inicial de pages/quote.php
--- NEW FILE: quote.php ---
<?php
include ("config.php");
include ("modules/Quote.php");
$quote = new quote();
if (isset($_GET['action'])) {
if (isset($_GET['start'])) { $start = variable_clean($_GET['start']); }
else { $start = 0; }
if (isset($_GET['end'])) { $end = variable_clean($_GET['end']); }
else { $end = $summaries; }
if (isset($_GET['top'])) { $top = variable_clean($_GET['top']); }
else { $top = 100; }
switch ($_GET['action']) {
case 'latest': $quote->show_quotes_by_id("DESC", $start, $end); break;
case 'browse': break;
case 'top': $quote->show_quotes_by_top($top); break;
case 'add': $quote->ask_quote(); break;
default: $quote->show_quotes_by_random($start, $end); break; //defaults to random
}
}
|