Changeset 11174


Ignore:
Timestamp:
2006/12/24 00:33:04 (20 years ago)
Author:
uehara
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/branches/ec-cube-beta/html/campaign/default/application.php

    r11166 r11174  
    4242 
    4343switch($_POST['mode']) { 
    44 case 'cart': 
     44// ¥í¥°¥¤¥ó¥Á¥§¥Ã¥¯ 
     45case 'login': 
     46    $objLoginFormParam->toLower('login_email'); 
     47    $objPage->arrErr = $objLoginFormParam->checkError(); 
     48    $arrForm =  $objLoginFormParam->getHashArray(); 
     49    // ¥¯¥Ã¥­¡¼ÊݸȽÄê 
     50    if($arrForm['login_memory'] == "1" && $arrForm['login_email'] != "") { 
     51        $objCookie->setCookie('login_email', $_POST['login_email']); 
     52    } else { 
     53        $objCookie->setCookie('login_email', ''); 
     54    } 
     55 
     56    if(count($objPage->arrErr) == 0) { 
     57        // ¥í¥°¥¤¥óȽÄê 
     58        if(!$objCustomer->getCustomerDataFromEmailPass($arrForm['login_pass'], $arrForm['login_email'])) { 
     59            // ²¾ÅÐÏ¿¤ÎȽÄê 
     60            $objQuery = new SC_Query; 
     61            $where = "email = ? AND status = 1 AND del_flg = 0"; 
     62            $ret = $objQuery->count("dtb_customer", $where, array($arrForm['login_email'])); 
     63             
     64            if($ret > 0) { 
     65                sfDispSiteError(TEMP_LOGIN_ERROR); 
     66            } else { 
     67                sfDispSiteError(SITE_LOGIN_ERROR); 
     68            } 
     69        }  
     70    } else { 
     71        // ¥í¥°¥¤¥ó¥Ú¡¼¥¸¤ËÌá¤ë 
     72        header("Location: " . URL_SHOP_TOP); 
     73        exit;    
     74    } 
    4575    break; 
    4676default : 
Note: See TracChangeset for help on using the changeset viewer.