- Timestamp:
- 2012/08/22 18:30:33 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-multilang/data/class/SC_CheckError.php
r21925 r22006 71 71 $html_diff_tag_list = implode(', ', $arrDiffTag); 72 72 73 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'に許可されていないタグ ' . $html_diff_tag_list . ' が含まれています。<br />';73 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_HTML_TAG_CHECK', array('T_FIELD' => $value[0], 'T_TAG' => $html_diff_tag_list)); 74 74 } 75 75 … … 87 87 $this->createParam($value); 88 88 if (!is_array($this->arrParam[$value[1]]) && strlen($this->arrParam[$value[1]]) == 0) { 89 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'が入力されていません。<br />';89 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_EXIST_CHECK_INPUT', array('T_FIELD' => $value[0])); 90 90 } else if (is_array($this->arrParam[$value[1]]) && count($this->arrParam[$value[1]]) == 0) { 91 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'が選択されていません。<br />';91 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_EXIST_CHECK_SELECT', array('T_FIELD' => $value[0])); 92 92 } 93 93 } … … 106 106 $this->createParam($value); 107 107 if (strlen($this->arrParam[$value[0]]) == 0) { 108 $this->arrErr[$value[0]] = '※ ' . $value[0] . 'が入力されていません。<br />';108 $this->arrErr[$value[0]] = SC_I18n_Ex::t('SC_CHECKERROR_EXIST_CHECK_REVERSE', array('T_FIELD' => $value[1])); 109 109 } 110 110 } … … 123 123 $this->createParam($value); 124 124 if (strlen($this->arrParam[$value[1]]) != 0 && preg_match("/^[ \t\r\n]+$/", $this->arrParam[$value[1]])) { 125 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'にスペース、タブ、改行のみの入力はできません。<br />';125 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_SPTAB_CHECK', array('T_FIELD' => $value[0])); 126 126 } 127 127 } … … 140 140 $this->createParam($value); 141 141 if (strlen($this->arrParam[$value[1]]) != 0 && preg_match("/[ \t\r\n]+/u", $this->arrParam[$value[1]])) { 142 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'にスペース、タブ、改行は含めないで下さい。<br />';142 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_NO_SPTAB', array('T_FIELD' => $value[0])); 143 143 } 144 144 } … … 151 151 $this->createParam($value); 152 152 if (strlen($this->arrParam[$value[1]]) != 0 && preg_match("/^[0]+[0-9]+$/", $this->arrParam[$value[1]])) { 153 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'に0で始まる数値が入力されています。<br />';153 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_ZERO_START', array('T_FIELD' => $value[0])); 154 154 } 155 155 } … … 168 168 $this->createParam($value); 169 169 if (strlen($this->arrParam[$value[1]]) == 0) { 170 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'が選択されていません。<br />';170 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_SELECT_CHECK', array('T_FIELD' => $value[0])); 171 171 } 172 172 } … … 186 186 // 文字数の取得 187 187 if ($this->arrParam[$value[2]] !== $this->arrParam[$value[3]]) { 188 $this->arrErr[$value[2]] = '※ ' . $value[0] . 'と' . $value[1] . 'が一致しません。<br />';188 $this->arrErr[$value[2]] = SC_I18n_Ex::t('SC_CHECKERROR_EQUAL_CHECK', array('T_FIELD_1ST' => $value[0], 'T_FIELD_2ND' => $value[1])); 189 189 } 190 190 } … … 204 204 // 文字数の取得 205 205 if ($this->arrParam[$value[2]] == $this->arrParam[$value[3]]) { 206 $this->arrErr[$value[2]] = '※ ' . $value[0] . 'と' . $value[1] . 'は、同じ値を使用できません。<br />';206 $this->arrErr[$value[2]] = SC_I18n_Ex::t('SC_CHECKERROR_DIFFERENT_CHECK', array('T_FIELD_1ST' => $value[0], 'T_FIELD_2ND' => $value[1])); 207 207 } 208 208 } … … 222 222 // 文字数の取得 223 223 if ($this->arrParam[$value[2]] != '' && $this->arrParam[$value[3]] != '' && ($this->arrParam[$value[2]] > $this->arrParam[$value[3]])) { 224 $this->arrErr[$value[2]] = '※ ' . $value[0] . 'は' . $value[1] . 'より大きい値を入力できません。<br />';224 $this->arrErr[$value[2]] = SC_I18n_Ex::t('SC_CHECKERROR_GREATER_CHECK', array('T_FIELD_1ST' => $value[0], 'T_FIELD_2ND' => $value[1])); 225 225 } 226 226 } … … 240 240 // 文字数の取得 241 241 if (mb_strlen($this->arrParam[$value[1]]) > $value[2]) { 242 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は' . $value[2] . '字以下で入力してください。<br />';242 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_MAX_LENGTH_CHECK', array('T_FIELD' => $value[0], 'T_LENGTH' => $value[2])); 243 243 } 244 244 } … … 258 258 // 文字数の取得 259 259 if (mb_strlen($this->arrParam[$value[1]]) < $value[2]) { 260 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は' . $value[2] . '字以上で入力してください。<br />';260 $this->arrErr[$value[1]] = SC_I18n_Ex::t_plural($value[2], 'SC_CHECKERROR_MIN_LENGTH_CHECK_SINGLE', 'SC_CHECKERROR_MIN_LENGTH_CHECK_PLURAL', array('T_FIELD' => $value[0])); 261 261 } 262 262 } … … 276 276 // 文字数の取得 277 277 if ($this->arrParam[$value[1]] > $value[2]) { 278 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は' . $value[2] . '以下で入力してください。<br />';278 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_MAX_CHECK', array('T_FIELD' => $value[0], 'T_LENGTH' => $value[2])); 279 279 } 280 280 } … … 293 293 $this->createParam($value); 294 294 if ($this->arrParam[$value[1]] < $value[2]) { 295 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は' . $value[2] . '以上で入力してください。<br />';295 $this->arrErr[$value[1]] = SC_I18n_Ex::t_plural($value[2], 'SC_CHECKERROR_MIN_CHECK_SINGLE', 'SC_CHECKERROR_MIN_CHECK_PLURAL', array('T_FIELD' => $value[0])); 296 296 } 297 297 } … … 310 310 $this->createParam($value); 311 311 if ($this->numelicCheck($this->arrParam[$value[1]])) { 312 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は数字で入力してください。<br />';312 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_NUM_CHECK', array('T_FIELD' => $value[0])); 313 313 } 314 314 } … … 327 327 $this->createParam($value); 328 328 if (strlen($this->arrParam[$value[1]]) > 0 && !is_numeric($this->arrParam[$value[1]])) { 329 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は数字で入力してください。<br />';329 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_NUM_POINT_CHECK', array('T_FIELD' => $value[0])); 330 330 } 331 331 } … … 337 337 $this->createParam($value); 338 338 if (strlen($this->arrParam[$value[1]]) > 0 && !ctype_alpha($this->arrParam[$value[1]])) { 339 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は半角英字で入力してください。<br />';339 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_ALPHA_CHECK', array('T_FIELD' => $value[0])); 340 340 } 341 341 } … … 372 372 // すべての項目が満たされていない場合を判定(一部だけ入力されている状態) 373 373 if ($cnt > 0 && $cnt < 3) { 374 $this->arrErr[$value[1]] .= '※ ' . $value[0] . 'はすべての項目を入力してください。<br />';374 $this->arrErr[$value[1]] .= SC_I18n_Ex::t('SC_CHECKERROR_TEL_CHECK_EXIST', array('T_FIELD' => $value[0])); 375 375 } 376 376 … … 378 378 for ($i = 1; $i <= 3; $i++) { 379 379 if (strlen($this->arrParam[$value[$i]]) > 0 && strlen($this->arrParam[$value[$i]]) > $telItemLen) { 380 $this->arrErr[$value[$i]] .= '※ ' . $value[0] . $i . 'は' . $telItemLen . '字以内で入力してください。<br />';380 $this->arrErr[$value[$i]] .= SC_I18n_Ex::t('SC_CHECKERROR_TEL_CHECK_MAX_LENGTH', array('T_FIELD' => $value[0] . $i, 'T_LENGTH' => $telItemLen)); 381 381 } else if ($this->numelicCheck($this->arrParam[$value[1]])) { 382 $this->arrErr[$value[$i]] .= '※ ' . $value[0] . $i . 'は数字で入力してください。<br />';382 $this->arrErr[$value[$i]] .= SC_I18n_Ex::t('SC_CHECKERROR_TEL_CHECK_NUM', array('T_FIELD' => $value[0] . $i)); 383 383 } 384 384 $total_count += strlen($this->arrParam[$value[$i]]); … … 387 387 // 合計値チェック 388 388 if ($total_count > $telLen) { 389 $this->arrErr[$value[3]] .= '※ ' . $value[0] . 'は' . $telLen . '文字以内で入力してください。<br />';389 $this->arrErr[$value[3]] .= SC_I18n_Ex::t('SC_CHECKERROR_TEL_CHECK_SUM', array('T_FIELD' => $value[0], 'T_LENGTH' => $telLen)); 390 390 } 391 391 } … … 415 415 416 416 if ($blank) { 417 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'が入力されていません。<br />';417 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_FULL_EXIST_CHECK', array('T_FIELD' => $value[0])); 418 418 } 419 419 } … … 446 446 447 447 if ($blank && $input) { 448 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'はすべての項目を入力して下さい。<br />';448 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_ALL_EXIST_CHECK', array('T_FIELD' => $value[0])); 449 449 } 450 450 } … … 474 474 475 475 if (!$input) { 476 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'が入力されていません。<br />';476 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_ONE_EXIST_CHECK', array('T_FIELD' => $value[0])); 477 477 } 478 478 } … … 508 508 509 509 if ($error) { 510 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は先頭の項目から順番に入力して下さい。<br />';510 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_TOP_EXIST_CHECK', array('T_FIELD' => $value[0])); 511 511 } 512 512 } … … 521 521 $this->createParam($value); 522 522 if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[ァ-ヶヲ-゚ー]+$/u", $this->arrParam[$value[1]])) { 523 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'はカタカナで入力してください。<br />';523 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_KANA_CHECK', array('T_FIELD' => $value[0])); 524 524 } 525 525 } … … 534 534 $this->createParam($value); 535 535 if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^([ \t\r\n]|[ァ-ヶ]|[ー])+$/u", $this->arrParam[$value[1]])) { 536 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'はカタカナで入力してください。<br />';536 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_KANABLANK_CHECK', array('T_FIELD' => $value[0])); 537 537 } 538 538 } … … 547 547 $this->createParam($value); 548 548 if (strlen($this->arrParam[$value[1]]) > 0 && !ctype_alnum($this->arrParam[$value[1]])) { 549 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は英数字で入力してください。<br />';549 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_ALNUM_CHECK', array('T_FIELD' => $value[0])); 550 550 } 551 551 } … … 560 560 $this->createParam($value); 561 561 if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[[:graph:]|[:space:]]+$/i", $this->arrParam[$value[1]])) { 562 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は英数記号で入力してください。<br />';562 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_GRAPH_CHECK', array('T_FIELD' => $value[0])); 563 563 } 564 564 } … … 570 570 $this->createParam($value); 571 571 if ($this->arrParam[$value[1]] == '0') { 572 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は1以上を入力してください。<br />';572 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_ZERO_CHECK', array('T_FIELD' => $value[0])); 573 573 } 574 574 } … … 585 585 $count = strlen($this->arrParam[$value[1]]); 586 586 if (($count > 0) && $value[2] > $count || $value[3] < $count) { 587 $this->arrErr[$value[1]] = "※ $value[0]は$value[2]桁~$value[3]桁で入力して下さい。<br />";587 $this->arrErr[$value[1]] = SC_I18n_Ex::t_plural($value[2], 'SC_CHECKERROR_NUM_RANGE_CHECK_SINGLE', 'SC_CHECKERROR_NUM_RANGE_CHECK_PLURAL', array('T_FIELD' => $value[0], 'T_DIGIT_MAX' => $value[3])); 588 588 } 589 589 } … … 599 599 $count = strlen($this->arrParam[$value[1]]); 600 600 if (($count > 0) && $count != $value[2]) { 601 $this->arrErr[$value[1]] = "※ $value[0]は$value[2]桁で入力して下さい。<br />";601 $this->arrErr[$value[1]] = SC_I18n_Ex::t_plural($value[2], 'SC_CHECKERROR_NUM_COUNT_CHECK_SINGLE', 'SC_CHECKERROR_NUM_COUNT_CHECK_PLURAL', array('T_FIELD' => $value[0])); 602 602 } 603 603 } … … 647 647 648 648 if (!preg_match($regexp, $this->arrParam[$value[1]])) { 649 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'の形式が不正です。<br />';649 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_EMAIL_CHECK', array('T_FIELD' => $value[0])); 650 650 return; 651 651 } … … 666 666 $this->createParam($value); 667 667 if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[a-zA-Z0-9_\.@\+\?-]+$/i",$this->arrParam[$value[1]])) { 668 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'に使用する文字を正しく入力してください。<br />';668 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_EMAIL_CHAR_CHECK', array('T_FIELD' => $value[0])); 669 669 } 670 670 } … … 678 678 } 679 679 if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("@^https?://+($|[a-zA-Z0-9_~=:&\?\.\/-])+$@i", $this->arrParam[$value[1]])) { 680 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'を正しく入力してください。<br />';680 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_URL_CHECK', array('T_FIELD' => $value[0])); 681 681 } 682 682 } … … 698 698 $param = trim($param); 699 699 if (long2ip(ip2long($param)) != trim($param) && !empty($param)) { 700 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'に正しい形式のIPアドレスを入力してください。<br />';700 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_IP_CHECK', array('T_FIELD' => $value[0])); 701 701 } 702 702 } … … 726 726 if ($match === false) { 727 727 $str_ext = implode('・', $value[2]); 728 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'で許可されている形式は、' . $str_ext . 'です。<br />';728 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_FILE_EXT_CHECK', array('T_FIELD' => $value[0], 'T_EXT' => $str_ext)); 729 729 } 730 730 } … … 749 749 750 750 if ($this->arrParam[$value[1]] != '' && !file_exists($path)) { 751 $this->arrErr[$value[1]] = '※ ' . $path . 'が見つかりません。<br />';751 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_FIND_FILE', array('T_PATH' => $path)); 752 752 } 753 753 } … … 762 762 $this->createParam($value); 763 763 if (!($_FILES[$value[1]]['size'] != '' && $_FILES[$value[1]]['size'] > 0)) { 764 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'をアップロードして下さい。<br />';764 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_FILE_EXIST_CHECK', array('T_FIELD' => $value[0])); 765 765 } 766 766 } … … 780 780 $byte = 'MB'; 781 781 } 782 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'のファイルサイズは' . $value[2] . $byte . '以下のものを使用してください。<br />';782 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_FILE_SIZE_CHECK', array('T_FIELD' => $value[0], 'T_SIZE' => $value[2], 'T_UNIT' => $byte)); 783 783 } 784 784 } … … 793 793 $this->createParam($value); 794 794 if (strlen($_FILES[$value[1]]['name']) > 0 && !preg_match("/^[[:alnum:]_\.-]+$/i", $_FILES[$value[1]]['name'])) { 795 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'のファイル名に日本語やスペースは使用しないで下さい。<br />';795 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_FILE_NAME_CHECK', array('T_FIELD' => $value[0])); 796 796 } 797 797 } … … 806 806 $this->createParam($value); 807 807 if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[[:alnum:]_\.-]+$/i", $this->arrParam[$value[1]]) || preg_match('/[\\]/' ,$this->arrParam[$value[1]])) { 808 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'のファイル名に日本語やスペースは使用しないで下さい。<br />';808 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_FILE_NAME_CHECK', array('T_FIELD' => $value[0])); 809 809 } 810 810 } … … 824 824 // 年月日のどれかが入力されていない。 825 825 if (!(strlen($this->arrParam[$value[1]]) > 0 && strlen($this->arrParam[$value[2]]) > 0 && strlen($this->arrParam[$value[3]]) > 0)) { 826 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'はすべての項目を入力して下さい。<br />';826 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_DATE_ALL_EXIST', array('T_FIELD' => $value[0])); 827 827 } else if (! checkdate($this->arrParam[$value[2]], $this->arrParam[$value[3]], $this->arrParam[$value[1]])) { 828 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'が正しくありません。<br />';828 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_DATE_PROPER', array('T_FIELD' => $value[0])); 829 829 } 830 830 } … … 847 847 // 年月日時のどれかが入力されていない。 848 848 if (!(strlen($this->arrParam[$value[1]]) > 0 && strlen($this->arrParam[$value[2]]) > 0 && strlen($this->arrParam[$value[3]]) > 0 && strlen($this->arrParam[$value[4]]) > 0 && strlen($this->arrParam[$value[5]]) > 0)) { 849 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'はすべての項目を入力して下さい。<br />';849 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_DATE_ALL_EXIST', array('T_FIELD' => $value[0])); 850 850 } else if (! checkdate($this->arrParam[$value[2]], $this->arrParam[$value[3]], $this->arrParam[$value[1]])) { 851 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'が正しくありません。<br />';851 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_DATE_PROPER', array('T_FIELD' => $value[0])); 852 852 } 853 853 } … … 867 867 // 年月日時のどれかが入力されていない。 868 868 if (!(strlen($this->arrParam[$value[1]]) > 0 && strlen($this->arrParam[$value[2]]) > 0)) { 869 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'はすべての項目を入力して下さい。<br />';869 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_DATE_ALL_EXIST', array('T_FIELD' => $value[0])); 870 870 } else if (! checkdate($this->arrParam[$value[2]], 1, $this->arrParam[$value[1]])) { 871 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'が正しくありません。<br />';871 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_DATE_PROPER', array('T_FIELD' => $value[0])); 872 872 } 873 873 } … … 932 932 $this->createParam($value); 933 933 if ((strlen($this->arrParam[$value[2]]) > 0 || strlen($this->arrParam[$value[3]]) > 0 || strlen($this->arrParam[$value[4]]) > 0) && ! checkdate($this->arrParam[$value[3]], $this->arrParam[$value[4]], $this->arrParam[$value[2]])) { 934 $this->arrErr[$value[2]] = '※ ' . $value[0] . 'を正しく指定してください。<br />';934 $this->arrErr[$value[2]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_SET_TERM_PROPER', array('T_FIELD' => $value[0])); 935 935 } 936 936 if ((strlen($this->arrParam[$value[5]]) > 0 || strlen($this->arrParam[$value[6]]) > 0 || strlen($this->arrParam[$value[7]]) > 0) && ! checkdate($this->arrParam[$value[6]], $this->arrParam[$value[7]], $this->arrParam[$value[5]])) { 937 $this->arrErr[$value[5]] = '※ ' . $value[1] . 'を正しく指定してください。<br />';937 $this->arrErr[$value[5]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_SET_TERM_PROPER', array('T_FIELD' => $value[1])); 938 938 } 939 939 if ((strlen($this->arrParam[$value[2]]) > 0 && strlen($this->arrParam[$value[3]]) > 0 && strlen($this->arrParam[$value[4]]) > 0) && (strlen($this->arrParam[$value[5]]) > 0 || strlen($this->arrParam[$value[6]]) > 0 || strlen($this->arrParam[$value[7]]) > 0)) { … … 943 943 944 944 if (($this->arrErr[$value[2]] == '' && $this->arrErr[$value[5]] == '') && $date1 > $date2) { 945 $this->arrErr[$value[2]] = '※ ' .$value[0]. 'と' .$value[1]. 'の期間指定が不正です。<br />';945 $this->arrErr[$value[2]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_SET_TERM_RANGE', array('T_START' => $value[0], 'T_END' => $value[1])); 946 946 } 947 947 } … … 982 982 $this->createParam($value); 983 983 if ((strlen($this->arrParam[$value[2]]) > 0 || strlen($this->arrParam[$value[3]]) > 0 || strlen($this->arrParam[$value[4]]) > 0 || strlen($this->arrParam[$value[5]]) > 0) && ! checkdate($this->arrParam[$value[3]], $this->arrParam[$value[4]], $this->arrParam[$value[2]])) { 984 $this->arrErr[$value[2]] = '※ ' . $value[0] . 'を正しく指定してください。<br />';984 $this->arrErr[$value[2]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_SET_TERM_PROPER', array('T_FIELD' => $value[0])); 985 985 } 986 986 if ((strlen($this->arrParam[$value[8]]) > 0 || strlen($this->arrParam[$value[9]]) > 0 || strlen($this->arrParam[$value[10]]) > 0 || strlen($this->arrParam[$value[11]]) > 0) && ! checkdate($this->arrParam[$value[9]], $this->arrParam[$value[10]], $this->arrParam[$value[8]])) { 987 $this->arrErr[$value[8]] = '※ ' . $value[1] . 'を正しく指定してください。<br />';987 $this->arrErr[$value[8]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_SET_TERM_PROPER', array('T_FIELD' => $value[1])); 988 988 } 989 989 if ((strlen($this->arrParam[$value[2]]) > 0 && strlen($this->arrParam[$value[3]]) > 0 && strlen($this->arrParam[$value[4]]) > 0 && strlen($this->arrParam[$value[5]]) > 0) && (strlen($this->arrParam[$value[8]]) > 0 || strlen($this->arrParam[$value[9]]) > 0 || strlen($this->arrParam[$value[10]]) > 0 || strlen($this->arrParam[$value[11]]) > 0)) { … … 993 993 994 994 if (($this->arrErr[$value[2]] == '' && $this->arrErr[$value[8]] == '') && $date1 > $date2) { 995 $this->arrErr[$value[2]] = '※ ' .$value[0]. 'と' .$value[1]. 'の期間指定が不正です。<br />';995 $this->arrErr[$value[2]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_SET_TERM_RANGE', array('T_START' => $value[0], 'T_END' => $value[1])); 996 996 } 997 997 if ($date1 == $date2) { 998 $this->arrErr[$value[2]] = '※ ' .$value[0]. 'と' .$value[1]. 'の期間指定が不正です。<br />';998 $this->arrErr[$value[2]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_SET_TERM_RANGE', array('T_START' => $value[0], 'T_END' => $value[1])); 999 999 } 1000 1000 … … 1025 1025 $this->createParam($value); 1026 1026 if ((strlen($this->arrParam[$value[2]]) > 0 || strlen($this->arrParam[$value[3]]) > 0) && ! checkdate($this->arrParam[$value[3]], 1, $this->arrParam[$value[2]])) { 1027 $this->arrErr[$value[2]] = '※ ' . $value[0] . 'を正しく指定してください。<br />';1027 $this->arrErr[$value[2]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_SET_TERM_PROPER', array('T_FIELD' => $value[0])); 1028 1028 } 1029 1029 if ((strlen($this->arrParam[$value[4]]) > 0 || strlen($this->arrParam[$value[5]]) > 0) && ! checkdate($this->arrParam[$value[5]], 1, $this->arrParam[$value[4]])) { 1030 $this->arrErr[$value[4]] = '※ ' . $value[1] . 'を正しく指定してください。<br />';1030 $this->arrErr[$value[4]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_SET_TERM_PROPER', array('T_FIELD' => $value[1])); 1031 1031 } 1032 1032 if ((strlen($this->arrParam[$value[2]]) > 0 && strlen($this->arrParam[$value[3]]) > 0 && (strlen($this->arrParam[$value[4]]) > 0 || strlen($this->arrParam[$value[5]]) > 0))) { … … 1036 1036 1037 1037 if (($this->arrErr[$value[2]] == '' && $this->arrErr[$value[5]] == '') && $date1 > $date2) { 1038 $this->arrErr[$value[2]] = '※ ' .$value[0]. 'と' .$value[1]. 'の期間指定が不正です。<br />';1038 $this->arrErr[$value[2]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_SET_TERM_RANGE', array('T_START' => $value[0], 'T_END' => $value[1])); 1039 1039 } 1040 1040 } … … 1048 1048 $this->createParam($value); 1049 1049 if (!is_dir($this->arrParam[$value[1]])) { 1050 $this->arrErr[$value[1]] = '※ 指定した' . $value[0] . 'は存在しません。<br />';1050 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_DIR_CHECK', array('T_FIELD' => $value[0])); 1051 1051 } 1052 1052 } … … 1058 1058 } 1059 1059 if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^\.[^.]+\..+/i", $this->arrParam[$value[1]])) { 1060 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'の形式が不正です。<br />';1060 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_DOMAIN_CHECK', array('T_FIELD' => $value[0])); 1061 1061 } 1062 1062 } … … 1072 1072 $objMobile = new SC_Helper_Mobile_Ex(); 1073 1073 if (strlen($this->arrParam[$value[1]]) > 0 && !$objMobile->gfIsMobileMailAddress($this->arrParam[$value[1]])) { 1074 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は携帯電話のものではありません。<br />';1074 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_MOBILE_EMAIL_CHECK', array('T_FIELD' => $value[0])); 1075 1075 } 1076 1076 } … … 1093 1093 switch ($register_user_flg) { 1094 1094 case 1: 1095 $this->arrErr[$value[1]] .= '※ すでに会員登録で使用されている' . $value[0] . 'です。<br />';1095 $this->arrErr[$value[1]] .= SC_I18n_Ex::t('SC_CHECKERROR_CHECK_REGIST_CUSTOMER_EMAIL_EXIST', array('T_FIELD' => $value[0])); 1096 1096 break; 1097 1097 case 2: 1098 $this->arrErr[$value[1]] .= '※ 退会から一定期間の間は、同じ' . $value[0] . 'を使用することはできません。<br />';1098 $this->arrErr[$value[1]] .= SC_I18n_Ex::t('SC_CHECKERROR_CHECK_REGIST_CUSTOMER_EMAIL_INTERVAL', array('T_FIELD' => $value[0])); 1099 1099 break; 1100 1100 default: … … 1120 1120 $pattern = '/' . join('|', $prohibitedStr) . '/i'; 1121 1121 if (preg_match_all($pattern, $targetStr, $matches = array())) { 1122 $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は入力できません。<br />';1122 $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_PROHIBITED_STR_CHECK', array('T_FIELD' => $value[0])); 1123 1123 } 1124 1124 } … … 1137 1137 $this->createParam($value); 1138 1138 if ($this->evalCheck($value[1]) === false) { 1139 $this->arrErr[$value[0]] = '※ ' . $value[0] . ' の形式が不正です。<br />';1139 $this->arrErr[$value[0]] = SC_I18n_Ex::t('SC_CHECKERROR_EVAL_CHECK', array('T_FIELD' => $value[0])); 1140 1140 } 1141 1141 }
Note: See TracChangeset
for help on using the changeset viewer.