컨텐츠 몰 설치하고 테스트 중인데요
관리자도 결제하라고 나오는데 관리자나 특정레벨 이상은 포인트 없이 내용을 볼수 있도록
할 수 없나요?
관리자도 결제하라고 나오는데 관리자나 특정레벨 이상은 포인트 없이 내용을 볼수 있도록
할 수 없나요?
댓글 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 쓰면 안됨
}
}
}
}
?>
이렇게 해보세요..
게시글 목록
| 번호 | 제목 |
|---|---|
| 186 | |
| 185 | |
| 184 | |
| 183 | |
| 180 | |
| 178 |
질문
금액을 수동으로?
|
| 174 | |
| 172 | |
| 171 | |
| 170 | |
| 167 | |
| 166 | |
| 164 | |
| 162 |
질문
결제하기이후화면이~~
|
| 161 |
버그
인클루드 워닝
|
| 159 | |
| 158 | |
| 157 | |
| 156 |
질문
등급관련 질문입니다
|
| 153 |
질문
테이블 오류??
1
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기