From 1fa2231c20db99c78f0c8681ebae04b6eecf0954 Mon Sep 17 00:00:00 2001 From: Friendika Date: Sun, 17 Jul 2011 21:12:31 -0700 Subject: [PATCH] invite system --- include/zotfns.php | 3 +++ mod/contacts.php | 2 +- mod/invite.php | 12 ++++++++---- mod/register.php | 32 ++++++++++++++++++++++++++++++++ view/register.tpl | 11 +++++++++++ 5 files changed, 55 insertions(+), 5 deletions(-) diff --git a/include/zotfns.php b/include/zotfns.php index 1ec39aefca..b695b6fcb6 100644 --- a/include/zotfns.php +++ b/include/zotfns.php @@ -1,5 +1,8 @@ $v) { diff --git a/mod/contacts.php b/mod/contacts.php index 388bf08e63..2fc01a0d8b 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -13,7 +13,7 @@ function contacts_init(&$a) { $inv = ''; - if(get_config('system','invitations_only')) { + if(get_config('system','invitation_only')) { $x = get_pconfig(local_user(),'system','invites_remaining'); if($x || is_site_admin()) { $a->page['aside'] .= '
+{{ if $invitations }} + +

$invite_desc

+
+ + +
+
+ +{{ endif }} +