Ignore:
Timestamp:
2007/03/09 10:25:02 (19 years ago)
Author:
uehara
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/html/mobile/magazine/confirm.php

    r11460 r11648  
    144144 
    145145    $objQuery = new SC_Query(); 
    146     $objQuery->insert("dtb_customer_mail", $arrRegist); 
    147146 
    148147    //--¡¡´û¤Ë¥á¥ë¥Þ¥¬ÅÐÏ¿¤·¤Æ¤¤¤ë¤«¤ÎȽÄê 
     
    165164 
    166165    $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; 
    168180} 
    169181 
     
    176188 
    177189    // 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 )) { 
    179191        return false; 
    180192    } else { 
Note: See TracChangeset for help on using the changeset viewer.