setshowinfo(0);
echo "
CGI '98 ";
echo "";
$webdate=Date("D d F Y");
switch ($country) {
case "XX"; $countrystr="Unknown"; break;
case "AF"; $countrystr="Afghanistan"; break;
case "AL"; $countrystr="Albania"; break;
case "DZ"; $countrystr="Algeria"; break;
case "AS"; $countrystr="American Samoa"; break;
case "AO"; $countrystr="Angola"; break;
case "AI"; $countrystr="Anguilla"; break;
case "AQ"; $countrystr="Antarctica"; break;
case "AG"; $countrystr="Antigua & Barbuda"; break;
case "AR"; $countrystr="Argentina"; break;
case "AM"; $countrystr="Armenia"; break;
case "AW"; $countrystr="Aruba"; break;
case "AU"; $countrystr="Australia"; break;
case "AT"; $countrystr="Austria"; break;
case "AZ"; $countrystr="Azerbaijan"; break;
case "BS"; $countrystr="Bahamas"; break;
case "BH"; $countrystr="Bahrain"; break;
case "BD"; $countrystr="Bangladesh"; break;
case "BB"; $countrystr="Barbados"; break;
case "BY"; $countrystr="Belarus"; break;
case "BE"; $countrystr="Belgium"; break;
case "BZ"; $countrystr="Belize"; break;
case "BJ"; $countrystr="Benin"; break;
case "BM"; $countrystr="Bermuda"; break;
case "BT"; $countrystr="Bhutan"; break;
case "BO"; $countrystr="Bolivia"; break;
case "BA"; $countrystr="Bosnia-Herzegovina"; break;
case "BW"; $countrystr="Botswana"; break;
case "BV"; $countrystr="Bouvet Island"; break;
case "BR"; $countrystr="Brasil"; break;
case "BN"; $countrystr="Brunei Darussalam"; break;
case "BG"; $countrystr="Bulgaria"; break;
case "BF"; $countrystr="Burkina Faso"; break;
case "BI"; $countrystr="Burundi"; break;
case "KH"; $countrystr="Cambodia"; break;
case "CM"; $countrystr="Cameroon"; break;
case "CA"; $countrystr="Canada"; break;
case "CV"; $countrystr="Cape Verde"; break;
case "KY"; $countrystr="Cayman Islands"; break;
case "CF"; $countrystr="Central African Republic"; break;
case "TD"; $countrystr="Chad"; break;
case "CL"; $countrystr="Chile"; break;
case "CN"; $countrystr="China"; break;
case "CX"; $countrystr="Christmas Island"; break;
case "CC"; $countrystr="Cocos (Keeling) Islands"; break;
case "CO"; $countrystr="Colombia"; break;
case "KM"; $countrystr="Comoros"; break;
case "CG"; $countrystr="Congo"; break;
case "CK"; $countrystr="Cook Islands"; break;
case "CR"; $countrystr="Costa Rica"; break;
case "HR"; $countrystr="Croatia"; break;
case "CU"; $countrystr="Cuba"; break;
case "CY"; $countrystr="Cyprus"; break;
case "CZ"; $countrystr="Czech Republic"; break;
case "CS"; $countrystr="Czechoslovakia"; break;
case "DK"; $countrystr="Denmark"; break;
case "DJ"; $countrystr="Djibouti"; break;
case "DM"; $countrystr="Dominica"; break;
case "DO"; $countrystr="Dominican Republic"; break;
case "TP"; $countrystr="East Timor"; break;
case "EC"; $countrystr="Ecuador"; break;
case "EG"; $countrystr="Egypt"; break;
case "SV"; $countrystr="El Salvador"; break;
case "GQ"; $countrystr="Equatorial Guinea"; break;
case "ER"; $countrystr="Eritrea"; break;
case "EE"; $countrystr="Estonia"; break;
case "ET"; $countrystr="Ethiopia"; break;
case "FK"; $countrystr="Falkland Islands (Malvibas)"; break;
case "FO"; $countrystr="Faroe Islands"; break;
case "FJ"; $countrystr="Fiji"; break;
case "FI"; $countrystr="Finland"; break;
case "FR"; $countrystr="France"; break;
case "GA"; $countrystr="Gabon"; break;
case "GM"; $countrystr="Gambia"; break;
case "GE"; $countrystr="Georgia"; break;
case "DE"; $countrystr="Germany"; break;
case "GH"; $countrystr="Ghana"; break;
case "GI"; $countrystr="Gibralta"; break;
case "GR"; $countrystr="Greece"; break;
case "GL"; $countrystr="Greenland"; break;
case "GD"; $countrystr="Grenada"; break;
case "GP"; $countrystr="Guadeloupe (French)"; break;
case "GU"; $countrystr="Guam (US)"; break;
case "GT"; $countrystr="Guatemala"; break;
case "GN"; $countrystr="Guinea"; break;
case "GW"; $countrystr="Guinea Bissau"; break;
case "GY"; $countrystr="Guyana"; break;
case "GF"; $countrystr="Guyana (French)"; break;
case "HT"; $countrystr="Haiti"; break;
case "HN"; $countrystr="Honduras"; break;
case "HK"; $countrystr="Hong Kong"; break;
case "HU"; $countrystr="Hungary"; break;
case "IS"; $countrystr="Iceland"; break;
case "IN"; $countrystr="India"; break;
case "ID"; $countrystr="Indonesia"; break;
case "IR"; $countrystr="Iran"; break;
case "IQ"; $countrystr="Iraq"; break;
case "IE"; $countrystr="Ireland"; break;
case "IL"; $countrystr="Israel"; break;
case "IT"; $countrystr="Italy"; break;
case "CI"; $countrystr="Ivory Coast"; break;
case "JM"; $countrystr="Jamaica"; break;
case "JP"; $countrystr="Japan"; break;
case "JO"; $countrystr="Jordan"; break;
case "KZ"; $countrystr="Kazachstan"; break;
case "KE"; $countrystr="Kenya"; break;
case "KI"; $countrystr="Kiribati"; break;
case "KP"; $countrystr="Korea (North)"; break;
case "KR"; $countrystr="Korea (South)"; break;
case "KW"; $countrystr="Kuwait"; break;
case "KG"; $countrystr="Kyrgyz Republic"; break;
case "LA"; $countrystr="Laos"; break;
case "LV"; $countrystr="Latvia"; break;
case "LB"; $countrystr="Lebanon"; break;
case "LS"; $countrystr="Lesotho"; break;
case "LR"; $countrystr="Liberia"; break;
case "LY"; $countrystr="Libya"; break;
case "LI"; $countrystr="Liechtenstein"; break;
case "LT"; $countrystr="Lithuania"; break;
case "LU"; $countrystr="Luxembourg"; break;
case "MO"; $countrystr="Macau"; break;
case "MK"; $countrystr="Macedonia"; break;
case "MG"; $countrystr="Madagascar"; break;
case "MW"; $countrystr="Malawi"; break;
case "MY"; $countrystr="Malaysia"; break;
case "MV"; $countrystr="Maldives"; break;
case "ML"; $countrystr="Mali"; break;
case "MT"; $countrystr="Malta"; break;
case "MH"; $countrystr="Marshall Islands"; break;
case "MQ"; $countrystr="Martinique (French)"; break;
case "MR"; $countrystr="Mauretania"; break;
case "MU"; $countrystr="Mauritius"; break;
case "YT"; $countrystr="Mayotte"; break;
case "MX"; $countrystr="Mexico"; break;
case "FM"; $countrystr="Micronesia"; break;
case "MD"; $countrystr="Moldova"; break;
case "MC"; $countrystr="Monaco"; break;
case "MN"; $countrystr="Mongolia"; break;
case "MS"; $countrystr="Montserrat"; break;
case "MA"; $countrystr="Morocco"; break;
case "MZ"; $countrystr="Mozambique"; break;
case "MM"; $countrystr="Myanmar"; break;
case "NA"; $countrystr="Namibia"; break;
case "NR"; $countrystr="Nauru"; break;
case "NP"; $countrystr="Nepal"; break;
case "NL"; $countrystr="Netherlands"; break;
case "AN"; $countrystr="Netherlands Antilles"; break;
case "NC"; $countrystr="New Caledonia (French)"; break;
case "NZ"; $countrystr="New Zealand"; break;
case "NI"; $countrystr="Nicaragua"; break;
case "NE"; $countrystr="Niger"; break;
case "NG"; $countrystr="Nigeria"; break;
case "NU"; $countrystr="Niue"; break;
case "NF"; $countrystr="Norfolk Island"; break;
case "MP"; $countrystr="Northern Mariana Islands"; break;
case "NO"; $countrystr="Norway"; break;
case "OM"; $countrystr="Oman"; break;
case "PK"; $countrystr="Pakistan"; break;
case "PW"; $countrystr="Palau"; break;
case "PA"; $countrystr="Panama"; break;
case "PG"; $countrystr="Papua New Guinea"; break;
case "PY"; $countrystr="Paraguay"; break;
case "PE"; $countrystr="Peru"; break;
case "PH"; $countrystr="Philippines"; break;
case "PN"; $countrystr="Pitcairn"; break;
case "PL"; $countrystr="Poland"; break;
case "PF"; $countrystr="Polynesia (French)"; break;
case "PT"; $countrystr="Portugal"; break;
case "PR"; $countrystr="Puerto Rico (US)"; break;
case "QA"; $countrystr="Qatar"; break;
case "RE"; $countrystr="Reunion (French)"; break;
case "RO"; $countrystr="Romania"; break;
case "RU"; $countrystr="Russian Federation"; break;
case "RW"; $countrystr="Rwanda"; break;
case "SH"; $countrystr="Saint Helena"; break;
case "KN"; $countrystr="Saint Kitts Nevis Anguilla"; break;
case "LC"; $countrystr="Saint Lucia"; break;
case "PM"; $countrystr="Saint Pierre & Miquelon"; break;
case "SB"; $countrystr="Salomon Islands"; break;
case "WS"; $countrystr="Samoa"; break;
case "SM"; $countrystr="San Marino"; break;
case "ST"; $countrystr="Sao Tome & Principe"; break;
case "SA"; $countrystr="Saudi Arabia"; break;
case "NT"; $countrystr="Saudiarab. Irak)"; break;
case "SN"; $countrystr="Senegal"; break;
case "SC"; $countrystr="Seychelles"; break;
case "SL"; $countrystr="Sierra Leone"; break;
case "SG"; $countrystr="Singapore"; break;
case "SK"; $countrystr="Slovakia"; break;
case "SI"; $countrystr="Slovenia"; break;
case "SO"; $countrystr="Somalia"; break;
case "ZA"; $countrystr="South Africa"; break;
case "ES"; $countrystr="Spain"; break;
case "LK"; $countrystr="Sri Lanka"; break;
case "VC"; $countrystr="St Vincent & Grenadines"; break;
case "SD"; $countrystr="Sudan"; break;
case "SR"; $countrystr="Suriname"; break;
case "SZ"; $countrystr="Swaziland"; break;
case "SE"; $countrystr="Sweden"; break;
case "CH"; $countrystr="Switzerland"; break;
case "SY"; $countrystr="Syria"; break;
case "TJ"; $countrystr="Tadjikistan"; break;
case "TW"; $countrystr="Taiwan"; break;
case "TZ"; $countrystr="Tanzania"; break;
case "TH"; $countrystr="Thailand"; break;
case "TG"; $countrystr="Togo"; break;
case "TK"; $countrystr="Tokelau"; break;
case "TO"; $countrystr="Tonga"; break;
case "TT"; $countrystr="Trinidad & Tobago"; break;
case "TN"; $countrystr="Tunisia"; break;
case "TR"; $countrystr="Turkey"; break;
case "TM"; $countrystr="Turkmenistan"; break;
case "TC"; $countrystr="Turks & Caicos Islands"; break;
case "TV"; $countrystr="Tuvalu"; break;
case "UG"; $countrystr="Uganda"; break;
case "UA"; $countrystr="Ukraine"; break;
case "AE"; $countrystr="United Arab Emirates"; break;
case "UK"; $countrystr="United Kingdom"; break;
case "US"; $countrystr="United States"; break;
case "UY"; $countrystr="Uruguay"; break;
case "UZ"; $countrystr="Uzbekistan"; break;
case "VU"; $countrystr="Vanuatu"; break;
case "VA"; $countrystr="Vatican City State"; break;
case "VE"; $countrystr="Venezuela"; break;
case "VN"; $countrystr="Vietnam"; break;
case "VG"; $countrystr="Virgin Islands (British)"; break;
case "VI"; $countrystr="Virgin Islands (US)"; break;
case "WF"; $countrystr="Wallis & Futuna Islands"; break;
case "EH"; $countrystr="Western Sahara"; break;
case "YE"; $countrystr="Yemen"; break;
case "ZR"; $countrystr="Zaire"; break;
case "ZM"; $countrystr="Zambia"; break;
case "ZW"; $countrystr="Zimbabwe"; break;
default; break;
}
$reportstr="Name:\t\t $name\n";
$reportstr+="First name:\t $first\n";
$reportstr+="Title:\t\t $title\n";
$reportstr+="Sex:\t\t $sex\n";
$reportstr+="Address:\t $address\n";
$reportstr+="Postal Code:\t $postcode\n";
$reportstr+="Town:\t\t $town\n";
$reportstr+="Country:\t $country / $countrystr\n";
$reportstr+="email:\t\t $email\n";
$reportstr+="Tel:\t\t $phone\n";
if ($fax=="") {
$fax="---";
}
$reportstr+="Fax:\t\t $fax\n";
$reportstr+="Affilation:\t $affi\n";
$reportstr+="Organisation:\t $organisation\n";
$reportstr+="Member of:\t $member\n";
if ($member!="NONE") {
$reportstr+="Member No:\t $member_no\n";
}
$reportstr+="Student:\t $student\n";
$reportstr+="Option:\t\t $option\n";
$reportstr+="Dinner:\t\t $persons\n";
if ($food=="") {
$food="---";
}
$reportstr+="Special food:\t\t $food\n";
$reportstr+="Payment:\t $payment\n";
$reportstr+="Date:\t\t $webdate\n";
mysql_connect("okeeffe.informatik.uni-hannover.de");
$tmpstr="select nr from registration where first='$first' and name='$name' ";
$tmpstr+="and town='$town'";
$result = @mysql("cgi98", $tmpstr);
if ($result==-1) { /* there was a database error */
echo "Error
";
echo "Fatal Error! Could not connect to database. ";
echo "Please try again later.";
$tmpstr="Check: Could not connect to database\n\n";
$tmpstr+="$phperrmsg\n\n$reportstr";
$tmpstr=EscapeShellCmd($tmpstr);
system ("echo $tmpstr | Mail -s \"PHTML-ERROR\" cgi98");
} else {
$num = mysql_numrows($result);
if (ereg("[<>#]", $name) || ereg("[<>#]", $first) ||
ereg("[<>#]", $title) || ereg("[<>#]", $address) ||
ereg("[<>#]", $postcode) || ereg("[<>#]", $town) ||
ereg("[<>#]", $country) || ereg("[<>#]", $email) ||
ereg("[<>#]", $phone) || ereg("[<>#]", $fax) ||
ereg("[<>#]", $organisation) || ereg("[<>#]", $member_no) ||
ereg("[<>#]", $webdate) || ereg("[<>#]", $food) ||
ereg("[<>#]", $persons)) {
echo "
Error
";
echo "One or more entries contains illegal characters.";
echo "Please do not use \"<\", \">\", \",\" or \"#\".";
echo "";
echo "Please use the back button of your browser to get ";
echo "back to the Registration frame without loosing the data.";
} elseif ($name=="" || $first=="" || $country=="XX" || $sex=="" ||
$address=="" || $postcode=="" || $town=="" || $email=="" ||
$phone=="" || $affi=="" || $student=="" || $option=="" ||
$payment=="") {
echo "
Error
";
echo "You did not fill out some necessary fields.";
echo "";
if ($name=="") {
echo "Your name is missing.
";
}
if ($first=="") {
echo "Your first name is missing.
";
}
if ($country=="XX") {
echo "Your country is missing.
";
}
if ($sex=="") {
echo "Please let us also know if you are male or female.
";
}
if ($address=="") {
echo "Your address is missing.
";
}
if ($postcode=="") {
echo "Your postal code is missing.
";
}
if ($town=="") {
echo "Your town is missing.
";
}
if ($email=="") {
echo "Your email is missing.
";
}
if ($phone=="") {
echo "Your phone number is missing.
";
}
if ($affi=="") {
echo "Please let us also know your affiliation for our statistics.
";
}
if ($student=="") {
echo "We need to know if you are still a student.
";
}
if ($option=="") {
echo "You did not choose one of our packages.";
}
if ($payment=="") {
echo "Please let us know how you want to pay.";
}
echo "
";
echo "Please use the back button of your browser to get ";
echo "back to the Registration frame without loosing the data.";
} elseif ($num>0) { /* the guy registered already */
echo "
Error
";
echo "There is already a $first $name from ";
echo "$town registered. ";
echo "If you want to correct a former registration, please contact ";
echo "us via email or fax.";
$tmpstr="$first $name from $town tried to register twice.\n\n";
$tmpstr=EscapeShellCmd($tmpstr+$reportstr);
system ("echo $tmpstr | Mail -s \"PHTML-WARNING\" cgifibu");
} else {
echo "
Dear $title $first $name,";
echo "
The electronical ";
echo "registration is not valid until you received confirmation by ";
echo "fax or mail. Please validate the submitted data once more.";
if ($member=="NONE" && $member_no!="") {
echo "
Warning: Since you did not choose";
echo " an organisation the member number is ignored.";
}
echo "
";
echo "
";
echo "";
echo "Name: | ";
if ($sex=="male") {
echo "Mr. $first $name | ";
} else {
echo "Mrs. $first $name | ";
}
echo "
";
echo "Title | $title | ";
echo "
";
if ($organisation!="") {
echo "Organisation | $organisation | ";
echo "
";
}
echo "Address | $address | ";
echo "
";
echo "Postal Code | $postcode | ";
echo "
";
echo "Town | $town | ";
echo "
";
echo "Country | $countrystr | ";
echo "
";
echo "Phone | $phone | ";
echo "
";
echo "Fax | $fax | ";
echo "
";
echo "email | $email | ";
echo "
";
echo "Affilation | $affi | ";
echo "
";
if ($member=="NONE") {
echo "Member | ";
echo "no | ";
echo "
";
} else {
echo "Member | ";
echo "$member | ";
echo "
";
echo "Member number | ";
echo "$member_no | ";
echo "
";
}
echo "Student | $student | ";
echo "
";
echo "Special food | $food | ";
echo "
";
echo "Payment | $payment";
if ($payment=="creditcard") {
echo " - please note that we need to charge a 4.1% surcharge";
echo " for this service";
} elseif ($payment=="cash") {
echo " - Payment by cash is only available at the conference desk.";
echo " Please note that you can not get the lower prices for";
echo " early payment therefore.";
}
echo " | ";
echo "
";
echo " Prices | ";
echo "";
echo "";
$hl=2;
echo "Payment received | ";
if ($hl==1) {
echo "before May 15th | ";
echo "after May 15th | ";
} else {
echo "before May 15th | ";
echo "after May 15th | ";
}
echo " ";
$bop1[0]=120; $aop1[0]=140;
$bop1[1]=130; $aop1[1]=150;
$bop1[2]=100; $aop1[2]=120;
$bop2[0]=120; $aop2[0]=140;
$bop2[1]=130; $aop2[1]=150;
$bop2[2]=75; $aop2[2]=95;
$bop3[0]=240; $aop3[0]=280;
$bop3[1]=260; $aop3[1]=300;
$bop3[2]=175; $aop3[2]=215;
$bop4[0]=380; $aop4[0]=420;
$bop4[1]=420; $aop4[1]=460;
$bop4[2]=345; $aop4[2]=380;
$bop5[0]=475; $aop5[0]=525;
$bop5[1]=520; $aop5[1]=570;
$bop5[2]=410; $aop5[2]=460;
$bop6[0]=550; $aop6[0]=620;
$bop6[1]=590; $aop6[1]=660;
$bop6[2]=480; $aop6[2]=540;
$id=1;
if ($member!="NONE") {
$id=0;
}
if ($student=="yes") {
$id=2;
}
switch ($option) {
case 1;
$bsum=$bop1[$id];
$asum=$aop1[$id];
echo "Monday events (June 22) | ";
break;
case 2;
$bsum=$bop2[$id];
$asum=$aop2[$id];
echo "Tuesday events (June 23) | ";
break;
case 3;
$bsum=$bop3[$id];
$asum=$aop3[$id];
echo "Monday + Tuesday events | ";
break;
case 4;
$bsum=$bop4[$id];
$asum=$aop4[$id];
echo "Conference (June 24 - June 26) | ";
break;
case 5;
$bsum=$bop5[$id];
$asum=$aop5[$id];
echo "Mon. + Conf. or Tue. + Conf. | ";
break;
case 6;
$bsum=$bop6[$id];
$asum=$aop6[$id];
echo "Whole week | ";
break;
}
if ($hl==1) {
echo "$bsum.00 DM | ";
echo "$asum.00 DM | ";
} else {
echo "$bsum.00 DM | ";
echo "$asum.00 DM | ";
}
echo " ";
echo "Conference Dinner ($persons x 95) | ";
$dsum=95*$persons;
if ($hl==1) {
echo "$dsum.00 DM | ";
echo "$dsum.00 DM | ";
} else {
echo "$dsum.00 DM | ";
echo "$dsum.00 DM | ";
}
$bsum+=$dsum;
$asum+=$dsum;
echo " ";
echo "Sum | ";
if ($payment!="creditcard") {
if ($hl==1) {
echo "$bsum.00 DM";
echo " | ";
echo "$asum.00 DM | ";
} else {
echo "$bsum.00 DM | ";
echo "$asum.00 DM";
echo " | ";
}
} else {
if ($hl==1) {
echo "$bsum.00 DM | ";
echo "$asum.00 DM | ";
} else {
echo "$bsum.00 DM | ";
echo "$asum.00 DM | ";
}
echo " ";
echo "+ 4.1% | ";
$bsumcard=1.041*$bsum;
$asumcard=1.041*$asum;
if ($hl==1) {
echo "";
echo "%.2f" $bsumcard;
echo " DM | ";
echo "";
echo "%.2f" $asumcard;
echo " DM | ";
} else {
echo "";
echo "%.2f" $bsumcard;
echo " DM | ";
echo "";
echo "%.2f" $asumcard;
echo " DM | ";
}
}
echo " ";
echo " |
";
echo "";
echo "Accepted cards are Eurocard/Mastercard/Visa. ";
echo "Please do not transfer any money into our account before you ";
echo "received our confirmation by fax or mail. Payment by cash is ";
echo "available at the conference desk only.";
echo "
";
echo "If you want to correct something, please use the back";
echo " button of your browser to get back to the Registration";
echo " frame without loosing the data.";
}
}
echo "
";
>