Visit ActiLingua
Example 10
- Und wer ist das?
- Genau, das ist Johann Strauss!
- Johann Strauss hat in Wien gelebt.
- Hier hat er viele Walzer geschrieben.
- Er hat großen Erfolg gehabt und ist über 70 Jahre alt geworden!
#### contains some configs, change if you feel like you need some change in your life... ## if (!$configloaded) ## { ## we want everything fresh ## header("Expires: Mon, 8 Feb 1982 05:00:00 GMT"); ## header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); ## header("Cache-Control: no-cache, must-revalidate"); ## header("Pragma: no-cache"); ## } $serverroot = "/home/actiling/subsites/deutsch-lernen.com/www/"; $wwwroot = "http://www.deutsch-lernen.com/"; #$wwwrootsecure = "https://www.actilingua.com/"; $ImagesAreHere = "images/"; $DBisHere = "scripts/"; $WebboardIsHere = "webboard/"; $UploadsAreHere = "uploads/"; $dbdir = $serverroot.$DBisHere; $imagedir = $serverroot.$ImagesAreHere; $webboarddir = $serverroot.$WebboardIsHere; $uploaddir = $serverroot.$UploadsAreHere; $wwwdbdir = $wwwroot.$DBisHere; $wwwimagedir = $wwwroot.$ImagesAreHere; $wwwwebboarddir = $wwwroot.$WebboardIsHere; $wwwuploaddir = $wwwroot.$UploadsAreHere; ####### database connection ########################### $dbhost = "localhost"; $dbuser = "actiling_dlernen"; $dbpwd = "J-a_@RySb0_D"; $dbname = "actiling_deutschlernen"; include_once ($dbdir."m3SQL.php"); $mydb = new m3database($dbhost,$dbname,$dbuser,$dbpwd); ###### database errors $cannotSelect = "Error beim abrufen der Daten aus der Datenbank!"; ### magic quotes // strip slashes if magic quotes are turned on function arr_strip_slashes(&$arr) { if(is_array($arr)) { for (reset($arr); list($key,)=each($arr);) arr_strip_slashes($arr[$key]); } else $arr=stripslashes($arr); } if (get_magic_quotes_gpc()) { arr_strip_slashes($HTTP_GET_VARS); arr_strip_slashes($HTTP_POST_VARS); arr_strip_slashes($HTTP_COOKIE_VARS); } ################################## # add magic quotes ################################## function arr_add_slashes(&$arr) { if(is_array($arr)) { for (reset($arr); list($key,)=each($arr);) arr_add_slashes($arr[$key]); } else $arr=addslashes($arr); } if (!get_magic_quotes_gpc()) { arr_add_slashes($HTTP_GET_VARS); arr_add_slashes($HTTP_POST_VARS); arr_add_slashes($HTTP_COOKIE_VARS); } #### you shouldnt have to change anything below here ###### #### Security issues $salt="CRYPT_STD_DES"; ##### Inactivity (general) in Minuten*100 $inactivity=-4500; ##### Inactivity (Cookie) in Minuten*100 (1000=10 minuten) refresh cookie $cookieInactivity=-4500; #*** Course IDs *** $IDStandard = 1; $IDIntensive = 2; $IDSuperintensive = 3; $IDBusiness = 4; $IDGermanForLife1 = 5; $IDGermanForLife2 = 6; #*** Agents Passwordlist *** $passwordlist[1] = chr(34)."PARTNER2003".chr(34); $passwordlist[2] = chr(34)."Partner2003".chr(34); $passwordlist[3] = chr(34)."partner2003".chr(34); $passwordlist[4] = chr(34)."PARTNER 2003".chr(34); $passwordlist[5] = chr(34)."Partner 2003".chr(34); $passwordlist[6] = chr(34)."partner 2003".chr(34); $passwordlist[7] = "PARTNER2003"; $passwordlist[8] = "Partner2003"; $passwordlist[9] = "partner2003"; $passwordlist[10] = "PARTNER 2003"; $passwordlist[11] = "Partner 2003"; $passwordlist[12] = "partner 2003"; $passwordlist[13] = chr(34)."PARTNER2004".chr(34); $passwordlist[14] = chr(34)."Partner2004".chr(34); $passwordlist[15] = chr(34)."partner2004".chr(34); $passwordlist[16] = chr(34)."PARTNER 2004".chr(34); $passwordlist[17] = chr(34)."Partner 2004".chr(34); $passwordlist[18] = chr(34)."partner 2004".chr(34); $passwordlist[19] = "PARTNER2004"; $passwordlist[20] = "Partner2004"; $passwordlist[21] = "partner2004"; $passwordlist[22] = "PARTNER 2004"; $passwordlist[23] = "Partner 2004"; $passwordlist[24] = "partner 2004"; #*** Unis Passwordlist *** $unipasswordlist[1] = "learngerman"; $unipasswordlist[2] = "Learngerman"; $unipasswordlist[3] = "Learn german"; $unipasswordlist[4] = "Learn German"; $unipasswordlist[5] = "learn german"; $unipasswordlist[6] = "learngerman 2003"; $unipasswordlist[7] = "Learngerman 2003"; $unipasswordlist[8] = "Learn german 2003"; $unipasswordlist[9] = "Learn German 2003"; $unipasswordlist[10] = "learn german 2003"; $unipasswordlist[11] = "learngerman2003"; $unipasswordlist[12] = "Learngerman2003"; $unipasswordlist[13] = "Learn german2003"; $unipasswordlist[14] = "Learn German2003"; $unipasswordlist[15] = "learn german2003"; #*** MISC *** $PricePDFlink = 'Prices 2004 (PDF)'; ?>
Visit ActiLingua