* This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * 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_is_comment = true;
include_once "{$board_skin_path}/mw.lib/mw.skin.basic.lib.php";
$wr_content = mw_spelling($wr_content);
// 컨텐츠샵 멤버쉽
if (function_exists("mw_cash_is_membership")) {
    $is_membership = @mw_cash_is_membership($member[mb_id], $bo_table, "mp_comment");
    if ($is_membership == "no") {
    } else {
        if ($is_membership != "ok") {
            mw_cash_alert_membership($is_membership);
        }
    }
    //alert("$is_membership 회원만 이용 가능합니다.");
}
$is_comment_write = false;
if ($member[mb_level] >= $board[bo_comment_level]) {
    $is_comment_write = true;
}
예제 #2
0
} else {
    header("Content-Type: text/html; charset={$g4['charset']}");
}
$mw_is_list = false;
$mw_is_view = false;
$mw_is_write = true;
$mw_is_comment = false;
include_once "{$board_skin_path}/mw.lib/mw.skin.basic.lib.php";
$write_run_time = mw_time_log($write_run_time, "[write-head] include /mw.lib/mw.skin.basic.lib.php");
include_once "{$board_skin_path}/mw.lib/mw.sms.lib.php";
$write_run_time = mw_time_log($write_run_time, "[write-head] include /mw.lib/mw.sms.lib.php");
include_once "{$g4['path']}/lib/etc.lib.php";
$write_run_time = mw_time_log($write_run_time, "[write-head] include /lib/etc.lib.php");
$is_head = true;
$wr_content = mw_spelling($wr_content);
$wr_subject = mw_spelling($wr_subject);
$write_run_time = mw_time_log($write_run_time, "[write-head] mw_spelling");
// 실명인증
if ($mw_basic[cf_kcb_write] && !is_okname()) {
    if ($mw_basic[cf_kcb_type] == "okname") {
        alert("실명인증 후 이용하실 수 있습니다.");
    } else {
        alert("성인인증 후 이용하실 수 있습니다.");
    }
    $write_run_time = mw_time_log($write_run_time, "[write-head] kcb okname");
}
// 컨텐츠샵 멤버쉽
if (function_exists("mw_cash_is_membership")) {
    $is_membership = @mw_cash_is_membership($member[mb_id], $bo_table, "mp_write");
    $write_run_time = mw_time_log($write_run_time, "[write-head] is_membership");
    if ($is_membership == "no") {