Changeset 290
- Timestamp:
- 2007/02/17 23:03:23 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/html/entry/index.php
r285 r290 204 204 } 205 205 $arrRegist["status"] = "1"; // ²¾²ñ°÷ 206 $arrRegist["secret_key"] = $uniqid; // ²ñ°÷ÅÐÏ¿¥¡¼207 206 } else { 207 // ½ÅÊ£¤·¤Ê¤¤²ñ°÷ÅÐÏ¿¥¡¼¤òȯ¹Ô¤¹¤ë¡£ 208 $count = 1; 209 while ($count != 0) { 210 $uniqid = sfGetUniqRandomId("r"); 211 $count = $objConn->getOne("SELECT COUNT(*) FROM dtb_customer WHERE secret_key = ?", array($uniqid)); 212 } 208 213 $arrRegist["status"] = "2"; // Ëܲñ°÷ 209 214 } 210 215 216 /* 217 secret_key¤Ï¡¢¥Æ¡¼¥Ö¥ë¤Ç½ÅÊ£µö²Ä¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤¬¤¢¤ë¤Î¤Ç¡¢ 218 Ëܲñ°÷ÅÐÏ¿¤Ç¤ÏÍøÍѤµ¤ì¤Ê¤¤¤¬¥»¥Ã¥È¤·¤Æ¤ª¤¯¡£ 219 */ 220 $arrRegist["secret_key"] = $uniqid; // ²ñ°÷ÅÐÏ¿¥¡¼ 211 221 $arrRegist["create_date"] = "now()"; // ºîÀ®Æü 212 222 $arrRegist["update_date"] = "now()"; // ¹¹¿·Æü
Note: See TracChangeset
for help on using the changeset viewer.