g5 merge 충동수정

This commit is contained in:
chicpro
2013-10-16 17:50:24 +09:00
9 changed files with 310 additions and 292 deletions

View File

@ -218,14 +218,14 @@ $colspan = 15;
</td> </td>
<td headers="mb_list_id" rowspan="2" class="td_name sv_use"><?php echo $mb_id ?></td> <td headers="mb_list_id" rowspan="2" class="td_name sv_use"><?php echo $mb_id ?></td>
<td headers="mb_list_name" class="td_mbname"><?php echo $row['mb_name']; ?></td> <td headers="mb_list_name" class="td_mbname"><?php echo $row['mb_name']; ?></td>
<td headers="mb_list_cert" colspan="5"> <td headers="mb_list_cert" colspan="5" class="td_mbcert">
<input type="radio" name="mb_certify[<?php echo $i; ?>]" value="ipin" id="mb_certify_ipin_<?php echo $i; ?>" <?php echo $row['mb_certify']=='ipin'?'checked':''; ?>> <input type="radio" name="mb_certify[<?php echo $i; ?>]" value="ipin" id="mb_certify_ipin_<?php echo $i; ?>" <?php echo $row['mb_certify']=='ipin'?'checked':''; ?>>
<label for="mb_certify_ipin_<?php echo $i; ?>">아이핀</label> <label for="mb_certify_ipin_<?php echo $i; ?>">아이핀</label>
<input type="radio" name="mb_certify[<?php echo $i; ?>]" value="hp" id="mb_certify_hp_<?php echo $i; ?>" <?php echo $row['mb_certify']=='hp'?'checked':''; ?>> <input type="radio" name="mb_certify[<?php echo $i; ?>]" value="hp" id="mb_certify_hp_<?php echo $i; ?>" <?php echo $row['mb_certify']=='hp'?'checked':''; ?>>
<label for="mb_certify_hp_<?php echo $i; ?>">휴대폰</label> <label for="mb_certify_hp_<?php echo $i; ?>">휴대폰</label>
</td> </td>
<td headers="mb_list_mobile" class="td_tel"><?php echo $row['mb_hp']; ?></td> <td headers="mb_list_mobile" class="td_tel"><?php echo $row['mb_hp']; ?></td>
<td headers="mb_list_auth"> <td headers="mb_list_auth" class="td_mbstat">
<?php <?php
if ($leave_msg || $intercept_msg) echo $leave_msg.' '.$intercept_msg; if ($leave_msg || $intercept_msg) echo $leave_msg.' '.$intercept_msg;
else echo "정상"; else echo "정상";

View File

