",true); rawoutput("$mname$mver$mauth$mdown",true); if (db_num_rows($result) == 0) { rawoutput(""); output("`i-- No modules installed --`i"); rawoutput(""); } $cat = ""; $i=0; while ($row = db_fetch_assoc($result)) { $i++; if ($cat != $row['category']) { rawoutput(""); output($row['category']); rawoutput(":"); $cat = $row['category']; } rawoutput(""); rawoutput(""); output_notl("`&%s`0", $row['formalname']); rawoutput("",true); output_notl("`^%s`0", $row['version']); rawoutput(""); output_notl("`^%s`0", $row['moduleauthor'], true); rawoutput(""); if ($row['download'] == "core_module") { rawoutput(""); output("Core Distribution"); rawoutput(""); } elseif ($row['download']) { // We should check all legeal protocols $protocols = array("http","https","ftp","ftps"); $protocol = explode(":",$row['download'],2); $protocol = $protocol[0]; // This will take care of download strings such as: not publically released or contact admin if (!in_array($protocol,$protocols)){ output("`\$Contact Admin for Release"); }else{ rawoutput(""); output("Download"); rawoutput(""); } } else { output("`\$Not publically released.`0"); } rawoutput(""); rawoutput(""); } rawoutput(""); ?>