Changeset 16090


Ignore:
Timestamp:
2007/09/27 16:08:31 (15 years ago)
Author:
nanasess
Message:

クラス化に伴う修正

Location:
branches/feature-module-update
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/html/mypage/login_check.php

    r15532 r16090  
    55 * http://www.lockon.co.jp/ 
    66 */ 
     7 
     8// {{{ requires 
    79require_once("../require.php"); 
     10require_once(CLASS_PATH . "page_extends/mypage/LC_Page_Mypage_LoginCheck_Ex.php"); 
    811 
    9 $objCustomer = new SC_Customer(); 
    10 // クッキー管理クラス 
    11 $objCookie = new SC_Cookie(COOKIE_EXPIRE); 
    12 // パラメータ管理クラス 
    13 $objFormParam = new SC_FormParam(); 
    14 // パラメータ情報の初期化 
    15 lfInitParam(); 
    16 // POST値の取得 
    17 $objFormParam->setParam($_POST); 
     12// }}} 
     13// {{{ generate page 
    1814 
    19 switch($_POST['mode']) { 
    20 case 'login': 
    21     $objFormParam->toLower('mypage_login_email'); 
    22     $arrErr = $objFormParam->checkError(); 
    23     $arrForm =  $objFormParam->getHashArray(); 
    24      
    25     // クッキー保存判定 
    26     if ($arrForm['mypage_login_memory'] == "1" && $arrForm['mypage_login_email'] != "") { 
    27         $objCookie->setCookie('login_email', $_POST['mypage_login_email']); 
    28     } else { 
    29         $objCookie->setCookie('login_email', ''); 
    30     } 
    31     if ($count == 0){ 
    32         if($objCustomer->getCustomerDataFromEmailPass($arrForm['mypage_login_pass'], $arrForm['mypage_login_email'])) { 
    33             header("Location: ./index.php"); 
    34             exit; 
    35         } else { 
    36             $objQuery = new SC_Query; 
    37             $where = "email = ? AND status = 1 AND del_flg = 0"; 
    38             $ret = $objQuery->count("dtb_customer", $where, array($arrForm['mypage_login_email'])); 
    39              
    40             if($ret > 0) { 
    41                 sfDispSiteError(TEMP_LOGIN_ERROR); 
    42             } else { 
    43                 sfDispSiteError(SITE_LOGIN_ERROR); 
    44             } 
    45         } 
    46     } 
    47      
    48     break; 
    49  
    50 } 
    51  
    52 //----------------------------------------------------------------------------------------------------------------------------------- 
    53 /* パラメータ情報の初期化 */ 
    54 function lfInitParam() { 
    55     global $objFormParam; 
    56     $objFormParam->addParam("記憶する", "mypage_login_memory", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); 
    57     $objFormParam->addParam("メールアドレス", "mypage_login_email", STEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK")); 
    58     $objFormParam->addParam("パスワード", "mypage_login_pass", STEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK")); 
    59 } 
     15$objPage = new LC_Page_Mypage_LoginCheck_Ex(); 
     16$objPage->init(); 
     17$objPage->process(); 
     18register_shutdown_function(array($objPage, "destroy")); 
    6019?> 
Note: See TracChangeset for help on using the changeset viewer.