Esempio n. 1
0
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
if (!defined("_GNUBOARD_")) {
    exit;
}
// 개별 페이지 접근 불가
mw_bomb();
mw_basic_move_cate($bo_table, $wr_id);
$mb = get_member($view[mb_id], 'mb_level');
// is_notice 그누보드 버그 보완
if (!is_g5()) {
    $view[is_notice] = preg_match("/(^|[\r\n]){$wr_id}(\$|[\r\n])/", $board[bo_notice]);
}
// 별점평가
$rate = mw_rate($bo_table, $wr_id);
$rate_count = $rate['cnt'];
$write['wr_rate'] = $rate['rate'];
$move_flag = false;
// 자동이동
if (!$view[is_notice] and !$write[wr_auto_move] and $mw_basic[cf_auto_move]['use'] and $mw_basic[cf_auto_move]['bo_table'] and (!$mw_basic[cf_auto_move]['day'] or $mw_basic[cf_auto_move]['day'] > ($g4[server_time] - strtotime($write[wr_datetime])) / (60 * 60 * 24))) {
    /*
        if (($mw_basic[cf_auto_move]['hit'] and $mw_basic[cf_auto_move]['hit'] <= $write[wr_hit])
         or ($mw_basic[cf_auto_move]['good'] and $mw_basic[cf_auto_move]['good'] <= $write[wr_good] && !$mw_basic[cf_auto_move]['sub'])
         or ($mw_basic[cf_auto_move]['nogood'] and $mw_basic[cf_auto_move]['nogood'] <= $write[wr_nogood] && !$mw_basic[cf_auto_move]['sub'])
         or ($mw_basic[cf_auto_move]['sub'] and $mw_basic[cf_auto_move]['good'] <= ($write[wr_good]-$write[wr_nogood]))
         or ($mw_basic[cf_auto_move]['singo'] and $mw_basic[cf_auto_move]['singo'] <= $write[wr_singo])
Esempio n. 2
0
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;
}
if ($mw_basic['cf_thumb_round']) {
    $cf_css .= "\n#mw_basic .mw_basic_list_thumb a img { -webkit-border-radius:1em; -moz-border-radius:1em; border-radius:1em; }\n#mw_basic .box { -webkit-border-radius:1em; -moz-border-radius:1em; border-radius:1em; }\n#mw_basic .gall_list div.gall_image img.thumb { -webkit-border-radius:1em; -moz-border-radius:1em; border-radius:1em; }\n" . PHP_EOL;
}
$mw_basic[cf_umz] = 0;