<?php /*
Returns the site's configuration
*/

function print_config_values ($config, $prefix = '') {
	foreach ($config as $key => $value) {
		if (is_array($value)) {
			print_config_values($value, "$key.");
		} else {
			echo "$prefix$key=$value\n";
		}
	}
}

require_once 'include/config.php';
if (aftertime_init(false) === false) {
	echo Config::init_log();
	exit (-1);
}

print_config_values(Config::get());
exit (0);
?>

<?php /*
Returns the site's configuration
*/

function print_config_values ($config, $prefix = '') {
	foreach ($config as $key => $value) {
		if (is_array($value)) {
			print_config_values($value, "$prefix$key.");
		} else {
			echo "$prefix$key=$value\n";
		}
	}
}

require_once 'include/config.php';
if (aftertime_init(false) === false) {
	echo Config::init_log();
	exit (-1);
}

print_config_values(Config::get());
exit (0);
?>

Fix for keys with more than 2 levels
Fix for keys with more than 2 levels
