= strlen($LONG_STR)) return $LONG_STR; $klen = $CUTTING_LEN - 1; while(ord($LONG_STR[$klen]) & 0x80) $klen--; return substr($LONG_STR, 0, $CUTTING_LEN - (($CUTTING_LEN + $klen + 1) % 2)) .$CUTTING_STR; } function getLink($url) { echo ""; exit; } function getTargetLink($url,$target,$alert) { echo ""; echo ""; exit; } function getNowTimes() { $MicroTsmp = split(" ",microtime()); return $MicroTsmp[0]+$MicroTsmp[1]; } function getMemberLog($id,$type,$dbcon) { if($type == 1) return db_fetch_array(db_query("SELECT * FROM kimsmall7_members WHERE MB_ID='$id' AND MB_NOWLOG='1'" , $dbcon)); if($type == 0) return db_fetch_array(db_query("SELECT * FROM kimsmall7_members WHERE MB_ID='$id'" , $dbcon)); } function getIsRoot() { global $HTTP_COOKIE_VARS; if ($HTTP_COOKIE_VARS[MyLootPass] == '') return 0; include './conf/mkpass.php'; if ($HTTP_COOKIE_VARS[MyLootPass] == $ROOT_PASS) return 1; return 0; } function getFriend($id) { global $DB_CONNECT,$v_LogId; if ($id == '') return ''; if ($id == $v_LogId) return 'me'; $FR = db_fetch_array(db_query("SELECT FR_TYPE FROM kimsmall7_friend WHERE FR_MYID='".$v_LogId."' AND FR_YOURID='".$id."' LIMIT 0,1" , $DB_CONNECT)); if (!$FR[FR_TYPE]) return ''; return $FR[FR_TYPE] == 1 ? 'friend' : 'black'; } function getCharacter($id,$root,$use) { global $DB_CONNECT,$v_LogId,$table; if(!$use) return ''; if ($v_LogId) { if($root) { $char = "./image/root_char.gif"; $tag .= ""; $tag .= ""; $tag .= ""; return $tag; } if($id) { $gCharStr = "'".$CHAR[MB_NAME]."','".$id."','".$CHAR[MB_URL]."','".getFriend($id)."','".$table."','".$v_LogId."',event"; $CHAR = db_fetch_array(db_query("SELECT * FROM kimsmall7_members WHERE MB_ID='".$id."'" , $DB_CONNECT)); if(!$CHAR[MB_CAHRACTER]) { $char = "./image/default_char.gif"; } else { $char = is_file($CHAR[MB_CAHRACTER]) ? $CHAR[MB_CAHRACTER] : "./member/char/".$CHAR[MB_CAHRACTER]; } $tag .= ""; $tag .= ""; $tag .= ""; return $tag; } } } //̸ function getNameType($wroot,$wid,$wname,$wmail,$nameicon,$nametype,$namelink) { global $root,$bbs,$DB_CONNECT,$v_LogId,$table; if (!$bbs) { $bbs[NameIcon] = $nameicon; $bbs[NameType] = $nametype; $bbs[NameLink] = $namelink; } $Default_Icon = ""; $Root_Icon = $root[icon] ? "" : ''; if ($wroot) { $NameSet = array($root[nic],$root[nic],'root', $root[nic]."(root)" , $root[nic]."(root)"); $Esc_Name = $bbs[NameIcon] ? $Root_Icon.$NameSet[$bbs[NameType]] : $NameSet[$bbs[NameType]]; $LinkType1 = "".$Esc_Name.""; $LinkType2 = "".$Esc_Name.""; $LinkType3 = $Esc_Name; $LinkSet = array($LinkType1,$LinkType2,$LinkType3); return $v_LogId ? $LinkSet[$bbs[NameLink]] : $LinkSet[2]; } if ($wid) { $M = getMemberLog($wid,0,$DB_CONNECT); if ($M[MB_UID]) { $friendtype= getFriend($M[MB_ID]); $NameSet = array($M[MB_NAME],$M[MB_NIC],$M[MB_ID], $M[MB_NAME]."(".$M[MB_ID].")" , $M[MB_NIC]."(".$M[MB_ID].")"); $MyIcon = "./member/icon/".$wid.".gif"; $MyIoncTag = is_file($MyIcon) ? "" : $Default_Icon; $IdLayQue = "'".$M[MB_NAME]."','".$wid."','".$M[MB_URL]."','".$friendtype."','".$table."','".$v_LogId."',event"; $Esc_Name = $bbs[NameIcon] ? $MyIoncTag.$NameSet[$bbs[NameType]] : $NameSet[$bbs[NameType]]; $LinkType1 = "".$Esc_Name.""; $LinkType2 = "".$Esc_Name.""; $LinkType3 = $Esc_Name; $LinkSet = array($LinkType1,$LinkType2,$LinkType3); return $v_LogId ? $LinkSet[$bbs[NameLink]] : $LinkSet[2]; } } $NameSet = array($wname,$wname,'guest', $wname."(guest)" , $wname."(guest)"); $Esc_Name = $bbs[NameIcon] ? $Default_Icon.$NameSet[$bbs[NameType]] : $NameSet[$bbs[NameType]]; $LinkType1 = $LinkType2 = $v_LogId && $wmail ? "".$Esc_Name."" : $Esc_Name; $LinkType3 = $Esc_Name; $LinkSet = array($LinkType1,$LinkType2,$LinkType3);echo $ggg; return $v_LogId ? $LinkSet[$bbs[NameLink]] : $LinkSet[2]; } ?>