Changeset 14949 for branches/rel/html/mypage/refusal.php
- Timestamp:
- 2007/06/28 11:15:24 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/rel/html/mypage/refusal.php
r12157 r14949 22 22 $objCustomer = new SC_Customer(); 23 23 $objQuery = new SC_Query(); 24 $objSiteSess = new SC_SiteSession(); 24 25 25 26 //¥í¥°¥¤¥óȽÄê … … 39 40 switch ($_POST['mode']){ 40 41 case 'confirm': 42 41 43 $objPage->tpl_mainpage = USER_PATH . 'templates/mypage/refusal_confirm.tpl'; 42 44 $objPage->tpl_title = "MY¥Ú¡¼¥¸/Âà²ñ¼ê³¤(³Îǧ¥Ú¡¼¥¸)"; 43 45 46 // ³Îǧ¥Ú¡¼¥¸¤ò·Ðͳ¤·¤¿¤³¤È¤òÅÐÏ¿ 47 $objSiteSess->setRegistFlag(); 48 // hidden¤Ëuniqid¤òËä¤á¹þ¤à 49 $objPage->tpl_uniqid = $objSiteSess->getUniqId(); 50 44 51 break; 45 52 46 53 case 'complete': 54 // Àµ¤·¤¤Á«°Ü¤«¤É¤¦¤«¤ò¥Á¥§¥Ã¥¯ 55 lfIsValidMovement($objSiteSess); 56 47 57 //²ñ°÷ºï½ü 48 58 $objQuery->exec("UPDATE dtb_customer SET del_flg=1, update_date=now() WHERE customer_id=?", array($objCustomer->getValue('customer_id'))); … … 57 67 $objView->display(SITE_FRAME); 58 68 69 // Àµ¤·¤¤Á«°Ü¤«¤É¤¦¤«¤ò¥Á¥§¥Ã¥¯ 70 function lfIsValidMovement($objSiteSess) { 71 // ³Îǧ¥Ú¡¼¥¸¤«¤é¤ÎÁ«°Ü¤«¤É¤¦¤«¤ò¥Á¥§¥Ã¥¯ 72 sfIsPrePage($objSiteSess); 73 74 // uniqid ¤¬POST¤µ¤ì¤Æ¤¤¤ë¤«¤ò¥Á¥§¥Ã¥¯ 75 $uniqid = $objSiteSess->getUniqId(); 76 if ( !empty($_POST['uniqid']) && ($_POST['uniqid'] === $uniqid) ) { 77 return; 78 } else { 79 sfDispSiteError(PAGE_ERROR, $objSiteSess); 80 } 81 } 59 82 ?>
Note: See TracChangeset
for help on using the changeset viewer.