From: Javier B. <jb...@us...> - 2004-11-16 10:46:26
|
Update of /cvsroot/openbash-org/openbash-org/pages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21741/pages Modified Files: quote.php Log Message: clase view; el este mola maaaaaas Index: quote.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/pages/quote.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** quote.php 15 Nov 2004 20:26:33 -0000 1.2 --- quote.php 16 Nov 2004 10:46:14 -0000 1.3 *************** *** 1,5 **** --- 1,7 ---- <?php include ("config.php"); + include ("modules/View.php"); include ("modules/Quote.php"); + $view = new view(); $quote = new quote(); *************** *** 12,23 **** 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; case 'insert': $ip = get_ipaddr(); ! $quote->insert_quote($_POST['quote'], $_POST['author'], $_POST['channel'], $_POST['network'], $ip); ! break; ! default: $quote->show_quotes_by_random($start, $end); break; //defaults to random } } --- 14,24 ---- else { $top = 100; } switch ($_GET['action']) { ! case 'latest': $quote->get_quotes_by_id("DESC", $start, $end); break; case 'browse': break; ! case 'top': $quote->get_quotes_by_top($top); break; ! case 'add': $view->ask_quote(); break; case 'insert': $ip = get_ipaddr(); ! $quote->insert_quote($_POST['quote'], $_POST['author'], $_POST['channel'], $_POST['network'], $ip); break; ! default: $quote->get_quotes_by_random($start, $end); break; //defaults to random } } |