Example #1
0
    if ($main) {
        $last_id = 'r=' . $root . ',id1=' . $main . ',id2=' . $clear['m_id'];
    } else {
        if ($root) {
            $last_id = 'r=' . $root . ',id1=' . $clear['m_id'];
        } else {
            $last_id = 'r=' . $clear['m_id'];
        }
    }
    $tbn_write = Write::Inst()->TBN();
    $sql = " SELECT wr_no, last_id FROM {$tbn_write} WHERE bo_no=0 AND last_id LIKE '{$stx}%' ";
    $write_list = DB::Get()->sql_query_list($sql);
    foreach ($write_list as $v) {
        DB::Get()->update($tbn_write, array('last_id' => str_replace($stx, $last_id, $v['last_id'])), " WHERE wr_no='{$v['wr_no']}' ");
    }
    //*
    // 관리자페이지 아이디 변경 체크
    if (Config::Inst()->path_admin == $data['m_id']) {
        $change_admin_page = true;
        DB::Get()->update(Config::Inst()->TBN(), array('cf_value' => $clear['m_id']), " WHERE cf_id='path_admin' ");
    }
    //*/
}
// 회원정보 업데이트
$this->Sql('update', GV::Number($this->KN()), $clear);
if ($change_admin_page) {
    Dialog::AlertNReplace("관리자 페이지 주소가 변경되었습니다.\n메인화면으로 이동합니다.", Path::Root());
} else {
    Url::GoReplace($this->Link('list'));
}
exit;