From 81a30d558785dc159e698baf42022ea72e250c5b Mon Sep 17 00:00:00 2001 From: whitedot Date: Thu, 10 Jan 2013 17:23:11 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BA=A1=EC=B1=A0=20=EC=95=84=EC=9D=B4?= =?UTF-8?q?=ED=94=84=EB=A0=88=EC=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/def.css | 7 ++++++- plugin/captcha/captcha.lib.php | 16 ++++++++-------- tail.sub.php | 18 +++++++++--------- 3 files changed, 23 insertions(+), 18 deletions(-) diff --git a/css/def.css b/css/def.css index 2d9775a2d..b7e6f04ba 100644 --- a/css/def.css +++ b/css/def.css @@ -2,7 +2,7 @@ /* 초기화 */ html {overflow-y:scroll} -body {background:#fff;font-size:1em} +body {margin:0;padding:0;background:#fff;font-size:1em} html, body, h1, h2, h3, h4, h5, h6 {margin:0 0 0;padding:0} h1, h2, h3, h4, h5, h6 {font-family:"verdana","dotum"} article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display:block} @@ -16,6 +16,11 @@ hr {display:none} /* 웹접근성 스킬 */ .sound_only {display:inline-block;margin:0;padding:0;width:0;height:0;overflow:hidden} +/* 자동등록방지 */ +.captcha {display:inline-block;vertical-align:middle} +.captcha label {display:inline-block;margin:0;padding:0;width:0;height:0;overflow:hidden} +.captcha iframe {margin:0;padding:0;width:80px;height:25px;border:0;overflow:hidden} + /* 기본테이블 */ table {margin-bottom:20px;width:100%;border-collapse:collapse;border-spacing:0} tfoot td {background:#f9f9f5;font-weight:bold;text-align:center} diff --git a/plugin/captcha/captcha.lib.php b/plugin/captcha/captcha.lib.php index 57e0a5763..190710ec3 100644 --- a/plugin/captcha/captcha.lib.php +++ b/plugin/captcha/captcha.lib.php @@ -144,15 +144,15 @@ function captcha_html($input_name, $captcha_id_suffix='') // 세션생성을 한후 다음페이지에서 해당 세션이 있을때만 올바른 캡챠코드인지 비교합니다. set_session('ss_captcha_use', true); - $html = '
'; - $html .= '자동등록방지'; + $html = '
'; + $html .= '자동등록방지'; //$html .= '자동등록방지 이미지'; - $html .= ''; + $html .= ''; $html .= '새로고침'; - $html .= 'wav'; - $html .= ''; - $html .= ''; - $html .= '

이미지의 숫자를 순서대로 입력하세요. 새로고침을 클릭하시면 새로운 숫자가 나타납니다.

'; + $html .= '음성듣기'; + $html .= ''; + $html .= ''; + $html .= '

이미지의 숫자를 순서대로 입력하세요. 새로고침을 클릭하시면 새로운 숫자가 나타납니다.

'; $html .= '
'; return $html; } @@ -175,4 +175,4 @@ function captcha_js($element) { return "if (!check_captcha({$element})) { return false; }"; } -?> \ No newline at end of file +?> diff --git a/tail.sub.php b/tail.sub.php index 73fd14172..4a30f2741 100644 --- a/tail.sub.php +++ b/tail.sub.php @@ -12,17 +12,17 @@ $tmp_row = sql_fetch($tmp_sql); //sql_query(" lock table $g4['login_table'] write ", false); if ($tmp_row['cnt']) { - $tmp_sql = " update {$g4['login_table']} set mb_id = '{$member['mb_id']}', lo_datetime = '{$g4['time_ymdhis']}', lo_location = '$lo_location', lo_url = '$lo_url' where lo_ip = '{$_SERVER['REMOTE_ADDR']}' "; - sql_query($tmp_sql, FALSE); + $tmp_sql = " update {$g4['login_table']} set mb_id = '{$member['mb_id']}', lo_datetime = '{$g4['time_ymdhis']}', lo_location = '$lo_location', lo_url = '$lo_url' where lo_ip = '{$_SERVER['REMOTE_ADDR']}' "; + sql_query($tmp_sql, FALSE); } else { - $tmp_sql = " insert into {$g4['login_table']} ( lo_ip, mb_id, lo_datetime, lo_location, lo_url ) values ( '{$_SERVER['REMOTE_ADDR']}', '{$member['mb_id']}', '{$g4['time_ymdhis']}', '$lo_location', '$lo_url' ) "; - sql_query($tmp_sql, FALSE); + $tmp_sql = " insert into {$g4['login_table']} ( lo_ip, mb_id, lo_datetime, lo_location, lo_url ) values ( '{$_SERVER['REMOTE_ADDR']}', '{$member['mb_id']}', '{$g4['time_ymdhis']}', '$lo_location', '$lo_url' ) "; + sql_query($tmp_sql, FALSE); - // 시간이 지난 접속은 삭제한다 - sql_query(" delete from {$g4['login_table']} where lo_datetime < '".date("Y-m-d H:i:s", $g4['server_time'] - (60 * $config['cf_login_minutes']))."' "); + // 시간이 지난 접속은 삭제한다 + sql_query(" delete from {$g4['login_table']} where lo_datetime < '".date("Y-m-d H:i:s", $g4['server_time'] - (60 * $config['cf_login_minutes']))."' "); - // 부담(overhead)이 있다면 테이블 최적화 - //$row = sql_fetch(" SHOW TABLE STATUS FROM `$mysql_db` LIKE '$g4['login_table']' "); - //if ($row['Data_free'] > 0) sql_query(" OPTIMIZE TABLE $g4['login_table'] "); + // 부담(overhead)이 있다면 테이블 최적화 + //$row = sql_fetch(" SHOW TABLE STATUS FROM `$mysql_db` LIKE '$g4['login_table']' "); + //if ($row['Data_free'] > 0) sql_query(" OPTIMIZE TABLE $g4['login_table'] "); } ?> \ No newline at end of file