Posted
Filed under PHP
[원문]
lib/shop.lib.php

#1
1 if($row['io_price'] >= 0)
2     $price = '  + '.number_format($row['io_price']).'원';
3 else
4     $price = '   '.number_format($row['io_price']).'원';


1 if($row['io_price'] > 0)
2     $price = '  + '.number_format($row['io_price']).'원';
3 else if ($row['io_price'] == 0)
4     $price = '';
5 else
6     $price = '   '.number_format($row['io_price']).'원';

로 수정


#2
1 if($row['io_price'] >= 0)
2     $price = '  + '.number_format($row['io_price']).'원';
3 else
4     $price = '   '.number_format($row['io_price']).'원';


1 if($row['io_price'] > 0)
2     $price = '  + '.number_format($row['io_price']).'원';
3 else if ($row['io_price'] == 0)
4     $price = '';
5 else
6     $price = '   '.number_format($row['io_price']).'원';

로 수정

js/shop.js

#1
1 var priceHide = '';
2 if (parseInt(price) == 0) priceHide = ' sound_only';

를 add_sel_option 에 추가

#2
1 opt += "<span class=\"sit_opt_prc\">"+opt_prc+"</span>";


1 opt += "<span class=\"sit_opt_prc"+priceHide+"\">"+opt_prc+"</span>";

로 수정

2018/04/09 17:50 2018/04/09 17:50
Posted
Filed under JSP, JAVA

tomcat8
/webapp/manager/META-INF/context.xml

<!--Valve className="org.apache.catalina.valves.RemoteAddrValve"
         allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" /-->
주석 처리가 되어 있다면
주석을 해제하여 외부에서 접근 하는 것을 막을 수 있다.


2018/04/09 14:28 2018/04/09 14:28
Posted
Filed under Linux
cat /proc/$(pgrep maxscale)/limits
실행 하면 maxscale의
open file 쪽에 1024로 설정 되어 있습니다.
이부분을 늘려 주기 위해서는
vi /usr/lib/systemd/system/maxscale.service
LimitNOFILE=65536
위와 같이 설정 합니다.

2018/04/09 13:45 2018/04/09 13:45