include ('/shu/users/allapi/www/allapi.mentalis.org/httpdocs/include/database/database.php'); // Connect to the database $db = @mysql_connect($server, $db_user, $db_pass); if ($db == false) { echo "Unable to connect to the database!"; } else { mysql_select_db($database); // SELECT the data $result = @mysql_query("SELECT name,authorid,date,version,language,smalldesc,largedesc,filesize,license,cost,requires,notes,dlindex,status FROM dotnet_classes WHERE id='$id'"); if ($result==0) { echo "Database SELECT Error"; } else { $clsinfo = mysql_fetch_array($result); if ($clsinfo[13] == 1) { echo '
Unreviewed class
'; echo 'The class you\'re trying to view has not been reviewed by the KPD-Team yet, so it\'s not available for download. Please check back later.
'; include (getenv('DOCUMENT_ROOT').'/include/footer.txt'); exit; } $result2 = @mysql_query("SELECT name,email,homepage,publicemail FROM dotnet_authors WHERE id='$clsinfo[1]'"); if ($result2 != 0) { $authinfo = mysql_fetch_array($result2); if ($authinfo[3] == '0') { $authinfo[1] = ''; } } ?>echo $clsinfo[0]; ?>
Author: if ($authinfo[1] != '') echo ""; ?> echo $authinfo[0]; ?> if ($authinfo[1] != '') echo ""; ?>
if ($authinfo[2] != '') {
echo "Author's Website: $authinfo[2]
";
}
?>
Last modified date: echo $clsinfo[2]; ?>
Version: echo $clsinfo[3]; ?>
Language: echo $clsinfo[4]; ?>
File size: echo $clsinfo[7]; ?>
if ($clsinfo[9] != '') { ?>
Cost: echo $clsinfo[9]; ?>
echo $clsinfo[6]; ?>
if ($clsinfo[10] != '') { ?>Special requirements:
echo $clsinfo[10]; ?>
Notes:
echo $clsinfo[11]; ?>
You must read and comply with this license agreement, before using this class file in your projects!
} ?>Download:
North America - Santa Barbara
Click here to view the other submissions by this author
"; //include ("http://www.mentalis.org/vbexamples/comments.php?ctype=dotNET&sourceid=$id"); mysql_free_result($result); unset($result); } } mysql_close($db); unset($db); ?>