$parent = ((x($_POST,'parent')) ? intval($_POST['parent']) : 0);
$profile_uid = ((x($_POST,'profile_uid')) ? intval($_POST['profile_uid']) : 0);
if(! can_write_wall($a,$profile_uid)) {
- $_SESSION['sysmsg'] .= "Permission denied." . EOL;
+ notice("Permission denied." . EOL) ;
return;
}
intval($_SESSION['uid']));
if(count($r))
$contact_id = $r[0]['id'];
-
+ }
if($_POST['type'] == 'jot') {
do {
$dups = true;
} while($dups == true);
+
$r = q("INSERT INTO `item` (`uid`,`type`,`contact-id`,`created`,`edited`,`hash`,`body`)
VALUES( %d, '%s', %d, '%s', '%s', '%s', '%s' )",
intval($profile_uid),
intval($parent),
intval($post_id));
}
+
+ $url = bin2hex($a->get_baseurl());
+ proc_close(proc_open("php include/notifier.php $url $post_id > notify.log &",
+ array(),$foo));
+
+// notifier($a,$post_id,$parent);
+
}
- goaway($a->get_baseurl() . "/profile/$uid");
+ goaway($a->get_baseurl() . "/profile/$profile_uid");