2005-08-09 18:46:53 +00:00
|
|
|
<?php
|
|
|
|
|
2005-08-10 23:53:33 +00:00
|
|
|
require_once("../inc/util.inc");
|
2005-08-09 18:46:53 +00:00
|
|
|
require_once("../inc/xml.inc");
|
|
|
|
|
|
|
|
xml_header();
|
2005-08-10 23:53:33 +00:00
|
|
|
|
2005-08-31 18:20:06 +00:00
|
|
|
$config = get_config();
|
2005-10-07 19:19:07 +00:00
|
|
|
$long_name = parse_config($config, "<long_name>");
|
|
|
|
$min_passwd_length = parse_config($config, "<min_passwd_length>");
|
|
|
|
if (!$min_passwd_length) {
|
|
|
|
$min_passwd_length = 6;
|
|
|
|
}
|
|
|
|
$disable_account_creation = parse_bool($config, "disable_account_creation");
|
2005-08-10 23:53:33 +00:00
|
|
|
|
2005-08-26 22:26:26 +00:00
|
|
|
echo "<project_config>
|
2005-10-07 19:19:07 +00:00
|
|
|
<name>$long_name</name>
|
2005-08-31 18:20:06 +00:00
|
|
|
";
|
|
|
|
|
2006-03-21 06:52:30 +00:00
|
|
|
if (project_is_stopped()) {
|
|
|
|
echo "
|
|
|
|
<error_num>-183</error_num>
|
|
|
|
";
|
|
|
|
} else {
|
2006-05-27 21:41:36 +00:00
|
|
|
if ($disable_account_creation || defined('INVITE_CODES')) {
|
2006-03-21 06:52:30 +00:00
|
|
|
echo " <account_creation_disabled/>\n";
|
|
|
|
}
|
|
|
|
echo "
|
|
|
|
<min_passwd_length>$min_passwd_length</min_passwd_length>
|
|
|
|
";
|
2006-04-19 22:59:06 +00:00
|
|
|
$forum_version = parse_config($config, '<forum_version');
|
2006-05-05 16:33:56 +00:00
|
|
|
if ($forum_version) {
|
2006-04-19 22:59:06 +00:00
|
|
|
echo " <forum_version>$forum_version</forum_version>\n";
|
|
|
|
}
|
2005-10-07 19:19:07 +00:00
|
|
|
}
|
2005-08-31 18:20:06 +00:00
|
|
|
echo "
|
2005-08-26 22:26:26 +00:00
|
|
|
</project_config>
|
|
|
|
";
|
2005-08-09 18:46:53 +00:00
|
|
|
|
|
|
|
?>
|