From: Hendrik B. <nh...@us...> - 2010-06-12 20:46:04
|
Update of /cvsroot/arianne/stendhal_website/scripts In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv16176/scripts Modified Files: players.php Log Message: started to work on splitting the hall of fame Index: players.php =================================================================== RCS file: /cvsroot/arianne/stendhal_website/scripts/players.php,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** players.php 12 Jun 2010 16:37:15 -0000 1.37 --- players.php 12 Jun 2010 20:45:56 -0000 1.38 *************** *** 158,163 **** } ! function getDMHeroes($cond='limit 2') { ! return _getPlayers('select character_stats.* from character_stats join halloffame on charname=name where fametype="D" order by points desc '.$cond, getGameDB()); } --- 158,163 ---- } ! function getDMHeroes($where='where', $cond='limit 2') { ! return _getPlayers('select character_stats.* from character_stats join halloffame on (charname=name) '.$where.' fametype="D" order by points desc '.$cond, getGameDB()); } *************** *** 184,187 **** --- 184,188 ---- function _getPlayers($query) { + // echo $query; $result = mysql_query($query,getGameDB()); $list=array(); |