/* code to Submit a new application */ /* last modified 06-06-01 by Jeremy Newman */ include("path.php"); require(BASE."include/"."incl.php"); global $current; // set email field if logged in if ($current && loggedin()) { $email = $current->lookup_email($current->userid); } //header apidb_header("Submit Application"); if ($queueName) { // add to queue //FIXME: need to get image upload in $query = "INSERT INTO appQueue VALUES (null, '". addslashes($queueName)."', '". addslashes($queueVersion)."', '". addslashes($queueVendor)."', '". addslashes($queueDesc)."', '". addslashes($queueEmail)."', '". addslashes($queueURL)."', '". addslashes($queueImage)."');"; mysql_query($query); if ($error = mysql_error()) { echo "
Error:
\n"; echo "$error
\n"; } else { echo "Your application has been submitted for Review. You should hear back\n"; echo "soon about the status of your submission
\n"; } } else { // show add to queue form echo '"; } apidb_footer(); ?>