Changeset 4637 for temp/trunk/html


Ignore:
Timestamp:
2006/09/12 15:35:28 (20 years ago)
Author:
kakinaka
Message:

blank

Location:
temp/trunk/html
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/admin/customer/edit.php

    r4608 r4637  
    195195    //-- ¥Ñ¥¹¥ï¡¼¥É¤Î¹¹¿·¤¬¤¢¤ë¾ì¹ç¤Ï°Å¹æ²½¡£¡Ê¹¹¿·¤¬¤Ê¤¤¾ì¹ç¤ÏUPDATEʸ¤ò¹½À®¤·¤Ê¤¤¡Ë 
    196196    if ($array["password"] != DEFAULT_PASSWORD) { 
    197         $arrRegist["password"] = crypt($array["password"]); 
     197        $arrRegist["password"] = sha1($array["password"] . ":" . AUTH_MAGIC); 
    198198    } else { 
    199199        unset($arrRegist['password']); 
  • temp/trunk/html/admin/login.php

    r4608 r4637  
    3232    $password = $data_list[0]['password']; 
    3333    // ¥æ¡¼¥¶ÆþÎϥѥ¹¥ï¡¼¥É¤ÎȽÄê 
    34     $ret = crypt($_POST['password'], $password); 
     34    $ret = sha1($_POST['password'] . ":" . AUTH_MAGIC); 
    3535     
    3636    if ($ret == $password) { 
  • temp/trunk/html/admin/system/input.php

    r4608 r4637  
    154154    $sqlval['department'] = $_POST['department']; 
    155155    $sqlval['login_id'] = $_POST['login_id']; 
    156     $sqlval['password'] = crypt($_POST['password']); 
     156    $sqlval['password'] = sha1($_POST['password'] . ":" . AUTH_MAGIC); 
    157157    $sqlval['authority'] = $_POST['authority']; 
    158158    $sqlval['rank']=  $oquery->max("dtb_member", "rank") + 1; 
     
    174174    $sqlval['login_id'] = $_POST['login_id']; 
    175175    if($_POST['password'] != DUMMY_PASS) { 
    176         $sqlval['password'] = crypt($_POST['password']); 
     176        $sqlval['password'] = sha1($_POST['password'] . ":" . AUTH_MAGIC); 
    177177    } 
    178178    $sqlval['authority'] = $_POST['authority']; 
  • temp/trunk/html/entry/index.php

    r4608 r4637  
    176176     
    177177    // ¥Ñ¥¹¥ï¡¼¥É¤Î°Å¹æ²½ 
    178     $arrRegist["password"] = crypt($arrRegist["password"]); 
     178    $arrRegist["password"] = sha1($arrRegist["password"] . ":" . AUTH_MAGIC); 
    179179     
    180180    $count = 1; 
  • temp/trunk/html/forgot/index.php

    r4608 r4637  
    6868            // DB¤ò½ñ¤­´¹¤¨¤ë 
    6969            $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']) ); 
    7171             
    7272            // ´°Î»²èÌ̤Îɽ¼¨ 
  • temp/trunk/html/mypage/change.php

    r4608 r4637  
    302302 
    303303    //-- ¥Ñ¥¹¥ï¡¼¥É¤Î¹¹¿·¤¬¤¢¤ë¾ì¹ç¤Ï°Å¹æ²½¡£¡Ê¹¹¿·¤¬¤Ê¤¤¾ì¹ç¤Ï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); 
    305305    $arrRegist["update_date"] = "NOW()"; 
    306306     
Note: See TracChangeset for help on using the changeset viewer.