aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-25 16:53:59 -0800
committerfriendica <info@friendica.com>2013-12-25 16:53:59 -0800
commiteda7c24c4ef45c88287ee6580af5d373c3676da9 (patch)
tree2b85375f920d4d7358645bd6de07286c9a91d60e /mod
parentc5c5e8b4e00fa178b59dbfbaf07f99439df3c87e (diff)
downloadvolse-hubzilla-eda7c24c4ef45c88287ee6580af5d373c3676da9.tar.gz
volse-hubzilla-eda7c24c4ef45c88287ee6580af5d373c3676da9.tar.bz2
volse-hubzilla-eda7c24c4ef45c88287ee6580af5d373c3676da9.zip
improve the register text until the new register page is finished
Diffstat (limited to 'mod')
-rw-r--r--mod/register.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/mod/register.php b/mod/register.php
index 3f1fc5400..990cce2ed 100644
--- a/mod/register.php
+++ b/mod/register.php
@@ -135,12 +135,19 @@ function register_post(&$a) {
function register_content(&$a) {
+ $registration_is = '';
+ $other_sites = '';
if(get_config('system','register_policy') == REGISTER_CLOSED) {
require_once('mod/pubsites.php');
return pubsites_content($a);
}
+ if(get_config('system','register_policy') == REGISTER_APPROVE) {
+ $registration_is = t('Registration on this site/hub is by approval only.');
+ $other_sites = t('<a href="pubsites">Register at another affiliated site/hub</a>');
+ }
+
$max_dailies = intval(get_config('system','max_daily_registrations'));
if($max_dailies) {
$r = q("select count(account_id) as total from account where account_created > UTC_TIMESTAMP() - INTERVAL 1 day");
@@ -175,10 +182,14 @@ function register_content(&$a) {
$invite_code = ((x($_REQUEST,'invite_code')) ? strip_tags(trim($_REQUEST['invite_code'])) : "" );
+
+
$o = replace_macros(get_markup_template('register.tpl'), array(
'$title' => t('Registration'),
+ '$reg_is' => $registration_is,
'$registertext' => get_config('system','register_text'),
+ '$other_sites' => $other_sites,
'$invitations' => get_config('system','invitation_only'),
'$invite_desc' => t('Membership on this site is by invitation only.'),
'$label_invite' => t('Please enter your invitation code'),