관리자는 제외 못하나요?
컨텐츠 몰 설치하고 테스트 중인데요
관리자도 결제하라고 나오는데 관리자나 특정레벨 이상은 포인트 없이 내용을 볼수 있도록
할 수 없나요?
관리자도 결제하라고 나오는데 관리자나 특정레벨 이상은 포인트 없이 내용을 볼수 있도록
할 수 없나요?
댓글 1개
15년 전
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 쓰면 안됨
}
}
}
}
?>
이렇게 해보세요..
게시글 목록
| 번호 | 제목 |
|---|---|
| 260 | |
| 257 | |
| 247 | |
| 239 | |
| 227 | |
| 216 | |
| 215 | |
| 214 | |
| 213 | |
| 211 | |
| 210 | |
| 209 | |
| 207 | |
| 206 | |
| 199 | |
| 197 | |
| 195 | |
| 191 | |
| 189 | |
| 188 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기