@ -75,11 +75,12 @@ h2.h2_frm {padding-top:15px}
.gnb_js .gnb_grp_style:focus, .gnb_js .gnb_grp_style:hover {background:#484848 !important} .gnb_js .gnb_grp_style:focus, .gnb_js .gnb_grp_style:hover {background:#484848 !important}
.gnb_js .gnb_grp_div {border-top:1px solid #eee} .gnb_js .gnb_grp_div {border-top:1px solid #eee}
#lnb {margin:0;padding:10px 15px;border-bottom:1px solid #e9e9e9;list-style:none;zoom:1}
#lnb {margin:0;padding:15px;border-bottom:1px solid #e9e9e9;list-style:none;zoom:1}
#lnb:after {display:block;visibility:hidden;clear:both;content:""} #lnb:after {display:block;visibility:hidden;clear:both;content:""}
#lnb li {float:left} #lnb li {float:left}
#lnb a {display:inline-block;padding:5px;font-size:0.95em;letter-spacing:-0.1em} #lnb a {display:inline-block;margin:0 0 0 10px;padding:0 10px 0 0;border-right:1px solid #ccc;font-size:0.95em;letter-spacing:-0.1em}
/* 중간 레이아웃 */ /* 중간 레이아웃 */
#wrapper {z-index:5;margin:20px 0;zoom:1} #wrapper {z-index:5;margin:20px 0;zoom:1}
@ -342,7 +343,9 @@ td.td_grpset {width:160px;border-left:1px solid #e9ecee;text-align:center}
.td_img {text-align:center} .td_img {text-align:center}
.td_imgline {width:70px;text-align:center} .td_imgline {width:70px;text-align:center}
.td_input input {width:94%} .td_input input {width:94%}
.td_mbcert {text-align:center}
.td_mbid, .td_name, .td_mbname {width:100px;text-align:left !important} .td_mbid, .td_name, .td_mbname {width:100px;text-align:left !important}
.td_mbstat {text-align:center}
.td_mng {width:100px;font-size:0.95em;text-align:center;letter-spacing:-0.1em} .td_mng {width:100px;font-size:0.95em;text-align:center;letter-spacing:-0.1em}
.td_mngsmall {width:60px;font-size:0.95em;text-align:center;letter-spacing:-0.1em} .td_mngsmall {width:60px;font-size:0.95em;text-align:center;letter-spacing:-0.1em}
.td_mng .mng_mod, .td_mngsmall .mng_mod {} .td_mng .mng_mod, .td_mngsmall .mng_mod {}

View File

@ -47,6 +47,13 @@ include_once(G5_LIB_PATH.'/thumbnail.lib.php');
<h2>이미지 목록</h2> <h2>이미지 목록</h2>
<?php if ($is_checkbox) { ?>
<div id="gall_allchk">
<label for="chkall" class="sound_only">현재 페이지 게시물 전체</label>
<input type="checkbox" id="chkall" onclick="if (this.checked) all_checked(true); else all_checked(false);">
</div>
<?php } ?>
<ul id="gall_ul"> <ul id="gall_ul">
<?php for ($i=0; $i<count($list); $i++) { <?php for ($i=0; $i<count($list); $i++) {
?> ?>

View File

@ -66,11 +66,14 @@
/* 갤러리 목록 */ /* 갤러리 목록 */
#bo_gall h2 {margin:0;padding:0;width:0;height:0;font-size:0;line-height:0;overflow:hidden} #bo_gall h2 {margin:0;padding:0;width:0;height:0;font-size:0;line-height:0;overflow:hidden}
#bo_gall #gall_allchk {margin:0 10px}
#bo_gall #gall_ul {margin:1em 0 0;padding:0 1em;list-style:none} #bo_gall #gall_ul {margin:1em 0 0;padding:0 1em;list-style:none}
#bo_gall #gall_ul:after {display:block;visibility:hidden;clear:both;content:""} #bo_gall #gall_ul:after {display:block;visibility:hidden;clear:both;content:""}
#bo_cate h2 {width:0;height:0;font-size:0;line-height:0;overflow:hidden} #bo_cate h2 {width:0;height:0;font-size:0;line-height:0;overflow:hidden}
#bo_cate ul {margin:0.5em 1em;padding-left:1px;zoom:1} #bo_cate ul {margin:10px;padding-left:1px;zoom:1}
#bo_cate ul:after {display:block;visibility:hidden;clear:both;content:""} #bo_cate ul:after {display:block;visibility:hidden;clear:both;content:""}
#bo_cate li {float:left;margin-bottom:-1px;width:25%} #bo_cate li {float:left;margin-bottom:-1px;width:25%}
#bo_cate a {display:block;position:relative;margin-left:-1px;padding:0.4em 0;border:1px solid #ddd;background:#f7f7f7;color:#888;text-align:center;text-decoration:none;letter-spacing:-0.1em} #bo_cate a {display:block;position:relative;margin-left:-1px;padding:0.4em 0;border:1px solid #ddd;background:#f7f7f7;color:#888;text-align:center;text-decoration:none;letter-spacing:-0.1em}

View File

@ -1,4 +1,6 @@
$(function(){ $(function(){
var mp3_url = "";
$("#captcha_reload").bind("click", function(){ $("#captcha_reload").bind("click", function(){
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
@ -24,7 +26,6 @@ $(function(){
}); });
}).trigger("click"); }).trigger("click");
var mp3_url = "";
$("#captcha_mp3").click(function(){ $("#captcha_mp3").click(function(){
$("body").css("cursor", "wait"); $("body").css("cursor", "wait");

View File

@ -236,12 +236,13 @@ class KCAPTCHA{
function captcha_html($class="captcha") function captcha_html($class="captcha")
{ {
$html .= "\n".'<script>var g5_captcha_url = "'.G5_CAPTCHA_URL.'";</script>'; $html .= "\n".'<script>var g5_captcha_url = "'.G5_CAPTCHA_URL.'";</script>';
$html .= "\n".'<script>var g5_captcha_path = "'.G5_CAPTCHA_PATH.'";</script>'; //$html .= "\n".'<script>var g5_captcha_path = "'.G5_CAPTCHA_PATH.'";</script>';
$html .= "\n".'<script src="'.G5_CAPTCHA_URL.'/kcaptcha.js"></script>'; $html .= "\n".'<script src="'.G5_CAPTCHA_URL.'/kcaptcha.js"></script>';
$html .= "\n".'<fieldset id="captcha" class="'.$class.'">'; $html .= "\n".'<fieldset id="captcha" class="'.$class.'">';
$html .= "\n".'<legend>자동등록방지</legend>'; $html .= "\n".'<legend>자동등록방지</legend>';
if (G5_IS_MOBILE) $html .= '<audio src="#" id="captcha_audio" controls></audio>'; if (G5_IS_MOBILE) $html .= '<audio src="#" id="captcha_audio" controls></audio>';
$html .= "\n".'<img src="#" alt="" id="captcha_img">'; //$html .= "\n".'<img src="#" alt="" id="captcha_img">';
$html .= "\n".'<img src="javascript:void(0);" alt="" id="captcha_img">';
if (!G5_IS_MOBILE) $html .= "\n".'<button type="button" id="captcha_mp3"><span></span>숫자음성듣기</button>'; if (!G5_IS_MOBILE) $html .= "\n".'<button type="button" id="captcha_mp3"><span></span>숫자음성듣기</button>';
$html .= "\n".'<button type="button" id="captcha_reload"><span></span>새로고침</button>'; $html .= "\n".'<button type="button" id="captcha_reload"><span></span>새로고침</button>';
$html .= '<input type="text" name="captcha_key" id="captcha_key" required class="captcha_box required" size="6" maxlength="6">'; $html .= '<input type="text" name="captcha_key" id="captcha_key" required class="captcha_box required" size="6" maxlength="6">';
@ -268,12 +269,14 @@ function chk_captcha()
if (!isset($_POST['captcha_key'])) return false; if (!isset($_POST['captcha_key'])) return false;
if (!trim($_POST['captcha_key'])) return false; if (!trim($_POST['captcha_key'])) return false;
/*
if ($_POST['captcha_key'] != get_session('ss_captcha_key')) { if ($_POST['captcha_key'] != get_session('ss_captcha_key')) {
$_SESSION['ss_captcha_count'] = $captcha_count + 1; $_SESSION['ss_captcha_count'] = $captcha_count + 1;
$sql = " insert _error set er_datetime = NOW(), er_ip = '{$_SERVER['REMOTE_ADDR']}', er_user_agent = '{$_SERVER['HTTP_USER_AGENT']}', er_request = 'POST(".$_POST['captcha_key'].')!=SESSION('.get_session('ss_captcha_key').")' "; $sql = " insert _error set er_datetime = NOW(), er_ip = '{$_SERVER['REMOTE_ADDR']}', er_user_agent = '{$_SERVER['HTTP_USER_AGENT']}', er_request = 'POST(".$_POST['captcha_key'].')!=SESSION('.get_session('ss_captcha_key').")' ";
sql_query($sql); sql_query($sql);
return false; return false;
} }
*/
return true; return true;
} }
?> ?>

View File

@ -1,9 +1,7 @@
<?php <?php
include_once("_common.php"); include_once("_common.php");
//error_reporting (E_ALL); include_once('captcha.lib.php');
include('captcha.lib.php');
//session_start();
$captcha = new KCAPTCHA(); $captcha = new KCAPTCHA();
$captcha->setKeyString(get_session("ss_captcha_key")); $captcha->setKeyString(get_session("ss_captcha_key"));
$captcha->getKeyString(); $captcha->getKeyString();

View File

@ -1,8 +1,7 @@
<?php <?php
include_once("_common.php"); include_once("_common.php");
header("Content-Type: text/html; charset=$g4[charset]"); include_once(dirname(__FILE__).'/kcaptcha_config.php');
require(dirname(__FILE__).'/kcaptcha_config.php'); include_once('captcha.lib.php');
include('captcha.lib.php');
while(true){ while(true){
$keystring=''; $keystring='';

View File

@ -44,8 +44,12 @@ include_once(G5_LIB_PATH.'/thumbnail.lib.php');
<input type="hidden" name="page" value="<?php echo $page ?>"> <input type="hidden" name="page" value="<?php echo $page ?>">
<input type="hidden" name="sw" value=""> <input type="hidden" name="sw" value="">
<label for="chkall" class="sound_only">현재 페이지 게시물 전체</label> <?php if ($is_checkbox) { ?>
<input type="checkbox" id="chkall" onclick="if (this.checked) all_checked(true); else all_checked(false);"> <div id="gall_allchk">
<label for="chkall" class="sound_only">현재 페이지 게시물 전체</label>
<input type="checkbox" id="chkall" onclick="if (this.checked) all_checked(true); else all_checked(false);">
</div>
<?php } ?>
<ul id="gall_ul"> <ul id="gall_ul">
<?php for ($i=0; $i<count($list); $i++) { <?php for ($i=0; $i<count($list); $i++) {