DEFAULT SET TO EN FOR NOW require_once($rootdir.'/classes/core/language.php'); $clang = new limesurvey_lang("en"); $adminoutput=getAdminHeader(); // Alle future output is written into this and then outputted at the end of file ob_implicit_flush(true); sendcacheheaders(); if (!$database_exists) { $adminoutput.= "
\n" ."\n" ."\t\n" ."\t
" .$clang->gT("LimeSurvey Setup")."
\n" ."".$clang->gT("Welcome to LimeSurvey Setup!")."

\n" .$clang->gT("The database defined in config.php does not exist.")."
\n" .$clang->gT("LimeSurvey can attempt to create this database for you.")."

\n" .$clang->gT("Your selected database name is:")." $databasename
\n" ."
\n" ."
\n" ."\n\n"; } elseif ($dbexistsbutempty && !(returnglobal('createdbstep2')==$clang->gT("Populate Database"))) { $connect->database = $databasename; $connect->Execute("USE DATABASE `$databasename`"); $adminoutput.= "
" .$clang->gT("LimeSurvey Setup")."
\n"; $adminoutput.= "
\n"; $adminoutput.= sprintf($clang->gT('A database named "%s" already exists.'),$databasename)."

\n"; $adminoutput.= $clang->gT("Do you want to populate that database now by creating the necessary tables?")."

\n"; $adminoutput.= "

"; $adminoutput.= "
"; } else { //DB EXISTS, CHECK FOR APPROPRIATE UPGRADES $connect->database = $databasename; $connect->Execute("USE DATABASE `$databasename`"); ob_start(); CheckForDBUpgrades(); $output=ob_get_clean(); if ($output== '') {$adminoutput.='
LimeSurvey Database is up to date. No action needed';} else {$adminoutput.=$output;} $adminoutput.="
Please log in."; } echo $adminoutput; ?>