-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmember_agree.php
130 lines (115 loc) · 4.81 KB
/
member_agree.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?
$Dir="../";
include_once($Dir."lib/init.php");
include_once($Dir."lib/lib.php");
include_once($Dir."lib/shopdata.php");
if(strlen($_ShopInfo->getMemid())>0) {
header("Location:mypage_usermodify.php");
exit;
}
$leftmenu="Y";
$sql="SELECT body,leftmenu FROM tbldesignnewpage WHERE type='joinagree'";
$result=mysql_query($sql,get_db_conn());
if($row=mysql_fetch_object($result)) {
$body=$row->body;
$body=str_replace("[DIR]",$Dir,$body);
$leftmenu=$row->leftmenu;
$newdesign="Y";
}
mysql_free_result($result);
$query_cfg = "select * from tblmobileconfig";
$result_cfg = mysql_query($query_cfg,get_db_conn());
$row_cfg = mysql_fetch_array($result_cfg);
$skin_name = $row_cfg[skin]; if($skin_name=="") { $skin_name = "defalut1"; }
$upload_path = "../m/upload/"; //로고, 아이콘, 카피라이트
//샵 기본정보
$row_shop = mysql_fetch_array(mysql_query("select shopname from tblshopinfo"));
?>
<? include "header.php"; ?>
<script type="text/javascript" src="<?=$Dir?>lib/lib.js.php"></script>
<script type="text/javascript" src="<?=$Dir?>lib/DropDown.js.php"></script>
<SCRIPT LANGUAGE="JavaScript">
<!--
function CheckForm() {
if(!document.form1.agree || document.form1.agree.checked==false) {
alert("회원약관에 동의하셔야 회원가입이 가능합니다.");
if(document.form1.agree) {
document.form1.agree.focus();
}
return;
} else if(!document.form1.agreep || document.form1.agreep.checked==false) {
alert("개인보호취급방침에 동의하셔야 회원가입이 가능합니다.");
if(document.form1.agreep) {
document.form1.agreep.focus();
}
return;
} else if(confirm("회원가입을 정말 하겠습니까?")) {
document.form1.submit();
} else {
return;
}
}
//-->
</SCRIPT>
<div id="content">
<div class="h_area2">
<h2>회원가입</h2>
<a href="main.php" class="btn_home" rel="external"><span class="vc">홈</span></a>
<a href="javascript:history.back()" class="btn_prev" rel="external"><span>이전</span></a>
</div>
<form name="form1" action="member_join.php" method="post">
<?
$sql="SELECT agreement,privercy FROM tbldesign ";
$result=mysql_query($sql,get_db_conn());
$row=mysql_fetch_object($result);
$agreement=$row->agreement;
$privercy_exp=@explode("=", $row->privercy);
$privercy=$privercy_exp[1];
mysql_free_result($result);
if(strlen($agreement)==0) {
$buffer="";
$fp=fopen($Dir.AdminDir."agreement.txt","r");
if($fp) {
while (!feof($fp)) {
$buffer.= fgets($fp, 1024);
}
}
fclose($fp);
$agreement=$buffer;
}
$pattern=array("(\[SHOP\])","(\[COMPANY\])");
$replace=array($_data->shopname, $_data->companyname);
$agreement = preg_replace($pattern,$replace,$agreement);
if(strlen($privercy)==0) {
$buffer="";
$fp=fopen($Dir.AdminDir."privercy2.txt","r");
if($fp) {
while (!feof($fp)) {
$buffer.= fgets($fp, 1024);
}
}
fclose($fp);
$privercy=$buffer;
}
?>
<div style="margin:10px; padding-bottom:10px; border-bottom:1px solid #e5e5e5;">
회원가입을 하시면 본 쇼핑몰에서 진행하는 이벤트에 참여할 수 있으며,<br />
엄선된 상품과 이벤트 등 다양한 정보를 메일로 받으실 수 있습니다.
</div>
<div><IMG src="<?=$Dir?>images/join_yak_01.gif" alt="" border=0 /></div>
<div style="margin:0px 10px; BORDER: #dfdfdf 1px solid; text-align:left">
<DIV style="PADDING:8px; OVERFLOW-Y:auto; OVERFLOW-X:auto; HEIGHT:105px;"><?=$agreement?></DIV>
</div>
<div style="margin:5px 10px 20px 10px;"><INPUT id="idx_agree" type="checkbox" name="agree" style="border:none;"> <label style='cursor:hand;' onmouseover="style.textDecoration='underline'" onmouseout="style.textDecoration='none'" for=idx_agree>위의 회원약관에 동의합니다.</LABEL></div>
<div><IMG src="<?=$Dir?>images/join_yak_02.gif" alt="" border=0 /></div>
<div style="margin:0px 10px; BORDER: #dfdfdf 1px solid; text-align:left;">
<DIV style="PADDING:8px; OVERFLOW-Y:auto; OVERFLOW-X: auto; HEIGHT: 105px"><?=$privercy?></DIV>
</div>
<div style="margin:5px 10px 15px 10px;"><INPUT id="idx_agreep" type="checkbox" name="agreep" style="border:none;"> <label style='cursor:hand;' onmouseover="style.textDecoration='underline'" onmouseout="style.textDecoration='none'" for=idx_agreep>위의 개인정보취급방침에 동의합니다.</LABEL></div>
<div style="margin:20px; text-align:center;">
<A HREF="javascript:CheckForm();" class="button blue bigrounded">회원가입<!--<img src="<?=$Dir?>images/btn_mjoin.gif" border="0">--></a>
<A HREF="javascript:history.go(-1);" class="button white bigrounded">이전으로<!--<img src="<?=$Dir?>images/btn_mback.gif" border="0" hspace="5">--></a>
</div>
</form>
</div>
<? include_once('footer.php'); ?>