일반페이지를 유료페이지로 사용가능하군요. 정보
일반페이지를 유료페이지로 사용가능하군요.본문
<?
include_once("./_common.php");
include_once("$g4[path]/contents.config.php");
define('_PAY_', true);
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 쓰면 안됨
}
}
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>유료페이지 테스트</title>
<meta name="generator" content="Namo WebEditor v5.0">
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<br><br><br><br><br>
<div align=center>유료페이지 테스트</div>
</body>
</html>
0
댓글 전체

감사드립니다.
각 페이지별로 결제 및 기간설정도 가능할런지 모르겠군요.. =ㅅ=a;;