files as $k => $v) { $data[$v] = $parser->parseFile($v); } // Write all parse data to mod db foreach ($data as $k => $v) { $db->createTables($k, $v); $db->fillsTables($k, $v); } processCubeMain('cubemain.txt'); // put in html redirect as backup, because // for some odd reason windows gives // an error on header() but linux does not. } else { // if config db does not exist, go to configure page header("Location: /src/D2Config.php"); } ?>