컨텐츠 몰 설치하고 테스트 중인데요
관리자도 결제하라고 나오는데 관리자나 특정레벨 이상은 포인트 없이 내용을 볼수 있도록
할 수 없나요?
관리자도 결제하라고 나오는데 관리자나 특정레벨 이상은 포인트 없이 내용을 볼수 있도록
할 수 없나요?
댓글 1개
view.head.skin.php에서
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/contents.config.php");
if(!$is_admin) {
define('_PAY_', true);
if($board[bo_pay]) {
if (!$is_member) {
alert("로그인 해 주십시오.\\n\\n회원이 아니신 경우 회원가입 하시기 바랍니다.", "$g4[path]/bbs/login.php?url=".urlencode($_SERVER[PHP_SELF]."?bo_table=$bo_table&wr_id=$wr_id"));
}
// 절대 수정, 삭제하지 마세요.
echo "<script>_pay_skin=true;</script>";
$sql = " select mp_last_date from $g4[cont4_member_period] where mb_id = '$member[mb_id]' ";
$row = sql_fetch($sql);
if (!$row) {
alert("기간충전 내역이 없습니다.\\n\\n기간은 보유하신 포인트로 충전 할 수 있습니다.", "$g4[cont_path]/period.php");
//echo "<script language=javascript>alert('기간충전 내역이 없습니다.\\n\\n기간은 보유하신 포인트로 충전 할 수 있습니다.'); location.href='$g4[cont_path]/period.php';</script>";
// exit; // exit 쓰면 안됨
} else {
if ($g4['time_ymd'] > $row[mp_last_date]) {
//echo "<script language=javascript>alert('충전하신 기간이 만료 되었습니다.\\n\\n충전기간 : $row[mp_last_date] 까지\\n\\n게시물을 확인하시려면 보유하신 포인트로 기간을 충전하시기 바랍니다.'); location.href='$g4[cont_path]/period.php';</script>";
die("<script language=javascript>alert('충전하신 기간이 만료 되었습니다.\\n\\n충전기간 : $row[mp_last_date] 까지\\n\\n게시물을 확인하시려면 보유하신 포인트로 기간을 충전하시기 바랍니다.'); location.href='$g4[cont_path]/period.php';</script>");
// exit; // exit 쓰면 안됨
}
}
}
}
?>
이렇게 해보세요..
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/contents.config.php");
if(!$is_admin) {
define('_PAY_', true);
if($board[bo_pay]) {
if (!$is_member) {
alert("로그인 해 주십시오.\\n\\n회원이 아니신 경우 회원가입 하시기 바랍니다.", "$g4[path]/bbs/login.php?url=".urlencode($_SERVER[PHP_SELF]."?bo_table=$bo_table&wr_id=$wr_id"));
}
// 절대 수정, 삭제하지 마세요.
echo "<script>_pay_skin=true;</script>";
$sql = " select mp_last_date from $g4[cont4_member_period] where mb_id = '$member[mb_id]' ";
$row = sql_fetch($sql);
if (!$row) {
alert("기간충전 내역이 없습니다.\\n\\n기간은 보유하신 포인트로 충전 할 수 있습니다.", "$g4[cont_path]/period.php");
//echo "<script language=javascript>alert('기간충전 내역이 없습니다.\\n\\n기간은 보유하신 포인트로 충전 할 수 있습니다.'); location.href='$g4[cont_path]/period.php';</script>";
// exit; // exit 쓰면 안됨
} else {
if ($g4['time_ymd'] > $row[mp_last_date]) {
//echo "<script language=javascript>alert('충전하신 기간이 만료 되었습니다.\\n\\n충전기간 : $row[mp_last_date] 까지\\n\\n게시물을 확인하시려면 보유하신 포인트로 기간을 충전하시기 바랍니다.'); location.href='$g4[cont_path]/period.php';</script>";
die("<script language=javascript>alert('충전하신 기간이 만료 되었습니다.\\n\\n충전기간 : $row[mp_last_date] 까지\\n\\n게시물을 확인하시려면 보유하신 포인트로 기간을 충전하시기 바랍니다.'); location.href='$g4[cont_path]/period.php';</script>");
// exit; // exit 쓰면 안됨
}
}
}
}
?>
이렇게 해보세요..
게시글 목록
| 번호 | 제목 |
|---|---|
| 101 | |
| 100 | |
| 98 | |
| 97 | |
| 96 | |
| 95 | |
| 94 | |
| 93 |
질문
컨텐츠몰 관리자기능
|
| 89 | |
| 88 | |
| 87 |
버그
회원충전기간관리
1
|
| 85 |
질문
도와주십시요.ㅜㅜ
|
| 84 | |
| 77 | |
| 75 | |
| 74 | |
| 73 | |
| 71 | |
| 70 | |
| 69 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기