Ignore:
Timestamp:
2007/07/20 15:58:59 (17 years ago)
Author:
nanasess
Message:

r15064 から svn cp
とりあえず暫定コミット.

  • UTF-8 に変更
  • slib.php, glib.php のクラス化
  • LC_Page の抽象化(一部)
Location:
branches/feature-module-update
Files:
1 edited
2 copied

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update

    • Property svn:ignore set to
      .cache

      .settings

      .projectOptions
  • branches/feature-module-update/html/mypage/refusal.php

    r14949 r15078  
    1010    function LC_Page(){ 
    1111        $this->tpl_mainpage = USER_PATH . 'templates/mypage/refusal.tpl'; 
    12         $this->tpl_title = "MY¥Ú¡¼¥¸/Âà²ñ¼ê³¤­(ÆþÎÏ¥Ú¡¼¥¸)"; 
     12        $this->tpl_title = "MYページ/退会手続き(入力ページ)"; 
    1313        $this->tpl_navi = USER_PATH . 'templates/mypage/navi.tpl'; 
    1414        $this->tpl_mainno = 'mypage'; 
     
    2424$objSiteSess = new SC_SiteSession(); 
    2525 
    26 //¥í¥°¥¤¥óȽÄê 
     26//ログイン判定 
    2727if (!$objCustomer->isLoginSuccess()){ 
    2828    sfDispSiteError(CUSTOMER_ERROR); 
    2929}else { 
    30     //¥Þ¥¤¥Ú¡¼¥¸¥È¥Ã¥×¸ÜµÒ¾ðÊóɽ¼¨ÍÑ 
     30    //マイページトップ顧客情報表示用 
    3131    $objPage->CustomerName1 = $objCustomer->getvalue('name01'); 
    3232    $objPage->CustomerName2 = $objCustomer->getvalue('name02'); 
     
    3535 
    3636 
    37 // ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ 
     37// レイアウトデザインを取得 
    3838$objPage = sfGetPageLayout($objPage, false, "mypage/index.php"); 
    3939 
     
    4242     
    4343    $objPage->tpl_mainpage = USER_PATH . 'templates/mypage/refusal_confirm.tpl'; 
    44     $objPage->tpl_title = "MY¥Ú¡¼¥¸/Âà²ñ¼ê³¤­(³Îǧ¥Ú¡¼¥¸)"; 
     44    $objPage->tpl_title = "MYページ/退会手続き(確認ページ)"; 
    4545     
    46     // ³Îǧ¥Ú¡¼¥¸¤ò·Ðͳ¤·¤¿¤³¤È¤òÅÐÏ¿ 
     46    // 確認ページを経由したことを登録 
    4747    $objSiteSess->setRegistFlag(); 
    48     // hidden¤Ëuniqid¤òËä¤á¹þ¤à 
     48    // hiddenにuniqidを埋め込む 
    4949    $objPage->tpl_uniqid = $objSiteSess->getUniqId(); 
    5050     
     
    5252     
    5353    case 'complete': 
    54     // Àµ¤·¤¤Á«°Ü¤«¤É¤¦¤«¤ò¥Á¥§¥Ã¥¯ 
     54    // 正しい遷移かどうかをチェック 
    5555    lfIsValidMovement($objSiteSess); 
    5656     
    57     //²ñ°÷ºï½ü 
     57    //会員削除 
    5858    $objQuery->exec("UPDATE dtb_customer SET del_flg=1, update_date=now() WHERE customer_id=?", array($objCustomer->getValue('customer_id'))); 
    5959 
    6060    $objCustomer->EndSession(); 
    61     //´°Î»¥Ú¡¼¥¸¤Ø 
     61    //完了ページへ 
    6262    header("Location: ./refusal_complete.php"); 
    6363    exit; 
     
    6767$objView->display(SITE_FRAME); 
    6868 
    69 // Àµ¤·¤¤Á«°Ü¤«¤É¤¦¤«¤ò¥Á¥§¥Ã¥¯ 
     69// 正しい遷移かどうかをチェック 
    7070function lfIsValidMovement($objSiteSess) { 
    71     // ³Îǧ¥Ú¡¼¥¸¤«¤é¤ÎÁ«°Ü¤«¤É¤¦¤«¤ò¥Á¥§¥Ã¥¯ 
     71    // 確認ページからの遷移かどうかをチェック 
    7272    sfIsPrePage($objSiteSess); 
    7373     
    74     // uniqid ¤¬POST¤µ¤ì¤Æ¤¤¤ë¤«¤ò¥Á¥§¥Ã¥¯ 
     74    // uniqid がPOSTされているかをチェック 
    7575    $uniqid = $objSiteSess->getUniqId(); 
    7676    if ( !empty($_POST['uniqid']) && ($_POST['uniqid'] === $uniqid) ) { 
Note: See TracChangeset for help on using the changeset viewer.