3 function can_write_wall(&$a,$owner) {
7 if((! (local_user())) && (! (remote_user())))
12 if(($uid) && ($uid == $owner)) {
18 // user remembered decision and avoid a DB lookup for each and every display item
19 // DO NOT use this function if there are going to be multiple owners
23 elseif($verified === 1)
26 $r = q("SELECT `contact`.*, `user`.`page-flags` FROM `contact` LEFT JOIN `user` on `user`.`uid` = `contact`.`uid`
27 WHERE `contact`.`uid` = %d AND `contact`.`id` = %d AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0
28 AND `user`.`blockwall` = 0 AND `readonly` = 0 AND ( `contact`.`rel` IN ( %d , %d ) OR `user`.`page-flags` = %d ) LIMIT 1",
30 intval(remote_user()),
33 intval(PAGE_COMMUNITY)