Changeset 11411 for temp/branches/mobile/data/class
- Timestamp:
- 2007/02/08 13:54:58 (20 years ago)
- Location:
- temp/branches/mobile/data/class
- Files:
-
- 3 edited
-
SC_CheckError.php (modified) (1 diff)
-
SC_Customer.php (modified) (1 diff)
-
SC_FormParam.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/branches/mobile/data/class/SC_CheckError.php
r10358 r11411 711 711 } 712 712 } 713 714 /*¡¡·ÈÂӥ᡼¥ë¥¢¥É¥ì¥¹¤ÎȽÄê¡¡*/ 715 // value[0] = ¹àÌÜ̾ value[1] = ȽÄêÂоݥ᡼¥ë¥¢¥É¥ì¥¹ 716 function MOBILE_EMAIL_CHECK( $value ){ //¡¡¥á¡¼¥ë¥¢¥É¥ì¥¹¤òÀµµ¬É½¸½¤ÇȽÄꤹ¤ë 717 if(isset($this->arrErr[$value[1]])) { 718 return; 719 } 720 if(strlen($this->arrParam[$value[1]]) > 0 && !gfIsMobileMailAddress($this->arrParam[$value[1]])) { 721 $this->arrErr[$value[1]] = "¢¨ " . $value[0] . "¤Ï·ÈÂÓÅÅÏäΤâ¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£<br />"; 722 } 723 } 713 724 } 714 725 ?> -
temp/branches/mobile/data/class/SC_Customer.php
r11405 r11411 50 50 } 51 51 52 function getCustomerDataFromEmailPass( $pass, $email ) { 52 function getCustomerDataFromEmailPass( $pass, $email, $mobile = false ) { 53 $sql_mobile = $mobile ? ' OR email_mobile ILIKE ?' : ''; 54 $arrValues = array($email); 55 if ($mobile) { 56 $arrValues[] = $email; 57 } 53 58 // ËÜÅÐÏ¿¤µ¤ì¤¿²ñ°÷¤Î¤ß 54 $sql = "SELECT * FROM dtb_customer WHERE email ILIKE ?AND del_flg = 0 AND status = 2";55 $result = $this->conn->getAll($sql, array($email));59 $sql = "SELECT * FROM dtb_customer WHERE (email ILIKE ?" . $sql_mobile . ") AND del_flg = 0 AND status = 2"; 60 $result = $this->conn->getAll($sql, $arrValues); 56 61 $data = $result[0]; 57 62 -
temp/branches/mobile/data/class/SC_FormParam.php
r10373 r11411 155 155 case 'DOMAIN_CHECK': 156 156 case 'FILE_NAME_CHECK': 157 case 'MOBILE_EMAIL_CHECK': 157 158 158 159 if(!is_array($this->param[$cnt])) {
Note: See TracChangeset
for help on using the changeset viewer.
