0 || $static == 'novote' || isset($_COOKIE['has_voted_'.$id])){ if($show5 || $showPerc || $showVotes){ $text .= '
'; } if($show5){ $text .= 'Rated '.outOfFive($id).'/5'; } if($showPerc){ $text .= ' ('.getRating($id).')'; } if($showVotes){ $text .= ' ('.getVotes($id).')'; } if($show5 || $showPerc || $showVotes){ $text .= '
'; } return $text.' '; //
} else { if($show5 || $showPerc || $showVotes){ $text .= '
'; } if($show5){ $show5bool = 'true'; $text .= 'Rated '.outOfFive($id).'/5'; } else { $show5bool = 'false'; } if($showPerc){ $showPercbool = 'true'; $text .= ' ('.getRating($id).')'; } else { $showPercbool = 'false'; } if($showVotes){ $showVotesbool = 'true'; $text .= ' ('.getVotes($id).')'; } else { $showVotesbool = 'false'; } if($show5 || $showPerc || $showVotes){ $text .= '
'; } return $text.' '; //
} } // Added in version 1.5 // Fixed sort in version 1.7 function getTopRated($limit, $table, $idfield, $namefield){ $result = ''; $sel = mysql_query("SELECT (puntuacion/votos) AS rating, ".$table.".".$namefield." AS thenamefield votos, ".idfield." FROM ".$table." ORDER BY votos DESC, rating DESC LIMIT 10"); $result .= ''."\n"; return $result; } ?>
Fatal error: Call to undefined function pullRating() in /home/meaburro/public_html/index.php on line 31