<?phpfunctioncan_write_wall(&$a,$owner){if((!(local_user()))&&(!(remote_user())))returnfalse;if((local_user())&&($_SESSION['uid']==$owner))returntrue;$r=q("SELECT * FROM `contact` WHERE `uid` = %d AND `id` = %d AND `blocked` = 0",intval($owner),intval($_SESSION['visitor_id']));if(count($r))returntrue;returnfalse;}