테스트 사이트 - 개발 중인 베타 버전입니다

영카트 메인화면에 new 나 hit 같은 여러 아이콘적용

· 13년 전 · 40 · 2
메인화면에는 new 아이콘이나 hit 등의 아이콘들이 뜨지않네요.. 아이콘띄우는방법좀 알려주세여


아참 그리구 웹에서 회원가입하면 비밀번호가 DB 테이블에 저장될때 암호화되어서 저장되던데
암호화처리 안할수없나요? DB에서 임의로 1234라고 업데이트해주면 웹홈피에서 로그인할때
비밀번호가 안맞다고떠요;;

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 2개

include/new_product.php 를

$sql2 = " select * from $g4[yc4_item_table] where it_id = '$new_row[it_id]' ";
$row2 = sql_fetch($sql2);

// 특정상품아이콘
$icon = "";
if ($row2[it_type1]) $icon .= " <img src='$g4[shop_img_path]/icon_type1.gif' border=0 align=absmiddle>";
if ($row2[it_type2]) $icon .= " <img src='$g4[shop_img_path]/icon_type2.gif' border=0 align=absmiddle>";
if ($row2[it_type3]) $icon .= " <img src='$g4[shop_img_path]/icon_type3.gif' border=0 align=absmiddle>";
if ($row2[it_type4]) $icon .= " <img src='$g4[shop_img_path]/icon_type4.gif' border=0 align=absmiddle>";
if ($row2[it_type5]) $icon .= " <img src='$g4[shop_img_path]/icon_type5.gif' border=0 align=absmiddle>";
?>
<td width="250" valign="top" align="center">
<table border="0" cellspacing="0" cellpadding="0" width="235">
<tr>
<td align="center" valign="top" width="235">
<a href="/shop/item.php?it_id=<?=$new_row["it_id"]?>" class='product_link'><?=get_it_image($middle_image, 235, 260);?></a>
</td>
</tr>
<tr>
<td height="13"></td>
</tr>
<tr>
<td align="center" width="220">
<span onclick="return location.href='/shop/item.php?it_id=<?=$new_row["it_id"]?>'" style="cursor:pointer;"><?=$new_row["it_basic"]?></span><br />
<span class="t_black_s_b" onclick="return location.href='/shop/item.php?it_id=<?=$new_row["it_id"]?>'" style="cursor:pointer;"><?=$new_row["it_name"]?></span><br />
<span class="t_red_b" onclick="return location.href='/shop/item.php?it_id=<?=$new_row["it_id"]?>'" style="cursor:pointer;"><?=number_format(get_amount($new_row))?></span>
<div><?=$icon?></div>
</td>
</tr>
</table>
</td>

이렇게 수정해 보았습니다.

그리고 패스워드의 암호화는 반드시 하셔야 하는 부분입니다.

만약, 고객님의 사이트에서 DB 유출이 있는 경우를 먼저 생각하셔야 하는 부분이기 때문입니다.
감사합니다. 소스코드 이해는잘안가지만 응용해서 아래부분도 직접 작업해넣어서 잘되네요 ^^

게시글 목록

번호 제목
56073
56067
56065
56060
56058
56055
56051
56048
56044
56043
56042
56039
56035
56032
56030
56028
56025
56018
56012
56010