Merge branch 'master' of github.com:gnuboard/g4s
@ -24,7 +24,6 @@ function print_menu2($key, $no)
|
||||
if ($is_admin != 'super' && (!array_key_exists($menu[$key][$i][0],$auth) || !strstr($auth[$menu[$key][$i][0]], 'r')))
|
||||
continue;
|
||||
|
||||
// if ($no == 2) $str .= " <img src='{$g4['admin_path']}/img/icon.gif' align=absmiddle> ";
|
||||
$str .= '<li class="gnb_2depth"><a href="'.$menu[$key][$i][2].'">'.$menu[$key][$i][1].'</a></li>';
|
||||
|
||||
$auth_menu[$menu[$key][$i][0]] = $menu[$key][$i][1];
|
||||
@ -56,17 +55,6 @@ function imageview(id, w, h)
|
||||
if (el_id.style.display != 'none')
|
||||
selectBoxHidden(id);
|
||||
}
|
||||
|
||||
// TEXTAREA 사이즈 변경
|
||||
function textarea_size(fld, size)
|
||||
{
|
||||
var rows = parseInt(fld.rows);
|
||||
|
||||
rows += parseInt(size);
|
||||
if (rows > 0) {
|
||||
fld.rows = rows;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<div id="to_content"><a href="#wrapper">본문 바로가기</a></div>
|
||||
|
||||
@ -125,23 +125,6 @@ function auth_check($auth, $attr)
|
||||
}
|
||||
|
||||
|
||||
// 텍스트에리어 늘리기, 줄이기
|
||||
// 보류 : 지운아빠 2012-11-07
|
||||
function textarea_size($fld)
|
||||
{
|
||||
/*
|
||||
global $g4;
|
||||
|
||||
$size = 10;
|
||||
$s = "<table cellpadding=2 cellspacing=0 border=0 width=100%><tr><td align=right>";
|
||||
$s .= "<span onclick='javascript:textarea_size(document.getElementById(\"$fld\"), {$size})'><img src='".$g4['admin_path']."/img/btn_up.gif'></span> ";
|
||||
$s .= "<span onclick='javascript:textarea_size(document.getElementById(\"$fld\"), '.$size*(-1).')'><img src='".$g4['admin_path']."/img/btn_down.gif'></span>";
|
||||
$s .= "</td></tr></table>";
|
||||
return $s;
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
// 작업아이콘 출력
|
||||
function icon($act, $link='', $target='_parent')
|
||||
{
|
||||
@ -150,7 +133,6 @@ function icon($act, $link='', $target='_parent')
|
||||
$img = array('입력'=>'insert', '추가'=>'insert', '생성'=>'insert', '수정'=>'modify', '삭제'=>'delete', '이동'=>'move', '그룹'=>'move', '보기'=>'view', '미리보기'=>'view', '복사'=>'copy');
|
||||
$icon = '<img src="'.G4_ADMIN_PATH.'/img/icon_'.$img[$act].'.gif" title="'.$act.'">';
|
||||
if ($link)
|
||||
//$s = '<a href="'.$link.'" target="'.$target.'">'.$icon.'</a>';
|
||||
$s = '<a href="'.$link.'">'.$icon.'</a>';
|
||||
else
|
||||
$s = $icon;
|
||||
@ -237,7 +219,7 @@ if (get_session('ss_mb_key') !== $admin_key) {
|
||||
|
||||
session_destroy();
|
||||
|
||||
include_once($g4['path'].'/lib/mailer.lib.php');
|
||||
include_once(G4_LIB_PATH.'/mailer.lib.php');
|
||||
// 메일 알림
|
||||
mailer($member['mb_nick'], $member['mb_email'], $member['mb_email'], 'XSS 공격 알림', $_SERVER['REMOTE_ADDR'].' 아이피로 XSS 공격이 있었습니다.\n\n관리자 권한을 탈취하려는 접근이므로 주의하시기 바랍니다.\n\n해당 아이피는 차단하시고 의심되는 게시물이 있는지 확인하시기 바랍니다.\n\n'.G4_URL, 0);
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// board_delete.php , boardgroup_delete.php 에서 include 하는 파일
|
||||
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined("_BOARD_DELETE_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_BOARD_DELETE_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// $tmp_bo_table 에는 $bo_table 값을 넘겨주어야 함
|
||||
if (!$tmp_bo_table) { return; }
|
||||
@ -27,5 +27,5 @@ sql_query(" delete from {$g4['board_file_table']} where bo_table = '{$tmp_bo_tab
|
||||
sql_query(" drop table {$g4['write_prefix']}{$tmp_bo_table} ", FALSE);
|
||||
|
||||
// 게시판 폴더 전체 삭제
|
||||
rm_rf($g4['path'].'/data/file/'.$tmp_bo_table);
|
||||
rm_rf(G4_DATA_PATH.'/file/'.$tmp_bo_table);
|
||||
?>
|
||||
@ -33,7 +33,7 @@ if ($file = $_POST['bo_include_tail']) {
|
||||
}
|
||||
}
|
||||
|
||||
$board_path = $g4['path'].'/data/file/'.$bo_table;
|
||||
$board_path = G4_DATA_PATH.'/file/'.$bo_table;
|
||||
|
||||
// 게시판 디렉토리 생성
|
||||
@mkdir($board_path, 0707);
|
||||
|
||||
@ -216,7 +216,7 @@ $colspan = 5;
|
||||
</table>
|
||||
|
||||
<div class="btn_ft">
|
||||
<a href="../bbs/new.php">최근게시물 더보기</a>
|
||||
<a href="<?=G4_BBS_URL?>/new.php">최근게시물 더보기</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
@ -154,7 +154,7 @@ include_once('./admin.head.php');
|
||||
<input type="file" id="mb_icon" name="mb_icon">
|
||||
<?
|
||||
$mb_dir = substr($mb['mb_id'],0,2);
|
||||
$icon_file = $g4['path'].'/data/member/'.$mb_dir.'/'.$mb['mb_id'].'.gif';
|
||||
$icon_file = G4_DATA_PATH.'/member/'.$mb_dir.'/'.$mb['mb_id'].'.gif';
|
||||
if (file_exists($icon_file)) {
|
||||
echo '<img src="'.$icon_file.'">';
|
||||
echo '<input type="checkbox" id="del_mb_icon" name="del_mb_icon" value="1">삭제';
|
||||
|
||||
@ -77,7 +77,7 @@ else if ($w == 'u')
|
||||
|
||||
// 회원 아이콘 삭제
|
||||
if ($del_mb_icon)
|
||||
@unlink($g4['path'].'/data/member/'.$mb_dir.'/'.$mb_id.'.gif');
|
||||
@unlink(G4_DATA_PATH.'/member/'.$mb_dir.'/'.$mb_id.'.gif');
|
||||
|
||||
// 아이콘 업로드
|
||||
if (is_uploaded_file($_FILES['mb_icon']['tmp_name'])) {
|
||||
@ -86,10 +86,10 @@ else if ($w == 'u')
|
||||
}
|
||||
|
||||
if (preg_match("/(\.gif)$/i", $_FILES['mb_icon']['name'])) {
|
||||
@mkdir($g4['path'].'/data/member/'.$mb_dir, 0707);
|
||||
@chmod($g4['path'].'/data/member/'.$mb_dir, 0707);
|
||||
@mkdir(G4_DATA_PATH.'/member/'.$mb_dir, 0707);
|
||||
@chmod(G4_DATA_PATH.'/member/'.$mb_dir, 0707);
|
||||
|
||||
$dest_path = $g4['path'].'/data/member/'.$mb_dir.'/'.$mb_id.'.gif';
|
||||
$dest_path = G4_DATA_PATH.'/member/'.$mb_dir.'/'.$mb_id.'.gif';
|
||||
|
||||
move_uploaded_file($_FILES['mb_icon']['tmp_name'], $dest_path);
|
||||
chmod($dest_path, 0606);
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?
|
||||
include_once("_common.php");
|
||||
include_once('./_common.php');
|
||||
include_once(G4_LIB_PATH.'/register.lib.php');
|
||||
|
||||
$mb_email = escape_trim($_POST['reg_mb_email']);
|
||||
@ -1,5 +1,5 @@
|
||||
<?
|
||||
include_once("_common.php");
|
||||
include_once('./_common.php');
|
||||
include_once(G4_LIB_PATH.'/register.lib.php');
|
||||
|
||||
$mb_id = escape_trim($_POST['reg_mb_id']);
|
||||
@ -1,5 +1,5 @@
|
||||
<?
|
||||
include_once("_common.php");
|
||||
include_once('./_common.php');
|
||||
include_once(G4_LIB_PATH.'/register.lib.php');
|
||||
|
||||
$mb_nick = escape_trim($_POST['reg_mb_nick']);
|
||||
@ -8,7 +8,7 @@ if ($board['bo_include_head']) {
|
||||
|
||||
// 게시판 관리의 상단 이미지 경로
|
||||
if ($board['bo_image_head']) {
|
||||
echo '<img src="'.G4_PATH.'/data/file/'.$bo_table.'/'.$board['bo_image_head'].'">';
|
||||
echo '<img src="'.G4_DATA_PATH.'/file/'.$bo_table.'/'.$board['bo_image_head'].'">';
|
||||
}
|
||||
|
||||
// 게시판 관리의 상단 내용
|
||||
|
||||
@ -4,18 +4,18 @@ include_once('./_common.php');
|
||||
$count = count($_POST['chk_wr_id']);
|
||||
|
||||
if(!$count) {
|
||||
alert($_POST['btn_submit']." 하실 항목을 하나 이상 선택하세요.");
|
||||
alert($_POST['btn_submit'].' 하실 항목을 하나 이상 선택하세요.');
|
||||
}
|
||||
|
||||
if($_POST['btn_submit'] == "선택삭제") {
|
||||
include "./delete_all.php";
|
||||
} else if($_POST['btn_submit'] == "선택복사") {
|
||||
$sw = "copy";
|
||||
include "./move.php";
|
||||
} else if($_POST['btn_submit'] == "선택이동") {
|
||||
$sw = "move";
|
||||
include "./move.php";
|
||||
if($_POST['btn_submit'] == '선택삭제') {
|
||||
include './delete_all.php';
|
||||
} else if($_POST['btn_submit'] == '선택복사') {
|
||||
$sw = 'copy';
|
||||
include './move.php';
|
||||
} else if($_POST['btn_submit'] == '선택이동') {
|
||||
$sw = 'move';
|
||||
include './move.php';
|
||||
} else {
|
||||
alert("올바른 방법으로 이용해 주세요.");
|
||||
alert('올바른 방법으로 이용해 주세요.');
|
||||
}
|
||||
?>
|
||||
@ -8,7 +8,7 @@ if ($board['bo_content_tail']) {
|
||||
|
||||
// 게시판 관리의 하단 이미지 경로
|
||||
if ($board['bo_image_tail']) {
|
||||
echo '<img src="'.G4_PATH.'/data/file/'.$bo_table.'/'.$board['bo_image_tail'].'">';
|
||||
echo '<img src="'.G4_DATA_PATH.'/file/'.$bo_table.'/'.$board['bo_image_tail'].'">';
|
||||
}
|
||||
|
||||
// 게시판 관리의 하단 파일 경로
|
||||
|
||||
@ -80,7 +80,7 @@ while ($row = sql_fetch_array($result))
|
||||
$sql2 = " select * from {$g4['board_file_table']} where bo_table = '$bo_table' and wr_id = '{$row['wr_id']}' ";
|
||||
$result2 = sql_query($sql2);
|
||||
while ($row2 = sql_fetch_array($result2))
|
||||
@unlink(G4_PATH.'/data/file/'.$bo_table.'/'.$row2['bf_file']);
|
||||
@unlink(G4_DATA_PATH.'/file/'.$bo_table.'/'.$row2['bf_file']);
|
||||
|
||||
// 파일테이블 행 삭제
|
||||
sql_query(" delete from {$g4['board_file_table']} where bo_table = '$bo_table' and wr_id = '{$row['wr_id']}' ");
|
||||
|
||||
@ -92,7 +92,7 @@ for ($i=count($tmp_array)-1; $i>=0; $i--)
|
||||
$result2 = sql_query($sql2);
|
||||
while ($row2 = sql_fetch_array($result2))
|
||||
// 파일삭제
|
||||
@unlink(G4_PATH.'/data/file/'.$bo_table.'/'.$row2['bf_file']);
|
||||
@unlink(G4_DATA_PATH.'/file/'.$bo_table.'/'.$row2['bf_file']);
|
||||
|
||||
// 파일테이블 행 삭제
|
||||
sql_query(" delete from {$g4['board_file_table']} where bo_table = '$bo_table' and wr_id = '{$row['wr_id']}' ");
|
||||
@ -136,5 +136,7 @@ if ($count_write > 0 || $count_comment > 0)
|
||||
// 4.11
|
||||
@include_once($board_skin_path.'/delete_all.tail.skin.php');
|
||||
|
||||
delete_cache_latest($bo_table);
|
||||
|
||||
goto_url('./board.php?bo_table='.$bo_table.'&page='.$page.$qstr);
|
||||
?>
|
||||
|
||||
@ -34,7 +34,7 @@ if ($member['mb_level'] < $board['bo_download_level']) {
|
||||
alert($alert_msg.'\\n회원이시라면 로그인 후 이용해 보십시오.', './login.php?wr_id='.$wr_id.'&'.$qstr.'&url='.urlencode($g4['bbs_path'].'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id));
|
||||
}
|
||||
|
||||
$filepath = G4_PATH.'/data/file/'.$bo_table.'/'.$file['bf_file'];
|
||||
$filepath = G4_DATA_PATH.'/file/'.$bo_table.'/'.$file['bf_file'];
|
||||
$filepath = addslashes($filepath);
|
||||
if (!is_file($filepath) || !file_exists($filepath))
|
||||
alert('파일이 존재하지 않습니다.');
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
<?
|
||||
$g4_path = "../.."; // common.php 의 상대 경로
|
||||
include_once("$g4_path/common.php");
|
||||
include_once('../../common.php');
|
||||
?>
|
||||
@ -1,8 +1,6 @@
|
||||
<?
|
||||
// 상대 경로
|
||||
$g4_path = '..';
|
||||
include_once($g4_path.'/common.php');
|
||||
include_once(G4_PATH.'/lib/latest.lib.php');
|
||||
include_once('./_common.php');
|
||||
include_once(G4_LIB_PATH.'/latest.lib.php');
|
||||
|
||||
$g4['title'] = $group[gr_subject];
|
||||
include_once('./_head.php');
|
||||
@ -14,10 +12,7 @@ include_once('./_head.php');
|
||||
<td>
|
||||
<?
|
||||
// 최신글
|
||||
$sql = " select bo_table, bo_subject from {$g4[board_table]}
|
||||
where gr_id = '{$gr_id}'
|
||||
and bo_list_level <= '{$member[mb_level]}'
|
||||
order by bo_table ";
|
||||
$sql = " select bo_table, bo_subject from {$g4[board_table]} where gr_id = '{$gr_id}' and bo_list_level <= '{$member[mb_level]}' order by bo_table ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
|
||||
|
||||
@ -12,7 +12,7 @@ if(!count($_POST['chk_bo_table']))
|
||||
alert("게시물을 ".$act."할 게시판을 한개 이상 선택해 주십시오.", $url);
|
||||
|
||||
// 원본 파일 디렉토리
|
||||
$src_dir = G4_PATH.'/data/file/'.$bo_table;
|
||||
$src_dir = G4_DATA_PATH.'/file/'.$bo_table;
|
||||
|
||||
$save = array();
|
||||
$save_count_write = 0;
|
||||
@ -31,8 +31,8 @@ while ($row = sql_fetch_array($result))
|
||||
$move_bo_table = $_POST['chk_bo_table'][$i];
|
||||
$move_write_table = $g4['write_prefix'] . $move_bo_table;
|
||||
|
||||
$src_dir = G4_PATH.'/data/file/'.$bo_table; // 원본 디렉토리
|
||||
$dst_dir = G4_PATH.'/data/file/'.$move_bo_table; // 복사본 디렉토리
|
||||
$src_dir = G4_DATA_PATH.'/file/'.$bo_table; // 원본 디렉토리
|
||||
$dst_dir = G4_DATA_PATH.'/file/'.$move_bo_table; // 복사본 디렉토리
|
||||
|
||||
$count_write = 0;
|
||||
$count_comment = 0;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<?
|
||||
include_once('./_common.php');
|
||||
include_once(G4_GCAPTCHA_PATH.'/gcaptcha.lib.php');
|
||||
include_once(G4_PATH.'/lib/mailer.lib.php');
|
||||
include_once(G4_LIB_PATH.'/mailer.lib.php');
|
||||
|
||||
if ($is_member) {
|
||||
alert("이미 로그인중입니다.");
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?
|
||||
include_once('./_common.php');
|
||||
include_once(G4_PATH.'/lib/mailer.lib.php');
|
||||
include_once(G4_LIB_PATH.'/mailer.lib.php');
|
||||
|
||||
if ($w == "")
|
||||
{
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<?
|
||||
include_once('./_common.php');
|
||||
include_once(G4_GCAPTCHA_PATH.'/gcaptcha.lib.php');
|
||||
include_once(G4_PATH.'/lib/register.lib.php');
|
||||
include_once(G4_LIB_PATH.'/register.lib.php');
|
||||
|
||||
// 불법접근을 막도록 토큰생성
|
||||
$token = md5(uniqid(rand(), true));
|
||||
@ -103,7 +103,7 @@ if ($w == "") {
|
||||
include_once('./_head.php');
|
||||
|
||||
// 회원아이콘 경로
|
||||
$mb_icon = G4_PATH.'/data/member/'.substr($member['mb_id'],0,2).'/'.$member['mb_id'].'.gif';
|
||||
$mb_icon = G4_DATA_PATH.'/member/'.substr($member['mb_id'],0,2).'/'.$member['mb_id'].'.gif';
|
||||
|
||||
$register_action_url = G4_HTTPS_BBS_URL.'/register_form_update.php';
|
||||
$req_nick = !isset($member['mb_nick_date']) || (isset($member['mb_nick_date']) && $member['mb_nick_date'] <= date("Y-m-d", $g4['server_time'] - ($config['cf_nick_modify'] * 86400)));
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
<?
|
||||
include_once('./_common.php');
|
||||
include_once(G4_GCAPTCHA_PATH.'/gcaptcha.lib.php');
|
||||
include_once(G4_PATH.'/lib/register.lib.php');
|
||||
include_once(G4_PATH.'/lib/mailer.lib.php');
|
||||
include_once(G4_LIB_PATH.'/register.lib.php');
|
||||
include_once(G4_LIB_PATH.'/mailer.lib.php');
|
||||
|
||||
// 리퍼러 체크
|
||||
referer_check();
|
||||
@ -89,7 +89,7 @@ if ($w == '' || $w == 'u') {
|
||||
if ($msg = exist_mb_email($mb_email, $mb_id)) alert($msg);
|
||||
}
|
||||
|
||||
$mb_dir = G4_PATH.'/data/member/'.substr($mb_id,0,2);
|
||||
$mb_dir = G4_DATA_PATH.'/member/'.substr($mb_id,0,2);
|
||||
|
||||
// 아이콘 삭제
|
||||
if (isset($_POST['del_mb_icon'])) {
|
||||
|
||||
@ -113,10 +113,6 @@ else
|
||||
|
||||
include_once($board_skin_path.'/view_comment.skin.php');
|
||||
|
||||
// 필터
|
||||
//echo "<script> var g4_cf_filter = '$config['cf_filter']'; </script>\n";
|
||||
//echo "<script src='G4_PATH/js/filter.js'></script>\n";
|
||||
|
||||
if (!$member['mb_id']) // 비회원일 경우에만
|
||||
echo '<script src="'.G4_JS_URL.'/md5.js"></script>'.PHP_EOL;
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@ if (!$bo_table) {
|
||||
|
||||
check_device($board['bo_device']);
|
||||
|
||||
@include_once (G4_PATH.'/skin/board/write.head.skin.php');
|
||||
@include_once (G4_SKIN_PATH.'/board/write.head.skin.php');
|
||||
@include_once ($board_skin_path.'/write.head.skin.php');
|
||||
|
||||
$notice_array = explode(',', trim($board['bo_notice']));
|
||||
|
||||
@ -194,7 +194,7 @@ if ($w == 'c') // 코멘트 입력
|
||||
// 4.00.15 - 메일로 보내는 코멘트의 바로가기 링크 수정
|
||||
$link_url = G4_BBS_URL."/board.php?bo_table=".$bo_table."&wr_id=".$wr_id."&".$qstr."#c_".$comment_id;
|
||||
|
||||
include_once(G4_PATH.'/lib/mailer.lib.php');
|
||||
include_once(G4_LIB_PATH.'/mailer.lib.php');
|
||||
|
||||
ob_start();
|
||||
include_once ('./write_update_mail.php');
|
||||
@ -312,5 +312,7 @@ else if ($w == 'cu') // 코멘트 수정
|
||||
@include_once($board_skin_path.'/write_comment_update.skin.php');
|
||||
@include_once($board_skin_path.'/write_comment_update.tail.skin.php');
|
||||
|
||||
delete_cache_latest($bo_table);
|
||||
|
||||
goto_url('./board.php?bo_table='.$bo_table.'&wr_id='.$wr['wr_parent'].'&page='.$page.$qstr.'&#c_'.$comment_id);
|
||||
?>
|
||||
|
||||
@ -562,7 +562,7 @@ if (!($w == 'u' || $w == 'cu') && $config['cf_email_use'] && $board['bo_use_emai
|
||||
$subject = '"'.$board['bo_subject'].'" 게시판에 '.$str.'글이 올라왔습니다.';
|
||||
$link_url = G4_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id.'&'.$qstr;
|
||||
|
||||
include_once(G4_PATH.'/lib/mailer.lib.php');
|
||||
include_once(G4_LIB_PATH.'/mailer.lib.php');
|
||||
|
||||
ob_start();
|
||||
include_once ('./write_update_mail.php');
|
||||
@ -602,10 +602,11 @@ if (!($w == 'u' || $w == 'cu') && $config['cf_email_use'] && $board['bo_use_emai
|
||||
}
|
||||
|
||||
// 사용자 코드 실행
|
||||
@include_once ($board_skin_path.'/write_update.skin.php');
|
||||
|
||||
@include_once($board_skin_path.'/write_update.skin.php');
|
||||
@include_once($board_skin_path.'/write_update.tail.skin.php');
|
||||
|
||||
delete_cache_latest($bo_table);
|
||||
|
||||
if ($file_upload_msg)
|
||||
alert($file_upload_msg, G4_HTTPS_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id.'&page='.$page.$qstr);
|
||||
else
|
||||
|
||||
@ -172,7 +172,7 @@ else if (is_mobile())
|
||||
$_SESSION['ss_is_mobile'] = $is_mobile;
|
||||
define('G4_IS_MOBILE', $is_mobile);
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once(G4_PATH.'/lib/mobile.lib.php'); // 모바일 전용 라이브러리
|
||||
include_once(G4_LIB_PATH.'/mobile.lib.php'); // 모바일 전용 라이브러리
|
||||
$g4['mobile_path'] = G4_PATH.'/'.$g4['mobile_dir'];
|
||||
}
|
||||
//==============================================================================
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
html {overflow-y:scroll}
|
||||
body {margin:0;padding:0;background:#f7f7f2;font-size:0.75em;font-family:"dotum"}
|
||||
html, h1, h2, h3, h4, h5, h6, form, fieldset, img {margin:0;padding:0;border:0}
|
||||
h1, h2, h3, h4, h5, h6 {font-size:1em;font-family:"dotum"}
|
||||
h1, h2, h3, h4, h5, h6 {color:#2a4959;font-size:1em;font-family:"dotum"}
|
||||
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display:block}
|
||||
header ul, nav ul, footer ul {margin:0;padding:0;list-style:none}
|
||||
label, input, select, img {vertical-align:middle}
|
||||
@ -22,7 +22,7 @@ a:active {color:#000;text-decoration:underline}
|
||||
/* 본문 바로가기 */
|
||||
#to_content a {z-index:100000;position:absolute;top:0;left:0;width:1px;height:1px;overflow:hidden}
|
||||
#to_content a:focus,
|
||||
#to_content a:active {width:100%;height:75px;background:#000;color:#fff;font-size:2em;font-weight:bold;text-align:center;text-decoration:none;line-height:3.3em}
|
||||
#to_content a:active {width:100%;height:75px;background:#25303d;color:#fff;font-size:2em;font-weight:bold;text-align:center;text-decoration:none;line-height:3.3em}
|
||||
|
||||
/* 이미지 등비율 리사이징 */
|
||||
.img_fix {float:left;width:100%;height:auto}
|
||||
@ -32,17 +32,17 @@ a:active {color:#000;text-decoration:underline}
|
||||
#captcha_wav img {border:1px solid #cfded8;border-left:0;background:#494949}
|
||||
|
||||
/* 상단 레이아웃 */
|
||||
#hd {border-top:5px solid #415353;border-bottom:1px solid #e7f1ed;background:#fff}
|
||||
#hd {border-top:3px solid #415353;border-bottom:1px solid #e7f1ed;background:#fff}
|
||||
#hd h1 {width:0;height:0;overflow:hidden}
|
||||
#hd_wrapper {position:relative;margin:0 auto;width:980px}
|
||||
|
||||
#logo {padding:17px}
|
||||
#logo {padding:17px 0 17px 0}
|
||||
#logo span {display:inline-block;margin-left:10px;color:#109ff1;font-family:"verdana";vertical-align:middle}
|
||||
|
||||
#schall {position:absolute;top:20px;left:90px;margin:0;padding:0;letter-spacing:-5px}
|
||||
#schall {position:absolute;top:22px;left:70px;margin:0;padding:0;letter-spacing:-5px}
|
||||
#schall legend {width:0;height:0;overflow:hidden}
|
||||
#schall_stx {padding-left:5px;width:156px;height:27px;border:1px solid #ccc;border-right:0;background:#fff;line-height:2em !important;line-height:2em}
|
||||
#schall_submit {border:1px solid #ccc;border-left:0}
|
||||
#schall_stx {padding-left:5px;width:156px;height:24px;border:1px solid #76a5a8;border-right:0;background:#f7f7f2;color:#fff;line-height:1.9em !important;line-height:1.6em}
|
||||
#schall_submit {border:1px solid #76a5a8;border-left:0}
|
||||
|
||||
#snb {position:absolute;top:18px;right:0;zoom:1}
|
||||
#snb:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
@ -58,7 +58,7 @@ a:active {color:#000;text-decoration:underline}
|
||||
#wrapper:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#wrapper_title {margin-bottom:20px;font-size:1.2em}
|
||||
#lnb {float:right;width:208px;border:1px solid #e7f1ed;background:#fff}
|
||||
#container {float:left;padding:30px 15px;width:728px;min-height:500px;height:auto !important;height:500px;border:1px solid #e7f1ed;background:#fff;zoom:1}
|
||||
#container {float:left;padding:15px;width:728px;min-height:500px;height:auto !important;height:500px;border:1px solid #e7f1ed;background:#fff;zoom:1}
|
||||
#container:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
|
||||
/* 하단 레이아웃 */
|
||||
@ -94,7 +94,7 @@ a:active {color:#000;text-decoration:underline}
|
||||
|
||||
/* 콘텐츠별 스타일 */
|
||||
/* 버튼 */
|
||||
.btn01 {display:inline-block;padding:0 10px;height:23px;border:1px solid #ccc !important;background:#fafafa !important;color:#000 !important;text-decoration:none !important;line-height:2.15em;vertical-align:middle}
|
||||
.btn01 {display:inline-block;padding:0 10px;height:23px;border:1px solid #ccc !important;background:#fff !important;color:#000 !important;text-decoration:none !important;line-height:2.15em;vertical-align:middle}
|
||||
.btn01:focus,
|
||||
.btn01:hover {text-decoration:none !important}
|
||||
.btn02 {display:inline-block;padding:0 10px;height:23px;border:1px solid #383b3f !important;background:#444 !important;color:#fff !important;text-decoration:none !important;line-height:2.15em;vertical-align:middle}
|
||||
@ -112,7 +112,8 @@ a:active {color:#000;text-decoration:underline}
|
||||
/* 기본테이블 */
|
||||
.basic_tbl {margin-bottom:10px;width:100%;border-collapse:collapse;border-spacing:0}
|
||||
.basic_tbl caption {padding:0 0 10px;color:#777;text-align:left}
|
||||
.basic_tbl thead th {padding:12px 0 8px;border-top:1px solid #5b6964;background:#f9f9f9}
|
||||
.basic_tbl thead th {padding:12px 0 8px;border-top:1px solid #5b6964;background:#76a5a8;color:#fff}
|
||||
.basic_tbl thead a {color:#fff}
|
||||
.basic_tbl thead th input {vertical-align:top} /* middle 로 하면 게시판 읽기에서 목록 사용시 체크박스 라인 깨짐 */
|
||||
.basic_tbl tfoot th {border-top:1px solid #666;border-bottom:1px solid #666;background:#484848;color:#fff}
|
||||
.basic_tbl tfoot td {border-color:#666;background:#484848;color:#fff;font-weight:bold;text-align:center}
|
||||
@ -154,7 +155,7 @@ td.empty_table {padding:85px 0;text-align:center}
|
||||
|
||||
/* 새창 기본 스타일 */
|
||||
.new_win {}
|
||||
.new_win h1 {margin-bottom:20px;padding:0 20px;height:60px;border-top:2px solid #484848;border-bottom:1px solid #e9e9e9;background:#f7f7f2;font-size:1.2em;line-height:5em}
|
||||
.new_win h1 {margin-bottom:20px;padding:0 20px;height:60px;border-top:2px solid #484848;border-bottom:1px solid #e9e9e9;background:#fff;font-size:1.2em;line-height:5em}
|
||||
.new_win table {margin:0 auto 20px;width:93%}
|
||||
.new_win_ul {margin:-20px 0 20px 0;padding:0 0 0 20px;border-bottom:1px solid #515151;background:#484848;list-style:none;zoom:1}
|
||||
.new_win_ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
@ -198,7 +199,7 @@ fieldset button {padding:0 15px;height:24px;border:0;background:#4e5d60;color:#f
|
||||
#reg_result_email strong {color:#000;font-size:1.2em}
|
||||
|
||||
/* 아이디/패스워드 찾기 */
|
||||
#find_info_fs {margin:0 auto 20px;padding:10px 20px 15px;width:87%;border-right:1px solid #eee;border-bottom:1px solid #eee;background:#f7f7f7}
|
||||
#find_info_fs {margin:0 auto 20px;padding:10px 20px 15px;width:87%;border-right:1px solid #eee;border-bottom:1px solid #eee;background:#fff}
|
||||
#find_info #captcha {margin:0 auto 20px;width:87%}
|
||||
#find_info #captcha input {margin-left:5px}
|
||||
|
||||
@ -346,7 +347,7 @@ fieldset button {padding:0 15px;height:24px;border:0;background:#4e5d60;color:#f
|
||||
#profile h2 {margin:0}
|
||||
|
||||
/* 최근게시물 스킨 (latest) */
|
||||
.lt {position:relative;float:left;margin-bottom:20px;padding-bottom:10px;width:355px;height:150px;border-bottom:1px solid #cfded8}
|
||||
.lt {position:relative;float:left;margin-bottom:20px;padding-bottom:10px;width:354px;height:150px;border-bottom:1px solid #cfded8}
|
||||
.lt ul {margin:0 0 10px;padding:0;list-style:none}
|
||||
.lt li {padding:3px 0}
|
||||
.lt a {}
|
||||
@ -404,12 +405,11 @@ fieldset button {padding:0 15px;height:24px;border:0;background:#4e5d60;color:#f
|
||||
.post_code {display:inline-block;width:50px;color:#999}
|
||||
|
||||
/* 게시판 쓰기 */
|
||||
#bo_w caption {padding:0;height:0;overflow:hidden}
|
||||
|
||||
/* 게시판 목록 */
|
||||
#bo_list_title {}
|
||||
#bo_list_title {margin-bottom:20px;font-size:1.1em;letter-spacing:-0.1em}
|
||||
|
||||
#bo_list_total {margin-bottom:10px}
|
||||
.btn_bo_adm input {padding:0 10px;height:26px;border:1px solid #ccc;background:#fafafa}
|
||||
#bo_cate {margin-bottom:15px;padding-left:1px}
|
||||
#bo_cate h2 {width:0;height:0;overflow:hidden}
|
||||
#bo_cate_ul {zoom:1}
|
||||
@ -428,21 +428,23 @@ fieldset button {padding:0 15px;height:24px;border:0;background:#4e5d60;color:#f
|
||||
.btn_bo_user li {float:left;margin-left:5px}
|
||||
.btn_bo_adm {float:left}
|
||||
.btn_bo_adm li {float:left;margin-right:5px}
|
||||
.bo_notice td {background:#f7f7f7}
|
||||
.btn_bo_adm input {padding:0 10px;height:26px;border:1px solid #ccc;background:#fff}
|
||||
.bo_notice td {background:#f7f7f2}
|
||||
.bo_notice td a {font-weight:bold}
|
||||
.td_num strong {color:#000}
|
||||
.bo_cate_link {display:inline-block;margin:0 3px 0 0;color:#000 !important;text-decoration:none} /* 글제목줄 분류스타일 */
|
||||
.bo_cate_link {display:inline-block;margin:0 3px 0 0;color:#76a5a8 !important;font-weight:bold;text-decoration:none} /* 글제목줄 분류스타일 */
|
||||
.bo_current {color:#000}
|
||||
.td_subject img {margin-left:3px}
|
||||
.cnt_cmt {color:#777}
|
||||
.cnt_cmt {color:#ff5300}
|
||||
|
||||
/* 게시판 읽기 */
|
||||
#bo_v_title {padding:5px 0 0;font-weight:bold}
|
||||
#bo_v_title {color:#76a5a8;font-size:1.1em;font-weight:bold}
|
||||
|
||||
#bo_v {margin-bottom:20px;padding-bottom:20px}
|
||||
|
||||
#bo_v_h1 {padding:10px 0 5px;font-size:1.2em}
|
||||
#bo_v_info {padding:5px 0 8px}
|
||||
#bo_v_h1 {margin:0 0 15px;font-size:1.2em}
|
||||
|
||||
#bo_v_info {padding:10px 0 9px;border-top:1px solid #cfded8;border-bottom:1px solid #cfded8}
|
||||
#bo_v_info h2 {margin:0;padding:0;height:0;overflow:hidden}
|
||||
#bo_v_info {}
|
||||
#bo_v_info strong {display:inline-block;margin:0 15px 0 5px;font-weight:normal}
|
||||
@ -450,24 +452,30 @@ fieldset button {padding:0 15px;height:24px;border:0;background:#4e5d60;color:#f
|
||||
#bo_v_file {}
|
||||
#bo_v_file h2 {margin:0;padding:0;height:0;overflow:hidden}
|
||||
#bo_v_file ul {margin:0;padding:0;list-style:none}
|
||||
#bo_v_file li {padding:0 20px}
|
||||
#bo_v_file a {display:inline-block;padding:8px 0 7px}
|
||||
#bo_v_file a {display:inline-block;padding:8px 0 7px;color:#578689}
|
||||
#bo_v_file a:focus,
|
||||
#bo_v_file a:hover,
|
||||
#bo_v_file a:active {text-decoration:none}
|
||||
.bo_v_file_cnt {display:inline-block;margin:0 10px}
|
||||
#bo_v_link {}
|
||||
#bo_v_link h2 {margin:0;padding:0;height:0;overflow:hidden}
|
||||
#bo_v_link ul {margin:0;padding:0;list-style:none}
|
||||
#bo_v_link li {padding:0 20px}
|
||||
#bo_v_link a {display:inline-block;padding:8px 0 7px}
|
||||
#bo_v_link a {display:inline-block;padding:8px 0 7px;color:#578689}
|
||||
#bo_v_link a:focus,
|
||||
#bo_v_link a:hover,
|
||||
#bo_v_link a:active {text-decoration:none}
|
||||
.bo_v_link_cnt {display:inline-block;margin:0 10px}
|
||||
|
||||
#bo_v_top {margin:10px 0 20px;zoom:1}
|
||||
#bo_v_top {margin:0 0 20px;padding:10px 0;zoom:1}
|
||||
#bo_v_top:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_v_top h2 {margin:0;padding:0;height:0;overflow:hidden}
|
||||
#bo_v_top ul {margin-bottom:5px;list-style:none}
|
||||
#bo_v_top ul {list-style:none}
|
||||
|
||||
#bo_v_bot {zoom:1}
|
||||
#bo_v_bot:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_v_bot h2 {margin:0;padding:0;height:0;overflow:hidden}
|
||||
#bo_v_bot ul {margin:0;padding:0;list-style:none}
|
||||
|
||||
.bo_v_nb {float:left}
|
||||
.bo_v_nb li {float:left;margin-right:5px}
|
||||
.bo_v_com {float:right}
|
||||
@ -489,7 +497,7 @@ fieldset button {padding:0 15px;height:24px;border:0;background:#4e5d60;color:#f
|
||||
#bo_v form {padding-top:20px}
|
||||
|
||||
/* 게시판 댓글 */
|
||||
#bo_vc {margin:0 0 10px;padding:20px 0}
|
||||
#bo_vc {margin:0 0 10px;padding:20px 0 10px}
|
||||
#bo_vc h2 {margin-bottom:10px}
|
||||
#bo_vc article {padding:0 0 10px;border-top:1px dotted #ccc}
|
||||
#bo_vc header {position:relative;padding:15px 0 5px}
|
||||
@ -508,7 +516,7 @@ fieldset button {padding:0 15px;height:24px;border:0;background:#4e5d60;color:#f
|
||||
#bo_vc #captcha {float:left;margin-left:10px;padding:0 5px 0 0;border:0}
|
||||
#bo_vc #captcha a {display:inline-block;margin-right:5px;text-decoration:underline;vertical-align:middle}
|
||||
#bo_vc .fs_input {margin-right:5px}
|
||||
#bo_vc_w {position:relative;border-top:1px solid #d9d9d9;zoom:1}
|
||||
#bo_vc_w {position:relative;border-top:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;zoom:1}
|
||||
#bo_vc_w:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_vc_w h2 {padding:15px 0 5px}
|
||||
#bo_vc_w #char_cnt {position:absolute;top:5px;right:10px}
|
||||
|
||||
16
head.php
@ -28,7 +28,7 @@ include_once(G4_LIB_PATH.'/popular.lib.php');
|
||||
<form name="fsearchbox" method="get" action="<?=G4_BBS_URL?>/search.php" onsubmit="return fsearchbox_submit(this);">
|
||||
<input type="hidden" name="sfl" value="wr_subject||wr_content">
|
||||
<input type="hidden" name="sop" value="and">
|
||||
<input type="text" id="schall_stx" name="stx" title="검색어" maxlength="20"><input type="image" id="schall_submit" src="<?=G4_IMG_URL?>/btn_search.gif" width="29" height="27" alt="검색">
|
||||
<input type="text" id="schall_stx" name="stx" title="검색어" maxlength="20"><input type="image" id="schall_submit" src="<?=G4_IMG_URL?>/btn_search.jpg" width="24" height="24" alt="검색">
|
||||
</form>
|
||||
|
||||
<script>
|
||||
@ -63,13 +63,13 @@ include_once(G4_LIB_PATH.'/popular.lib.php');
|
||||
<ul id="snb">
|
||||
<li>
|
||||
<a href="<?=G4_BBS_URL?>/current_connect.php" id="snb_cnt">
|
||||
<img src="<?=G4_URL?>/img/snb_cnt.jpg" alt="">
|
||||
<img src="<?=G4_IMG_URL?>/snb_cnt.jpg" alt="">
|
||||
현재접속자 <?=connect(); // 현재 접속자수 ?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?=G4_BBS_URL?>/new.php" id="snb_new">
|
||||
<img src="<?=G4_URL?>/img/snb_new.jpg" alt="">
|
||||
<img src="<?=G4_IMG_URL?>/snb_new.jpg" alt="">
|
||||
새글
|
||||
</a>
|
||||
</li>
|
||||
@ -77,33 +77,33 @@ include_once(G4_LIB_PATH.'/popular.lib.php');
|
||||
<? if ($is_admin) { ?>
|
||||
<li>
|
||||
<a href="<?=G4_ADMIN_URL?>" id="snb_adm">
|
||||
<img src="<?=G4_URL?>/img/snb_admin.jpg" alt="">
|
||||
<img src="<?=G4_IMG_URL?>/snb_admin.jpg" alt="">
|
||||
관리자
|
||||
</a>
|
||||
</li>
|
||||
<? } ?>
|
||||
<li>
|
||||
<a href="<?=G4_BBS_URL?>/member_confirm.php?url=<?=G4_BBS_URL?>/register_form.php" id="snb_modify">
|
||||
<img src="<?=G4_URL?>/img/snb_modify.jpg" alt="">
|
||||
<img src="<?=G4_IMG_URL?>/snb_modify.jpg" alt="">
|
||||
내 정보
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?=G4_BBS_URL?>/logout.php" id="snb_logout">
|
||||
<img src="<?=G4_URL?>/img/snb_logout.jpg" alt="">
|
||||
<img src="<?=G4_IMG_URL?>/snb_logout.jpg" alt="">
|
||||
로그아웃
|
||||
</a>
|
||||
</li>
|
||||
<? } else { ?>
|
||||
<li>
|
||||
<a href="<?=G4_BBS_URL?>/register.php" id="snb_join">
|
||||
<img src="<?=G4_URL?>/img/snb_join.jpg" alt="">
|
||||
<img src="<?=G4_IMG_URL?>/snb_join.jpg" alt="">
|
||||
회원가입
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?=G4_BBS_URL?>/login.php" id="snb_login">
|
||||
<img src="<?=G4_URL?>/img/snb_login.jpg" alt="">
|
||||
<img src="<?=G4_IMG_URL?>/snb_login.jpg" alt="">
|
||||
로그인
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@ -51,6 +51,7 @@ else $g4_css = "default";
|
||||
// 자바스크립트에서 사용하는 전역변수 선언
|
||||
var g4_url = "<?=G4_URL?>";
|
||||
var g4_bbs_url = "<?=G4_BBS_URL?>";
|
||||
var g4_img_url = "<?=G4_IMG_URL?>";
|
||||
var g4_is_member = "<?=isset($is_member)?$is_member:'';?>";
|
||||
var g4_is_admin = "<?=isset($is_admin)?$is_admin:'';?>";
|
||||
var g4_bo_table = "<?=isset($bo_table)?$bo_table:'';?>";
|
||||
|
||||
|
Before Width: | Height: | Size: 249 B |
BIN
img/btn_search.jpg
Normal file
|
After Width: | Height: | Size: 1016 B |
|
Before Width: | Height: | Size: 51 B After Width: | Height: | Size: 51 B |
@ -7,7 +7,6 @@ include_once('./_head.php');
|
||||
|
||||
<!-- 메인화면 최신글 시작 -->
|
||||
<?
|
||||
/*
|
||||
// 최신글
|
||||
$sql = " select bo_table from {$g4['board_table']} order by gr_id, bo_table ";
|
||||
$result = sql_query($sql);
|
||||
@ -27,7 +26,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
?>
|
||||
</div>
|
||||
<?
|
||||
}*/
|
||||
}
|
||||
?>
|
||||
<!-- 메인화면 최신글 끝 -->
|
||||
|
||||
|
||||
56
js/board.js
@ -1,56 +0,0 @@
|
||||
function getFontSize() {
|
||||
var fontSize = parseInt(get_cookie("ck_fontsize")); // 폰트크기 조절
|
||||
if (isNaN(fontSize)) { fontSize = 12; }
|
||||
return fontSize;
|
||||
}
|
||||
|
||||
function scaleFont(val) {
|
||||
var fontSize = getFontSize();
|
||||
var fontSizeSave = fontSize;
|
||||
if (val > 0) {
|
||||
if (fontSize <= 18) {
|
||||
fontSize = fontSize + val;
|
||||
}
|
||||
} else {
|
||||
if (fontSize > 12) {
|
||||
fontSize = fontSize + val;
|
||||
}
|
||||
}
|
||||
if (fontSize != fontSizeSave) {
|
||||
drawFont(fontSize);
|
||||
}
|
||||
set_cookie("ck_fontsize", fontSize, 30, g4_cookie_domain);
|
||||
}
|
||||
|
||||
function drawFont(fontSize) {
|
||||
if (!fontSize) {
|
||||
fontSize = getFontSize();
|
||||
}
|
||||
|
||||
var subject=document.getElementById("writeSubject");
|
||||
var content=document.getElementById("writeContents");
|
||||
var comment=document.getElementById("bo_vc");
|
||||
var wr_subject=document.getElementById("wr_subject");
|
||||
var wr_content=document.getElementById("wr_content");
|
||||
|
||||
if (comment) {
|
||||
var commentDiv = comment.getElementsByTagName("div");
|
||||
var lineHeight = fontSize+Math.round(1.1*fontSize);
|
||||
}
|
||||
|
||||
fontSize = fontSize + "px";
|
||||
|
||||
if (subject)
|
||||
subject.style.fontSize=fontSize;
|
||||
if (content)
|
||||
content.style.fontSize=fontSize;
|
||||
if (wr_subject)
|
||||
wr_subject.style.fontSize=fontSize;
|
||||
if (wr_content)
|
||||
wr_content.style.fontSize=fontSize;
|
||||
if (commentDiv) {
|
||||
for (i=0;i<commentDiv.length;i++) {
|
||||
commentDiv[i].style.fontSize=fontSize;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,67 +0,0 @@
|
||||
if (typeof(CAPSLOCK_JS) == 'undefined') // 한번만 실행
|
||||
{
|
||||
var CAPSLOCK_JS = true;
|
||||
|
||||
var capslock_delay = 3000; // "CapsLock 이 켜져 있습니다." 이미지를 몇초간 출력할 것인지?
|
||||
var capslock_left = -4; // CaplsLock 이미지의 X 좌표
|
||||
var capslock_top = 0; // CaplsLock 이미지의 Y 좌표
|
||||
function check_capslock(e, elem_id) {
|
||||
var myKeyCode=0;
|
||||
var myShiftKey=false;
|
||||
|
||||
if ( document.all ) { // Internet Explorer 4+
|
||||
myKeyCode=e.keyCode;
|
||||
myShiftKey=e.shiftKey;
|
||||
} else if ( document.layers ) { // Netscape 4
|
||||
myKeyCode=e.which;
|
||||
myShiftKey=( myKeyCode == 16 ) ? true : false;
|
||||
} else if ( document.getElementById ) { // Netscape 6
|
||||
myKeyCode=e.which;
|
||||
myShiftKey=( myKeyCode == 16 ) ? true : false;
|
||||
}
|
||||
|
||||
// Upper case letters are seen without depressing the Shift key, therefore Caps Lock is on
|
||||
if ( ( myKeyCode >= 65 && myKeyCode <= 90 ) && !myShiftKey ) {
|
||||
set_capslock_on(elem_id);
|
||||
// Lower case letters are seen while depressing the Shift key, therefore Caps Lock is on
|
||||
} else if ( ( myKeyCode >= 97 && myKeyCode <= 122 ) && myShiftKey ) {
|
||||
set_capslock_on(elem_id);
|
||||
}
|
||||
}
|
||||
|
||||
function set_capslock_on(elem_id) {
|
||||
set_capslock_info_position(elem_id);
|
||||
document.getElementById("capslock_info").style.display = "inline";
|
||||
setTimeout("set_capslock_off()", capslock_delay);
|
||||
}
|
||||
|
||||
function set_capslock_off(elem_id) {
|
||||
document.getElementById("capslock_info").style.display = "none";
|
||||
}
|
||||
|
||||
function set_capslock_info_position(elem_id) {
|
||||
var o = document.getElementById("capslock_info");
|
||||
var ref = document.getElementById(elem_id);
|
||||
//var s = ""; for (i in ref) {s = s + i + " "; } alert(s);
|
||||
if ( typeof(o)=="object" && typeof(ref)=="object" ) {
|
||||
var x = get_real_left(ref);
|
||||
var y = get_real_top(ref);
|
||||
//o.style.pixelLeft = x + capslock_left;
|
||||
//o.style.pixelTop = y + ref.offsetHeight + capslock_top;
|
||||
o.style.left = x + capslock_left;
|
||||
o.style.top = y + ref.offsetHeight + capslock_top;
|
||||
}
|
||||
}
|
||||
|
||||
function get_real_left(obj) {
|
||||
if ( obj.offsetParent == null ) return 0;
|
||||
return obj.offsetLeft + obj.clientLeft + get_real_left(obj.offsetParent);
|
||||
}
|
||||
|
||||
function get_real_top(obj) {
|
||||
if ( obj.offsetParent == null ) return 0;
|
||||
return obj.offsetTop + obj.clientTop + get_real_top(obj.offsetParent);
|
||||
}
|
||||
|
||||
document.write("<div id='capslock_info' style='display:none; position:absolute;'><img src='"+g4_url+"/img/capslock.gif'></div>");
|
||||
}
|
||||
2
js/jquery.mobile-1.3.0-beta.1.min.js
vendored
@ -2,7 +2,7 @@ var reg_mb_id_check = function() {
|
||||
var result = "";
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: member_skin_url+"/ajax_mb_id_check.php",
|
||||
url: g4_bbs_url+"/ajax.mb_id.php",
|
||||
data: {
|
||||
"reg_mb_id": encodeURIComponent($("#reg_mb_id").val())
|
||||
},
|
||||
@ -20,10 +20,10 @@ var reg_mb_nick_check = function() {
|
||||
var result = "";
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: member_skin_url+"/ajax_mb_nick_check.php",
|
||||
url: g4_bbs_url+"/ajax.mb_nick.php",
|
||||
data: {
|
||||
"reg_mb_nick": ($("#reg_mb_nick").val()),
|
||||
'reg_mb_id': encodeURIComponent($('#reg_mb_id').val())
|
||||
"reg_mb_id": encodeURIComponent($("#reg_mb_id").val())
|
||||
},
|
||||
cache: false,
|
||||
async: false,
|
||||
@ -38,11 +38,11 @@ var reg_mb_nick_check = function() {
|
||||
var reg_mb_email_check = function() {
|
||||
var result = "";
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: member_skin_url+'/ajax_mb_email_check.php',
|
||||
type: "POST",
|
||||
url: g4_bbs_url+"/ajax.mb_email.php",
|
||||
data: {
|
||||
'reg_mb_email': $('#reg_mb_email').val(),
|
||||
'reg_mb_id': encodeURIComponent($('#reg_mb_id').val())
|
||||
"reg_mb_email": $("#reg_mb_email").val(),
|
||||
"reg_mb_id": encodeURIComponent($("#reg_mb_id").val())
|
||||
},
|
||||
cache: false,
|
||||
async: false,
|
||||
@ -359,7 +359,7 @@ function wrestInitialized()
|
||||
//if (regexp.test(document.forms[i].elements[j].className)) {
|
||||
//document.forms[i].elements[j].style.backgroundColor = wrestFldDefaultColor;
|
||||
//document.forms[i].elements[j].className = "wrest_required";
|
||||
document.forms[i].elements[j].style.backgroundImage = "url('"+g4_url+"/js/wrest.gif')";
|
||||
document.forms[i].elements[j].style.backgroundImage = "url('"+g4_img_url+"/wrest.gif')";
|
||||
document.forms[i].elements[j].style.backgroundPosition = "top right";
|
||||
document.forms[i].elements[j].style.backgroundRepeat = "no-repeat";
|
||||
}
|
||||
|
||||
@ -280,9 +280,7 @@ function get_file($bo_table, $wr_id)
|
||||
$file[$no]['download'] = $row['bf_download'];
|
||||
// 4.00.11 - 파일 path 추가
|
||||
$file[$no]['path'] = G4_DATA_URL.'/file/'.$bo_table;
|
||||
//$file[$no]['size'] = get_filesize("{$file[$no]['path']}/$row['bf_file']");
|
||||
$file[$no]['size'] = get_filesize($row['bf_filesize']);
|
||||
//$file[$no]['datetime'] = date("Y-m-d H:i:s", @filemtime("$g4['path']/data/file/$bo_table/$row['bf_file']"));
|
||||
$file[$no]['datetime'] = $row['bf_datetime'];
|
||||
$file[$no]['source'] = addslashes($row['bf_source']);
|
||||
$file[$no]['bf_content'] = $row['bf_content'];
|
||||
@ -290,8 +288,6 @@ function get_file($bo_table, $wr_id)
|
||||
//$file[$no]['view'] = view_file_link($row['bf_file'], $file[$no]['content']);
|
||||
$file[$no]['view'] = view_file_link($row['bf_file'], $row['bf_width'], $row['bf_height'], $file[$no]['content']);
|
||||
$file[$no]['file'] = $row['bf_file'];
|
||||
// prosper 님 제안
|
||||
//$file[$no]['imgsize'] = @getimagesize("{$file[$no]['path']}/$row['bf_file']");
|
||||
$file[$no]['image_width'] = $row['bf_width'] ? $row['bf_width'] : 640;
|
||||
$file[$no]['image_height'] = $row['bf_height'] ? $row['bf_height'] : 480;
|
||||
$file[$no]['image_type'] = $row['bf_type'];
|
||||
@ -1055,21 +1051,6 @@ function view_file_link($file, $width, $height, $content='')
|
||||
// 이미지에 속성을 주지 않는 이유는 이미지 클릭시 원본 이미지를 보여주기 위한것임
|
||||
// 게시판설정 이미지보다 크다면 스킨의 자바스크립트에서 이미지를 줄여준다
|
||||
return "<img src='".G4_DATA_URL."/file/{$board['bo_table']}/".urlencode($file)."' onclick='image_window(this);' alt='{$content}'>";
|
||||
/*
|
||||
// 110106 : FLASH XSS 공격으로 인하여 코드 자체를 막음
|
||||
else if (preg_match("/\.($config['cf_flash_extension'])$/i", $file))
|
||||
//return "<embed src='$g4['path']/data/file/$board['bo_table']/$file' $attr></embed>";
|
||||
return "<script>doc_write(flash_movie('$g4['path']/data/file/$board['bo_table']/$file', '_g4_{$ids}', '$width', '$height', 'transparent'));</script>";
|
||||
*/
|
||||
//=============================================================================================
|
||||
// 동영상 파일에 악성코드를 심는 경우를 방지하기 위해 경로를 노출하지 않음
|
||||
//---------------------------------------------------------------------------------------------
|
||||
/*
|
||||
else if (preg_match("/\.($config['cf_movie_extension'])$/i", $file))
|
||||
//return "<embed src='$g4['path']/data/file/$board['bo_table']/$file' $attr></embed>";
|
||||
return "<script>doc_write(obj_movie('$g4['path']/data/file/$board['bo_table']/$file', '_g4_{$ids}', '$width', '$height'));</script>";
|
||||
*/
|
||||
//=============================================================================================
|
||||
}
|
||||
|
||||
|
||||
@ -1732,4 +1713,13 @@ function check_device($device)
|
||||
alert('모바일 전용 게시판입니다.', G4_URL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 게시판 최신글 캐시 파일 삭제
|
||||
function delete_cache_latest($bo_table)
|
||||
{
|
||||
foreach (glob(G4_DATA_PATH.'/cache/latest-'.$bo_table.'-*') as $filename) {
|
||||
unlink($filename);
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -60,7 +60,7 @@ function mobile_thumb($matches)
|
||||
$src = preg_replace("/^\.\.\//", "http://m.sir.co.kr/", $src);
|
||||
$absolute = preg_replace("/^http\:\/\/(www\.)?sir\.co\.kr\/(.*)$/", "/home/sir/$2", $src);
|
||||
|
||||
$thumb_dir = "$g4[path]/data/thumb/$bo_table";
|
||||
$thumb_dir = G4_DATA_PATH.'/thumb/'.$bo_table;
|
||||
if (!is_dir($thumb_dir)) {
|
||||
@mkdir($thumb_dir, 0707);
|
||||
@chmod($thumb_dir, 0707);
|
||||
@ -100,12 +100,12 @@ function mobile_thumb($matches)
|
||||
$src = trim($m[1]);
|
||||
//if ($is_admin) echo $src."<br>";
|
||||
if (preg_match("/\.(jpe?g|png)$/i", $src)) {
|
||||
// 상대경로(..)로 시작되면 sir.co.kr 도메인으로 여긴다.
|
||||
$src = preg_replace("/^\.\.\//", "http://sir.co.kr/", $src);
|
||||
// 상대경로(..)로 시작되면 도메인으로 여긴다.
|
||||
$src = preg_replace("/^\.\.\//", 'http://'.$_SERVER['SERVER_NAME'].'/', $src);
|
||||
|
||||
// 유일한 파일명을 만든다.
|
||||
$src_md5 = md5($src.$width);
|
||||
$thumb = "$g4[path]/data/thumb/{$bo_table}-{$wr_id}-{$src_md5}";
|
||||
$thumb = G4_DATA_PATH.'/thumb/'.$bo_table.'-'.$wr_id.'-'.$src_md5;
|
||||
|
||||
if (!file_exists($thumb)) {
|
||||
$result = mobile_create_thumb($src, $width, $thumb);
|
||||
|
||||
@ -1,4 +0,0 @@
|
||||
<?
|
||||
$g4_path = '../../..'; // common.php 의 상대 경로
|
||||
include_once($g4_path.'/common.php');
|
||||
?>
|
||||
|
Before Width: | Height: | Size: 154 B After Width: | Height: | Size: 107 B |
|
Before Width: | Height: | Size: 102 B After Width: | Height: | Size: 97 B |
|
Before Width: | Height: | Size: 114 B After Width: | Height: | Size: 145 B |
|
Before Width: | Height: | Size: 215 B After Width: | Height: | Size: 104 B |
|
Before Width: | Height: | Size: 71 B After Width: | Height: | Size: 71 B |
|
Before Width: | Height: | Size: 80 B After Width: | Height: | Size: 77 B |
|
Before Width: | Height: | Size: 80 B After Width: | Height: | Size: 97 B |
@ -1,5 +1,5 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
|
||||
$colspan = 5;
|
||||
@ -11,7 +11,7 @@ if ($is_nogood) $colspan++;
|
||||
|
||||
<? if (!$wr_id) {?><h1 id="bo_list_title"><?=$g4['title']?></h1><?}?>
|
||||
|
||||
<p id="bo_list_total">
|
||||
<!-- <p id="bo_list_total">
|
||||
<span>Total <?=number_format($total_count)?>건</span>
|
||||
<?=$page?> 페이지
|
||||
</p>
|
||||
@ -56,7 +56,7 @@ if ($is_nogood) $colspan++;
|
||||
<? if ($write_href) { ?><li><a href="<?=$write_href?>" class="btn01">글쓰기</a></li><? } ?>
|
||||
</ul>
|
||||
<? } ?>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<!-- 게시판 목록 시작 -->
|
||||
<div id="bo_list">
|
||||
@ -114,13 +114,13 @@ if ($is_nogood) $colspan++;
|
||||
<?
|
||||
// if ($list[$i]['link']['count']) { echo '['.$list[$i]['link']['count']}.']'; }
|
||||
// if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }
|
||||
/*
|
||||
|
||||
if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new'];
|
||||
if (isset($list[$i]['icon_hot'])) echo $list[$i]['icon_hot'];
|
||||
if (isset($list[$i]['icon_file'])) echo $list[$i]['icon_file'];
|
||||
if (isset($list[$i]['icon_link'])) echo $list[$i]['icon_link'];
|
||||
if (isset($list[$i]['icon_secret'])) echo $list[$i]['icon_secret'];
|
||||
*/
|
||||
|
||||
?>
|
||||
</td>
|
||||
<td class="td_name"><?=$list[$i]['name']?></td>
|
||||
|
||||
@ -3,14 +3,14 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
||||
?>
|
||||
|
||||
<p id="bo_v_title"><?=$board['bo_subject']?></p>
|
||||
<p id="bo_v_title">
|
||||
<?=$board['bo_subject']?>
|
||||
<? if ($category_name) { // 분류가 지정되었다면 ?><?=($category_name ? "{$view['ca_name']} " : "");?><? } // 분류 출력 끝 ?>
|
||||
</p>
|
||||
|
||||
<div id="bo_v">
|
||||
|
||||
<h1 id="bo_v_h1">
|
||||
<? if ($category_name) { // 분류가 지정되었다면 ?><span><?=($category_name ? "{$view['ca_name']} " : "");?></span><? } // 분류 출력 끝 ?>
|
||||
<?=cut_str(get_text($view['wr_subject']), 70) // 글제목 출력?>
|
||||
</h1>
|
||||
<h1 id="bo_v_h1"><?=cut_str(get_text($view['wr_subject']), 70) // 글제목 출력?></h1>
|
||||
|
||||
<section id="bo_v_info">
|
||||
<h2>게시물 정보</h2>
|
||||
@ -20,6 +20,34 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
||||
댓글<strong><?=number_format($view['wr_comment'])?>건</strong>
|
||||
</section>
|
||||
|
||||
<nav id="bo_v_top">
|
||||
<h2>게시물 상단 버튼</h2>
|
||||
<?
|
||||
ob_start();
|
||||
?>
|
||||
<? if ($prev_href || $next_href) { ?>
|
||||
<ul class="bo_v_nb">
|
||||
<? if ($prev_href) { ?><li><a href="<?=$prev_href?>">이전글</a></li><? } ?>
|
||||
<? if ($next_href) { ?><li><a href="<?=$next_href?>">다음글</a></li><? } ?>
|
||||
</ul>
|
||||
<? } ?>
|
||||
|
||||
<ul class="bo_v_com">
|
||||
<? if ($update_href) { ?><li><a href="<?=$update_href?>">수정</a></li><? } ?>
|
||||
<? if ($delete_href) { ?><li><a href="<?=$delete_href?>" onclick="del(this.href); return false;">삭제</a></li><? } ?>
|
||||
<? if ($copy_href) { ?><li><a href="<?=$copy_href?>" onclick="board_move(this.href); return false;">복사</a></li><? } ?>
|
||||
<? if ($move_href) { ?><li><a href="<?=$move_href?>" onclick="board_move(this.href); return false;">이동</a></li><? } ?>
|
||||
<? if ($search_href) { ?><li><a href="<?=$search_href?>">검색</a></li><? } ?>
|
||||
<li><a href="<?=$list_href?>">목록</a></li>
|
||||
<? if ($reply_href) { ?><li><a href="<?=$reply_href?>">답변</a></li><? } ?>
|
||||
<? if ($write_href) { ?><li><a href="<?=$write_href?>">글쓰기</a></li><? } ?>
|
||||
</ul>
|
||||
<?
|
||||
$link_buttons = ob_get_contents();
|
||||
ob_end_flush();
|
||||
?>
|
||||
</nav>
|
||||
|
||||
<?
|
||||
if ($view['file']['count']) {
|
||||
$cnt = 0;
|
||||
@ -85,34 +113,6 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
||||
</section>
|
||||
<? } ?>
|
||||
|
||||
<nav id="bo_v_top">
|
||||
<h2>게시물 상단 버튼</h2>
|
||||
<?
|
||||
ob_start();
|
||||
?>
|
||||
<? if ($prev_href || $next_href) { ?>
|
||||
<ul class="bo_v_nb">
|
||||
<? if ($prev_href) { ?><li><a href="<?=$prev_href?>">이전글</a></li><? } ?>
|
||||
<? if ($next_href) { ?><li><a href="<?=$next_href?>">다음글</a></li><? } ?>
|
||||
</ul>
|
||||
<? } ?>
|
||||
|
||||
<ul class="bo_v_com">
|
||||
<? if ($update_href) { ?><li><a href="<?=$update_href?>">수정</a></li><? } ?>
|
||||
<? if ($delete_href) { ?><li><a href="<?=$delete_href?>" onclick="del(this.href); return false;">삭제</a></li><? } ?>
|
||||
<? if ($copy_href) { ?><li><a href="<?=$copy_href?>" onclick="board_move(this.href); return false;">복사</a></li><? } ?>
|
||||
<? if ($move_href) { ?><li><a href="<?=$move_href?>" onclick="board_move(this.href); return false;">이동</a></li><? } ?>
|
||||
<? if ($search_href) { ?><li><a href="<?=$search_href?>">검색</a></li><? } ?>
|
||||
<li><a href="<?=$list_href?>">목록</a></li>
|
||||
<? if ($reply_href) { ?><li><a href="<?=$reply_href?>">답변</a></li><? } ?>
|
||||
<? if ($write_href) { ?><li><a href="<?=$write_href?>">글쓰기</a></li><? } ?>
|
||||
</ul>
|
||||
<?
|
||||
$link_buttons = ob_get_contents();
|
||||
ob_end_flush();
|
||||
?>
|
||||
</nav>
|
||||
|
||||
<article id="bo_v_atc">
|
||||
<header>
|
||||
<h1>본문</h1>
|
||||
@ -143,7 +143,7 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
||||
|
||||
<? if ($scrap_href || $good_href || $nogood_href) { ?>
|
||||
<div id="bo_v_act">
|
||||
<? if ($scrap_href) { ?><a href="<? echo $scrap_href; ?>" target="_blank" onclick="win_scrap(this.href); return false;" class="btn01">스크랩</a><? } ?>
|
||||
<? if ($scrap_href) { ?><a href="<?=$scrap_href; ?>" target="_blank" onclick="win_scrap(this.href); return false;" class="btn01">스크랩</a><? } ?>
|
||||
<? if ($good_href) {?><a href="<?=$good_href?>" class="btn01" target="hiddenframe">추천 <strong><?=number_format($view['wr_good'])?></strong></a><? } ?>
|
||||
<? if ($nogood_href) {?><a href="<?=$nogood_href?>" class="btn01" target="hiddenframe">비추천 <strong><?=number_format($view['wr_nogood'])?></strong></a><? } ?>
|
||||
</div>
|
||||
|
||||
@ -10,7 +10,7 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
|
||||
|
||||
<!-- 댓글 리스트 -->
|
||||
<section id="bo_vc">
|
||||
<h2>댓글</h2>
|
||||
<h2>댓글목록</h2>
|
||||
<?
|
||||
for ($i=0; $i<count($list); $i++) {
|
||||
$comment_id = $list[$i]['wr_id'];
|
||||
@ -39,7 +39,7 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
|
||||
|
||||
<!-- 댓글 출력 -->
|
||||
<p>
|
||||
<? if (strstr($list[$i]['wr_option'], "secret")) echo "<img src=\"\" alt=\"비밀글\"><br>";?>
|
||||
<? if (strstr($list[$i]['wr_option'], "secret")) echo "<img src=\"".$board_skin_url."/img/icon_secret.gif\" alt=\"비밀글\">";?>
|
||||
<?=$str?>
|
||||
</p>
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 154 B After Width: | Height: | Size: 107 B |
|
Before Width: | Height: | Size: 102 B After Width: | Height: | Size: 97 B |
|
Before Width: | Height: | Size: 114 B After Width: | Height: | Size: 145 B |
|
Before Width: | Height: | Size: 215 B After Width: | Height: | Size: 104 B |
|
Before Width: | Height: | Size: 71 B After Width: | Height: | Size: 71 B |
|
Before Width: | Height: | Size: 80 B After Width: | Height: | Size: 77 B |
|
Before Width: | Height: | Size: 80 B After Width: | Height: | Size: 97 B |
@ -1,5 +0,0 @@
|
||||
<?
|
||||
$g4_path = "../../.."; // common.php 의 상대 경로
|
||||
include_once("$g4_path/common.php");
|
||||
header("Content-Type: text/html; charset=$g4[charset]");
|
||||
?>
|
||||
@ -1,113 +0,0 @@
|
||||
/*
|
||||
** 2010.03.12 : jQuery 로 대체하여 앞으로 사용하지 않습니다.
|
||||
*/
|
||||
|
||||
// 회원아이디 검사
|
||||
function reg_mb_id_check() {
|
||||
var url = member_skin_path + "/ajax_mb_id_check.php";
|
||||
var para = "reg_mb_id="+encodeURIComponent($F('reg_mb_id'));
|
||||
var myAjax = new Ajax.Request(
|
||||
url,
|
||||
{
|
||||
method: 'post',
|
||||
// 주소창 보안 방지 javascript:void(document.fregisterform.mb_id_enabled.value='000');
|
||||
// 동기식 (폼전송시 입력값이 바른지 검사한 후 mb_id_enabled 를 체크하기 때문)
|
||||
asynchronous: false,
|
||||
parameters: para,
|
||||
onComplete: return_reg_mb_id_check
|
||||
});
|
||||
}
|
||||
|
||||
function return_reg_mb_id_check(req) {
|
||||
var msg = $('msg_mb_id');
|
||||
var result = req.responseText;
|
||||
switch(result) {
|
||||
case '110' : msg.update('영문자, 숫자, _ 만 입력하세요.').setStyle({ color: 'red' }); break;
|
||||
case '120' : msg.update('최소 3자이상 입력하세요.').setStyle({ color: 'red' }); break;
|
||||
case '130' : msg.update('이미 사용중인 아이디 입니다.').setStyle({ color: 'red' }); break;
|
||||
case '140' : msg.update('예약어로 사용할 수 없는 아이디 입니다.').setStyle({ color: 'red' }); break;
|
||||
case '000' : msg.update('사용하셔도 좋은 아이디 입니다.').setStyle({ color: 'blue' }); break;
|
||||
default : alert( '잘못된 접근입니다.\n\n' + result ); break;
|
||||
}
|
||||
$('mb_id_enabled').value = result;
|
||||
}
|
||||
|
||||
// 별명 검사
|
||||
function reg_mb_nick_check() {
|
||||
var url = member_skin_path + "/ajax_mb_nick_check.php";
|
||||
var para = "reg_mb_nick="+encodeURIComponent($F('reg_mb_nick'));
|
||||
var myAjax = new Ajax.Request(
|
||||
url,
|
||||
{
|
||||
method: 'post',
|
||||
// 주소창 보안 방지 javascript:void(document.fregisterform.mb_id_enabled.value='000');
|
||||
// 동기식 (폼전송시 입력값이 바른지 검사한 후 mb_id_enabled 를 체크하기 때문)
|
||||
asynchronous: false,
|
||||
parameters: para,
|
||||
onComplete: return_reg_mb_nick_check
|
||||
});
|
||||
}
|
||||
|
||||
function return_reg_mb_nick_check(req) {
|
||||
var msg = $('msg_mb_nick');
|
||||
var result = req.responseText;
|
||||
switch(result) {
|
||||
case '110' : msg.update('별명은 공백없이 한글, 영문, 숫자만 입력 가능합니다.').setStyle({ color: 'red' }); break;
|
||||
case '120' : msg.update('한글 2글자, 영문 4글자 이상 입력 가능합니다.').setStyle({ color: 'red' }); break;
|
||||
case '130' : msg.update('이미 존재하는 별명입니다.').setStyle({ color: 'red' }); break;
|
||||
case '000' : msg.update('사용하셔도 좋은 별명 입니다.').setStyle({ color: 'blue' }); break;
|
||||
default : alert( '잘못된 접근입니다.\n\n' + result ); break;
|
||||
}
|
||||
$('mb_nick_enabled').value = result;
|
||||
}
|
||||
|
||||
|
||||
// E-mail 주소 검사
|
||||
function reg_mb_email_check() {
|
||||
var url = member_skin_path + "/ajax_mb_email_check.php";
|
||||
var para = "reg_mb_id="+encodeURIComponent($F('reg_mb_id'));
|
||||
para += "®_mb_email="+encodeURIComponent($F('reg_mb_email'));
|
||||
var myAjax = new Ajax.Request(
|
||||
url,
|
||||
{
|
||||
method: 'post',
|
||||
// 주소창 보안 방지 javascript:void(document.fregisterform.mb_email_enabled.value='000');
|
||||
// 동기식 (폼전송시 입력값이 바른지 검사한 후 mb_email_enabled 를 체크하기 때문)
|
||||
asynchronous: false,
|
||||
parameters: para,
|
||||
onComplete: return_reg_mb_email_check
|
||||
});
|
||||
}
|
||||
|
||||
function return_reg_mb_email_check(req) {
|
||||
var msg = $('msg_mb_email');
|
||||
var result = req.responseText;
|
||||
switch(result) {
|
||||
case '110' : msg.update('E-mail 주소를 입력하십시오.').setStyle({ color: 'red' }); break;
|
||||
case '120' : msg.update('E-mail 주소가 형식에 맞지 않습니다.').setStyle({ color: 'red' }); break;
|
||||
case '130' : msg.update('이미 존재하는 E-mail 주소입니다.').setStyle({ color: 'red' }); break;
|
||||
case '000' : msg.update('사용하셔도 좋은 E-mail 주소입니다.').setStyle({ color: 'blue' }); break;
|
||||
default : alert( '잘못된 접근입니다.\n\n' + result ); break;
|
||||
}
|
||||
$('mb_email_enabled').value = result;
|
||||
}
|
||||
|
||||
// 세션에 저장된 토큰을 얻는다.
|
||||
function get_token() {
|
||||
var url = member_skin_path + "/ajax_get_token.php";
|
||||
var para = "reg_mb_id="+encodeURIComponent($F('reg_mb_id'));
|
||||
para += "®_mb_email="+encodeURIComponent($F('reg_mb_email'));
|
||||
var myAjax = new Ajax.Request(
|
||||
url,
|
||||
{
|
||||
method: 'post',
|
||||
asynchronous: false,
|
||||
parameters: para,
|
||||
onComplete: return_get_token
|
||||
});
|
||||
}
|
||||
|
||||
function return_get_token(req) {
|
||||
var result = req.responseText;
|
||||
$('mb_token').value = result;
|
||||
}
|
||||
@ -1,5 +1,5 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<div id="formmail" class="new_win">
|
||||
@ -65,8 +65,6 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script src="<?="$g4[path]/js/md5.js"?>"></script>
|
||||
<script src="<?="$g4[path]/js/jquery.kcaptcha.js"?>"></script>
|
||||
<script>
|
||||
with (document.fformmail) {
|
||||
if (typeof fname != "undefined")
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<div id="mb_login">
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 자신만의 코드를 넣어주세요.
|
||||
?>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<div id="mb_confirm">
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<div id="memo_list" class="new_win">
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<div id="memo_write" class="new_win">
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
$nick = get_sideview($mb['mb_id'], $mb['mb_nick'], $mb['mb_email'], $mb['mb_homepage']);
|
||||
if($kind == "recv") {
|
||||
$kind_str = "보낸";
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<div id="pw_confirm">
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<div id="find_info" class="new_win">
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<div id="profile" class="new_win">
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<form id="fregister" name="fregister" method="POST" action="<?=$register_action_url?>" onsubmit="return fregister_submit(this);" autocomplete="off">
|
||||
|
||||
@ -1,11 +1,8 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<script>
|
||||
var member_skin_url = "<?=$member_skin_url?>";
|
||||
</script>
|
||||
<script src="<?=$member_skin_url?>/ajax_register_form.jquery.js"></script>
|
||||
<script src="<?=G4_JS_URL?>/jquery.register_form.js"></script>
|
||||
|
||||
<form id="fregisterform" name="fregisterform" method="post" action="<?=$register_action_url?>" onsubmit="return fregisterform_submit(this);" enctype="multipart/form-data" autocomplete="off">
|
||||
<input type="hidden" name="w" value="<?=$w?>">
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<div id="reg_result">
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 자신만의 코드를 넣어주세요.
|
||||
?>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<div id="scrap" class="new_win">
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<div id="scrap_do" class="new_win">
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<div id="post_code" class="new_win">
|
||||
|
||||
2
tail.php
@ -10,7 +10,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<h1><?=$config['cf_title']?> 정보</h1>
|
||||
<?=popular('basic'); // 인기검색어 ?>
|
||||
<?=visit("basic"); // 방문자수 ?>
|
||||
<div id="ft_catch"><a href="<?=$g4['url']?>/"><img src="<?=G4_URL?>/img/ft_catch.jpg" alt="Sharing All Possibilities"></a></div>
|
||||
<div id="ft_catch"><a href="<?=$g4['url']?>/"><img src="<?=G4_IMG_URL?>/ft_catch.jpg" alt="Sharing All Possibilities"></a></div>
|
||||
<div id="ft_copy">
|
||||
<p>Copyright © <b>소유하신 도메인.</b> All rights reserved.</p>
|
||||
</div>
|
||||
|
||||