#!/usr/local/Hughes/bin/lite load "/var/www/html/ConfMan/cgi-bin/confmanlib.lib"; /********************************************************/ /********* These two variables must be modified *********/ $host = "130.206.134.125"; $databasename = "amdo2004"; /********************************************************/ /* Write HTML header and open connection to DB */ $sock = init_func ("ConfMan - File Upload", "0", $host, $databasename); echo("

Submission Paper Upload Site


\n"); $c_abbr = get_cfg($sock,"c_abbr"); $oc_email = get_cfg($sock,"conf_addr"); /********************************************************/ /********************************************************/ /********************************************************/ /* http://confman.unik.no/~confman/ConfMan/cgi-bin/OPEN/upload_front.cgi?id=19&pw=uniknopaalh /********************************************************/ /********************************************************/ /********************************************************/ $input=split($QUERY_STRING,"&"); $paper_ID = split($input[0],"="); $paper_password = split($input[1],"="); $use_upload = get_cfg($sock,"USE_upload"); $paper_query = "select title, authors, affiliation, email from paper where id = $paper_ID[1]"; if (msqlQuery($sock,$paper_query) < 0) {fatal("Error[4] : $ERRMSG\n");} $paper = msqlStoreResult(); $paper_data = msqlFetchRow($paper); $pw = email2pw($paper_data[3]); $paper2_query = "select cont_author from paper2 where id = $paper_ID[1]"; if (msqlQuery($sock,$paper2_query) < 0) {fatal("Error[4] : $ERRMSG\n");} $paper2 = msqlStoreResult(); $paper2_data = msqlFetchRow($paper2); if ($use_upload == "YES") { if (#$paper_data == 0 || #$paper2_data == 0 || $paper_password[1] != "$pw") { echo("There are no paper registered with ID = $paper_ID[1] and password = $paper_password[1]

\n"); echo("Please contact the $c_abbr organizing committee: $oc_email"); } else { echo("

\n"); echo("\n"); echo("\n"); echo("\n"); echo("\n"); echo("\n"); echo("\n"); echo("\n"); $filename = make_filename((char) $paper_ID[1], $paper2_data[0], $pw); echo("\n"); echo("\n"); echo("\n"); echo("\n"); echo("\n"); echo("\n"); echo("\n"); echo("
Paper ID:$paper_ID[1]
Title:$paper_data[0]
Authors:$paper_data[1]
Contact Author:$paper2_data[0]
Affiliation:$paper_data[2]
Assigned filename:$filename.XX


Please change the file extension (.XX) of the file according to the file format:

For example: postscript (.ps), pdf (.pdf)
File Extension:
Please enter the file from your local file system.
File:
\n"); echo("\n"); echo("

\n"); } } else {echo("The upload feature is not used!\n");} echo("
\n"); /********************************************************/ /* Close connection to DB and write HTML footer */ close_func($sock, ""); /********************************************************/