From 365ff94137166f63211b9632c204a05a5cee7035 Mon Sep 17 00:00:00 2001 From: Friendika Date: Wed, 23 Feb 2011 01:37:15 -0800 Subject: push directory on register - if permitted --- mod/register.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mod/register.php') diff --git a/mod/register.php b/mod/register.php index 5c41fbfad..d97b3e0cd 100644 --- a/mod/register.php +++ b/mod/register.php @@ -346,6 +346,14 @@ function register_post(&$a) { goaway($a->get_baseurl()); } + } + + if($netpublish && $a->config['register_policy'] != REGISTER_APPROVE) { + $php_path = ((strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php'); + $url = $a->get_baseurl() . "/profile/$nickname"; + if($url && strlen(get_config('system','directory_submit_url'))) + proc_run($php_path,"include/directory.php","$url"); + } return; }} -- cgit v1.2.3