session_start(); include("./inc/config.inc.php"); include("./language/$lang_inc/$lang_inc.top.inc.php"); include("./inc/db_connect.inc.php"); include("header.php"); $max = '0'; $sortpoints = array(array(),array()); mysql_select_db($db_table,$db); if ($top == 'Alle') { $result = mysql_query("SELECT * FROM $db_table"); } else { $result = mysql_query("SELECT * FROM $db_table WHERE art='$top'"); } $max_zahl = mysql_num_rows($result); for($i=0; $i < $max_zahl; $i++){ list($sortpoints[1][$i],$sortpoints[2][$i],$sortpoints[3][$i],$sortpoints[4][$i],$sortpoints[5][$i],$sortpoints[6][$i]) = mysql_fetch_row($result); if($sortpoints[5][$i] != 0) if ($punkte_anz == '0') { $sortpoints[0][$i] = $sortpoints[4][$i] / $sortpoints[5][$i]; $sortpoints[0][$i]=(ceil($sortpoints[0][$i]*100)/100); } else { $sortpoints[0][$i] = $sortpoints[4][$i]; } if ($sortpoints[0][$i] == '') { $sortpoints[0][$i] = '0'; } } $max_top = $max_zahl; if ($max_zahl >= 1) { array_multisort($sortpoints[0], SORT_DESC, $sortpoints[1], $sortpoints[2], $sortpoints[3], $sortpoints[4], $sortpoints[5], $sortpoints[6]); } if ($top_start == '') { $top_start = '0'; if ($max_zahl > '10') { $top_ende = '10'; } else { $top_ende = $max_zahl; } } ################################################################################ echo "
$topliste[3] $top | ||
$topliste[4] $rank $topliste[5]"; if ($id_user) { echo ""; } echo " " . $sortpoints[2][$i] . ""; if ($id_user) { echo " "; } else { echo " "; } echo "$topliste[6] " . $sortpoints[6][$i] . " | ";
echo "$topliste[7] ". $sortpoints[5][$i] . " "; if ($punkte_anz == '0') { echo "$topliste[8] ". $sortpoints[0][$i] . " "; } else { echo "$topliste[9] ". $sortpoints[0][$i] . " "; } echo " | |