Changeset 11896 for branches/mobile/html


Ignore:
Timestamp:
2007/03/16 09:36:36 (20 years ago)
Author:
rebelt
Message:

下記の問題点の修正です。

  • 検証結果18
Location:
branches/mobile/html/mobile
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/mobile/html/mobile/entry/index.php

    r11684 r11896  
    9999    $objPage->arrForm = lfConvertParam($objPage->arrForm, $arrRegistColumn); 
    100100 
     101    // Ìá¤ë¥Ü¥¿¥óÍѽèÍý 
     102    if (!empty($_POST["return"])) { 
     103        switch ($_POST["mode"]) { 
     104        case "complete": 
     105            $_POST["mode"] = "set3"; 
     106            break; 
     107        case "confirm": 
     108            $_POST["mode"] = "set2"; 
     109            break; 
     110        default: 
     111            $_POST["mode"] = "set1"; 
     112            break; 
     113        } 
     114    } 
     115 
    101116    //--¡¡ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯ 
    102117    if ($_POST["mode"] == "set1") { 
    … …  
    114129    } 
    115130 
    116     if ($objPage->arrErr || $_POST["mode"] == "return") {       // ÆþÎÏ¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯ 
    117         foreach($objPage->arrForm as $key => $val) { 
    118             $objPage->$key = $val; 
    119         } 
     131    foreach($objPage->arrForm as $key => $val) { 
     132        $objPage->$key = $val; 
     133    } 
     134 
     135    if ($objPage->arrErr || !empty($_POST["return"])) {     // ÆþÎÏ¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯ 
    120136 
    121137        //-- ¥Ç¡¼¥¿¤ÎÀßÄê 
    122138        if ($_POST["mode"] == "set1") { 
    123139            $checkVal = array("email", "password", "reminder", "reminder_answer", "name01", "name02", "kana01", "kana02"); 
    124             foreach($objPage->arrForm as $key => $val) { 
    125                 if ($key != "mode" && $key != "subm" & !in_array($key, $checkVal)) $objPage->list_data[ $key ] = $val; 
    126             } 
    127  
    128140        } elseif ($_POST["mode"] == "set2") { 
    129141            $checkVal = array("sex", "year", "month", "day", "zip01", "zip02"); 
    130             foreach($objPage->arrForm as $key => $val) { 
    131                 if ($key != "mode" && $key != "subm" & !in_array($key, $checkVal)) $objPage->list_data[ $key ] = $val; 
    132             } 
    133142        } else { 
    134             $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03"); 
    135             foreach($objPage->arrForm as $key => $val) { 
    136                 if ($key != "mode" && $key != "subm" & !in_array($key, $checkVal)) $objPage->list_data[ $key ] = $val; 
    137             } 
    138         } 
     143            $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag"); 
     144        } 
     145 
     146        foreach($objPage->arrForm as $key => $val) { 
     147            if ($key != "mode" && $key != "submit" && $key != "return" && $key != session_name() && !in_array($key, $checkVal)) 
     148                $objPage->list_data[ $key ] = $val; 
     149        } 
     150 
    139151 
    140152 
    … …  
    149161            $objPage->tpl_title = '²ñ°÷ÅÐÏ¿(3/3)'; 
    150162 
    151             $address = lfGetAddress($_REQUEST['zip01'].$_REQUEST['zip02']); 
    152             $objView->assign("pref", @$address[0]['state']); 
    153             $objView->assign("addr01", @$address[0]['city'] . @$address[0]['town']); 
     163            if (@$objPage->arrForm['pref'] == "" && @$objPage->arrForm['addr01'] == "" && @$objPage->arrForm['addr02'] == "") { 
     164                $address = lfGetAddress($_REQUEST['zip01'].$_REQUEST['zip02']); 
     165                $objPage->pref = @$address[0]['state']; 
     166                $objPage->addr01 = @$address[0]['city'] . @$address[0]['town']; 
     167            } 
    154168        } elseif ($_POST["mode"] == "confirm") { 
    155169            //¥Ñ¥¹¥ï¡¼¥Éɽ¼¨ 
    … …  
    171185        //-- ¥Ç¡¼¥¿ÀßÄê 
    172186        unset($objPage->list_data); 
     187        if ($_POST["mode"] == "set1") { 
     188            $checkVal = array("sex", "year", "month", "day", "zip01", "zip02"); 
     189        } elseif ($_POST["mode"] == "set2") { 
     190            $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag"); 
     191        } 
     192 
    173193        foreach($objPage->arrForm as $key => $val) { 
    174             if ($key != "mode" && $key != "subm") $objPage->list_data[ $key ] = $val; 
     194            if ($key != "mode" && $key != "submit" && $key != "confirm" && $key != "return" && $key != session_name() && !in_array($key, $checkVal)) { 
     195                $objPage->list_data[ $key ] = $val; 
     196            } 
    175197        } 
    176198 
  • branches/mobile/html/mobile/mypage/change.php

    r11674 r11896  
    7878    $objPage->arrForm = lfConvertParam($objPage->arrForm, $arrRegistColumn); 
    7979 
     80    // Ìá¤ë¥Ü¥¿¥óÍѽèÍý 
     81    if (!empty($_POST["return"])) { 
     82        switch ($_POST["mode"]) { 
     83        case "complete": 
     84            $_POST["mode"] = "set3"; 
     85            break; 
     86        case "confirm": 
     87            $_POST["mode"] = "set2"; 
     88            break; 
     89        default: 
     90            $_POST["mode"] = "set1"; 
     91            break; 
     92        } 
     93    } 
     94 
    8095    //--¡¡ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯ 
    8196    if ($_POST["mode"] == "set1") { 
    … …  
    93108    } 
    94109 
    95     if ($objPage->arrErr || $_POST["mode"] == "return") {       // ÆþÎÏ¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯ 
     110    if ($objPage->arrErr || !empty($_POST["return"])) {     // ÆþÎÏ¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯ 
    96111        foreach($objPage->arrForm as $key => $val) { 
    97112            $objPage->$key = $val; 
    … …  
    101116        if ($_POST["mode"] == "set1") { 
    102117            $checkVal = array("email", "password", "reminder", "reminder_answer", "name01", "name02", "kana01", "kana02"); 
    103             foreach($objPage->arrForm as $key => $val) { 
    104                 if ($key != "mode" && $key != "subm" & !in_array($key, $checkVal)) $objPage->list_data[ $key ] = $val; 
    105             } 
    106  
    107118        } elseif ($_POST["mode"] == "set2") { 
    108119            $checkVal = array("sex", "year", "month", "day", "zip01", "zip02"); 
    109             foreach($objPage->arrForm as $key => $val) { 
    110                 if ($key != "mode" && $key != "subm" & !in_array($key, $checkVal)) $objPage->list_data[ $key ] = $val; 
    111             } 
    112120        } else { 
    113             $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03"); 
    114             foreach($objPage->arrForm as $key => $val) { 
    115                 if ($key != "mode" && $key != "subm" & !in_array($key, $checkVal)) $objPage->list_data[ $key ] = $val; 
    116             } 
    117         } 
    118  
     121            $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag"); 
     122        } 
     123 
     124        foreach($objPage->arrForm as $key => $val) { 
     125            if ($key != "return" && $key != "mode" && $key != "confirm" && $key != session_name() && !in_array($key, $checkVal)) { 
     126                $objPage->list_data[ $key ] = $val; 
     127            } 
     128        } 
    119129 
    120130    } else { 
    … …  
    146156        //-- ¥Ç¡¼¥¿ÀßÄê 
    147157        unset($objPage->list_data); 
     158        if ($_POST["mode"] == "set1") { 
     159            $checkVal = array("sex", "year", "month", "day", "zip01", "zip02"); 
     160        } elseif ($_POST["mode"] == "set2") { 
     161            $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag"); 
     162        } 
     163 
    148164        foreach($_POST as $key => $val) { 
    149             if ($key != "mode" && $key != "subm") $objPage->list_data[ $key ] = $val; 
     165            if ($key != "return" && $key != "mode" && $key != "confirm" && $key != session_name() && !in_array($key, $checkVal)) { 
     166                $objPage->list_data[ $key ] = $val; 
     167            } 
    150168        } 
    151169 
    … …  
    186204        } 
    187205    } 
     206} 
     207 
     208$arrPrivateVariables = array('secret_key', 'first_buy_date', 'last_buy_date', 'buy_times', 'buy_total', 'point', 'note', 'status', 'create_date', 'update_date', 'del_flg', 'cell01', 'cell02', 'cell03', 'mobile_phone_id'); 
     209foreach ($arrPrivateVariables as $key) { 
     210    unset($objPage->list_data[$key]); 
    188211} 
    189212 
  • branches/mobile/html/mobile/shopping/deliv_addr.php

    r11569 r11896  
    2929//-- ¥Ç¡¼¥¿ÀßÄê 
    3030foreach($_POST as $key => $val) { 
    31     if ($key != "mode") $objPage->list_data[ $key ] = $val; 
    32 } 
    33  
     31    if ($key != "mode" && $key != "return" && $key != "submit" && $key != session_name()) { 
     32        $objPage->list_data[ $key ] = $val; 
     33    } 
     34} 
    3435// ¥æ¡¼¥¶¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ¤È¹ØÆþ¾õÂÖ¤ÎÀµÅöÀ­¤ò¥Á¥§¥Ã¥¯ 
    3536$uniqid = sfCheckNormalAccess($objSiteSess, $objCartSess); 
    … …  
    5152                        ); 
    5253 
     54// Ìá¤ë¥Ü¥¿¥óÍѽèÍý 
     55if (!empty($_POST["return"])) { 
     56    switch ($_POST["mode"]) { 
     57    case 'complete': 
     58        $_POST["mode"] = "set2"; 
     59        break; 
     60    case 'set2': 
     61        $_POST["mode"] = "set1"; 
     62        break; 
     63    default: 
     64        header("Location: " . gfAddSessionId('deliv.php')); 
     65        exit; 
     66    } 
     67} 
     68 
    5369switch ($_POST['mode']){ 
    5470    case 'set1': 
    5571        $objPage->arrErr = lfErrorCheck1($objPage->arrForm); 
    56         if (count($objPage->arrErr) == 0) { 
     72        if (count($objPage->arrErr) == 0 && empty($_POST["return"])) { 
    5773            $objPage->tpl_mainpage = 'shopping/set1.tpl'; 
    5874 
     75            $checkVal = array("pref", "addr01", "addr02", "addr03", "tel01", "tel02", "tel03"); 
     76            foreach($checkVal as $key) { 
     77                unset($objPage->list_data[$key]); 
     78            } 
     79 
    5980            // Í¹ÊØÈֹ椫¤é½»½ê¤Î¼èÆÀ 
    60             $address = lfGetAddress($_REQUEST['zip01'].$_REQUEST['zip02']); 
    61  
    62             $objPage->arrForm['pref'] = @$address[0]['state']; 
    63             $objPage->arrForm['addr01'] = @$address[0]['city'] . @$address[0]['town']; 
     81            if (@$objPage->arrForm['pref'] == "" && @$objPage->arrForm['addr01'] == "" && @$objPage->arrForm['addr02'] == "") { 
     82                $address = lfGetAddress($_REQUEST['zip01'].$_REQUEST['zip02']); 
     83 
     84                $objPage->arrForm['pref'] = @$address[0]['state']; 
     85                $objPage->arrForm['addr01'] = @$address[0]['city'] . @$address[0]['town']; 
     86            } 
     87        } else { 
     88            $checkVal = array("name01", "name02", "kana01", "kana02", "zip01", "zip02"); 
     89            foreach($checkVal as $key) { 
     90                unset($objPage->list_data[$key]); 
     91            } 
    6492        } 
    6593        break; 
    6694    case 'set2': 
    6795        $objPage->arrErr = lfErrorCheck2($objPage->arrForm); 
    68         if (count($objPage->arrErr) == 0) { 
     96        if (count($objPage->arrErr) == 0 && empty($_POST["return"])) { 
    6997            $objPage->tpl_mainpage = 'shopping/set2.tpl'; 
    7098        } else { 
    … …  
    72100 
    73101            $checkVal = array("pref", "addr01", "addr02", "addr03", "tel01", "tel02", "tel03"); 
    74             //-- ¥Ç¡¼¥¿ÀßÄê 
    75             unset($objPage->list_data); 
    76             foreach($_POST as $key => $val) { 
    77                 if ($key != "mode" && !in_array($key, $checkVal)) $objPage->list_data[ $key ] = $val; 
     102            foreach($checkVal as $key) { 
     103                unset($objPage->list_data[$key]); 
    78104            } 
    79105        } 
  • branches/mobile/html/mobile/shopping/payment.php

    r11683 r11896  
    5757// ¥«¡¼ÅÔÆâ¤Î¾¦ÉʤÎÇä¤êÀÚ¤ì¥Á¥§¥Ã¥¯ 
    5858$objCartSess->chkSoldOut($objCartSess->getCartList()); 
     59 
     60// Ìá¤ë¥Ü¥¿¥ó¤Î½èÍý 
     61if (!empty($_POST['return'])) { 
     62    switch ($_POST['mode']) { 
     63    case 'confirm': 
     64        $_POST['mode'] = 'payment'; 
     65        break; 
     66    default: 
     67        // Àµ¾ï¤Ê¿ä°Ü¤Ç¤¢¤ë¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯ 
     68        $objSiteSess->setRegistFlag(); 
     69        header("Location: " . gfAddSessionId(URL_SHOP_TOP)); 
     70        exit; 
     71    } 
     72} 
    5973 
    6074switch($_POST['mode']) { 
Note: See TracChangeset for help on using the changeset viewer.