Changeset 283 for branches/dev/html


Ignore:
Timestamp:
2007/02/17 22:37:46 (19 years ago)
Author:
naka
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/html/entry/index.php

    r17 r283  
    113113        } 
    114114 
    115         //--¡¡²¾ÅÐÏ¿¤È´°Î»²èÌÌ 
     115        //--¡¡²ñ°÷ÅÐÏ¿¤È´°Î»²èÌÌ 
    116116        if ($_POST["mode"] == "complete") { 
    117117            // ¥­¥ã¥ó¥Ú¡¼¥ó¤«¤é¤ÎÁ«°Ü¤Î»þÍѤÎÃÍ 
     
    120120            } 
    121121             
    122             $objPage->uniqid = lfRegistData ($objPage->arrForm, $arrRegistColumn, $arrRejectRegistColumn); 
     122            // ²ñ°÷¾ðÊó¤ÎÅÐÏ¿ 
     123            $objPage->uniqid = lfRegistData ($objPage->arrForm, $arrRegistColumn, $arrRejectRegistColumn, CUSTOMER_CONFIRM_MAIL); 
    123124             
    124125            $objPage->tpl_css = '/css/layout/entry/complete.css'; 
     
    126127            $objPage->tpl_title = '²ñ°÷ÅÐÏ¿(´°Î»¥Ú¡¼¥¸)'; 
    127128 
    128             //¡¡²¾ÅÐÏ¿´°Î»¥á¡¼¥ëÁ÷¿® 
     129            //¡¡´°Î»¥á¡¼¥ëÁ÷¿® 
    129130            $objPage->CONF = $CONF; 
    130131            $objPage->to_name01 = $_POST['name01']; 
     
    132133            $objMailText = new SC_SiteView(); 
    133134            $objMailText->assignobj($objPage); 
    134             $subject = sfMakesubject('²ñ°÷ÅÐÏ¿¤Î¤´³Îǧ'); 
    135             $toCustomerMail = $objMailText->fetch("mail_templates/customer_mail.tpl"); 
     135             
     136            // ²¾²ñ°÷¤¬Í­¸ú¤Î¾ì¹ç 
     137            if(CUSTOMER_CONFIRM_MAIL == true) { 
     138                $subject = sfMakesubject('²ñ°÷ÅÐÏ¿¤Î¤´³Îǧ'); 
     139                $toCustomerMail = $objMailText->fetch("mail_templates/customer_mail.tpl"); 
     140            } else { 
     141                $subject = sfMakesubject('²ñ°÷ÅÐÏ¿¤Î¤´´°Î»'); 
     142                $toCustomerMail = $objMailText->fetch("mail_templates/customer_regist_mail.tpl"); 
     143            } 
     144             
    136145            $objMail = new GC_SendMail(); 
    137146            $objMail->setItem( 
     
    144153                                , $CONF["email04"]                  //¡¡return_path 
    145154                                , $CONF["email04"]                  //  Errors_to 
    146                                 , $CONF["email01"]                  //  Bcc 
    147                                                                 ); 
     155                            ); 
    148156            // °¸Àè¤ÎÀßÄê 
    149157            $name = $_POST["name01"] . $_POST["name02"] ." ÍÍ"; 
     
    168176 
    169177//---------------------------------------------------------------------------------------------------------------------- 
    170  
    171 //---- function·² 
    172 function lfRegistData ($array, $arrRegistColumn, $arrRejectRegistColumn) { 
     178// ²ñ°÷¾ðÊó¤ÎÅÐÏ¿ 
     179function lfRegistData ($array, $arrRegistColumn, $arrRejectRegistColumn, $confirm_flg) { 
    173180    global $objConn; 
    174  
    175     // ²¾ÅÐÏ¿ 
     181     
     182    // ÅÐÏ¿¥Ç¡¼¥¿¤ÎÀ¸À® 
    176183    foreach ($arrRegistColumn as $data) { 
    177184        if (strlen($array[ $data["column"] ]) > 0 && ! in_array($data["column"], $arrRejectRegistColumn)) { 
     
    188195    $arrRegist["password"] = sha1($arrRegist["password"] . ":" . AUTH_MAGIC); 
    189196     
    190     $count = 1; 
    191     while ($count != 0) { 
    192         $uniqid = sfGetUniqRandomId("t"); 
    193         $count = $objConn->getOne("SELECT COUNT(*) FROM dtb_customer WHERE secret_key = ?", array($uniqid)); 
    194     } 
    195      
    196     $arrRegist["secret_key"] = $uniqid;     // ²¾ÅÐÏ¿IDȯ¹Ô 
     197    // ²¾²ñ°÷ÅÐÏ¿¤Î¾ì¹ç 
     198    if($confirm_flg == true) { 
     199        // ½ÅÊ£¤·¤Ê¤¤²ñ°÷ÅÐÏ¿¥­¡¼¤òȯ¹Ô¤¹¤ë¡£ 
     200        $count = 1; 
     201        while ($count != 0) { 
     202            $uniqid = sfGetUniqRandomId("t"); 
     203            $count = $objConn->getOne("SELECT COUNT(*) FROM dtb_customer WHERE secret_key = ?", array($uniqid)); 
     204        } 
     205        $arrRegist["secret_key"] = $uniqid;     // ²ñ°÷ÅÐÏ¿¥­¡¼ 
     206    } else { 
     207        $arrRegist["status"] = "2";             // Ëܲñ°÷ 
     208    } 
     209     
    197210    $arrRegist["create_date"] = "now()";    // ºîÀ®Æü 
    198211    $arrRegist["update_date"] = "now()";    // ¹¹¿·Æü 
Note: See TracChangeset for help on using the changeset viewer.