From: Javier B. <jb...@us...> - 2004-11-16 16:20:34
|
Update of /cvsroot/openbash-org/openbash-org/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27621/modules Modified Files: Quote.php View.php Log Message: campo ip de la bd puesto a 16, pending a bool; retocada funcion get_quotes_by_top Index: View.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/modules/View.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** View.php 16 Nov 2004 10:46:14 -0000 1.1 --- View.php 16 Nov 2004 16:20:20 -0000 1.2 *************** *** 30,34 **** global $quote_language;?> <p class="quote"> ! <a href="" title="<?=$quote_language['permalink']?>"><b>#<?=$id?></b></a> <a href="rox=312" class="qa">+</a>(<?=$points?>) <a href="sux=312" class="qa">-</a> --- 30,34 ---- global $quote_language;?> <p class="quote"> ! <a href="?page=quote&action=single&id=<?=$id?>" title="<?=$quote_language['permalink']?>"><b>#<?=$id?></b></a> <a href="rox=312" class="qa">+</a>(<?=$points?>) <a href="sux=312" class="qa">-</a> Index: Quote.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/modules/Quote.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Quote.php 16 Nov 2004 10:46:14 -0000 1.4 --- Quote.php 16 Nov 2004 16:20:20 -0000 1.5 *************** *** 59,70 **** { include ("config.php"); ! $sql = "SELECT id FROM quote purge=0 AND pending=0 ORDER BY points LIMIT $top"; $ids = $bd->_Execute($sql); ! if($ids->RecordCount()) { ?> ! <table cellpadding="2" cellspacing="0" width="80%"> ! <tr><td><?php ! while (!$ids->EOF) { $this->get_quote($ids->fields['id']); $ids->MoveNext(); } ?> ! </td></tr> ! </table><?php } else { return (0); } } --- 59,69 ---- { include ("config.php"); ! $sql = "SELECT id FROM quote WHERE quote.purge=0 AND pending=0 ORDER BY points DESC LIMIT $top"; $ids = $bd->_Execute($sql); ! if($ids->RecordCount()) { ! while (!$ids->EOF) { ! $this->get_quote($ids->fields['id']); ! $ids->MoveNext(); ! } } else { return (0); } } |