continue = FAIL => Session-Zwangslogout, Abbruchmeldung und Schlußverarbeitung + Prüfung auf Wartungsstatus = OK => continue = FAIL => Abbruchmeldung und Schlußverarbeitung + Verarbeitung der Submit-Aktionen (POST), Anzeige des Anmeldeformulars */ // this script needs following additional server modules for PHP // (none) // write HTTP header (anti-cache) header('Expires: Sun, 31 Dec 1989 23:59:59 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); header('Cache-Control: no-store, no-cache, must-revalidate'); header('Cache-Control: post-check=0, pre-check=0'); header('Pragma: no-cache'); // recall session session_cache_limiter('nocache'); session_cache_expire(1); session_start(); //deactivate automatic use of addslashes // set_magic_quotes_runtime(0); // define general server constants define( "SERVER_SITE_MAINTENANCE", true ); // maintenance state, set to TRUE to lock this page temporarily define( "ANMELDUNG_GESAMT_MAXCOUNT", 330 ); // state of Angel registration, set to FALSE if enough Angels have been registered define( "ANMELDUNG_ENGEL_MAXCOUNT", 35 ); // state of Angel registration, set to FALSE if enough Angels have been registered define( "ANMELDUNG_GUELTIGKEIT_JAHR", 2009 ); // state of Angel registration, set to FALSE if enough Angels have been registered define( "SERVER_LOCALHOST_IP", "127.0.0.1" ); // localhost IP, which does not need authentication // define server file constants define( "SERVER_FILE_TEMPLATE", "template.shtml" ); // template file define( "SERVER_FILE_HEADER", "ssi_site_header.html" ); // SSI file for site header define( "SERVER_FILE_INTRO", "ssi_site_intro.html" ); // SSI file for site intro define( "SERVER_FILE_EXTRO", "ssi_site_extro.html" ); // SSI file for site extro define( "SERVER_FILE_AUTOGEN", "ssi_site_autogen.html" ); // SSI file for site autogeneration warning define( "SERVER_FILE_ANMELDUNGSLISTE", "anmeldung-data/anmeldung.csv" ); // path and file for registered participants define( "SERVER_FILE_MAILINGLISTENLISTE", "anmeldung-data/mailingliste.txt" ); // path and file for mailinglist applicants // define display constants define( "DISPLAY_TEXT_NONE", " " ); define( "DISPLAY_VALUE_SEPARATOR", chr(9)); // init instance variables $eintritt = array ( 'Normal' => 42, 'Mitglied' => 35, 'Engel' => 35, 'Ermaeszigt' => 35 ); $intnow = time(); $strmsg = ''; // (status/error/etc.) message to user $bolauthabort = false; // auth check will be aborted: show auth warning $intgesamtcount = 0; $intengelcount = 0; $strnomailconfirmation = ''; $bolok = true; // action feedback, triggers confirmation if true or warning if false $strgarmentsizelist = array ('4XS', '3XS', 'XXS', 'XS', 'S', 'M', 'L', 'XL', 'XXL', '3XL', '4XL'); // function library function addmsg ($straddmsg) { // adds $straddmsg to $strmsg global $strmsg; if ( $straddmsg != '' ) { $strmsg = $strmsg . '
  • ' . $straddmsg . '
  • '; } } function showmsg () { // shows messages in $strmsg if available global $strmsg, $bolok; if ( $strmsg != '' ) { echo'

    Feedback

    '; $strmsg = ''; $bolok = false; } } function selectcbovalue ( $strcbovaluelist, $strselectvalue ) { // selects value with key $strselectvalue of $strcbovaluelist which has to be a valid-prepared option value list for drop-down-boxes return str_replace( '