svprintf("BOXTITLE", WCS_STRING, _("%s - powered by Citadel"),
serv_info.serv_humannode);
svcallback("DO_LANGUAGE_BOX", offer_languages);
+ if (serv_info.serv_newuser_disabled) {
+ svprintf("NEWUSER_BUTTON_PRE", WCS_STRING, "<div style=\"display:none;\">");
+ svprintf("NEWUSER_BUTTON_POST", WCS_STRING, "</div>");
+ }
+ else {
+ svprintf("NEWUSER_BUTTON_PRE", WCS_STRING, "");
+ svprintf("NEWUSER_BUTTON_POST", WCS_STRING, "");
+ }
do_template("login");
<tr><td align=center colspan=2>
<input type="submit" name="login_action" value="<?LOGIN_BUTTON>">
+ <?NEWUSER_BUTTON_PRE>
<input type="submit" name="newuser_action" value="<?NEWUSER_BUTTON>">
+ <?NEWUSER_BUTTON_POST>
<input type="submit" name="exit_action" value="<?EXIT_BUTTON>">
</td></tr>
char serv_moreprompt[SIZ]; /**< Whats the commandline textprompt */
int serv_ok_floors; /**< nonzero == server supports floors */
int serv_supports_ldap; /**< is the server linked against an ldap tree for adresses? */
+ int serv_newuser_disabled; /**< Has the server disabled self-service new user creation? */
};