Mercurial > hg > fapweb
changeset 182:e227e6a3d46b
Move some texts to settings.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 08 Nov 2013 12:08:00 +0200 |
parents | 21109b309c6a |
children | 320d6b68062b |
files | createdb.php register.inc.php |
diffstat | 2 files changed, 23 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/createdb.php Thu Nov 07 11:17:59 2013 +0200 +++ b/createdb.php Fri Nov 08 12:08:00 2013 +0200 @@ -40,7 +40,27 @@ <b>e-mail</b> is not required either. </p>", "Registration page info text"), - "registerPostText" => array(VT_TEXT, "<p>Now go make a demo about it!</p>", "Successful post-registration note text"), + "registerPostText" => array(VT_TEXT, " +<h1>Registration successful</h1> +<p>Now go make a demo about it!</p>", + "Successful post-registration note text"), + + "registerLimitExceeded" => array(VT_TEXT, " +<h1>Sorry, registration disabled!</h1> +<p> +Registration to the event is not available at this time due to +number of attendees limit having been reached. <b>:(</b> +</p> +", + "Registration attendee limit exceeded note text"), + + "registerNotEnabled" => array(VT_TEXT, " +<h1>Sorry, registration disabled!</h1> +<p> +Registration to the event is not enabled at this time. +</p> +", + "Registration not enabled note text"), "registerPostNoEmail" => array(VT_TEXT, " <h2>By the way ...</h2>
--- a/register.inc.php Thu Nov 07 11:17:59 2013 +0200 +++ b/register.inc.php Fri Nov 08 12:08:00 2013 +0200 @@ -96,23 +96,12 @@ // Check if registration is enabled if (!stChkSetting("allowRegister")) { -?> -<h1>Sorry, registration disabled!</h1> -<p> -Registration to the event is not enabled at this time. -</p> -<? + echo stGetSetting("registerNotEnabled"); } else if ($maxAttendeesHard > 0 && $numAttendees >= $maxAttendeesHard) { -?> -<h1>Sorry, registration disabled!</h1> -<p> -Registration to the event is not available at this time due to -number of attendees limit having been reached. <b>:(</b> -</p> -<? + echo stGetSetting("registerLimitExceeded"); } else if ($mode == "start")