@@ -71,8 +71,7 @@ switch ($this->getContext()->error) {
71
71
break ;
72
72
case "REGISTER_DISABLED " :
73
73
$ af = null ;
74
- $ message = "Creating accounts has been administratively disabled "
75
- . "indefinitely. " ;
74
+ $ message = "Creating accounts is currently administratively disabled. " ;
76
75
break ;
77
76
case "EMAIL_ALREADY_USED " :
78
77
$ af = "email " ;
@@ -96,6 +95,8 @@ switch ($this->getContext()->error) {
96
95
$ message = $ this ->getContext ()->error ;
97
96
}
98
97
98
+ $ register_disabled = ($ this ->getContext ()->error == 'REGISTER_DISABLED ' );
99
+
99
100
$ safe_email = htmlentities ($ this ->getContext ()->email , ENT_HTML5 , "UTF-8 " );
100
101
$ safe_username = htmlentities ($ this ->getContext ()->username , ENT_HTML5 , "UTF-8 " );
101
102
@@ -105,12 +106,13 @@ require("./header.inc.phtml");
105
106
<article>
106
107
<?php if ($ this ->getContext ()->error !== false ) { ?>
107
108
<script async defer="defer" src="https://www.google.com/recaptcha/api.js"><![CDATA[]]></script>
108
- <header>Create Account</header>
109
+ <header<?= ( $ register_disabled ? ' class="red" ' : '' ) ?> >Create Account</header>
109
110
<?php if (!empty ($ message )) { ?>
110
111
<section class="red">
111
112
<p><?php echo $ message ; ?> </p>
112
113
</section>
113
114
<?php } ?>
115
+ <?php if (!$ register_disabled ) { ?>
114
116
<form method="POST" action="?">
115
117
<section>
116
118
<table><tbody><tr>
@@ -138,6 +140,7 @@ require("./header.inc.phtml");
138
140
</tr></tbody></table>
139
141
</section>
140
142
</form>
143
+ <?php } ?>
141
144
<?php } else { ?>
142
145
<header class="green">Account Created</header>
143
146
<section class="green">
0 commit comments