Changeset 23502
- Timestamp:
- 2014/06/03 14:00:32 (10 years ago)
- Location:
- branches/version-2_13-dev/data/class
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/pages/shopping/LC_Page_Shopping.php
r23497 r23502 49 49 $this->tpl_onload = 'eccube.toggleDeliveryForm();'; 50 50 51 $objDate = new SC_Date_Ex(BIRTH_YEAR, date('Y', strtotime('now')));51 $objDate = new SC_Date_Ex(BIRTH_YEAR, date('Y', strtotime('now'))); 52 52 $this->arrYear = $objDate->getYear('', START_BIRTH_YEAR, ''); 53 53 $this->arrMonth = $objDate->getMonth(true); … … 299 299 { 300 300 $objFormParam->addParam('記憶する', 'login_memory', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 301 $objFormParam->addParam('メールアドレス', 'login_email', '' , 'a', array('EXIST_CHECK', 'EMAIL_CHECK', 'SPTAB_CHECK' ,'EMAIL_CHAR_CHECK'));301 $objFormParam->addParam('メールアドレス', 'login_email', '', 'a', array('EXIST_CHECK', 'EMAIL_CHECK', 'SPTAB_CHECK', 'EMAIL_CHAR_CHECK')); 302 302 $objFormParam->addParam('パスワード', 'login_pass', PASSWORD_MAX_LEN, '', array('EXIST_CHECK', 'MAX_LENGTH_CHECK', 'SPTAB_CHECK')); 303 303 -
branches/version-2_13-dev/data/class/util/SC_Utils.php
r23501 r23502 343 343 344 344 if (mb_internal_encoding() == CHAR_CODE) { 345 $data = mb_convert_encoding($data, 'SJIS-Win',CHAR_CODE);345 $data = mb_convert_encoding($data, 'SJIS-Win', CHAR_CODE); 346 346 } 347 347 … … 619 619 $error = 0; 620 620 if ($start_month || $start_day || $start_year) { 621 if (! checkdate($start_month, $start_day 621 if (! checkdate($start_month, $start_day, $start_year)) $error = 1; 622 622 } else { 623 623 $error = 1; 624 624 } 625 625 if ($end_month || $end_day || $end_year) { 626 if (! checkdate($end_month ,$end_day ,$end_year)) $error = 2;626 if (! checkdate($end_month, $end_day, $end_year)) $error = 2; 627 627 } 628 628 if (! $error) { 629 $date1 = $start_year .'/'.sprintf('%02d', $start_month) .'/'.sprintf('%02d',$start_day) .' 000000';630 $date2 = $end_year .'/'.sprintf('%02d', $end_month) .'/'.sprintf('%02d',$end_day) .' 235959';629 $date1 = $start_year .'/'.sprintf('%02d', $start_month) .'/'.sprintf('%02d', $start_day) .' 000000'; 630 $date2 = $end_year .'/'.sprintf('%02d', $end_month) .'/'.sprintf('%02d', $end_day) .' 235959'; 631 631 if ($date1 > $date2) $error = 3; 632 632 } else { … … 733 733 public function sfRound($value, $pow = 0) 734 734 { 735 $adjust = pow(10 ,$pow-1);735 $adjust = pow(10, $pow-1); 736 736 737 737 // 整数且つ0でなければ桁数指定を行う … … 1103 1103 public static function sfDBDatetoTime($db_date) 1104 1104 { 1105 $date = preg_replace("|\..*$|", '',$db_date);1105 $date = preg_replace("|\..*$|", '', $db_date); 1106 1106 $time = strtotime($date); 1107 1107 … … 1230 1230 1231 1231 $matches = array(); 1232 mb_ereg("^(.*[\/])(.*)", $data_, $matches);1232 mb_ereg("^(.*[\/])(.*)", $data_, $matches); 1233 1233 $data=$matches[2]; 1234 1234 if (is_dir($data_)) { … … 1320 1320 foreach ($arrConvList as $key => $val) { 1321 1321 if (isset($array[$key])) { 1322 $array[$key] = mb_convert_kana($array[$key] ,$val);1322 $array[$key] = mb_convert_kana($array[$key], $val); 1323 1323 } 1324 1324 } … … 1549 1549 1550 1550 // 郵便番号検索文作成 1551 $zipcode = mb_convert_kana($zipcode ,'n');1551 $zipcode = mb_convert_kana($zipcode, 'n'); 1552 1552 $sqlse = 'SELECT state, city, town FROM mtb_zip WHERE zipcode = ?'; 1553 1553 … … 1571 1571 */ 1572 1572 $town = $data_list[0]['town']; 1573 $town = preg_replace("/(.*)$/", '',$town);1574 $town = preg_replace('/以下に掲載がない場合/', '',$town);1575 $town = preg_replace('/(.*?)の次に番地がくる場合/', '',$town);1573 $town = preg_replace("/(.*)$/", '', $town); 1574 $town = preg_replace('/以下に掲載がない場合/', '', $town); 1575 $town = preg_replace('/(.*?)の次に番地がくる場合/', '', $town); 1576 1576 $data_list[0]['town'] = $town; 1577 1577 $data_list[0]['state'] = $arrREV_PREF[$data_list[0]['state']]; … … 2110 2110 * @return bool true = exists / false does not exist 2111 2111 */ 2112 public static function checkFileExistsWithInBasePath($file, $base_path)2113 { 2114 $arrPath = explode('/', str_replace('\\', '/', $file));2115 $arrBasePath = explode('/', str_replace('\\', '/', $base_path));2116 $path_diff = implode("/", array_diff_assoc($arrPath, $arrBasePath));2117 return file_exists(realpath(str_replace('..', '',$base_path . $path_diff))) ? true : false;2112 public static function checkFileExistsWithInBasePath($file, $base_path) 2113 { 2114 $arrPath = explode('/', str_replace('\\', '/', $file)); 2115 $arrBasePath = explode('/', str_replace('\\', '/', $base_path)); 2116 $path_diff = implode("/", array_diff_assoc($arrPath, $arrBasePath)); 2117 return file_exists(realpath(str_replace('..', '', $base_path . $path_diff))) ? true : false; 2118 2118 } 2119 2119 … … 2126 2126 { 2127 2127 $micro = explode(" ", microtime()); 2128 $micro_string = explode('.', $micro[0]);2129 return date('Y-m-d H:i:s') . "." . substr($micro_string[1], 0,5);2128 $micro_string = explode('.', $micro[0]); 2129 return date('Y-m-d H:i:s') . "." . substr($micro_string[1], 0, 5); 2130 2130 } 2131 2131 }
Note: See TracChangeset
for help on using the changeset viewer.