"; // Save file if (@file_put_contents(LYCHEE_CONFIG_FILE, $config)===false) return 'Warning: Could not create file!'; return true; } /** * @return boolean Returns true when the config exists. */ public static function exists() { return file_exists(LYCHEE_CONFIG_FILE); } /** * @return array Returns the config. */ public static function get() { require(LYCHEE_CONFIG_FILE); return(array( 'host' => $dbHost, 'user' => $dbUser, 'password' => $dbPassword, 'name' => $dbName, 'prefix' => $dbTablePrefix )); } } ?>