判断用户登陆没登陆

论坛: 
user id 等于0为匿名用户
用内部地址
别用外部地址
echo l('login in', 'user')
echo l('detail', 'node/' .$row->nid)