Changeset 283 for branches/dev/html
- Timestamp:
- 2007/02/17 22:37:46 (19 years ago)
- File:
-
- 1 edited
-
branches/dev/html/entry/index.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/html/entry/index.php
r17 r283 113 113 } 114 114 115 //--¡¡² ¾ÅÐÏ¿¤È´°Î»²èÌÌ115 //--¡¡²ñ°÷ÅÐÏ¿¤È´°Î»²èÌÌ 116 116 if ($_POST["mode"] == "complete") { 117 117 // ¥¥ã¥ó¥Ú¡¼¥ó¤«¤é¤ÎÁ«°Ü¤Î»þÍѤÎÃÍ … … 120 120 } 121 121 122 $objPage->uniqid = lfRegistData ($objPage->arrForm, $arrRegistColumn, $arrRejectRegistColumn); 122 // ²ñ°÷¾ðÊó¤ÎÅÐÏ¿ 123 $objPage->uniqid = lfRegistData ($objPage->arrForm, $arrRegistColumn, $arrRejectRegistColumn, CUSTOMER_CONFIRM_MAIL); 123 124 124 125 $objPage->tpl_css = '/css/layout/entry/complete.css'; … … 126 127 $objPage->tpl_title = '²ñ°÷ÅÐÏ¿(´°Î»¥Ú¡¼¥¸)'; 127 128 128 //¡¡ ²¾ÅÐÏ¿´°Î»¥á¡¼¥ëÁ÷¿®129 //¡¡´°Î»¥á¡¼¥ëÁ÷¿® 129 130 $objPage->CONF = $CONF; 130 131 $objPage->to_name01 = $_POST['name01']; … … 132 133 $objMailText = new SC_SiteView(); 133 134 $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 136 145 $objMail = new GC_SendMail(); 137 146 $objMail->setItem( … … 144 153 , $CONF["email04"] //¡¡return_path 145 154 , $CONF["email04"] // Errors_to 146 , $CONF["email01"] // Bcc 147 ); 155 ); 148 156 // °¸Àè¤ÎÀßÄê 149 157 $name = $_POST["name01"] . $_POST["name02"] ." ÍÍ"; … … 168 176 169 177 //---------------------------------------------------------------------------------------------------------------------- 170 171 //---- function·² 172 function lfRegistData ($array, $arrRegistColumn, $arrRejectRegistColumn) { 178 // ²ñ°÷¾ðÊó¤ÎÅÐÏ¿ 179 function lfRegistData ($array, $arrRegistColumn, $arrRejectRegistColumn, $confirm_flg) { 173 180 global $objConn; 174 175 // ²¾ÅÐÏ¿181 182 // ÅÐÏ¿¥Ç¡¼¥¿¤ÎÀ¸À® 176 183 foreach ($arrRegistColumn as $data) { 177 184 if (strlen($array[ $data["column"] ]) > 0 && ! in_array($data["column"], $arrRejectRegistColumn)) { … … 188 195 $arrRegist["password"] = sha1($arrRegist["password"] . ":" . AUTH_MAGIC); 189 196 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 197 210 $arrRegist["create_date"] = "now()"; // ºîÀ®Æü 198 211 $arrRegist["update_date"] = "now()"; // ¹¹¿·Æü
Note: See TracChangeset
for help on using the changeset viewer.
