3 function can_write_wall(&$a,$owner) {
4 if((! (local_user())) && (! (remote_user())))
6 if((local_user()) && ($_SESSION['uid'] == $owner))
9 $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `id` = %d AND `blocked` = 0 AND `pending` = 0
10 AND `readonly` = 0 AND `rel` IN ( %d , %d ) LIMIT 1",
12 intval($_SESSION['visitor_id']),
13 intval(DIRECTION_OUT),
14 intval(DIRECTION_BOTH)