Changeset 11648 for branches/dev/html/mobile/magazine
- Timestamp:
- 2007/03/09 10:25:02 (19 years ago)
- File:
-
- 1 edited
-
branches/dev/html/mobile/magazine/confirm.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/html/mobile/magazine/confirm.php
r11460 r11648 144 144 145 145 $objQuery = new SC_Query(); 146 $objQuery->insert("dtb_customer_mail", $arrRegist);147 146 148 147 //--¡¡´û¤Ë¥á¥ë¥Þ¥¬ÅÐÏ¿¤·¤Æ¤¤¤ë¤«¤ÎȽÄê … … 165 164 166 165 $sql = "SELECT secret_key FROM dtb_customer_mail WHERE email = ?"; 167 return $objConn->getOne($sql, array($email)); 166 $uniqid = $objConn->getOne($sql, array($email)); 167 168 if ($uniqid == '') { 169 $count = 1; 170 while ($count != 0) { 171 $uniqid = sfGetUniqRandomId("t"); 172 $count = $objConn->getOne("SELECT COUNT(*) FROM dtb_customer_mail WHERE secret_key = ?", array($uniqid)); 173 } 174 175 $objQuery = new SC_Query(); 176 $objQuery->update("dtb_customer_mail", array('secret_key' => $uniqid), "email = '" .addslashes($email). "'"); 177 } 178 179 return $uniqid; 168 180 } 169 181 … … 176 188 177 189 // NULL¤â¹ØÆÉ¤È¤ß¤Ê¤¹ 178 if (count($mailResult) == 0 or ($mailResult[1] != null and $mailResult[1] <= 2 )) {190 if (count($mailResult) == 0 or ($mailResult[1] != null and $mailResult[1] != 2 )) { 179 191 return false; 180 192 } else {
Note: See TracChangeset
for help on using the changeset viewer.
