Changeset 16972 for branches/beta/data/lib/slib.php
- Timestamp:
- 2008/01/11 12:54:22 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/beta/data/lib/slib.php
r16817 r16972 1342 1342 } 1343 1343 return $ret; 1344 } 1345 1346 /* ²ñ°÷ÅÐÏ¿¥Ý¥¤¥ó¥ÈÉÕÍ¿ */ 1347 function sfSetWelcomePoint($secret_key, $CONF) { 1348 $objQuery = new SC_Query(); 1349 1350 // ¥Ý¥¤¥ó¥ÈÉÕÍ¿ 1351 $col = "point"; 1352 $where = "secret_key = ? AND status = 2"; 1353 $arrRet = $objQuery->select($col, "dtb_customer", $where, array($secret_key)); 1354 $sqlval['point'] = $arrRet[0]['point'] + $CONF['welcome_point']; 1355 1356 // ¥Ý¥¤¥ó¥È¤¬ÉÔ¤·¤Æ¤¤¤ë¾ì¹ç 1357 if($sqlval['point'] < 0) { 1358 $objQuery->rollback(); 1359 sfDispSiteError(LACK_POINT); 1360 } 1361 1362 $objQuery->update("dtb_customer", $sqlval, $where, array($secret_key)); 1344 1363 } 1345 1364
Note: See TracChangeset
for help on using the changeset viewer.