1 | <?php |
---|
2 | /* |
---|
3 | * Âà²ñ½èÍý |
---|
4 | */ |
---|
5 | require_once("../require.php"); |
---|
6 | |
---|
7 | class LC_Page{ |
---|
8 | function LC_Page(){ |
---|
9 | $this->tpl_mainpage = 'mypage/refusal.tpl'; |
---|
10 | $this->tpl_title = "MY¥Ú¡¼¥¸/Âà²ñ¼ê³¤(ÆþÎÏ¥Ú¡¼¥¸)"; |
---|
11 | //session_cache_limiter('private-no-expire'); |
---|
12 | } |
---|
13 | } |
---|
14 | |
---|
15 | $objPage = new LC_Page(); |
---|
16 | $objView = new SC_SiteView(); |
---|
17 | $objCustomer = new SC_Customer(); |
---|
18 | $objQuery = new SC_Query(); |
---|
19 | |
---|
20 | //¥í¥°¥¤¥óȽÄê |
---|
21 | if (!$objCustomer->isLoginSuccess()){ |
---|
22 | sfDispSiteError(CUSTOMER_ERROR); |
---|
23 | }else { |
---|
24 | //¥Þ¥¤¥Ú¡¼¥¸¥È¥Ã¥×¸ÜµÒ¾ðÊóɽ¼¨ÍÑ |
---|
25 | $objPage->CustomerName1 = $objCustomer->getvalue('name01'); |
---|
26 | $objPage->CustomerName2 = $objCustomer->getvalue('name02'); |
---|
27 | $objPage->CustomerPoint = $objCustomer->getvalue('point'); |
---|
28 | } |
---|
29 | |
---|
30 | |
---|
31 | // ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ |
---|
32 | $objPage = sfGetPageLayout($objPage, false, "mypage/index.php"); |
---|
33 | |
---|
34 | if (isset($_POST['no'])) { |
---|
35 | header("Location: " . gfAddSessionId("index.php")); |
---|
36 | exit; |
---|
37 | } elseif (isset($_POST['complete'])){ |
---|
38 | //²ñ°÷ºï½ü |
---|
39 | $objQuery->exec("UPDATE dtb_customer SET del_flg=1, update_date=now() WHERE customer_id=?", array($objCustomer->getValue('customer_id'))); |
---|
40 | |
---|
41 | $where = "email ILIKE ?"; |
---|
42 | if (DB_TYPE == "mysql") $where = sfChangeILIKE($where); |
---|
43 | |
---|
44 | $objQuery->delete("dtb_customer_mail", $where, array($objCustomer->getValue('email'))); |
---|
45 | $objCustomer->EndSession(); |
---|
46 | //´°Î»¥Ú¡¼¥¸¤Ø |
---|
47 | header("Location: " . gfAddSessionId("refusal_complete.php")); |
---|
48 | exit; |
---|
49 | } |
---|
50 | |
---|
51 | $objView->assignobj($objPage); |
---|
52 | $objView->display(SITE_FRAME); |
---|
53 | |
---|
54 | ?> |
---|