Changeset 4637 for temp/trunk/html
- Timestamp:
- 2006/09/12 15:35:28 (20 years ago)
- Location:
- temp/trunk/html
- Files:
-
- 7 edited
-
admin/customer/edit.php (modified) (1 diff)
-
admin/login.php (modified) (1 diff)
-
admin/system/input.php (modified) (2 diffs)
-
entry/index.php (modified) (1 diff)
-
forgot/index.php (modified) (1 diff)
-
install/insert_data.sql (modified) (previous)
-
mypage/change.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/admin/customer/edit.php
r4608 r4637 195 195 //-- ¥Ñ¥¹¥ï¡¼¥É¤Î¹¹¿·¤¬¤¢¤ë¾ì¹ç¤Ï°Å¹æ²½¡£¡Ê¹¹¿·¤¬¤Ê¤¤¾ì¹ç¤ÏUPDATEʸ¤ò¹½À®¤·¤Ê¤¤¡Ë 196 196 if ($array["password"] != DEFAULT_PASSWORD) { 197 $arrRegist["password"] = crypt($array["password"]);197 $arrRegist["password"] = sha1($array["password"] . ":" . AUTH_MAGIC); 198 198 } else { 199 199 unset($arrRegist['password']); -
temp/trunk/html/admin/login.php
r4608 r4637 32 32 $password = $data_list[0]['password']; 33 33 // ¥æ¡¼¥¶ÆþÎϥѥ¹¥ï¡¼¥É¤ÎȽÄê 34 $ret = crypt($_POST['password'], $password);34 $ret = sha1($_POST['password'] . ":" . AUTH_MAGIC); 35 35 36 36 if ($ret == $password) { -
temp/trunk/html/admin/system/input.php
r4608 r4637 154 154 $sqlval['department'] = $_POST['department']; 155 155 $sqlval['login_id'] = $_POST['login_id']; 156 $sqlval['password'] = crypt($_POST['password']);156 $sqlval['password'] = sha1($_POST['password'] . ":" . AUTH_MAGIC); 157 157 $sqlval['authority'] = $_POST['authority']; 158 158 $sqlval['rank']= $oquery->max("dtb_member", "rank") + 1; … … 174 174 $sqlval['login_id'] = $_POST['login_id']; 175 175 if($_POST['password'] != DUMMY_PASS) { 176 $sqlval['password'] = crypt($_POST['password']);176 $sqlval['password'] = sha1($_POST['password'] . ":" . AUTH_MAGIC); 177 177 } 178 178 $sqlval['authority'] = $_POST['authority']; -
temp/trunk/html/entry/index.php
r4608 r4637 176 176 177 177 // ¥Ñ¥¹¥ï¡¼¥É¤Î°Å¹æ²½ 178 $arrRegist["password"] = crypt($arrRegist["password"]);178 $arrRegist["password"] = sha1($arrRegist["password"] . ":" . AUTH_MAGIC); 179 179 180 180 $count = 1; -
temp/trunk/html/forgot/index.php
r4608 r4637 68 68 // DB¤ò½ñ¤´¹¤¨¤ë 69 69 $sql = "UPDATE dtb_customer SET password = ?, update_date = now() WHERE customer_id = ?"; 70 $conn->query( $sql, array( crypt($objPage->temp_password) ,$data['customer_id']) );70 $conn->query( $sql, array( sha1($objPage->temp_password . ":" . AUTH_MAGIC) ,$data['customer_id']) ); 71 71 72 72 // ´°Î»²èÌ̤Îɽ¼¨ -
temp/trunk/html/mypage/change.php
r4608 r4637 302 302 303 303 //-- ¥Ñ¥¹¥ï¡¼¥É¤Î¹¹¿·¤¬¤¢¤ë¾ì¹ç¤Ï°Å¹æ²½¡£¡Ê¹¹¿·¤¬¤Ê¤¤¾ì¹ç¤ÏUPDATEʸ¤ò¹½À®¤·¤Ê¤¤¡Ë 304 if ($array["password"] != DEFAULT_PASSWORD) $arrRegist["password"] = crypt($array["password"]);304 if ($array["password"] != DEFAULT_PASSWORD) $arrRegist["password"] = sha1($array["password"] . ":" . AUTH_MAGIC); 305 305 $arrRegist["update_date"] = "NOW()"; 306 306
Note: See TracChangeset
for help on using the changeset viewer.
