コード例 #1
0
    if ($tmp) {
        sql_query("update {$write_table} set mb_id = '{$contents_shop_id}' where wr_id = '{$wr_id}'");
    }
    $write_run_time = mw_time_log($write_run_time, "[write-tail] update contentes_shop_id");
}
if ($is_admin && $wr_to_id && $mw_basic[cf_attribute] == "1:1") {
    $tmp = sql_fetch("select * from {$g4['member_table']} where mb_id = '{$wr_to_id}'");
    if ($tmp) {
        sql_query("update {$write_table} set wr_to_id = '{$wr_to_id}' where wr_id = '{$wr_id}'");
    }
    $write_run_time = mw_time_log($write_run_time, "[write-tail] update 1:1 wr_to_id");
}
if ($mw_basic['cf_image_outline']) {
    for ($i = 0, $m = count($upload); $i < $m; ++$i) {
        $dest_file = "{$g4['path']}/data/file/{$bo_table}/" . $upload[$i][file];
        if (is_mw_file($dest_file)) {
            mw_image_outline($dest_file, null, $mw_basic['cf_image_outline_color']);
        }
    }
    $editor_image = mw_get_editor_image($_POST['wr_content']);
    for ($j = 0, $m = count($editor_image['local_path']); $j < $m; $j++) {
        mw_image_outline($editor_image['local_path'][$j], null, $mw_basic['cf_image_outline_color']);
    }
    $write_run_time = mw_time_log($write_run_time, "[write-tail] outline");
}
include_once $board_skin_path . '/mw.proc/naver_syndi.php';
$write_run_time = mw_time_log($write_run_time, "[write-tail] naver_syndi");
if ($mw_basic['cf_include_write_update_tail'] && is_mw_file($mw_basic['cf_include_write_update_tail'])) {
    include $mw_basic['cf_include_write_update_tail'];
    $write_run_time = mw_time_log($write_run_time, "[write-tail] include write_update_tail");
}
コード例 #2
0
// 권한별 설정
$sql = "select * from {$mw['level_table']} ";
$sql .= " where bo_table = '{$bo_table}' and mb_level = '{$member['mb_level']}' and cf_use = '1' ";
$mw_basic_level = sql_fetch($sql, false);
if ($mw_basic_level) {
    if ($mw_basic_level['cf_write_day']) {
        $mw_basic['cf_write_day'] = $mw_basic_level['cf_write_day'];
    }
    if ($mw_basic_level['cf_write_day_count']) {
        $mw_basic['cf_write_day_count'] = $mw_basic_level['cf_write_day_count'];
    }
    if ($mw_basic_level['cf_qna_count']) {
        $mw_basic['cf_qna_count'] = $mw_basic_level['cf_qna_count'];
    }
}
$basic_run_time = mw_time_log($basic_run_time, "[basic] write_day ");
if ($board['bo_use_rss_view'] && $mw_basic['cf_rss'] && $rss_href) {
    $rss_href = $g4['url'] . '/skin/board/' . $board['bo_skin'] . '/rss.php?bo_table=' . $bo_table;
}
if ($is_file and is_g5() and !$board['bo_upload_count']) {
    $is_file = false;
}
$notice_div = "\n";
if (is_g5()) {
    $notice_div = ",";
}
$cf_css = $mw_basic['cf_css'];
$chrome_css = "div,table,td,span,li,a,h1,h2,h3,h4,h5,input,button {font-family:돋움;}";
if (strstr($_SERVER['HTTP_USER_AGENT'], "Chrome")) {
    $cf_css .= "\n" . $chrome_css . PHP_EOL;
}
コード例 #3
0
if (!$is_member) {
    set_cookie("mw_cookie_name", $wr_name, -1 * $g4[server_time]);
    set_cookie("mw_cookie_email", $wr_email, -1 * $g4[server_time]);
    set_cookie("mw_cookie_homepage", $wr_homepage, -1 * $g4[server_time]);
}
// 열람 패스워드
if ($mw_basic['cf_key_level'] && $mw_basic['cf_key_level'] <= $member['mb_level']) {
    if ($wr_key_password) {
        $wr_key_password = sql_password($wr_key_password);
        sql_query("update {$write_table} set wr_key_password = '******' where wr_id = '{$wr_id}' ");
    } else {
        if ($wr_key_password_del) {
            sql_query("update {$write_table} set wr_key_password = '' where wr_id = '{$wr_id}' ");
        }
    }
    $write_run_time = mw_time_log($write_run_time, "[write] update key_password");
}
// 숨김링크
if ($mw_basic['cf_hidden_link'] && $mw_basic['cf_hidden_link'] <= $member['mb_level']) {
    sql_query("update {$write_table} set wr_hidden_link1 = '{$wr_hidden_link1}' where wr_id = '{$wr_id}' ");
    sql_query("update {$write_table} set wr_hidden_link2 = '{$wr_hidden_link2}' where wr_id = '{$wr_id}' ");
    $write_run_time = mw_time_log($write_run_time, "[write] update hidden_link");
}
if ($mw_basic['cf_include_write_update'] && is_mw_file($mw_basic['cf_include_write_update'])) {
    include $mw_basic['cf_include_write_update'];
    $write_run_time = mw_time_log($write_run_time, "[write] include write_update");
}
// 일반회원 공지글 수정시 공지 내려가는 현상 보완 (그누보드 버그)
if ($is_notice) {
    sql_query("update {$g4['board_table']} set bo_notice = '{$board['bo_notice']}' where bo_table = '{$bo_table}' ");
}
コード例 #4
0
    $qry = sql_query($sql);
    while ($row = sql_fetch_array($qry)) {
        $watermark_files[] = mw_watermark_file("{$file_path}/{$row['bf_file']}");
    }
    $write_run_time = mw_time_log($write_run_time, "[write-head] watermark");
}
// 일반회원 공지글 수정시 공지 내려가는 현상 보완 (그누보드 버그)
// 공지사항 중복 방지
$bo_notice = explode($notice_div, trim($board['bo_notice']));
$bo_notice = array_filter($bo_notice, "trim");
$bo_notice = array_unique($bo_notice);
$tmp = array();
foreach ((array) $bo_notice as $row) {
    if (preg_match("/^[0-9]+\$/", $row)) {
        $tmp[] = $row;
    }
}
$bo_notice = implode($notice_div, $tmp);
$notice_array = $tmp;
$board['bo_notice'] = $bo_notice;
$is_notice = false;
if (!$is_admin && $w == 'u' && in_array($write['wr_id'], $notice_array)) {
    $is_notice = true;
}
if ($mw_category['ca_level_write'] && $mw_category['ca_level_write'] > $member['mb_level']) {
    alert("{$sca} 분류의 글작성권한이 없습니다.");
}
if ($mw_basic['cf_include_write_update_head'] && is_mw_file($mw_basic['cf_include_write_update_head'])) {
    include $mw_basic['cf_include_write_update_head'];
    $write_run_time = mw_time_log($write_run_time, "[write-head] include write_update_head");
}
コード例 #5
0
ファイル: list.skin.php プロジェクト: l2zeo/miwit-pack5
        ?>
/ajax.php?bo_table=<?php 
        echo $bo_table;
        ?>
");
        });
        </script>
        <?php 
    }
    $list_run_time = mw_time_log($list_run_time, "[list] youtube-collect");
}
// kakao 수집기
if ($mw_basic[cf_collect] == 'kakao' && $kakao_collect_path && is_mw_file("{$kakao_collect_path}/_config.php")) {
    include_once "{$kakao_collect_path}/_config.php";
    if ($mw_kakao_collect_config['cf_license']) {
        ?>
        <script>
        $(document).ready(function () {
            $.get("<?php 
        echo $kakao_collect_path;
        ?>
/ajax.php?bo_table=<?php 
        echo $bo_table;
        ?>
");
        });
        </script>
        <?php 
    }
    $list_run_time = mw_time_log($list_run_time, "[list] kakao-collect");
}