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';
<?php include './conf.php'; if (!getIsRoot()) { getClose('정상적인 접근이 아닙니다. ', ''); } if ($action == 'mvcopy') { if ($type == 'move') { $table = $new_table; if ($MultiUid) { $Multi_Uid_Exp = explode(';', $MultiUid); $Multi_Uid_Num = sizeof($Multi_Uid_Exp); rsort($Multi_Uid_Exp); reset($Multi_Uid_Exp); for ($i = $Multi_Uid_Num - 1; $i >= 0; $i--) { if (!trim($Multi_Uid_Exp[$i])) { continue; } $uid = trim($Multi_Uid_Exp[$i]); $R = db_fetch_array(db_query("SELECT * FROM kimsbod7_{$old_table}_dat WHERE BB_UID='" . $uid . "'", $DB_CONNECT)); $MIN_PID = db_fetch_array(db_query("SELECT min(BB_PID) FROM kimsbod7_{$table}_dat", $DB_CONNECT)); $BB_PID = $MIN_PID[0] ? substr($MIN_PID[0], 0, 8) * 1000 - 1000 : 99999999000; $QUE = "INSERT INTO kimsbod7_{$table}_dat (\n\t\t\t\tBB_PID,BB_DEPTH,BB_ROOT,BB_MB_ID,BB_NAME,BB_PASS,BB_EMAIL,BB_HOME_URL,\n\t\t\t\tBB_SUBJECT,BB_CONTENT,BB_HTML,BB_CATEGORY,BB_SECRET,BB_FILE,BB_LINK,\n\t\t\t\tBB_PREVIEW,BB_HIT,BB_REQ,BB_DOWN,BB_OPINUM,BB_IP,BB_AGENT,BB_DATE,BB_DATE1,BB_ADD\n\t\t\t\t)VALUES(\n\t\t\t\t'{$BB_PID}','{$R['BB_DEPTH']}','{$R['BB_ROOT']}','{$R['BB_MB_ID']}','{$R['BB_NAME']}','{$R['BB_PASS']}','{$R['BB_EMAIL']}','{$R['BB_HOME_URL']}',\n\t\t\t\t'" . addslashes($R[BB_SUBJECT]) . "','" . addslashes($R[BB_CONTENT]) . "','{$R['BB_HTML']}','{$R['BB_CATEGORY']}','{$R['BB_SECRET']}','{$R['BB_FILE']}','{$R['BB_LINK']}',\n\t\t\t\t'{$R['BB_PREVIEW']}','{$R['BB_HIT']}','{$R['BB_REQ']}','{$R['BB_DOWN']}','{$R['BB_OPINUM']}','{$R['BB_IP']}','{$R['BB_AGENT']}','{$R['BB_DATE']}','{$R['BB_DATE1']}','" . addslashes($R[BB_ADD]) . "'\n\t\t\t\t)"; db_query($QUE, $DB_CONNECT); $Now_Num = db_fetch_array(db_query("SELECT count(*),MAX(BB_UID) FROM kimsbod7_{$table}_dat", $DB_CONNECT)); if (!($Now_Num[0] % 10000)) { $KEYNUM = @intval($Now_Num[0] / 10000) * 10000; db_query("UPDATE kimsbod7_{$table}_dat SET BB_KEY='{$KEYNUM}' WHERE BB_UID='{$Now_Num['1']}'", $DB_CONNECT); db_query("INSERT INTO kimsbod7_{$table}_key (KY_PID,KY_KEY) VALUES ('{$BB_PID}','{$KEYNUM}')", $DB_CONNECT); } if ($R[BB_OPINUM]) {