- Timestamp:
- 2007/09/03 19:57:15 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/class/util/SC_Utils.php
r15548 r15567 1684 1684 } 1685 1685 1686 //会員編集登録処理1687 function sfEditCustomerData($array, $arrRegistColumn) {1688 $objQuery = new SC_Query();1689 1690 foreach ($arrRegistColumn as $data) {1691 if ($data["column"] != "password") {1692 if($array[ $data['column'] ] != "") {1693 $arrRegist[ $data["column"] ] = $array[ $data["column"] ];1694 } else {1695 $arrRegist[ $data['column'] ] = NULL;1696 }1697 }1698 }1699 if (strlen($array["year"]) > 0 && strlen($array["month"]) > 0 && strlen($array["day"]) > 0) {1700 $arrRegist["birth"] = $array["year"] ."/". $array["month"] ."/". $array["day"] ." 00:00:00";1701 } else {1702 $arrRegist["birth"] = NULL;1703 }1704 1705 //-- パスワードの更新がある場合は暗号化。(更新がない場合はUPDATE文を構成しない)1706 if ($array["password"] != DEFAULT_PASSWORD) $arrRegist["password"] = sha1($array["password"] . ":" . AUTH_MAGIC);1707 $arrRegist["update_date"] = "NOW()";1708 1709 //-- 編集登録実行1710 if (defined('MOBILE_SITE')) {1711 $arrRegist['email_mobile'] = $arrRegist['email'];1712 unset($arrRegist['email']);1713 }1714 $objQuery->begin();1715 $objQuery->update("dtb_customer", $arrRegist, "customer_id = ? ", array($array['customer_id']));1716 $objQuery->commit();1717 }1718 1719 1686 // PHPのmb_convert_encoding関数をSmartyでも使えるようにする 1720 1687 function sf_mb_convert_encoding($str, $encode = 'CHAR_CODE') {
Note: See TracChangeset
for help on using the changeset viewer.