0 ) $cnt = 9; else $cnt = 0; for ( $i = 0; $i <= $cnt; $i++ ) { if( $i == 0 ) $key = str_replace('%','',$index); else $key = str_replace('%', sprintf('%d',$i), $index); foreach( array($key, strtolower($key), strtoupper($key)) as $akey) if( array_key_exists($akey,$_SERVER) AND $_SERVER[$akey] ) $_GET[$key] = $_SERVER[$akey]; } } } GetEnvX(); } elseif( array_key_exists('FORM',$_SERVER) AND $_SERVER['FORM'] == 'example' ){ if( !defined('WATERMARK') ) define('WATERMARK','JUST AN EXAMPLE'); if( TEST == 'CAP' ){ // assuree info part CAP $_GET['date'] = '2008-11-04'; $_GET['name'] = urlencode('drs. T. Fabrice Ghuege-Denis'); // upwards competable $_GET['name1'] = $_GET['name']; // will void 'name' $_GET['name1ID'] = 'rijbewijs'; //$_GET['name1Pnts'] = ''; $_GET['name2'] = urlencode('drs. Teus F. Ghuege-Denis'); // second name //$_GET['name2ID'] = ''; $_GET['name2Pnts'] = '10'; // seems not to work properly yet $_GET['name3'] = urlencode('Tänўs Iʼntèrnątiœñalîsàtïǿn Ĝügé'); // third, show of javascript error $_GET['name3ID'] = 'paspoort'; $_GET['name3Pnts'] = '12'; $_GET['name8'] = 'This Should Be invisible'; $_GET['dob'] = '1945-10-06'; //$_GET['document1'] = urlencode('führerschein'); //$_GET['document2'] = 'paspoort'; $_GET['email'] = urlencode('tesu.hagaen@thesu.xs4all.eu'); // meeting info $_GET['location'] = urlencode('Grubbenvorst, the Carabiën'); $_GET['assurerdate'] = ''; $_GET['assurancedate'] = '2008-12-31'; //$_GET['notes'] = "bla+bla"; future $_GET['maxpoints'] = '20'; } elseif ( TEST == 'COAP' ) { // organisation info part COAP $_GET['name'] = "Stichting+Oophaga+Foundation"; //Stichting Oophaga Foundation //De Burgerstraat 25, office 268, 1098 SJ, Amsterdam-Buitenveldert $_GET['address'] = 'De+Burgerstraat+25%2C+office+268%2C+1098+SJ%2C+Amsterdam-Buitenveldert'; $_GET['state'] = "Lmb"; $_GET['country'] = "NL"; $_GET['type'] = "foundation"; $_GET['name1'] = urlencode("St. Oophaga"); //St. Oophaga trade names //$_GET['DBA2..9'] = "St.+Oophaga"; // applicant signer for organisation $_GET['director'] = "Gerard+H.+M.+S%C3%BChmple"; //Gerard H. M. Sühmple $_GET['email'] = urlencode("director@oophaga.org"); $_GET['phone'] = "%2B31+77+3270066"; //+31 77 3270066 $_GET['date'] = "2008-08-18"; // upwards compatible // trade office information $_GET['identifier'] = "NL-238603-AA02"; $_GET['tor'] = "Kamer+van+Koophandel"; //Kamer van Koophandel $_GET['torregion'] = "Amsterdam"; $_GET['tordate'] = "2008-04-03"; // recent date of extract // contact name(s) $_GET['dba1'] = "Oophaga"; $_GET['dba2'] = "Mc GIFkikker"; $_GET['dba6'] = "GIFkikker"; // should not appear in the form $_GET['domain1'] = "oophaga.org%2C+oophaga.nl"; //oophaga.org, oophaga.nl $_GET['domain2'] = "oophaga.net"; $_GET['domain4'] = "oophaga.eu"; $_GET['admin'] = "G%C3%B6rge+H.+M.+S%C3%A4mple"; //Görge H. M. Sämple $_GET['adminemail'] = "tesu.hagaen%40thesu.x4slal.eu";//tesu.hagaen@thesu $_GET['adminphone'] = "%2B31+77+327996"; //+31 77 327996 //$_GET['admin2..9XX'] = ""; // name, email, phone } // assurer info $_GET['assurer'] = 'mr+A.+B.+C.+%C3%84%C3%9Furer'; //mr A. B. C. Äßurer $_GET['assurerdob'] = '2010-12-32'; // for mutual assurance $_GET['assureremail'] = 'assurer.email%40cacert.org'; // for mutual assurance $_GET['assurerdate'] = "now"; $_GET['assurerphone'] = "%2B31737201060"; // handy $_GET['watermark'] = 'just+an+EXAMPLE'; } else { //$_GET['ALL'] = 'empty'; } //$_REQUEST[bw] = true; ?>