Пример #1
0
// 파일로그
$download_log_href = '';
if ($mw_basic[cf_download_log] && $is_admin) {
    $download_log_href = "btn_download_log()";
}
// 링크로그
$link_log_href = '';
if ($mw_basic[cf_link_log] && $is_admin) {
    $link_log_href = "btn_link_log()";
}
// 로그버튼
$history_href = '';
if ($mw_basic[cf_post_history] && $member[mb_level] >= $mw_basic[cf_post_history_level]) {
    $history_href = "btn_history({$wr_id})";
}
$is_singo_admin = mw_singo_admin($member[mb_id]);
// 신고 버튼
$singo_href = '';
if ($mw_basic[cf_singo]) {
    $singo_href = "javascript:btn_singo({$wr_id}, {$wr_id})";
}
// 인쇄 버튼
$print_href = '';
if ($mw_basic[cf_print]) {
    $print_href = "javascript:btn_print()";
}
// 글쓰기 버튼에 분류저장
if ($sca && $write_href) {
    $write_href .= "&sca=" . urlencode($sca);
}
// 글쓰기 버튼 공지
Пример #2
0
<?php

include_once "./_common.php";
include_once "{$board_skin_path}/mw.lib/mw.skin.basic.lib.php";
$sw == "move";
$act = "이동";
if (!mw_singo_admin($member[mb_id])) {
    alert_close("접근 권한이 없습니다.");
}
$g4[title] = "게시물 " . $act;
include_once "{$g4['path']}/head.sub.php";
$wr_id_list = "";
if ($wr_id) {
    $wr_id_list = $wr_id;
} else {
    $comma = "";
    for ($i = 0; $i < count($_POST[chk_wr_id]); $i++) {
        $wr_id_list .= $comma . $_POST[chk_wr_id][$i];
        $comma = ",";
    }
}
$sql = " select * \n           from {$g4['board_table']} a, \n                {$g4['group_table']} b\n          where a.gr_id = b.gr_id ";
// and bo_table <> '$bo_table' ";
if ($is_admin == 'group') {
    $sql .= " and b.gr_admin = '{$member['mb_id']}' ";
} else {
    if ($is_admin == 'board') {
        $sql .= " and a.bo_admin = '{$member['mb_id']}' ";
    }
}
$sql .= " order by a.gr_id, a.bo_order_search, a.bo_table ";