3 require_once('Scrape.php');
4 require_once('include/follow.php');
6 function follow_init(&$a) {
9 notice( t('Permission denied.') . EOL);
10 goaway($_SESSION['return_url']);
15 $url = notags(trim($_REQUEST['url']));
16 $return_url = $_SESSION['return_url'];
19 $result = new_contact($uid,$url,true);
21 if($result['success'] == false) {
22 if($result['message'])
23 notice($result['message']);
27 info( t('Contact added') . EOL);
29 if(strstr($return_url,'contacts'))
30 goaway($a->get_baseurl() . '/contacts/' . $contact_id);