Download " . $row['name'] . " skin for ViPlay

"; else echo "Descargar la skin " . $row['name'] . " para ViPlay

"; } else { $row = mysql_fetch_array($soft, MYSQL_ASSOC); if (($row['cat'] == "soft") || ($row['cat'] == "soft_add") || ($row['cat'] == "src")) { if ($lang == 1) echo "Download " . $row['name_en'] . " " . $row['version'] . "

"; else echo "Descargar " . $row['name_es'] . " " . $row['version'] . "

"; } elseif ($row['cat'] == "lang_vp") { if ($lang == 1) echo "Download " . $row['name_en'] . " language file for ViPlay

"; else echo "Descargar el archivo de lenguaje " . $row['name_es'] . " para ViPlay

"; } elseif ($row['cat'] == "lang_sw") { if ($lang == 1) echo "Download " . $row['name_en'] . " language file for Subtitle Workshop

"; else echo "Descargar el archivo de lenguaje " . $row['name_es'] . " para Subtitle Workshop

"; } elseif ($row['cat'] == "manual_sw") { if ($lang == 1) echo "Download " . $row['name_en'] . " translation of the Subtitle Workshop manual

"; else echo "Descargar la traducción al " . $row['name_es'] . " del manual de Subtitle Workshop

"; } } if ($lang == 1) echo "Please select one of the following mirrors:"; else echo "Por favor selecciona uno de los siguientes mirrors:"; echo "

"; $links = explode(chr(13).chr(10), $row['links']); echo ""; } else { $downid = $_GET['id']; $mirror = $_GET['mirror']; $soft = mysql_query("select * from downloads where downid='$downid'"); // If no downloads found, then it's a skin if (mysql_affected_rows() == 0) $soft = mysql_query("select * from skins where downid='$downid'"); while ($row = mysql_fetch_array($soft, MYSQL_ASSOC)) { $links = explode(chr(13).chr(10), $row['links']); if (($mirror > (count($links)) or ($mirror < 1))) $mirror = 1; $stats = mysql_query("select downloads from stats where downid='$downid'"); if (mysql_num_rows($stats) == 0) { mysql_query("insert into stats (downid,downloads) values ('$downid', '1')"); } else { $row = mysql_fetch_array($stats, MYSQL_ASSOC); mysql_query("update stats set downloads='" . ($row['downloads']+1) . "' where downid='" . $downid . "'"); } header("Location: " . $links[$mirror-1]); } } ?>