function getNameType($wroot, $wid, $wname, $wmail) { global $root, $bbs, $DB_CONNECT, $v_LogId, $table; $Default_Icon = "<IMG SRC='../../../../../../member/icon/kimsdefaulticon.gif' ALIGN=absmiddle BORDER=0 WIDTH=20 WIDTH=20>"; if (!$wroot) { if (strpos("14", $bbs[NameType]) && $wid) { $MB = getMemberLog($wid, 0, $DB_CONNECT); $ST = array($wid, $MB[MB_NAME], $MB[MB_NIC], $MB[MB_EMAIL], $MB[MB_URL]); $MI = "../../../../../../member/icon/" . $wid . ".gif"; $IC = is_file($MI) ? "<IMG SRC='" . $MI . "' ALIGN=absmiddle BORDER=0 WIDTH=20 WIDTH=20>" : $Default_Icon; } else { $ST = array($wid, $wname, $wname, $wmail, ""); $IC = $Default_Icon; } } else { $ST = array("root", $root[name], $root[nic], $root[email], ""); } $fyp = ""; //관계 $NameSet = array($ST[1], $ST[2], $ST[0], $ST[1] . "(" . $ST[0] . ")", $ST[2] . "(" . $ST[0] . ")"); $Esc_Name = $bbs[NameIcon] ? $IC . $NameSet[$bbs[NameType]] : $NameSet[$bbs[NameType]]; $IdLayQue = "'" . $ST[1] . "','" . $ST[0] . "','" . $ST[4] . "','" . $fyp . "','" . $table . "','" . $v_LogId . "',event"; $Esc_Laye = $Esc_Name; $Esc_Mail = $v_LogId && $cEm ? "<A HREF='mailto:" . $cEm . "'>" . $Esc_Name . "</A>" : $Esc_Name; $LinkSet = array($Esc_Laye, $Esc_Mail, $Esc_Name); return $LinkSet[2]; }
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 = "<img src='../../member/icon/kimsdefaulticon.gif' align=absmiddle border=0 width=20 width=20>"; $Root_Icon = $root[icon] ? "<img src='" . $root[icon] . "' align=absmiddle border=0 width=20 width=20>" : ''; 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 = "<a style='cursor:pointer' onclick=\"getRootLayer('" . $table . "',event);\">" . $Esc_Name . "</a>"; $LinkType2 = "<a href='mailto:" . $root[email] . "'>" . $Esc_Name . "</a>"; $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) ? "<IMG SRC='" . $MyIcon . "' ALIGN=absmiddle BORDER=0 WIDTH=20 WIDTH=20>" : $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 = "<a style='cursor:pointer' onclick=\"getUserIdLayer(" . $IdLayQue . ");\">" . $Esc_Name . "</a>"; $LinkType2 = "<a href='mailto:" . $M[MB_EMAIL] . "'>" . $Esc_Name . "</a>"; $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 ? "<a href='mailto:" . $wmail . "'>" . $Esc_Name . "</a>" : $Esc_Name; $LinkType3 = $Esc_Name; $LinkSet = array($LinkType1, $LinkType2, $LinkType3); echo $ggg; return $v_LogId ? $LinkSet[$bbs[NameLink]] : $LinkSet[2]; }
session_start(); include './conf/db_info.php'; include './conf/db/' . $DB[kind] . '.php'; include './lib/init_check.php'; $DB_CONNECT = isConnectDb($DB[host], $DB[user], $DB[pass]); $DB_USEMYDB = isSelecteDb($DB[name], $DB_CONNECT); if (!$DB_CONNECT) { putErrPage(getErrorMsg(0)); } if (!$DB_USEMYDB) { putErrPage(getErrorMsg(1)); } include './conf/root_info.php'; include './conf/member_info.php'; $initTime = getNowTimes(); $MEMBER = getMemberLog($HTTP_SESSION_VARS[KimsLogId], 1, $DB_CONNECT); $v_LogId = $MEMBER[MB_ID]; $isRoot = getIsRoot(); $isAdmin = 0; $skin[head] = $skin[head] ? $skin[head] : 'default'; $skin[foot] = $skin[foot] ? $skin[foot] : 'default'; $HeadImg = './template/header/' . $skin[head] . '/image'; $FootImg = './template/footer/' . $skin[foot] . '/image'; $SearImg = './lib/module/search/image'; include './lib/module/search/func.php'; @(include './template/header/' . $skin[head] . '/header.php'); include './lib/init_open.php'; @(include './lib/module/search/search.php'); @(include './bbs/lib/include/inline/hidden.php'); @(include './template/footer/' . $skin[foot] . '/footer.php'); include './lib/init_close.php';