3 function can_write_wall(&$a,$owner) {
5 if((! (local_user())) && (! (remote_user())))
9 if(($uid) && ($uid == $owner)) {
13 $r = q("SELECT `contact`.*, `user`.`page-flags` FROM `contact` LEFT JOIN `user` on `user`.`uid` = `contact`.`uid`
14 WHERE `contact`.`uid` = %d AND `contact`.`id` = %d AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0
15 AND `readonly` = 0 AND ( `contact`.`rel` IN ( %d , %d ) OR `user`.`page-flags` = %d ) LIMIT 1",
17 intval($_SESSION['visitor_id']),
20 intval(PAGE_COMMUNITY)