$link = pc_db_connect(); $pc = pc_load_infor($link, $userid); if (!$pc) { pc_db_close($link); html_init("gb2312", "Blog"); html_error_quit("对不起,您要查看的Blog不存在"); exit; } $f_err = ""; if (pc_is_admin($currentuser, $pc) && $loginok == 1) { if (isset($_GET["act"])) { if ($_GET["act"] == "addfriend") { $f_err = add_friend($pc); } if ($_GET["act"] == "delfriend") { del_friend($pc); } } } $isfriend = pc_is_friend($currentuser["userid"], $pc["USER"]); $userPermission = pc_get_user_permission($currentuser, $pc); $sec = $userPermission["sec"]; $pur = $userPermission["pur"]; $tags = $userPermission["tags"]; $secnum = count($sec); if (!$tags[$tag]) { $tag = 0; } /*visit count start*/ if (!($pur == 3 && !pc_is_groupwork($pc))) { //Blog所有者的访问不进行计数 windinsn dec 10,2003
</div> <!-- This is an optional area for any extra data fields you may want to add. It shows up beneath the mobile/phone/fax numbers. --> <div class="optional-fields"> <h3 class="site-subtitle">Agregame a tu red de contactos</h3> <?php show_xfn_form($_GET['id']); ?> <?php if ($_POST['xfn_post'] == 'true') { add_friend(); } ?> <?php if ($_GET['elim']) { del_friend($userdata->ID, $_GET['elim']); } ?> </div> </div> <div class="extra"> <div class="notes"> <?php $primary_blog = get_usermeta($_GET['id'], "primary_blog"); if (strlen($primary_blog) > 0 && strcmp($blog->siteurl, 'http://bbvablogs.com') != 0) { $posts = get_last_blog_posts($primary_blog, 5); } else { foreach ($blogs as $blog_id => $blog) { $details = get_blog_details($blog_id);