Mercurial > hg > fapweb
changeset 659:1702a5e0b9c3
Add new settings for certain HTML pieces.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 05 Nov 2014 15:16:56 +0200 |
parents | 987f8307ce4f |
children | fe1ca8a26e78 |
files | dbdefs.inc.php pages/register.inc.php pages/visitors.inc.php |
diffstat | 3 files changed, 13 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/dbdefs.inc.php Wed Nov 05 15:16:22 2014 +0200 +++ b/dbdefs.inc.php Wed Nov 05 15:16:56 2014 +0200 @@ -1,6 +1,6 @@ <? -$dbVersion = 17; +$dbVersion = 18; // // Site settings and defaults we put in @@ -88,6 +88,16 @@ // Attendee/visitor registration // "register" => array( + "visitorsPageRegLink" => array(VT_TEXT, " +<div class=\"reglink\"> +To register, use <a href=\"register\">this form</a>. +</div> + ", "Visitors page registration link blurb"), + + "registerPageBlurb" => array(VT_TEXT, " + <h1>Registration</h1> + ", "Registration page header"), + "registerInfoText" => array(VT_TEXT, "<p> Only your <b>handle</b> and the answer to the botcheck are strictly required. If you plan on joining the IRC channel
--- a/pages/register.inc.php Wed Nov 05 15:16:22 2014 +0200 +++ b/pages/register.inc.php Wed Nov 05 15:16:56 2014 +0200 @@ -132,7 +132,7 @@ intValueToHash(5 * rand(1,5)); echo - "<h1>Registration</h1>\n". + stGetSetting("registerPageBlurb"). stGetFormStart("register"). " ".stGetFormHiddenInput("mode", "check")."\n". " ".stGetFormHiddenInput("hash", $botCheckHash)."\n".
--- a/pages/visitors.inc.php Wed Nov 05 15:16:22 2014 +0200 +++ b/pages/visitors.inc.php Wed Nov 05 15:16:56 2014 +0200 @@ -5,13 +5,7 @@ // (C) Copyright 2012-2014 Tecnic Software productions (TNSP) // if (stCheckRegistrationAvailable()) -{ -?> -<div class="reglink"> -To register, use <a href="register">this form</a>. -</div> -<? -} + echo stGetSetting("visitorsPageRegLink"); echo "\n".