관리자 모드 땀표 전쟁, 회원추가 완료

This commit is contained in:
whitedot
2012-11-01 18:12:13 +09:00
parent 6f10749461
commit 54b20eff74
58 changed files with 962 additions and 945 deletions

View File

@ -3,7 +3,7 @@ if (!defined("_GNUBOARD_")) exit;
$begin_time = get_microtime();
$administrator = 1;
include_once("$g4[path]/head.sub.php");
include_once($g4['path'].'/head.sub.php');
function print_menu1($key, $no)
{
@ -24,7 +24,7 @@ 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 .= "&nbsp;&nbsp;<img src='{$g4[admin_path]}/img/icon.gif' align=absmiddle> ";
// if ($no == 2) $str .= "&nbsp;&nbsp;<img src='{$g4['admin_path']}/img/icon.gif' align=absmiddle> ";
$str .= '<li id="gnb_'.$menu[$key][$i][3].'"><a href="'.$menu[$key][$i][2].'">'.$menu[$key][$i][1].'</a></li>'.PHP_EOL;
$auth_menu[$menu[$key][$i][0]] = $menu[$key][$i][1];
@ -87,36 +87,37 @@ function textarea_size(fld, size)
<?
foreach($amenu as $key=>$value)
{
$href1 = $href2 = "";
if ($menu["menu{$key}"][0][2])
$href1 = $href2 = '';
if ($menu['menu'.$key][0][2])
{
$href1 = "<a href='".$menu["menu{$key}"][0][2]."'>";
$href2 = "</a>";
$href1 = '<a href="'.$menu['menu'.$key][0][2].'">';
$href2 = '</a>';
}
echo "<li id='gnb_".$menu["menu{$key}"][0][3]."'>";
echo $href1 . $menu["menu{$key}"][0][1] . $href2;
echo print_menu1("menu{$key}", 1);
echo "</li>";
echo '<li id="gnb_'.$menu['menu'.$key][0][3].'">';
echo $href1 . $menu['menu'.$key][0][1] . $href2;
echo print_menu1('menu'.$key, 1);
echo '</li>';
}
?>
</ul>
</nav>
<div id='current_location'>
<?
$tmp_menu = "";
$tmp_menu = '';
if (isset($sub_menu))
$tmp_menu = substr($sub_menu, 0, 3);
if (isset($menu["menu{$tmp_menu}"][0][1]))
if (isset($menu['menu'.$tmp_menu][0][1]))
{
if ($menu["menu{$tmp_menu}"][0][2])
if ($menu['menu'.$tmp_menu][0][2])
{
echo "<a href='".$menu["menu{$tmp_menu}"][0][2];
echo $menu["menu{$tmp_menu}"][0][1];
echo "</a> > ";
echo '<a href="'.$menu['menu'.$tmp_menu][0][2];
echo $menu['menu'.$tmp_menu][0][1];
echo '</a> > ';
}
else
echo $menu["menu{$tmp_menu}"][0][1];
echo $menu['menu'.$tmp_menu][0][1];
}
?>
</div>

View File

@ -16,11 +16,11 @@ function get_skin_dir($skin, $len='')
$result_array = array();
$dirname = "$g4[path]/skin/$skin/";
$dirname = $g4['path'].'/skin/'.$skin.'/';
$handle = opendir($dirname);
while ($file = readdir($handle))
{
if($file == "."||$file == "..") continue;
if($file == '.'||$file == '..') continue;
if (is_dir($dirname.$file)) $result_array[] = $file;
}
@ -104,7 +104,7 @@ function member_delete($mb_id)
sql_query(" update $g4[board_table] set bo_admin = '' where bo_admin = '$mb_id' ");
// 아이콘 삭제
@unlink("$g4[path]/data/member/".substr($mb_id,0,2)."/$mb_id.gif");
@unlink("$g4['path']/data/member/".substr($mb_id,0,2)."/$mb_id.gif");
*/
}
@ -137,9 +137,9 @@ function get_member_id_select($name, $level, $selected='', $event='')
$str = "<select id='$name' name='$name' $event><option value=''>선택안함";
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$str .= "<option value='$row[mb_id]'";
if ($row[mb_id] == $selected) $str .= " selected";
$str .= ">$row[mb_id]</option>";
$str .= '<option value="'.$row['mb_id'].'"';
if ($row['mb_id'] == $selected) $str .= " selected";
$str .= '>'.$row['mb_id'].'</option>';
}
$str .= "</select>";
return $str;
@ -176,10 +176,10 @@ 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' border=0 align=absmiddle></span> ";
$s .= "<span onclick=\"javascript:textarea_size(document.getElementById('$fld'), ".$size*(-1).")\"><img src='$g4[admin_path]/img/btn_down.gif' border=0 align=absmiddle></span>";
$s .= "&nbsp;&nbsp;</td></tr></table>";
$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;
}
@ -190,10 +190,10 @@ function icon($act, $link="", $target="_parent")
global $g4;
$img = array("입력"=>"insert", "추가"=>"insert", "생성"=>"insert", "수정"=>"modify", "삭제"=>"delete", "이동"=>"move", "그룹"=>"move", "보기"=>"view", "미리보기"=>"view", "복사"=>"copy");
$icon = "<img src='{$g4[admin_path]}/img/icon_{$img[$act]}.gif' border=0 align=absmiddle title='$act' width=22 height=21>";
$icon = "<img src='{$g4['admin_path']}/img/icon_{$img[$act]}.gif' border=0 align=absmiddle title='$act' width=22 height=21>";
if ($link)
//$s = "<a href=\"$link\" target=\"$target\">$icon</a>";
$s = "<a href=\"$link\">$icon</a>";
//$s = "<a href="$link" target="$target">$icon</a>";
$s = '<a href="'.$link.'">'.$icon.'</a>';
else
$s = $icon;
return $s;
@ -219,21 +219,10 @@ function rm_rf($file)
}
}
// 삭제 대상 : 지운아빠 2012-11-01 : github issue #8의 comment 추가내용의 1. 내용 참조
// 프로그램 오류 때문에 임시로 살려둠
function help($help="", $left=0, $top=0)
{
global $g4;
static $idx = 0;
$idx++;
$help = preg_replace("/\n/", "<br>", $help);
$str = "<img src='$g4[admin_path]/img/icon_help.gif' border=0 width=15 height=15 align=absmiddle onclick=\"help('help$idx', $left, $top);\" style='cursor:hand;'>";
$str .= "<div id='help$idx' style='position:absolute; display:none; z-index:9999;'>";
$str .= "<div id='csshelp1'><div id='csshelp2'><div id='csshelp3'>$help</div></div></div>";
$str .= "</div>";
return $str;
}
// 출력순서
@ -267,7 +256,7 @@ if (!$member['mb_id'])
else if ($is_admin != "super")
{
$auth = array();
$sql = " select au_menu, au_auth from $g4[auth_table] where mb_id = '$member[mb_id]' ";
$sql = " select au_menu, au_auth from $g4[auth_table] where mb_id = '{$member['mb_id']}' ";
$result = sql_query($sql);
for($i=0; $row=sql_fetch_array($result); $i++)
{
@ -276,7 +265,7 @@ else if ($is_admin != "super")
if (!$i)
{
alert("최고관리자 또는 관리권한이 있는 회원만 접근 가능합니다.", $g4[path]);
alert("최고관리자 또는 관리권한이 있는 회원만 접근 가능합니다.", $g4['path']);
}
}
@ -286,7 +275,7 @@ if (get_session("ss_mb_key") !== $admin_key) {
session_destroy();
include_once("$g4[path]/lib/mailer.lib.php");
include_once($g4['path'].'/lib/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);

View File

@ -1,15 +1,15 @@
<?
$menu["menu100"] = array (
array("100000", "환경설정", "", "config"),
array("", "기본환경설정", "$g4[admin_path]/config_form.php", "cf_basic"),
array("", "관리권한설정", "$g4[admin_path]/auth_list.php", "cf_auth"),
array("100300", "메일 테스트", "$g4[admin_path]/sendmail_test.php", "cf_mailtest"),
//array("100400", "버전정보", "$g4[admin_path]/version.php", "cf_version"),
array("100500", "phpinfo()", "$g4[admin_path]/phpinfo.php", "cf_phpinfo"),
//array("100600", "업그레이드", "$g4[admin_path]/upgrade.php", "cf_upgrade"),
//array("100700", "복구/최적화", "$g4[admin_path]/repair.php", "cf_repair"),
//array("100800", "세션 삭제", "$g4[admin_path]/session_delete.php", "cf_delete"),
array("100900","캐쉬삭제","#", "cf_cache"),
array("", "phpMyAdmin", "$g4[path]/$g4[phpmyadmin_dir]", "cf_phpmyadmin")
$menu['menu100'] = array (
array('100000', '환경설정', '', 'config'),
array('', '기본환경설정', ''.$g4['admin_path'].'/config_form.php', 'cf_basic'),
array('', '관리권한설정', ''.$g4['admin_path'].'/auth_list.php', 'cf_auth'),
array('100300', '메일 테스트', ''.$g4['admin_path'].'/sendmail_test.php', 'cf_mailtest'),
//array('100400', '버전정보', ''.$g4['admin_path'].'/version.php', 'cf_version'),
array('100500', 'phpinfo()', ''.$g4['admin_path'].'/phpinfo.php', 'cf_phpinfo'),
//array('100600', '업그레이드', ''.$g4['admin_path'].'/upgrade.php', 'cf_upgrade'),
//array('100700', '복구/최적화', ''.$g4['admin_path'].'/repair.php', 'cf_repair'),
//array('100800', '세션 삭제', ''.$g4['admin_path'].'/session_delete.php', 'cf_delete'),
array('100900','캐쉬삭제','#', 'cf_cache'),
array('', 'phpMyAdmin', ''.$g4['path'].'/'.$g4['phpmyadmin_dir'].'', 'cf_phpmyadmin')
);
?>

View File

@ -1,10 +1,10 @@
<?
$menu["menu200"] = array (
array("200000", "회원관리", "", "member"),
array("200100", "회원관리", "$g4[admin_path]/member_list.php", "mb_list"),
array("200200", "포인트관리", "$g4[admin_path]/point_list.php", "mb_point"),
array("200300", "회원메일발송", "$g4[admin_path]/mail_list.php", "mb_mail"),
array("200800", "접속자현황", "$g4[admin_path]/visit_list.php", "mb_visit"),
array("200900", "투표관리", "$g4[admin_path]/poll_list.php", "mb_poll")
$menu['menu200'] = array (
array('200000', '회원관리', '', 'member'),
array('200100', '회원관리', ''.$g4['admin_path'].'/member_list.php', 'mb_list'),
array('200200', '포인트관리', ''.$g4['admin_path'].'/point_list.php', 'mb_point'),
array('200300', '회원메일발송', ''.$g4['admin_path'].'/mail_list.php', 'mb_mail'),
array('200800', '접속자현황', ''.$g4['admin_path'].'/visit_list.php', 'mb_visit'),
array('200900', '투표관리', ''.$g4['admin_path'].'/poll_list.php', 'mb_poll')
);
?>

View File

@ -1,9 +1,9 @@
<?
$menu["menu300"] = array (
array("300000", "게시판관리", "", "board"),
array("300100", "게시판관리", "$g4[admin_path]/board_list.php", "bbs_board"),
array("300200", "게시판그룹관리", "$g4[admin_path]/boardgroup_list.php", "bbs_group"),
array("300300", "인기검색어관리", "$g4[admin_path]/popular_list.php", "bbs_poplist"),
array("300400", "인기검색어순위", "$g4[admin_path]/popular_rank.php", "bbs_poprank"),
$menu['menu300'] = array (
array('300000', '게시판관리', '', 'board'),
array('300100', '게시판관리', ''.$g4['admin_path'].'/board_list.php', 'bbs_board'),
array('300200', '게시판그룹관리', ''.$g4['admin_path'].'/boardgroup_list.php', 'bbs_group'),
array('300300', '인기검색어관리', ''.$g4['admin_path'].'/popular_list.php', 'bbs_poplist'),
array('300400', '인기검색어순위', ''.$g4['admin_path'].'/popular_rank.php', 'bbs_poprank'),
);
?>

View File

@ -13,5 +13,5 @@ if (!defined("_GNUBOARD_")) exit;
<script src="<?=$g4['admin_path']?>/admin.js"></script>
<?
include_once("$g4[path]/tail.sub.php");
include_once($g4['path'].'/tail.sub.php');
?>

View File

@ -1,13 +1,13 @@
<?
$sub_menu = "100200";
include_once("./_common.php");
include_once('./_common.php');
if ($is_admin != "super")
alert("최고관리자만 접근 가능합니다.");
if ($is_admin != 'super')
alert('최고관리자만 접근 가능합니다.');
$token = get_token();
$sql_common = " from $g4[auth_table] a left join $g4[member_table] b on (a.mb_id=b.mb_id) ";
$sql_common = " from {$g4['auth_table']} a left join {$g4['member_table']} b on (a.mb_id=b.mb_id) ";
$sql_search = " where (1) ";
if ($stx) {
@ -46,7 +46,7 @@ $sql = " select *
$result = sql_query($sql);
if ($sfl || $stx || $sod) // 검색 혹은 정렬일 때만 처음 버튼을 보여줌 : 지운아빠 2012-10-31
$listall = '<a href="'.$_SERVER[PHP_SELF].'">처음으로</a>';
$listall = '<a href="'.$_SERVER['PHP_SELF'].'">처음으로</a>';
$g4[title] = "관리권한설정";
include_once("./admin.head.php");
@ -54,10 +54,10 @@ include_once("./admin.head.php");
$colspan = 5;
?>
<script src="<?=$g4[path]?>/js/sideview.js"></script>
<script src="<?=$g4['path']?>/js/sideview.js"></script>
<script>
var list_update_php = "";
var list_delete_php = "auth_list_delete.php";
var list_update_php = '';
var list_delete_php = 'auth_list_delete.php';
</script>
<form id="fsearch" name="fsearch" method="get">
@ -78,8 +78,6 @@ var list_delete_php = "auth_list_delete.php";
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="token" value="<?=$token?>">
<input type="hidden" name="mb_id[<?=$i?>]" value="<?=$row[mb_id]?>">
<input type="hidden" name="au_menu[<?=$i?>]" value="<?=$row[au_menu]?>">
<table>
<thead>
<tr>
@ -94,22 +92,26 @@ var list_delete_php = "auth_list_delete.php";
<?
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$mb_nick = get_sideview($row[mb_id], $row[mb_nick], $row[mb_email], $row[mb_homepage]);
$mb_nick = get_sideview($row['mb_id'], $row['mb_nick'], $row['mb_email'], $row['mb_homepage']);
// 메뉴번호가 바뀌는 경우에 현재 없는 저장된 메뉴는 삭제함
if (!isset($auth_menu[$row[au_menu]]))
{
sql_query(" delete from $g4[auth_table] where au_menu = '$row[au_menu]' ");
sql_query(" delete from {$g4['auth_table']} where au_menu = '{$row[au_menu]}' ");
continue;
}
$list = $i%2;
?>
<tr>
<td headers="th1"><input type="checkbox" id="chk" name="chk[]" value="<?=$i?>"></td>
<td headers="th2"><a href="?sfl=a.mb_id&amp;stx=<?=$row['mb_id']?>"><?=$row[mb_id]?></a></td>
<td headers="th1">
<input type="checkbox" id="chk" name="chk[]" value="<?=$i?>">
<input type="hidden" name="mb_id[<?=$i?>]" value="<?=$row['mb_id']?>">
<input type="hidden" name="au_menu[<?=$i?>]" value="<?=$row[au_menu]?>">
</td>
<td headers="th2"><a href="?sfl=a.mb_id&amp;stx=<?=$row['mb_id']?>"><?=$row['mb_id']?></a></td>
<td headers="th3"><?=$mb_nick?></td>
<td headers="th4"><?=$row['au_menu']?><?=$auth_menu[$row['au_menu']]?></td>
<td headers="th4"><?=$row[au_menu]?><?=$auth_menu[$row[au_menu]]?></td>
<td headers="th5"><?=$row['au_auth']?></td>
</tr>
<?
@ -122,7 +124,7 @@ if ($i==0)
</table>
<?
$pagelist = get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]?$qstr&amp;page=");
$pagelist = get_paging($config[cf_write_pages], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page=");
?>
<div><input type="button" value="선택삭제" onclick="btn_check(this.form, 'delete')"></div>
@ -152,30 +154,30 @@ else
<input type="hidden" name="token" value="<?=$token?>">
<fieldset>
<legend>관리권한 추가</legend>
<p>아래 양식에서 회원에게 관리권한을 부여하실 수 있습니다. <strong>r</strong>은 <strong>읽기</strong>권한, <strong>w</strong>는 <strong>입력</strong> 혹은 <strong>수정</strong>권한, <strong>d</strong>는 <strong>삭제</strong>권한입니다.</p>
<label for="mb_id">회원아이디</label>
<input type="text" id="mb_id" name="mb_id" required value='<?=$mb_id?>'>
<label for="au_menu">접근가능메뉴</label>
<select id="au_menu" name="au_menu" required>
<option value=''>선택하세요
<?
foreach($auth_menu as $key=>$value)
{
if (!(substr($key, -3) == "000" || $key == "-" || !$key))
echo '<option value="'.$key.'">'.$key.' '.$value;
}
?>
</select>
<input type="checkbox" id="r" name="r" value="r" checked>
<label for="r">r</label>
<input type="checkbox" id="w" name="w" value="w">
<label for="w">w</label>
<input type="checkbox" id="d" name="d" value="d">
<label for="d">d</label>
<label for="admin_password">관리자 패스워드</label>
<input type="password" id="admin_password" name="admin_password" required>
<input type="submit" value="확인">
<legend>관리권한 추가</legend>
<p>아래 양식에서 회원에게 관리권한을 부여하실 수 있습니다. <strong>r</strong>은 <strong>읽기</strong>권한, <strong>w</strong>는 <strong>입력</strong> 혹은 <strong>수정</strong>권한, <strong>d</strong>는 <strong>삭제</strong>권한입니다.</p>
<label for="mb_id">회원아이디</label>
<input type="text" id="mb_id" name="mb_id" required value='<?=$mb_id?>'>
<label for="au_menu">접근가능메뉴</label>
<select id="au_menu" name="au_menu" required>
<option value=''>선택하세요
<?
foreach($auth_menu as $key=>$value)
{
if (!(substr($key, -3) == "000" || $key == "-" || !$key))
echo '<option value="'.$key.'">'.$key.' '.$value;
}
?>
</select>
<input type="checkbox" id="r" name="r" value="r" checked>
<label for="r">r</label>
<input type="checkbox" id="w" name="w" value="w">
<label for="w">w</label>
<input type="checkbox" id="d" name="d" value="d">
<label for="d">d</label>
<label for="admin_password">관리자 패스워드</label>
<input type="password" id="admin_password" name="admin_password" required>
<input type="submit" value="추가">
</fieldset>
</form>

View File

@ -6,7 +6,7 @@ if ($is_admin != "super")
alert("최고관리자만 접근 가능합니다.");
$mb = get_member($mb_id);
if (!$mb[mb_id])
if (!$mb['mb_id'])
alert("존재하는 회원아이디가 아닙니다.");
check_token();
@ -16,14 +16,14 @@ if ($member[mb_password] != sql_password($_POST['admin_password'])) {
}
$sql = " insert into $g4[auth_table]
set mb_id = '$_POST[mb_id]',
set mb_id = '{$_POST['mb_id']}',
au_menu = '$_POST[au_menu]',
au_auth = '$_POST[r],$_POST[$w],$_POST[$d]' ";
au_auth = '{$_POST[r]},{$_POST[$w]},{$_POST[$d]}' ";
$result = sql_query($sql, FALSE);
if (!$result) {
$sql = " update $g4[auth_table]
set au_auth = '$_POST[r],$_POST[$w],_POST[$d]'
where mb_id = '$_POST[mb_id]'
set au_auth = '{$_POST[r]},{$_POST[$w]},{$_POST[$d]}'
where mb_id = '{$_POST['mb_id']}'
and au_menu = '$_POST[au_menu]' ";
sql_query($sql);
}

View File

@ -7,20 +7,20 @@ auth_check($auth[$sub_menu], "w");
$token = get_token();
$g4[title] = "게시판 복사";
include_once("$g4[path]/head.sub.php");
include_once("$g4['path']/head.sub.php");
?>
<link rel="stylesheet" href="./admin.style.css" type="text/css">
<form name="fboardcopy" method='post' onsubmit="return fboardcopy_check(this);" autocomplete="off">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="token" value="<?=$token?>">
<form id="fboardcopy" name="fboardcopy" method='post' onsubmit="return fboardcopy_check(this);" autocomplete="off">
<input type="hidden" id="bo_table" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" id="token" name="token" value="<?=$token?>">
<table width=100% cellpadding=0 cellspacing=0>
<colgroup width=30% class='col1 pad1 bold right'>
<colgroup width=70% class='col2 pad2'>
<tr><td colspan=2 height=5></td></tr>
<tr>
<td colspan=2 class=title align=left><img src='<?=$g4[admin_path]?>/img/icon_title.gif'> <?=$g4[title]?></td>
<td colspan=2 class=title align=left><img src='<?=$g4['admin_path']?>/img/icon_title.gif'> <?=$g4[title]?></td>
</tr>
<tr><td colspan=2 class='line1'></td></tr>
<tr class='ht'>
@ -29,17 +29,17 @@ include_once("$g4[path]/head.sub.php");
</tr>
<tr class='ht'>
<td>복사할 TABLE</td>
<td><input type=text class=ed name="target_table" size="20" maxlength="20" required alphanumericunderline itemname="TABLE"> 영문자, 숫자, _ 만 가능 (공백없이)</td>
<td><input type="text" class=ed id="target_table" name="target_table" size="20" maxlength="20" required alphanumericunderline id="TABLE" name="TABLE"> 영문자, 숫자, _ 만 가능 (공백없이)</td>
</tr>
<tr class='ht'>
<td>게시판 제목</td>
<td><input type=text class=ed name='target_subject' size=60 maxlength=120 required itemname='게시판 제목' value='[복사본] <?=$board[bo_subject]?>'></td>
<td><input type="text" class=ed id="target_subject" name="target_subject" size=60 maxlength=120 required 제목' value='[복사본] <?=$board[bo_subject]?>'></td>
</tr>
<tr class='ht'>
<td>복사 유형</td>
<td>
<input type="radio" name="copy_case" value="schema_only" checked>구조만
<input type="radio" name="copy_case" value="schema_data_both">구조와 데이터
<input type="radio" id="copy_case" name="copy_case" value="schema_only" checked>구조만
<input type="radio" id="copy_case" name="copy_case" value="schema_data_both">구조와 데이터
</td>
</tr>
<tr height=40>
@ -62,5 +62,5 @@ function fboardcopy_check(f)
</script>
<?
include_once("$g4[path]/tail.sub.php");
include_once("$g4['path']/tail.sub.php");
?>

View File

@ -105,11 +105,11 @@ $sql = " insert into $g4[board_table]
sql_query($sql);
// 게시판 폴더 생성
@mkdir("$g4[path]/data/file/$target_table", 0707);
@chmod("$g4[path]/data/file/$target_table", 0707);
@mkdir("$g4['path']/data/file/$target_table", 0707);
@chmod("$g4['path']/data/file/$target_table", 0707);
// 디렉토리에 있는 파일의 목록을 보이지 않게 한다.
$board_path = "$g4[path]/data/file/$target_table";
$board_path = "$g4['path']/data/file/$target_table";
$file = $board_path . "/index.php";
$f = @fopen($file, "w");
@fwrite($f, "");
@ -119,34 +119,34 @@ $f = @fopen($file, "w");
$copy_file = 0;
if ($copy_case == "schema_data_both")
{
$d = dir("$g4[path]/data/file/$bo_table");
$d = dir("$g4['path']/data/file/$bo_table");
while ($entry = $d->read())
{
if ($entry == "." || $entry == "..") continue;
/*
@copy("$g4[path]/data/file/$bo_table/$entry", "$g4[path]/data/file/$target_table/$entry");
@chmod("$g4[path]/data/file/$target_table/$entry", 0707);
@copy("$g4['path']/data/file/$bo_table/$entry", "$g4['path']/data/file/$target_table/$entry");
@chmod("$g4['path']/data/file/$target_table/$entry", 0707);
$copy_file++;
*/
// 김선용 201007 :
if(is_dir("$g4[path]/data/file/$bo_table/$entry")){
$dd = dir("$g4[path]/data/file/$bo_table/$entry");
@mkdir("$g4[path]/data/file/$target_table/$entry", 0707);
@chmod("$g4[path]/data/file/$target_table/$entry", 0707);
if(is_dir("$g4['path']/data/file/$bo_table/$entry")){
$dd = dir("$g4['path']/data/file/$bo_table/$entry");
@mkdir("$g4['path']/data/file/$target_table/$entry", 0707);
@chmod("$g4['path']/data/file/$target_table/$entry", 0707);
while ($entry2 = $dd->read()) {
if ($entry2 == "." || $entry2 == "..") continue;
@copy("$g4[path]/data/file/$bo_table/$entry/$entry2", "$g4[path]/data/file/$target_table/$entry/$entry2");
@chmod("$g4[path]/data/file/$target_table/$entry/$entry2", 0707);
@copy("$g4['path']/data/file/$bo_table/$entry/$entry2", "$g4['path']/data/file/$target_table/$entry/$entry2");
@chmod("$g4['path']/data/file/$target_table/$entry/$entry2", 0707);
$copy_file++;
}
$dd->close();
}
else {
@copy("$g4[path]/data/file/$bo_table/$entry", "$g4[path]/data/file/$target_table/$entry");
@chmod("$g4[path]/data/file/$target_table/$entry", 0707);
@copy("$g4['path']/data/file/$bo_table/$entry", "$g4['path']/data/file/$target_table/$entry");
@chmod("$g4['path']/data/file/$target_table/$entry", 0707);
$copy_file++;
}
}
@ -198,10 +198,10 @@ if (count($file_copy))
echo "<meta http-equiv='content-type' content='text/html; charset={$g4['charset']}'>";
echo "<script type='text/javascript'>";
echo "alert(\"게시판 복사 : {$bo_table} -> {$target_table}";
echo "alert("게시판 복사 : {$bo_table} -> {$target_table}";
if ($copy_file)
echo "\\n\\n복사한 파일 : {$copy_file}";
echo "\");";
echo "");";
echo "opener.document.location.reload();";
echo "</script>";

View File

@ -27,5 +27,5 @@ sql_query(" delete from $g4[board_file_table] where bo_table = '$tmp_bo_table' "
sql_query(" drop table $g4[write_prefix]$tmp_bo_table ", FALSE);
// 게시판 폴더 전체 삭제
rm_rf("$g4[path]/data/file/$tmp_bo_table");
rm_rf("$g4['path']/data/file/$tmp_bo_table");
?>

View File

@ -1,7 +1,7 @@
<?
$sub_menu = "300100";
include_once("./_common.php");
include_once ("$g4[path]/lib/cheditor4.lib.php");
include_once ("$g4['path']/lib/cheditor4.lib.php");
auth_check($auth[$sub_menu], "w");
@ -51,7 +51,7 @@ if ($w == "") {
alert("존재하지 않은 게시판 입니다.");
if ($is_admin == "group") {
if ($member[mb_id] != $group[gr_admin])
if ($member['mb_id'] != $group[gr_admin])
alert("그룹이 틀립니다.");
}
@ -60,7 +60,7 @@ if ($w == "") {
if ($is_admin != "super") {
$group = get_group($board[gr_id]);
$is_admin = is_admin($member[mb_id]);
$is_admin = is_admin($member['mb_id']);
}
$g4[title] = $html_title;
@ -71,31 +71,31 @@ include_once ("./admin.head.php");
<?=cheditor1('bo_content_head', '100%', '200');?>
<?=cheditor1('bo_content_tail', '100%', '200');?>
<form name=fboardform method=post onsubmit="return fboardform_submit(this)" enctype="multipart/form-data">
<input type=hidden name="w" value="<?=$w?>">
<input type=hidden name="sfl" value="<?=$sfl?>">
<input type=hidden name="stx" value="<?=$stx?>">
<input type=hidden name="sst" value="<?=$sst?>">
<input type=hidden name="sod" value="<?=$sod?>">
<input type=hidden name="page" value="<?=$page?>">
<input type=hidden name="token" value="<?=$token?>">
<form id="fboardform" name="fboardform" method=post onsubmit="return fboardform_submit(this)" enctype="multipart/form-data">
<input type="hidden" id="w" name="w" value="<?=$w?>">
<input type="hidden" id="sfl" name="sfl" value="<?=$sfl?>">
<input type="hidden" id="stx" name="stx" value="<?=$stx?>">
<input type="hidden" id="sst" name="sst" value="<?=$sst?>">
<input type="hidden" id="sod" name="sod" value="<?=$sod?>">
<input type="hidden" id="page" name="page" value="<?=$page?>">
<input type="hidden" id="token" name="token" value="<?=$token?>">
<table width=100% cellpadding=0 cellspacing=0 border=0>
<colgroup width=5% class='left'>
<colgroup width=20% class='col1 pad1 bold right'>
<colgroup width=75% class='col2 pad2'>
<tr>
<td colspan=3 class=title align=left><img src='<?=$g4[admin_path]?>/img/icon_title.gif'> <?=$html_title?></td>
<td colspan=3 class=title align=left><img src='<?=$g4['admin_path']?>/img/icon_title.gif'> <?=$html_title?></td>
</tr>
<tr><td colspan=3 class='line1'></td></tr>
<tr class='ht'>
<td></td>
<td>TABLE</td>
<td><input type=text class=ed name=bo_table size=30 maxlength=20 <?=$bo_table_attr?> itemname='TABLE' value='<?=$board[bo_table] ?>'>
<td><input type="text" class=ed id="bo_table" name="bo_table" size=30 maxlength=20 <?=$bo_table_attr?> id="TABLE" name="TABLE" value='<?=$board[bo_table] ?>'>
<?
if ($w == "")
echo "영문자, 숫자, _ 만 가능 (공백없이 20자 이내)";
else
echo "<a href='$g4[bbs_path]/board.php?bo_table=$board[bo_table]'><img src='$g4[admin_path]/img/icon_view.gif' border=0 align=absmiddle></a>";
echo "<a href='$g4[bbs_path]/board.php?bo_table=$board[bo_table]'><img src='$g4['admin_path']/img/icon_view.gif' border=0 align=absmiddle></a>";
?>
</td>
</tr>
@ -103,24 +103,24 @@ include_once ("./admin.head.php");
<td></td>
<td>그룹</td>
<td>
<?=get_group_select('gr_id', $board[gr_id], "required itemname='그룹'");?>
<?=get_group_select('gr_id', $board[gr_id], "required>
<? if ($w=='u') { ?><a href="javascript:location.href='./board_list.php?sfl=a.gr_id&stx='+document.fboardform.gr_id.value;">동일그룹게시판목록</a><?}?></td>
</tr>
<tr class='ht'>
<td></td>
<td>게시판 제목</td>
<td>
<input type=text class=ed name=bo_subject size=60 maxlength=120 required itemname='게시판 제목' value='<?=get_text($board[bo_subject])?>'>
<input type="text" class=ed id="bo_subject" name="bo_subject" size=60 maxlength=120 required 제목' value='<?=get_text($board[bo_subject])?>'>
</td>
</tr>
<tr class='ht'>
<td></td>
<td>상단 이미지</td>
<td>
<input type=file name=bo_image_head class=ed size=60>
<input type="file" id="bo_image_head" name="bo_image_head" class=ed size=60>
<?
if ($board[bo_image_head])
echo "<br><a href='$g4[path]/data/file/{$board['bo_table']}/$board[bo_image_head]' target='_blank'>$board[bo_image_head]</a> <input type=checkbox name='bo_image_head_del' value='$board[bo_image_head]'> 삭제";
echo "<br><a href='$g4['path']/data/file/{$board['bo_table']}/$board[bo_image_head]' target='_blank'>$board[bo_image_head]</a> <input type="checkbox" id="bo_image_head_del" name="bo_image_head_del" value='$board[bo_image_head]'> 삭제";
?>
</td>
</tr>
@ -128,10 +128,10 @@ include_once ("./admin.head.php");
<td></td>
<td>하단 이미지</td>
<td>
<input type=file name=bo_image_tail class=ed size=60>
<input type="file" id="bo_image_tail" name="bo_image_tail" class=ed size=60>
<?
if ($board[bo_image_tail])
echo "<br><a href='$g4[path]/data/file/{$board['bo_table']}/$board[bo_image_tail]' target='_blank'>$board[bo_image_tail]</a> <input type=checkbox name='bo_image_tail_del' value='$board[bo_image_tail]'> 삭제";
echo "<br><a href='$g4['path']/data/file/{$board['bo_table']}/$board[bo_image_tail]' target='_blank'>$board[bo_image_tail]</a> <input type="checkbox" id="bo_image_tail_del" name="bo_image_tail_del" value='$board[bo_image_tail]'> 삭제";
?>
</td>
</tr>
@ -141,7 +141,7 @@ include_once ("./admin.head.php");
<td></td>
<td>카운트 조정</td>
<td>
<input type=checkbox name=proc_count value=1> 카운트를 조정합니다.
<input type="checkbox" id="proc_count" name="proc_count" value="1"> 카운트를 조정합니다.
(현재 원글수 : <?=number_format($board[bo_count_write])?> , 현재 코멘트수 : <?=number_format($board[bo_count_comment])?>)
<?=help("게시판 목록에서 글의 번호가 맞지 않을 경우에 체크하십시오.")?>
</td>
@ -151,16 +151,16 @@ include_once ("./admin.head.php");
<tr><td colspan=3 class='line2'></td></tr>
<tr class='ht'>
<td>
<input type=checkbox name=chk_admin value=1>
<input type="checkbox" id="chk_admin" name="chk_admin" value="1">
<?=help("같은 그룹에 속한 게시판의 설정을 동일하게 변경할 경우에 체크합니다.");?>
</td>
<td>게시판 관리자</td>
<td><input type=text class=ed name=bo_admin maxlength=20 value='<?=$board[bo_admin]?>'></td>
<td><input type="text" class=ed id="bo_admin" name="bo_admin" maxlength=20 value='<?=$board[bo_admin]?>'></td>
</tr>
<tr><td colspan=3 class='line2'></td></tr>
<tr class='ht'>
<td><input type=checkbox name=chk_list_level value=1></td>
<td><input type="checkbox" id="chk_list_level" name="chk_list_level" value="1"></td>
<td>목록보기 권한</td>
<td>
<?=get_member_level_select('bo_list_level', 1, 10, $board[bo_list_level]) ?>
@ -168,47 +168,47 @@ include_once ("./admin.head.php");
</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_read_level value=1></td>
<td><input type="checkbox" id="chk_read_level" name="chk_read_level" value="1"></td>
<td>글읽기 권한</td>
<td><?=get_member_level_select('bo_read_level', 1, 10, $board[bo_read_level]) ?></td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_write_level value=1></td>
<td><input type="checkbox" id="chk_write_level" name="chk_write_level" value="1"></td>
<td>글쓰기 권한</td>
<td><?=get_member_level_select('bo_write_level', 1, 10, $board[bo_write_level]) ?></td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_reply_level value=1></td>
<td><input type="checkbox" id="chk_reply_level" name="chk_reply_level" value="1"></td>
<td>글답변 권한</td>
<td><?=get_member_level_select('bo_reply_level', 1, 10, $board[bo_reply_level]) ?></td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_comment_level value=1></td>
<td><input type="checkbox" id="chk_comment_level" name="chk_comment_level" value="1"></td>
<td>코멘트쓰기 권한</td>
<td><?=get_member_level_select('bo_comment_level', 1, 10, $board[bo_comment_level]) ?></td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_link_level value=1></td>
<td><input type="checkbox" id="chk_link_level" name="chk_link_level" value="1"></td>
<td>링크 권한</td>
<td><?=get_member_level_select('bo_link_level', 1, 10, $board[bo_link_level]) ?></td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_upload_level value=1></td>
<td><input type="checkbox" id="chk_upload_level" name="chk_upload_level" value="1"></td>
<td>업로드 권한</td>
<td><?=get_member_level_select('bo_upload_level', 1, 10, $board[bo_upload_level]) ?></td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_download_level value=1></td>
<td><input type="checkbox" id="chk_download_level" name="chk_download_level" value="1"></td>
<td>다운로드 권한</td>
<td><?=get_member_level_select('bo_download_level', 1, 10, $board[bo_download_level]) ?></td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_html_level value=1></td>
<td><input type="checkbox" id="chk_html_level" name="chk_html_level" value="1"></td>
<td>HTML 쓰기 권한</td>
<td><?=get_member_level_select('bo_html_level', 1, 10, $board[bo_html_level]) ?></td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_trackback_level value=1></td>
<td><input type="checkbox" id="chk_trackback_level" name="chk_trackback_level" value="1"></td>
<td>트랙백쓰기 권한</td>
<td>
<?=get_member_level_select('bo_trackback_level', 1, 10, $board[bo_trackback_level]) ?>
@ -218,148 +218,148 @@ include_once ("./admin.head.php");
<tr><td colspan=3 class='line2'></td></tr>
<tr class='ht'>
<td><input type=checkbox name=chk_count_modify value=1></td>
<td><input type="checkbox" id="chk_count_modify" name="chk_count_modify" value="1"></td>
<td>원글 수정 불가</td>
<td>코멘트 <input type=text class=ed name=bo_count_modify size=3 required numeric itemname='원글 수정 불가 코멘트수' value='<?=$board[bo_count_modify]?>'>개 이상 달리면 수정불가</td>
<td>코멘트 <input type="text" class=ed id="bo_count_modify" name="bo_count_modify" size=3 required numeric 수정 불가 코멘트수' value='<?=$board[bo_count_modify]?>'>개 이상 달리면 수정불가</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_count_delete value=1></td>
<td><input type="checkbox" id="chk_count_delete" name="chk_count_delete" value="1"></td>
<td>원글 삭제 불가</td>
<td>코멘트 <input type=text class=ed name=bo_count_delete size=3 required numeric itemname='원글 삭제 불가 코멘트수' value='<?=$board[bo_count_delete]?>'>개 이상 달리면 삭제불가</td>
<td>코멘트 <input type="text" class=ed id="bo_count_delete" name="bo_count_delete" size=3 required numeric 삭제 불가 코멘트수' value='<?=$board[bo_count_delete]?>'>개 이상 달리면 삭제불가</td>
</tr>
<tr><td colspan=3 class='line2'></td></tr>
<tr class='ht'>
<td></td>
<td>포인트 설정</td>
<td><input type=checkbox name="chk_point" onclick="set_point(this.form)"> 환경설정에 입력된 포인트로 설정</td>
<td><input type="checkbox" id="chk_point" name="chk_point" onclick="set_point(this.form)"> 환경설정에 입력된 포인트로 설정</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_read_point value=1></td>
<td><input type="checkbox" id="chk_read_point" name="chk_read_point" value="1"></td>
<td>글읽기 포인트</td>
<td><input type=text class=ed name=bo_read_point size=10 required itemname='글읽기 포인트' value='<?=$board[bo_read_point]?>'></td>
<td><input type="text" class=ed id="bo_read_point" name="bo_read_point" size=10 required 포인트' value='<?=$board[bo_read_point]?>'></td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_write_point value=1></td>
<td><input type="checkbox" id="chk_write_point" name="chk_write_point" value="1"></td>
<td>글쓰기 포인트</td>
<td><input type=text class=ed name=bo_write_point size=10 required itemname='글쓰기 포인트' value='<?=$board[bo_write_point]?>'></td>
<td><input type="text" class=ed id="bo_write_point" name="bo_write_point" size=10 required 포인트' value='<?=$board[bo_write_point]?>'></td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_comment_point value=1></td>
<td><input type="checkbox" id="chk_comment_point" name="chk_comment_point" value="1"></td>
<td>코멘트쓰기 포인트</td>
<td><input type=text class=ed name=bo_comment_point size=10 required itemname='답변, 코멘트쓰기 포인트' value='<?=$board[bo_comment_point]?>'></td>
<td><input type="text" class=ed id="bo_comment_point" name="bo_comment_point" size=10 required 코멘트쓰기 포인트' value='<?=$board[bo_comment_point]?>'></td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_download_point value=1></td>
<td><input type="checkbox" id="chk_download_point" name="chk_download_point" value="1"></td>
<td>다운로드 포인트</td>
<td><input type=text class=ed name=bo_download_point size=10 required itemname='다운로드 포인트' value='<?=$board[bo_download_point]?>'></td>
<td><input type="text" class=ed id="bo_download_point" name="bo_download_point" size=10 required 포인트' value='<?=$board[bo_download_point]?>'></td>
</tr>
<tr><td colspan=3 class='line2'></td></tr>
<tr class='ht'>
<td><input type=checkbox name=chk_category_list value=1></td>
<td><input type="checkbox" id="chk_category_list" name="chk_category_list" value="1"></td>
<td>분류 </td>
<td><input type=text class=ed name=bo_category_list style='width:80%;' value='<?=get_text($board[bo_category_list])?>'>
<input type=checkbox name=bo_use_category value='1' <?=$board[bo_use_category]?'checked':'';?>><b>사용</b>
<td><input type="text" class=ed id="bo_category_list" name="bo_category_list" style='width:80%;' value='<?=get_text($board[bo_category_list])?>'>
<input type="checkbox" id="bo_use_category" name="bo_use_category" value="1" <?=$board[bo_use_category]?'checked':'';?>><b>사용</b>
<?=help("분류와 분류 사이는 | 로 구분하세요. (예: 질문|답변) 첫자로 #은 입력하지 마세요. (예: #질문|#답변 [X])", -120)?>
</td>
</tr>
<tr><td colspan=3 class='line2'></td></tr>
<tr class='ht'>
<td><input type=checkbox name=chk_use_sideview value=1></td>
<td><input type="checkbox" id="chk_use_sideview" name="chk_use_sideview" value="1"></td>
<td>글쓴이 사이드뷰</td>
<td><input type=checkbox name=bo_use_sideview value='1' <?=$board[bo_use_sideview]?'checked':'';?>>사용 (글쓴이 클릭시 나오는 레이어 메뉴)</td>
<td><input type="checkbox" id="bo_use_sideview" name="bo_use_sideview" value="1" <?=$board[bo_use_sideview]?'checked':'';?>>사용 (글쓴이 클릭시 나오는 레이어 메뉴)</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_use_file_content value=1></td>
<td><input type="checkbox" id="chk_use_file_content" name="chk_use_file_content" value="1"></td>
<td>파일 설명 사용</td>
<td><input type=checkbox name=bo_use_file_content value='1' <?=$board[bo_use_file_content]?'checked':'';?>>사용</td>
<td><input type="checkbox" id="bo_use_file_content" name="bo_use_file_content" value="1" <?=$board[bo_use_file_content]?'checked':'';?>>사용</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_use_comment value=1></td>
<td><input type="checkbox" id="chk_use_comment" name="chk_use_comment" value="1"></td>
<td>코멘트 새창 사용</td>
<td><input type=checkbox name=bo_use_comment value='1' <?=$board[bo_use_comment]?'checked':'';?>>사용 (코멘트수 클릭시 새창으로 보임)</td>
<td><input type="checkbox" id="bo_use_comment" name="bo_use_comment" value="1" <?=$board[bo_use_comment]?'checked':'';?>>사용 (코멘트수 클릭시 새창으로 보임)</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_use_secret value=1></td>
<td><input type="checkbox" id="chk_use_secret" name="chk_use_secret" value="1"></td>
<td>비밀글 사용</td>
<td>
<select name=bo_use_secret id='bo_use_secret'>
<option value='0'>사용하지 않음
<option value='1'>체크박스
<option value='2'>무조건
<select id="bo_use_secret" name="bo_use_secret" id='bo_use_secret'>
<option value="0">사용하지 않음
<option value="1">체크박스
<option value="2">무조건
</select>
&nbsp;<?=help("'체크박스'는 글작성시 비밀글 체크가 가능합니다.\n\n'무조건'은 작성되는 모든글을 비밀글로 작성합니다. (관리자는 체크박스로 출력합니다.)\n\n스킨에 따라 적용되지 않을 수 있습니다.")?>
<script type='text/javascript'>document.getElementById('bo_use_secret').value='<?=$board[bo_use_secret]?>';</script>
</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_use_dhtml_editor value=1></td>
<td><input type="checkbox" id="chk_use_dhtml_editor" name="chk_use_dhtml_editor" value="1"></td>
<td>DHTML 에디터 사용</td>
<td>
<input type=checkbox name=bo_use_dhtml_editor value='1' <?=$board[bo_use_dhtml_editor]?'checked':'';?>>사용
<input type="checkbox" id="bo_use_dhtml_editor" name="bo_use_dhtml_editor" value="1" <?=$board[bo_use_dhtml_editor]?'checked':'';?>>사용
&nbsp;<?=help("글작성시 내용을 DHTML 에디터 기능으로 사용할 것인지 설정합니다.\n\n스킨에 따라 적용되지 않을 수 있습니다.")?>
</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_use_rss_view value=1></td>
<td><input type="checkbox" id="chk_use_rss_view" name="chk_use_rss_view" value="1"></td>
<td>RSS 보이기 사용</td>
<td>
<input type=checkbox name=bo_use_rss_view value='1' <?=$board[bo_use_rss_view]?'checked':'';?>>사용
<input type="checkbox" id="bo_use_rss_view" name="bo_use_rss_view" value="1" <?=$board[bo_use_rss_view]?'checked':'';?>>사용
&nbsp;<?=help("비회원 글읽기가 가능하고 RSS 보이기 사용에 체크가 되어야만 RSS 지원을 합니다.")?>
</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_use_good value=1></td>
<td><input type="checkbox" id="chk_use_good" name="chk_use_good" value="1"></td>
<td>추천 사용</td>
<td><input type=checkbox name=bo_use_good value='1' <?=$board[bo_use_good]?'checked':'';?>>사용</td>
<td><input type="checkbox" id="bo_use_good" name="bo_use_good" value="1" <?=$board[bo_use_good]?'checked':'';?>>사용</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_use_nogood value=1></td>
<td><input type="checkbox" id="chk_use_nogood" name="chk_use_nogood" value="1"></td>
<td>비추천 사용</td>
<td><input type=checkbox name=bo_use_nogood value='1' <?=$board[bo_use_nogood]?'checked':'';?>>사용</td>
<td><input type="checkbox" id="bo_use_nogood" name="bo_use_nogood" value="1" <?=$board[bo_use_nogood]?'checked':'';?>>사용</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_use_name value=1></td>
<td><input type="checkbox" id="chk_use_name" name="chk_use_name" value="1"></td>
<td>이름(실명) 사용</td>
<td><input type=checkbox name=bo_use_name value='1' <?=$board[bo_use_name]?'checked':'';?>>사용</td>
<td><input type="checkbox" id="bo_use_name" name="bo_use_name" value="1" <?=$board[bo_use_name]?'checked':'';?>>사용</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_use_signature value=1></td>
<td><input type="checkbox" id="chk_use_signature" name="chk_use_signature" value="1"></td>
<td>서명보이기 사용</td>
<td><input type=checkbox name=bo_use_signature value='1' <?=$board[bo_use_signature]?'checked':'';?>>사용</td>
<td><input type="checkbox" id="bo_use_signature" name="bo_use_signature" value="1" <?=$board[bo_use_signature]?'checked':'';?>>사용</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_use_ip_view value=1></td>
<td><input type="checkbox" id="chk_use_ip_view" name="chk_use_ip_view" value="1"></td>
<td>IP 보이기 사용</td>
<td><input type=checkbox name=bo_use_ip_view value='1' <?=$board[bo_use_ip_view]?'checked':'';?>>사용</td>
<td><input type="checkbox" id="bo_use_ip_view" name="bo_use_ip_view" value="1" <?=$board[bo_use_ip_view]?'checked':'';?>>사용</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_use_trackback value=1></td>
<td><input type="checkbox" id="chk_use_trackback" name="chk_use_trackback" value="1"></td>
<td>트랙백 사용</td>
<td><input type=checkbox name=bo_use_trackback value='1' <?=$board[bo_use_trackback]?'checked':'';?>>사용 (트랙백쓰기 권한 보다 우선함)</td>
<td><input type="checkbox" id="bo_use_trackback" name="bo_use_trackback" value="1" <?=$board[bo_use_trackback]?'checked':'';?>>사용 (트랙백쓰기 권한 보다 우선함)</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_use_list_content value=1></td>
<td><input type="checkbox" id="chk_use_list_content" name="chk_use_list_content" value="1"></td>
<td>목록에서 내용 사용</td>
<td><input type=checkbox name=bo_use_list_content value='1' <?=$board[bo_use_list_content]?'checked':'';?>>사용 (사용시 속도 느려짐)</td>
<td><input type="checkbox" id="bo_use_list_content" name="bo_use_list_content" value="1" <?=$board[bo_use_list_content]?'checked':'';?>>사용 (사용시 속도 느려짐)</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_use_list_view value=1></td>
<td><input type="checkbox" id="chk_use_list_view" name="chk_use_list_view" value="1"></td>
<td>전체목록보이기 사용</td>
<td><input type=checkbox name=bo_use_list_view value='1' <?=$board[bo_use_list_view]?'checked':'';?>>사용</td>
<td><input type="checkbox" id="bo_use_list_view" name="bo_use_list_view" value="1" <?=$board[bo_use_list_view]?'checked':'';?>>사용</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_use_email value=1></td>
<td><input type="checkbox" id="chk_use_email" name="chk_use_email" value="1"></td>
<td>메일발송 사용</td>
<td><input type=checkbox name=bo_use_email value='1' <?=$board[bo_use_email]?'checked':'';?>>사용</td>
<td><input type="checkbox" id="bo_use_email" name="bo_use_email" value="1" <?=$board[bo_use_email]?'checked':'';?>>사용</td>
</tr>
<tr><td colspan=3 class='line2'></td></tr>
<tr class='ht'>
<td><input type=checkbox name=chk_skin value=1></td>
<td><input type="checkbox" id="chk_skin" name="chk_skin" value="1"></td>
<td>스킨 디렉토리</td>
<td><select name=bo_skin required itemname="스킨 디렉토리">
<td><select id="bo_skin" name="bo_skin" required id="스킨 디렉토리" name="스킨 디렉토리">
<?
$arr = get_skin_dir("board");
for ($i=0; $i<count($arr); $i++) {
@ -370,48 +370,48 @@ include_once ("./admin.head.php");
</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_gallery_cols value=1></td>
<td><input type="checkbox" id="chk_gallery_cols" name="chk_gallery_cols" value="1"></td>
<td>가로 이미지수</td>
<td><input type=text class=ed name=bo_gallery_cols size=10 required itemname='가로 이미지수' value='<?=$board[bo_gallery_cols]?>'>
<td><input type="text" class=ed id="bo_gallery_cols" name="bo_gallery_cols" size=10 required 이미지수' value='<?=$board[bo_gallery_cols]?>'>
<?=help("갤러리 형식의 게시판 목록에서 이미지를 한줄에 몇장씩 보여줄것인지를 설정하는 값")?></td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_table_width value=1></td>
<td><input type="checkbox" id="chk_table_width" name="chk_table_width" value="1"></td>
<td>게시판 테이블 폭</td>
<td><input type=text class=ed name=bo_table_width size=10 required itemname='게시판 테이블 폭' value='<?=$board[bo_table_width]?>'> 100 이하는 %</td>
<td><input type="text" class=ed id="bo_table_width" name="bo_table_width" size=10 required 테이블 폭' value='<?=$board[bo_table_width]?>'> 100 이하는 %</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_page_rows value=1></td>
<td><input type="checkbox" id="chk_page_rows" name="chk_page_rows" value="1"></td>
<td>페이지당 목록 수</td>
<td><input type=text class=ed name=bo_page_rows size=10 required itemname='페이지당 목록 수' value='<?=$board[bo_page_rows]?>'></td>
<td><input type="text" class=ed id="bo_page_rows" name="bo_page_rows" size=10 required 목록 수' value='<?=$board[bo_page_rows]?>'></td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_subject_len value=1></td>
<td><input type="checkbox" id="chk_subject_len" name="chk_subject_len" value="1"></td>
<td>제목 길이</td>
<td><input type=text class=ed name=bo_subject_len size=10 required itemname='제목 길이' value='<?=$board[bo_subject_len]?>'> 목록에서의 제목 글자수. 잘리는 글은 … 로 표시</td>
<td><input type="text" class=ed id="bo_subject_len" name="bo_subject_len" size=10 required 길이' value='<?=$board[bo_subject_len]?>'> 목록에서의 제목 글자수. 잘리는 글은 … 로 표시</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_new value=1></td>
<td><input type="checkbox" id="chk_new" name="chk_new" value="1"></td>
<td>new 이미지</td>
<td><input type=text class=ed name=bo_new size=10 required itemname='new 이미지' value='<?=$board[bo_new]?>'> 글 입력후 new 이미지를 출력하는 시간</td>
<td><input type="text" class=ed id="bo_new" name="bo_new" size=10 required 이미지' value='<?=$board[bo_new]?>'> 글 입력후 new 이미지를 출력하는 시간</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_hot value=1></td>
<td><input type="checkbox" id="chk_hot" name="chk_hot" value="1"></td>
<td>hot 이미지</td>
<td><input type=text class=ed name=bo_hot size=10 required itemname='hot 이미지' value='<?=$board[bo_hot]?>'> 조회수가 설정값 이상이면 hot 이미지 출력</td>
<td><input type="text" class=ed id="bo_hot" name="bo_hot" size=10 required 이미지' value='<?=$board[bo_hot]?>'> 조회수가 설정값 이상이면 hot 이미지 출력</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_image_width value=1></td>
<td><input type="checkbox" id="chk_image_width" name="chk_image_width" value="1"></td>
<td>이미지 폭 크기</td>
<td><input type=text class=ed name=bo_image_width size=10 required itemname='이미지 폭 크기' value='<?=$board[bo_image_width]?>'> 픽셀 (게시판에서 출력되는 이미지의 폭 크기)</td>
<td><input type="text" class=ed id="bo_image_width" name="bo_image_width" size=10 required 폭 크기' value='<?=$board[bo_image_width]?>'> 픽셀 (게시판에서 출력되는 이미지의 폭 크기)</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_reply_order value=1></td>
<td><input type="checkbox" id="chk_reply_order" name="chk_reply_order" value="1"></td>
<td>답변 달기</td>
<td>
<select name=bo_reply_order>
<option value='1'>나중에 쓴 답변 아래로 달기 (기본)
<option value='0'>나중에 쓴 답변 위로 달기
<select id="bo_reply_order" name="bo_reply_order">
<option value="1">나중에 쓴 답변 아래로 달기 (기본)
<option value="0">나중에 쓴 답변 위로 달기
</select>
<script type='text/javascript'> document.fboardform.bo_reply_order.value = '<?=$board[bo_reply_order]?>'; </script>
</td>
@ -419,18 +419,18 @@ include_once ("./admin.head.php");
<?/*?>
<tr class='ht'>
<td><input type=checkbox name=chk_disable_tags value=1></td>
<td><input type="checkbox" id="chk_disable_tags" name="chk_disable_tags" value="1"></td>
<td>사용금지 태그</td>
<td><input type=text class=ed name=bo_disable_tags style='width:80%;' value='<?=get_text($board[bo_disable_tags])?>'>
<td><input type="text" class=ed id="bo_disable_tags" name="bo_disable_tags" style='width:80%;' value='<?=get_text($board[bo_disable_tags])?>'>
<?=help("태그와 태그 사이는 | 로 구분하세요. (예: <b>script</b>|<b>iframe</b>)\n\nHTML 사용시 금지할 태그를 입력하는곳 입니다.", -50)?></td>
</tr>
<?*/?>
<tr class='ht'>
<td><input type=checkbox name=chk_sort_field value=1></td>
<td><input type="checkbox" id="chk_sort_field" name="chk_sort_field" value="1"></td>
<td>리스트 정렬 필드</td>
<td>
<select name=bo_sort_field>
<select id="bo_sort_field" name="bo_sort_field">
<option value=''>wr_num, wr_reply : 기본
<option value='wr_datetime asc'>wr_datetime asc : 날짜 이전것 부터
<option value='wr_datetime desc'>wr_datetime desc : 날짜 최근것 부터
@ -458,35 +458,35 @@ include_once ("./admin.head.php");
<tr><td colspan=3 class='line2'></td></tr>
<tr class='ht'>
<td><input type=checkbox name=chk_write_min value=1></td>
<td><input type="checkbox" id="chk_write_min" name="chk_write_min" value="1"></td>
<td>최소 글수 제한</td>
<td><input type=text class=ed name=bo_write_min size=5 numeric value='<?=$board[bo_write_min]?>'>
<td><input type="text" class=ed id="bo_write_min" name="bo_write_min" size=5 numeric value='<?=$board[bo_write_min]?>'>
(글 입력시 최소 글자수를 설정. 0을 입력하면 검사하지 않음)</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_write_max value=1></td>
<td><input type="checkbox" id="chk_write_max" name="chk_write_max" value="1"></td>
<td>최대 글수 제한</td>
<td><input type=text class=ed name=bo_write_max size=5 numeric value='<?=$board[bo_write_max]?>'>
<td><input type="text" class=ed id="bo_write_max" name="bo_write_max" size=5 numeric value='<?=$board[bo_write_max]?>'>
(글 입력시 최대 글자수를 설정. 0을 입력하면 검사하지 않음)</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_comment_min value=1></td>
<td><input type="checkbox" id="chk_comment_min" name="chk_comment_min" value="1"></td>
<td>최소 코멘트수 제한</td>
<td><input type=text class=ed name=bo_comment_min size=5 numeric value='<?=$board[bo_comment_min]?>'>
<td><input type="text" class=ed id="bo_comment_min" name="bo_comment_min" size=5 numeric value='<?=$board[bo_comment_min]?>'>
(코멘트 입력시 최소 글자수, 최대 글자수를 설정. 0을 입력하면 검사하지 않음)</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_comment_max value=1></td>
<td><input type="checkbox" id="chk_comment_max" name="chk_comment_max" value="1"></td>
<td>최대 코멘트수 제한</td>
<td><input type=text class=ed name=bo_comment_max size=5 numeric value='<?=$board[bo_comment_max]?>'>
<td><input type="text" class=ed id="bo_comment_max" name="bo_comment_max" size=5 numeric value='<?=$board[bo_comment_max]?>'>
(코멘트 입력시 최소 글자수, 최대 글자수를 설정. 0을 입력하면 검사하지 않음)</td>
</tr>
<tr><td colspan=3 class='line2'></td></tr>
<tr class='ht'>
<td><input type=checkbox name=chk_upload_count value=1></td>
<td><input type="checkbox" id="chk_upload_count" name="chk_upload_count" value="1"></td>
<td>파일 업로드 갯수</td>
<td><input type=text class=ed name=bo_upload_count size=10 required itemname='파일 업로드 갯수' value='<?=$board[bo_upload_count]?>'> 게시물 한건당 업로드 할 수 있는 파일의 최대 개수 (0 이면 제한 없음)</td>
<td><input type="text" class=ed id="bo_upload_count" name="bo_upload_count" size=10 required 업로드 갯수' value='<?=$board[bo_upload_count]?>'> 게시물 한건당 업로드 할 수 있는 파일의 최대 개수 (0 이면 제한 없음)</td>
</tr>
<?
$upload_max_filesize = ini_get("upload_max_filesize");
@ -495,62 +495,62 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) {
}
?>
<tr class='ht'>
<td><input type=checkbox name=chk_upload_size value=1></td>
<td><input type="checkbox" id="chk_upload_size" name="chk_upload_size" value="1"></td>
<td>파일 업로드 용량</td>
<td>업로드 파일 한개당 <input type=text class=ed name=bo_upload_size size=10 required itemname='파일 업로드 용량' value='<?=$board[bo_upload_size]?>'> bytes 이하 (최대 <?=ini_get("upload_max_filesize")?> 이하) <?=help("1 MB = 1,024,768 bytes")?></td>
<td>업로드 파일 한개당 <input type="text" class=ed id="bo_upload_size" name="bo_upload_size" size=10 required 업로드 용량' value='<?=$board[bo_upload_size]?>'> bytes 이하 (최대 <?=ini_get("upload_max_filesize")?> 이하) <?=help("1 MB = 1,024,768 bytes")?></td>
</tr>
<tr><td colspan=3 class='line2'></td></tr>
<tr class='ht'>
<td><input type=checkbox name=chk_include_head value=1></td>
<td><input type="checkbox" id="chk_include_head" name="chk_include_head" value="1"></td>
<td>상단 파일 경로</td>
<td><input type=text class=ed name=bo_include_head style='width:80%;' value='<?=$board[bo_include_head]?>'></td>
<td><input type="text" class=ed id="bo_include_head" name="bo_include_head" style='width:80%;' value='<?=$board[bo_include_head]?>'></td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_include_tail value=1></td>
<td><input type="checkbox" id="chk_include_tail" name="chk_include_tail" value="1"></td>
<td>하단 파일 경로</td>
<td><input type=text class=ed name=bo_include_tail style='width:80%;' value='<?=$board[bo_include_tail]?>'></td>
<td><input type="text" class=ed id="bo_include_tail" name="bo_include_tail" style='width:80%;' value='<?=$board[bo_include_tail]?>'></td>
</tr>
<tr><td colspan=3 class='line2'></td></tr>
<tr class='ht'>
<td><input type=checkbox name=chk_content_head value=1></td>
<td><input type="checkbox" id="chk_content_head" name="chk_content_head" value="1"></td>
<td>상단 내용</td>
<!-- <td><textarea class=ed name=bo_content_head rows=5 style='width:80%;'><?=$board[bo_content_head] ?></textarea></td> -->
<!-- <td><textarea class=ed id="bo_content_head" name="bo_content_head" rows=5 style='width:80%;'><?=$board[bo_content_head] ?></textarea></td> -->
<td style='padding-top:7px; padding-bottom:7px;'><?=cheditor2('bo_content_head', $board[bo_content_head]);?></td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_content_tail value=1></td>
<td><input type="checkbox" id="chk_content_tail" name="chk_content_tail" value="1"></td>
<td>하단 내용</td>
<!-- <td><textarea class=ed name=bo_content_tail rows=5 style='width:80%;'><?=$board[bo_content_tail] ?></textarea></td> -->
<!-- <td><textarea class=ed id="bo_content_tail" name="bo_content_tail" rows=5 style='width:80%;'><?=$board[bo_content_tail] ?></textarea></td> -->
<td style='padding-top:7px; padding-bottom:7px;'><?=cheditor2('bo_content_tail', $board[bo_content_tail]);?></td>
</tr>
<tr><td colspan=3 class='line2'></td></tr>
<tr class='ht'>
<td><input type=checkbox name=chk_insert_content value=1></td>
<td><input type="checkbox" id="chk_insert_content" name="chk_insert_content" value="1"></td>
<td>글쓰기 기본 내용</td>
<td><textarea class=ed name=bo_insert_content rows=5 style='width:80%;'><?=$board[bo_insert_content] ?></textarea></td>
<td><textarea class=ed id="bo_insert_content" name="bo_insert_content" rows=5 style='width:80%;'><?=$board[bo_insert_content] ?></textarea></td>
</tr>
<tr><td colspan=3 class='line2'></td></tr>
<tr class='ht'>
<td><input type=checkbox name=chk_use_search value=1></td>
<td><input type="checkbox" id="chk_use_search" name="chk_use_search" value="1"></td>
<td>전체 검색 사용</td>
<td><input type=checkbox name=bo_use_search value='1' <?=$board[bo_use_search]?'checked':'';?>>사용</td>
<td><input type="checkbox" id="bo_use_search" name="bo_use_search" value="1" <?=$board[bo_use_search]?'checked':'';?>>사용</td>
</tr>
<tr class='ht'>
<td><input type=checkbox name=chk_order_search value=1></td>
<td><input type="checkbox" id="chk_order_search" name="chk_order_search" value="1"></td>
<td>전체 검색 순서</td>
<td><input type=text class=ed name=bo_order_search size=5 value='<?=$board[bo_order_search]?>'> 숫자가 낮은 게시판 부터 검색</td>
<td><input type="text" class=ed id="bo_order_search" name="bo_order_search" size=5 value='<?=$board[bo_order_search]?>'> 숫자가 낮은 게시판 부터 검색</td>
</tr>
<tr><td colspan=3 class='line2'></td></tr>
<? for ($i=1; $i<=10; $i++) { ?>
<tr class='ht'>
<td><input type=checkbox name=chk_<?=$i?> value=1></td>
<td><input type=text class=ed name='bo_<?=$i?>_subj' value='<?=get_text($board["bo_{$i}_subj"])?>' title='여분필드 <?=$i?> 제목' style='text-align:right;font-weight:bold;'></td>
<td><input type=text class=ed style='width:80%;' name='bo_<?=$i?>' value='<?=get_text($board["bo_$i"])?>' title='여분필드 <?=$i?> 설정값'></td>
<td><input type="checkbox" id="chk_" name="chk_"<?=$i?> value="1"></td>
<td><input type="text" class=ed name='bo_<?=$i?>_subj' value='<?=get_text($board["bo_{$i}_subj"])?>' title='여분필드 <?=$i?> 제목' style='text-align:right;font-weight:bold;'></td>
<td><input type="text" class=ed style='width:80%;' name='bo_<?=$i?>' value='<?=get_text($board["bo_$i"])?>' title='여분필드 <?=$i?> 설정값'></td>
</tr>
<? } ?>
@ -566,7 +566,7 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) {
관리자 패스워드
</td>
<td>
<input class='ed' type='password' name='admin_password' itemname="관리자 패스워드" required>
<input class='ed' type="password" id="admin_password" name="admin_password" id="관리자 패스워드" name="관리자 패스워드" required>
<?=help("관리자 권한을 빼앗길 것에 대비하여 로그인한 관리자의 패스워드를 한번 더 묻는것 입니다.");?>
</td>
</tr>
@ -574,9 +574,9 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) {
</table>
<p align=center>
<input type=submit class=btn1 accesskey='s' value=' 확 인 '>&nbsp;
<input type=button class=btn1 value=' 목 록 ' onclick="document.location.href='./board_list.php?<?=$qstr?>';">&nbsp;
<? if ($w == 'u') { ?><input type=button class=btn1 value=' 복 사 ' onclick="board_copy('<?=$bo_table?>');"><?}?>
<input type="submit" class=btn1 accesskey='s' value=' 확 인 '>&nbsp;
<input type="button" class=btn1 value=' 목 록 ' onclick="document.location.href='./board_list.php?<?=$qstr?>';">&nbsp;
<? if ($w == 'u') { ?><input type="button" class=btn1 value=' 복 사 ' onclick="board_copy('<?=$bo_table?>');"><?}?>
</form>
<script type="text/javascript">

View File

@ -42,7 +42,7 @@ if ($file = $_POST[bo_include_tail]) {
check_token();
$board_path = "$g4[path]/data/file/$bo_table";
$board_path = "$g4['path']/data/file/$bo_table";
// 게시판 디렉토리 생성
@mkdir($board_path, 0707);

View File

@ -16,7 +16,7 @@ $sql_search = " where (1) ";
if ($is_admin != "super") {
$sql_common .= " , $g4[group_table] b ";
$sql_search .= " and (a.gr_id = b.gr_id and b.gr_admin = '$member[mb_id]') ";
$sql_search .= " and (a.gr_id = b.gr_id and b.gr_admin = '$member['mb_id']') ";
}
if ($stx) {
@ -74,28 +74,28 @@ var list_delete_php = 'board_list_delete.php';
</script>
<table width=100% cellpadding=3 cellspacing=1>
<form name=fsearch method=get>
<form id="fsearch" name="fsearch" method=get>
<tr>
<td width=50% align=left><?=$listall?> (게시판수 : <?=number_format($total_count)?>개)</td>
<td width=50% align=right>
<select name=sfl>
<option value='bo_table'>TABLE</option>
<option value='bo_subject'>제목</option>
<select id="sfl" name="sfl">
<option value="bo_table">TABLE</option>
<option value="bo_subject">제목</option>
<option value='a.gr_id'>그룹ID</option>
</select>
<input type=text name=stx class=ed required itemname='검색어' value='<?=$stx?>'>
<input type=image src='<?=$g4[admin_path]?>/img/btn_search.gif' align=absmiddle></td>
<input type="text" id="stx" name="stx" class=ed required value='<?=$stx?>'>
<input type="image" src='<?=$g4['admin_path']?>/img/btn_search.gif' align=absmiddle></td>
</tr>
</form>
</table>
<form name=fboardlist method=post>
<input type=hidden name=sst value="<?=$sst?>">
<input type=hidden name=sod value="<?=$sod?>">
<input type=hidden name=sfl value="<?=$sfl?>">
<input type=hidden name=stx value="<?=$stx?>">
<input type=hidden name=page value="<?=$page?>">
<input type=hidden name=token value="<?=$token?>">
<form id="fboardlist" name="fboardlist" method=post>
<input type="hidden" id="sst" name="sst" value="<?=$sst?>">
<input type="hidden" id="sod" name="sod" value="<?=$sod?>">
<input type="hidden" id="sfl" name="sfl" value="<?=$sfl?>">
<input type="hidden" id="stx" name="stx" value="<?=$stx?>">
<input type="hidden" id="page" name="page" value="<?=$page?>">
<input type="hidden" id="token" name="token" value="<?=$token?>">
<table width=100% cellpadding=0 cellspacing=1>
<colgroup width=30>
<colgroup width=>
@ -110,7 +110,7 @@ var list_delete_php = 'board_list_delete.php';
<colgroup width=80>
<tr><td colspan='<?=$colspan?>' class='line1'></td></tr>
<tr class='bgcol1 bold col1 ht center'>
<td rowspan=2><input type=checkbox name=chkall value="1" onclick="check_all(this.form)"></td>
<td rowspan=2><input type="checkbox" id="chkall" name="chkall" value="1" onclick="check_all(this.form)"></td>
<td rowspan=2><?=subject_sort_link("bo_table")?>TABLE</a></td>
<td colspan=2><?=subject_sort_link("bo_subject")?>제목</a></td>
<td rowspan=2 title="글읽기 포인트"><?=subject_sort_link("bo_read_point")?>읽기<br>포인트</a></td>
@ -119,7 +119,7 @@ var list_delete_php = 'board_list_delete.php';
<td rowspan=2 title="다운로드 포인트"><?=subject_sort_link("bo_download_point")?>다운<br>포인트</a></td>
<td rowspan=2 title="검색사용"><?=subject_sort_link("bo_use_search")?>검색<br>사용</a></td>
<td rowspan=2 title="검색순서"><?=subject_sort_link("bo_order_search")?>검색<br>순서</a></td>
<td rowspan=2><a href="./board_form.php"><img src='<?=$g4[admin_path]?>/img/icon_insert.gif' border=0 title='생성'></a></td>
<td rowspan=2><a href="./board_form.php"><img src='<?=$g4['admin_path']?>/img/icon_insert.gif' border=0 title='생성'></a></td>
</tr>
<tr class='bgcol1 bold col1 ht center'>
<td><?=subject_sort_link("a.gr_id")?>그룹</a></td>
@ -143,10 +143,10 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
$s_upd = "<a href='./board_form.php?w=u&bo_table=$row[bo_table]&$qstr'><img src='img/icon_modify.gif' border=0 title='수정'></a>";
$s_del = "";
if ($is_admin == "super") {
//$s_del = "<a href=\"javascript:del('./board_delete.php?bo_table=$row[bo_table]&$qstr');\"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
$s_del = "<a href=\"javascript:post_delete('board_delete.php', '$row[bo_table]');\"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
//$s_del = "<a href="javascript:del('./board_delete.php?bo_table=$row[bo_table]&$qstr');"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
$s_del = "<a href="javascript:post_delete('board_delete.php', '$row[bo_table]');"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
}
$s_copy = "<a href=\"javascript:board_copy('$row[bo_table]');\"><img src='img/icon_copy.gif' border=0 title='복사'></a>";
$s_copy = "<a href="javascript:board_copy('$row[bo_table]');"><img src='img/icon_copy.gif' border=0 title='복사'></a>";
/*
// 스킨디렉토리
@ -166,17 +166,17 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
*/
$list = $i % 2;
echo "<input type=hidden name=board_table[$i] value='$row[bo_table]'>";
echo "<input type="hidden" id="board_table" name="board_table"[$i] value='$row[bo_table]'>";
echo "<tr class='list$list col1 ht center'>";
echo "<td rowspan=2 height=25><input type=checkbox name=chk[] value='$i'></td>";
echo "<td rowspan=2 height=25><input type="checkbox" id="chk" name="chk"[] value='$i'></td>";
echo "<td rowspan=2><a href='$g4[bbs_path]/board.php?bo_table=$row[bo_table]'><b>$row[bo_table]</b></a></td>";
echo "<td colspan=2 align=left height=25><input type=text class=ed name=bo_subject[$i] value='".get_text($row[bo_subject])."' style='width:99%'></td>";
echo "<td rowspan=2 title='읽기 포인트'><input type=text class=ed name=bo_read_point[$i] value='$row[bo_read_point]' style='width:33px;'></td>";
echo "<td rowspan=2 title='쓰기 포인트'><input type=text class=ed name=bo_write_point[$i] value='$row[bo_write_point]' style='width:33px;'></td>";
echo "<td rowspan=2 title='속글쓰기 포인트'><input type=text class=ed name=bo_comment_point[$i] value='$row[bo_comment_point]' style='width:33px;'></td>";
echo "<td rowspan=2 title='다운로드 포인트'><input type=text class=ed name=bo_download_point[$i] value='$row[bo_download_point]' style='width:33px;'></td>";
echo "<td rowspan=2 title='검색사용'><input type=checkbox name=bo_use_search[$i] ".($row[bo_use_search]?'checked':'')." value='1'></td>";
echo "<td rowspan=2 title='검색순서'><input type=text class=ed name=bo_order_search[$i] value='$row[bo_order_search]' size=2></td>";
echo "<td colspan=2 align=left height=25><input type="text" class=ed id="bo_subject" name="bo_subject"[$i] value='".get_text($row[bo_subject])."' style='width:99%'></td>";
echo "<td rowspan=2 title='읽기 포인트'><input type="text" class=ed id="bo_read_point" name="bo_read_point"[$i] value='$row[bo_read_point]' style='width:33px;'></td>";
echo "<td rowspan=2 title='쓰기 포인트'><input type="text" class=ed id="bo_write_point" name="bo_write_point"[$i] value='$row[bo_write_point]' style='width:33px;'></td>";
echo "<td rowspan=2 title='속글쓰기 포인트'><input type="text" class=ed id="bo_comment_point" name="bo_comment_point"[$i] value='$row[bo_comment_point]' style='width:33px;'></td>";
echo "<td rowspan=2 title='다운로드 포인트'><input type="text" class=ed id="bo_download_point" name="bo_download_point"[$i] value='$row[bo_download_point]' style='width:33px;'></td>";
echo "<td rowspan=2 title='검색사용'><input type="checkbox" id="bo_use_search" name="bo_use_search"[$i] ".($row[bo_use_search]?'checked':'')." value="1"></td>";
echo "<td rowspan=2 title='검색순서'><input type="text" class=ed id="bo_order_search" name="bo_order_search"[$i] value='$row[bo_order_search]' size=2></td>";
echo "<td rowspan=2>$s_upd $s_del $s_copy</td>";
echo "</tr>";
echo "<tr class='list$list col1 ht center'>";
@ -184,9 +184,9 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
if ($is_admin == "super")
echo "<td align=left>".get_group_select("gr_id[$i]", $row[gr_id])."</td>";
else
echo "<td align=center><input type=hidden name='gr_id[$i]' value='$row[gr_id]'>$row[gr_subject]</td>";
echo "<td align=center><input type="hidden" name='gr_id[$i]' value='$row[gr_id]'>$row[gr_subject]</td>";
echo "<td align=left><select id=bo_skin_$i name=bo_skin[$i]>$skin_options</select></td>";
echo "<td align=left><select id=bo_skin_$i id="bo_skin" name="bo_skin"[$i]>$skin_options</select></td>";
echo "</tr>\n";
echo "<script type='text/javascript'>document.getElementById('bo_skin_$i').value='$row[bo_skin]';</script>";
}
@ -200,10 +200,10 @@ echo "</table>";
$pagelist = get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]?$qstr&page=");
echo "<table width=100% cellpadding=3 cellspacing=1>";
echo "<tr><td width=70%>";
echo "<input type=button class='btn1' value='선택수정' onclick=\"btn_check(this.form, 'update')\"> ";
echo "<input type="button" class='btn1' value='선택수정' onclick="btn_check(this.form, 'update')"> ";
if ($is_admin == "super")
echo "<input type=button class='btn1' value='선택삭제' onclick=\"btn_check(this.form, 'delete')\">";
echo "<input type="button" class='btn1' value='선택삭제' onclick="btn_check(this.form, 'delete')">";
echo "</td>";
echo "<td width=30% align=right>$pagelist</td></tr></table>\n";
@ -233,14 +233,14 @@ function post_delete(action_url, val)
}
</script>
<form name='fpost' method='post'>
<input type='hidden' name='sst' value='<?=$sst?>'>
<input type='hidden' name='sod' value='<?=$sod?>'>
<input type='hidden' name='sfl' value='<?=$sfl?>'>
<input type='hidden' name='stx' value='<?=$stx?>'>
<input type='hidden' name='page' value='<?=$page?>'>
<input type='hidden' name='token' value='<?=$token?>'>
<input type='hidden' name='bo_table'>
<form id="fpost" name="fpost" method='post'>
<input type="hidden" id="sst" name="sst" value='<?=$sst?>'>
<input type="hidden" id="sod" name="sod" value='<?=$sod?>'>
<input type="hidden" id="sfl" name="sfl" value='<?=$sfl?>'>
<input type="hidden" id="stx" name="stx" value='<?=$stx?>'>
<input type="hidden" id="page" name="page" value='<?=$page?>'>
<input type="hidden" id="token" name="token" value='<?=$token?>'>
<input type="hidden" id="bo_table" name="bo_table">
</form>
<?

View File

@ -18,7 +18,7 @@ for ($i=0; $i<count($chk); $i++)
$sql = " select count(*) as cnt from $g4[board_table] a, $g4[group_table] b
where a.gr_id = '{$_POST['gr_id'][$k]}'
and a.gr_id = b.gr_id
and b.gr_admin = '$member[mb_id]' ";
and b.gr_admin = '$member['mb_id']' ";
$row = sql_fetch($sql);
if (!$row[cnt])
alert("최고관리자가 아닌 경우 다른 관리자의 게시판($board_table[$k])은 수정이 불가합니다.");

View File

@ -28,34 +28,34 @@ $g4[title] = $html_title;
include_once("./admin.head.php");
?>
<form name=fboardgroup method=post onsubmit="return fboardgroup_check(this);" autocomplete="off">
<input type=hidden name=w value='<?=$w?>'>
<input type=hidden name=sfl value='<?=$sfl?>'>
<input type=hidden name=stx value='<?=$stx?>'>
<input type=hidden name=sst value='<?=$sst?>'>
<input type=hidden name=sod value='<?=$sod?>'>
<input type=hidden name=page value='<?=$page?>'>
<input type=hidden name=token value='<?=$token?>'>
<form id="fboardgroup" name="fboardgroup" method=post onsubmit="return fboardgroup_check(this);" autocomplete="off">
<input type="hidden" id="w" name="w" value='<?=$w?>'>
<input type="hidden" id="sfl" name="sfl" value='<?=$sfl?>'>
<input type="hidden" id="stx" name="stx" value='<?=$stx?>'>
<input type="hidden" id="sst" name="sst" value='<?=$sst?>'>
<input type="hidden" id="sod" name="sod" value='<?=$sod?>'>
<input type="hidden" id="page" name="page" value='<?=$page?>'>
<input type="hidden" id="token" name="token" value='<?=$token?>'>
<table width=100% cellpadding=0 cellspacing=0>
<colgroup width=20% class='col1 pad1 bold right'>
<colgroup width=30% class='col2 pad2'>
<colgroup width=20% class='col1 pad1 bold right'>
<colgroup width=30% class='col2 pad2'>
<tr class='ht'>
<td colspan=4 class=title align=left><img src='<?=$g4[admin_path]?>/img/icon_title.gif'> <?=$html_title?></td>
<td colspan=4 class=title align=left><img src='<?=$g4['admin_path']?>/img/icon_title.gif'> <?=$html_title?></td>
</tr>
<tr><td colspan=4 class='line1'></td></tr>
<tr class='ht'>
<td>그룹 ID</td>
<td colspan=3><input type='text' class=ed name=gr_id size=11 maxlength=10 <?=$gr_id_attr?> alphanumericunderline itemname='그룹 아이디' value='<?=$group[gr_id]?>'> 영문자, 숫자, _ 만 가능 (공백없이)</td>
<td colspan=3><input type="text" class=ed id="gr_id" name="gr_id" size=11 maxlength=10 <?=$gr_id_attr?> alphanumericunderline 아이디' value='<?=$group[gr_id]?>'> 영문자, 숫자, _ 만 가능 (공백없이)</td>
</tr>
<tr class='ht'>
<td>그룹 제목</td>
<td colspan=3>
<input type='text' class=ed name=gr_subject size=40 required itemname='그룹 제목' value='<?=get_text($group[gr_subject])?>'>
<input type="text" class=ed id="gr_subject" name="gr_subject" size=40 required 제목' value='<?=get_text($group[gr_subject])?>'>
<?
if ($w == 'u')
echo "<input type=button class='btn1' value='게시판생성' onclick=\"location.href='./board_form.php?gr_id=$gr_id';\">";
echo "<input type="button" class='btn1' value='게시판생성' onclick="location.href='./board_form.php?gr_id=$gr_id';">";
?>
</td>
</tr>
@ -65,15 +65,15 @@ include_once("./admin.head.php");
<?
if ($is_admin == "super")
//echo get_member_id_select("gr_admin", 9, $row[gr_admin]);
echo "<input type='text' class=ed name='gr_admin' value='$gr[gr_admin]' maxlength=20>";
echo "<input type="text" class=ed id="gr_admin" name="gr_admin" value='$gr[gr_admin]' maxlength=20>";
else
echo "<input type=hidden name='gr_admin' value='$gr[gr_admin]' size=40>$gr[gr_admin]";
echo "<input type="hidden" id="gr_admin" name="gr_admin" value='$gr[gr_admin]' size=40>$gr[gr_admin]";
?></td>
</tr>
<tr class='ht'>
<td>접근회원사용</td>
<td colspan=3>
<input type=checkbox name=gr_use_access value='1' <?=$gr[gr_use_access]?'checked':'';?>>사용
<input type="checkbox" id="gr_use_access" name="gr_use_access" value="1" <?=$gr[gr_use_access]?'checked':'';?>>사용
<?=help("사용에 체크하시면 이 그룹에 속한 게시판은 접근가능한 회원만 접근이 가능합니다.")?>
</td>
</tr>
@ -91,10 +91,10 @@ include_once("./admin.head.php");
<? for ($i=1; $i<=10; $i=$i+2) { $k=$i+1; ?>
<tr class='ht'>
<td><input type=text class=ed name='gr_<?=$i?>_subj' value='<?=get_text($group["gr_{$i}_subj"])?>' title='여분필드 <?=$i?> 제목' style='text-align:right;font-weight:bold;' size=15></td>
<td><input type='text' class=ed style='width:99%;' name=gr_<?=$i?> value='<?=$gr["gr_$i"]?>' title='여분필드 <?=$i?> 설정값'></td>
<td><input type=text class=ed name='gr_<?=$k?>_subj' value='<?=get_text($group["gr_{$k}_subj"])?>' title='여분필드 <?=$k?> 제목' style='text-align:right;font-weight:bold;' size=15></td>
<td><input type='text' class=ed style='width:99%;' name=gr_<?=$k?> value='<?=$gr["gr_$k"]?>' title='여분필드 <?=$k?> 설정값'></td>
<td><input type="text" class=ed name='gr_<?=$i?>_subj' value='<?=get_text($group["gr_{$i}_subj"])?>' title='여분필드 <?=$i?> 제목' style='text-align:right;font-weight:bold;' size=15></td>
<td><input type="text" class=ed style='width:99%;' id="gr_" name="gr_"<?=$i?> value='<?=$gr["gr_$i"]?>' title='여분필드 <?=$i?> 설정값'></td>
<td><input type="text" class=ed name='gr_<?=$k?>_subj' value='<?=get_text($group["gr_{$k}_subj"])?>' title='여분필드 <?=$k?> 제목' style='text-align:right;font-weight:bold;' size=15></td>
<td><input type="text" class=ed style='width:99%;' id="gr_" name="gr_"<?=$k?> value='<?=$gr["gr_$k"]?>' title='여분필드 <?=$k?> 설정값'></td>
</tr>
<? } ?>
@ -102,8 +102,8 @@ include_once("./admin.head.php");
</table>
<p align=center>
<input type=submit class=btn1 accesskey='s' value=' 확 인 '>&nbsp;
<input type=button class=btn1 value=' 목 록 ' onclick="document.location.href='./boardgroup_list.php?<?=$qstr?>';">
<input type="submit" class=btn1 accesskey='s' value=' 확 인 '>&nbsp;
<input type="button" class=btn1 value=' 목 록 ' onclick="document.location.href='./boardgroup_list.php?<?=$qstr?>';">
</form>
<script type='text/javascript'>

View File

@ -10,7 +10,7 @@ $sql_common = " from $g4[group_table] ";
$sql_search = " where (1) ";
if ($is_admin != "super")
$sql_search .= " and (gr_admin = '$member[mb_id]') ";
$sql_search .= " and (gr_admin = '$member['mb_id']') ";
if ($stx) {
$sql_search .= " and ( ";
@ -63,28 +63,28 @@ var list_update_php = "./boardgroup_list_update.php";
</script>
<table width=100% cellpadding=3 cellspacing=1>
<form name=fsearch method=get>
<form id="fsearch" name="fsearch" method=get>
<tr>
<td width=50% align=left><?=$listall?> (그룹수 : <?=number_format($total_count)?>개)</td>
<td width=50% align=right>
<select name=sfl>
<select id="sfl" name="sfl">
<option value="gr_subject">제목</option>
<option value="gr_id">ID</option>
<option value="gr_admin">그룹관리자</option>
</select>
<input type=text name=stx class=ed required itemname='검색어' value='<?=$stx?>'>
<input type=image src='<?=$g4[admin_path]?>/img/btn_search.gif' align=absmiddle></td>
<input type="text" id="stx" name="stx" class=ed required value='<?=$stx?>'>
<input type="image" src='<?=$g4['admin_path']?>/img/btn_search.gif' align=absmiddle></td>
</tr>
</form>
</table>
<form name=fboardgrouplist method=post>
<input type=hidden name=sst value='<?=$sst?>'>
<input type=hidden name=sod value='<?=$sod?>'>
<input type=hidden name=sfl value='<?=$sfl?>'>
<input type=hidden name=stx value='<?=$stx?>'>
<input type=hidden name=page value='<?=$page?>'>
<input type=hidden name=token value='<?=$token?>'>
<form id="fboardgrouplist" name="fboardgrouplist" method=post>
<input type="hidden" id="sst" name="sst" value='<?=$sst?>'>
<input type="hidden" id="sod" name="sod" value='<?=$sod?>'>
<input type="hidden" id="sfl" name="sfl" value='<?=$sfl?>'>
<input type="hidden" id="stx" name="stx" value='<?=$stx?>'>
<input type="hidden" id="page" name="page" value='<?=$page?>'>
<input type="hidden" id="token" name="token" value='<?=$token?>'>
<table width=100% cellpadding=0 cellspacing=1 border=0>
<colgroup width=30>
<colgroup width=120>
@ -96,14 +96,14 @@ var list_update_php = "./boardgroup_list_update.php";
<colgroup width=60>
<tr><td colspan='<?=$colspan?>' class='line1'></td></tr>
<tr class='bgcol1 bold col1 ht center'>
<td><input type=checkbox name=chkall value="1" onclick="check_all(this.form)"></td>
<td><input type="checkbox" id="chkall" name="chkall" value="1" onclick="check_all(this.form)"></td>
<td><?=subject_sort_link("gr_id")?>그룹아이디</a></td>
<td><?=subject_sort_link("gr_subject")?>제목</a></td>
<td><?=subject_sort_link("gr_admin")?>그룹관리자</a></td>
<td>게시판</td>
<td>접근사용</td>
<td>접근회원수</td>
<td><? if ($is_admin == "super") { echo "<a href='./boardgroup_form.php'><img src='$g4[admin_path]/img/icon_insert.gif' border=0 title='생성'></a>"; } ?></td>
<td><? if ($is_admin == "super") { echo "<a href='./boardgroup_form.php'><img src='$g4['admin_path']/img/icon_insert.gif' border=0 title='생성'></a>"; } ?></td>
</tr>
<tr><td colspan='<?=$colspan?>' class='line2'></td></tr>
<?
@ -120,25 +120,25 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$s_upd = "<a href='./boardgroup_form.php?$qstr&w=u&gr_id=$row[gr_id]'><img src='img/icon_modify.gif' border=0 title='수정'></a>";
$s_del = "";
if ($is_admin == "super") {
//$s_del = "<a href=\"javascript:del('./boardgroup_delete.php?$qstr&gr_id=$row[gr_id]');\"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
$s_del = "<a href=\"javascript:post_delete('boardgroup_delete.php', '$row[gr_id]');\"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
//$s_del = "<a href="javascript:del('./boardgroup_delete.php?$qstr&gr_id=$row[gr_id]');"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
$s_del = "<a href="javascript:post_delete('boardgroup_delete.php', '$row[gr_id]');"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
}
$list = $i%2;
echo "<input type=hidden name=gr_id[$i] value='$row[gr_id]'>";
echo "<tr class='list$list' onmouseover=\"this.className='mouseover';\" onmouseout=\"this.className='list$list';\" height=27 align=center>";
echo "<td><input type=checkbox name=chk[] value='$i'></td>";
echo "<input type="hidden" id="gr_id" name="gr_id"[$i] value='$row[gr_id]'>";
echo "<tr class='list$list' onmouseover="this.classid="mouseover" name="mouseover";" onmouseout="this.className='list$list';" height=27 align=center>";
echo "<td><input type="checkbox" id="chk" name="chk"[] value='$i'></td>";
echo "<td><a href='$g4[bbs_path]/group.php?gr_id=$row[gr_id]'><b>$row[gr_id]</b></a></td>";
echo "<td><input type=text class=ed name=gr_subject[$i] value='".get_text($row[gr_subject])."' size=30></td>";
echo "<td><input type="text" class=ed id="gr_subject" name="gr_subject"[$i] value='".get_text($row[gr_subject])."' size=30></td>";
if ($is_admin == "super")
//echo "<td>".get_member_id_select("gr_admin[$i]", 9, $row[gr_admin])."</td>";
echo "<td><input type=text class=ed name=gr_admin[$i] value='$row[gr_admin]' maxlength=20></td>";
echo "<td><input type="text" class=ed id="gr_admin" name="gr_admin"[$i] value='$row[gr_admin]' maxlength=20></td>";
else
echo "<input type=hidden name='gr_admin[$i]' value='$row[gr_admin]'><td>$row[gr_admin]</td>";
echo "<input type="hidden" name='gr_admin[$i]' value='$row[gr_admin]'><td>$row[gr_admin]</td>";
echo "<td><a href='./board_list.php?sfl=a.gr_id&stx=$row[gr_id]'>$row2[cnt]</a></td>";
echo "<td><input type=checkbox name=gr_use_access[$i] ".($row[gr_use_access]?'checked':'')." value='1'></td>";
echo "<td><input type="checkbox" id="gr_use_access" name="gr_use_access"[$i] ".($row[gr_use_access]?'checked':'')." value="1"></td>";
echo "<td><a href='./boardgroupmember_list.php?gr_id=$row[gr_id]'>$row1[cnt]</a></td>";
echo "<td>$s_upd $s_del</td>";
echo "</tr>\n";
@ -153,8 +153,8 @@ echo "</table>";
$pagelist = get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]?$qstr&page=");
echo "<table width=100% cellpadding=3 cellspacing=1>";
echo "<tr><td width=70%>";
echo "<input type=button class='btn1' value='선택수정' onclick=\"btn_check(this.form, 'update')\">";
//echo " <input type=button value='선택삭제' onclick=\"btn_check(this.form, 'delete')\">";
echo "<input type="button" class='btn1' value='선택수정' onclick="btn_check(this.form, 'update')">";
//echo " <input type="button" value='선택삭제' onclick="btn_check(this.form, 'delete')">";
echo "</td>";
echo "<td width=30% align=right>$pagelist</td></tr></table>\n";
@ -177,14 +177,14 @@ function post_delete(action_url, val)
}
</script>
<form name='fpost' method='post'>
<input type='hidden' name='sst' value='<?=$sst?>'>
<input type='hidden' name='sod' value='<?=$sod?>'>
<input type='hidden' name='sfl' value='<?=$sfl?>'>
<input type='hidden' name='stx' value='<?=$stx?>'>
<input type='hidden' name='page' value='<?=$page?>'>
<input type='hidden' name='token' value='<?=$token?>'>
<input type='hidden' name='gr_id'>
<form id="fpost" name="fpost" method='post'>
<input type="hidden" id="sst" name="sst" value='<?=$sst?>'>
<input type="hidden" id="sod" name="sod" value='<?=$sod?>'>
<input type="hidden" id="sfl" name="sfl" value='<?=$sfl?>'>
<input type="hidden" id="stx" name="stx" value='<?=$stx?>'>
<input type="hidden" id="page" name="page" value='<?=$page?>'>
<input type="hidden" id="token" name="token" value='<?=$token?>'>
<input type="hidden" id="gr_id" name="gr_id">
</form>
<?

View File

@ -7,7 +7,7 @@ auth_check($auth[$sub_menu], "w");
$token = get_token();
$mb = get_member($mb_id);
if (!$mb[mb_id])
if (!$mb['mb_id'])
alert("존재하지 않는 회원입니다.");
$g4[title] = "접근가능그룹선택";
@ -18,7 +18,7 @@ $colspan = 4;
<table width=100% cellpadding=3 cellspacing=1>
<tr>
<td>* <? echo "<a href='./member_form.php?w=u&mb_id=$mb[mb_id]'><b>$mb[mb_id]</b> ($mb[mb_name] / $mb[mb_nick])</a> 님이 접근가능한 그룹 목록"; ?></td>
<td>* <? echo "<a href='./member_form.php?w=u&mb_id=$mb['mb_id']'><b>$mb['mb_id']</b> ($mb[mb_name] / $mb[mb_nick])</a> 님이 접근가능한 그룹 목록"; ?></td>
</tr>
</table>
@ -39,15 +39,15 @@ $colspan = 4;
$sql = " select *
from $g4[group_member_table] a,
$g4[group_table] b
where a.mb_id = '$mb[mb_id]'
where a.mb_id = '$mb['mb_id']'
and a.gr_id = b.gr_id ";
if ($is_admin != 'super')
$sql .= " and b.gr_admin = '$member[mb_id]' ";
$sql .= " and b.gr_admin = '$member['mb_id']' ";
$sql .= " order by a.gr_id desc ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
//$s_del = "<a href=\"javascript:del('./boardgroupmember_update.php?w=d&gm_id=$row[gm_id]')\"><img src='img/icon_delete.gif' border=0></a>";
$s_del = "<a href=\"javascript:post_delete('boardgroupmember_update.php', '$row[gm_id]');\"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
//$s_del = "<a href="javascript:del('./boardgroupmember_update.php?w=d&gm_id=$row[gm_id]')"><img src='img/icon_delete.gif' border=0></a>";
$s_del = "<a href="javascript:post_delete('boardgroupmember_update.php', '$row[gm_id]');"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
$list = $i%2;
echo "
@ -67,16 +67,16 @@ if ($i == 0) {
</table>
<p>
<form name=fboardgroupmember_form method=post action='./boardgroupmember_update.php' onsubmit="return boardgroupmember_form_check(this)">
<input type=hidden name=mb_id value='<?=$mb[mb_id]?>'>
<input type=hidden name=token value='<?=$token?>'>
<form id="fboardgroupmember_form" name="fboardgroupmember_form" method=post action='./boardgroupmember_update.php' onsubmit="return boardgroupmember_form_check(this)">
<input type="hidden" id="mb_id" name="mb_id" value='<?=$mb['mb_id']?>'>
<input type="hidden" id="token" name="token" value='<?=$token?>'>
<table width=100% align=center cellpadding=3 cellspacing=1 class=tablebg>
<colgroup width=20% class='col1 pad1 bold right'>
<colgroup width=80% class='col2 pad2'>
<tr>
<td>그룹</td>
<td>
<select name=gr_id>
<select id="gr_id" name="gr_id">
<option value=''>접근가능 그룹을 선택하세요.
<option value=''>--------------------------
<?
@ -85,7 +85,7 @@ if ($i == 0) {
where gr_use_access = 1 ";
//if ($is_admin == 'group') {
if ($is_admin != 'super')
$sql .= " and gr_admin = '$member[mb_id]' ";
$sql .= " and gr_admin = '$member['mb_id']' ";
$sql .= " order by gr_id ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
@ -94,7 +94,7 @@ if ($i == 0) {
?>
</select>
&nbsp;
<input type=submit class=btn1 value=' 확 인 ' accesskey='s'>
<input type="submit" class=btn1 value=' 확 인 ' accesskey='s'>
</td>
</tr>
</table>
@ -126,15 +126,15 @@ function post_delete(action_url, val)
}
</script>
<form name='fpost' method='post'>
<input type='hidden' name='sst' value='<?=$sst?>'>
<input type='hidden' name='sod' value='<?=$sod?>'>
<input type='hidden' name='sfl' value='<?=$sfl?>'>
<input type='hidden' name='stx' value='<?=$stx?>'>
<input type='hidden' name='page' value='<?=$page?>'>
<input type='hidden' name='token' value='<?=$token?>'>
<input type='hidden' name='w' value='d'>
<input type='hidden' name='gm_id'>
<form id="fpost" name="fpost" method='post'>
<input type="hidden" id="sst" name="sst" value='<?=$sst?>'>
<input type="hidden" id="sod" name="sod" value='<?=$sod?>'>
<input type="hidden" id="sfl" name="sfl" value='<?=$sfl?>'>
<input type="hidden" id="stx" name="stx" value='<?=$stx?>'>
<input type="hidden" id="page" name="page" value='<?=$page?>'>
<input type="hidden" id="token" name="token" value='<?=$token?>'>
<input type="hidden" id="w" name="w" value="d">
<input type="hidden" id="gm_id" name="gm_id">
</form>
<?

View File

@ -55,19 +55,19 @@ include_once("./admin.head.php");
$colspan = 7;
?>
<script type="text/javascript" src="<?=$g4[path]?>/js/sideview.js"></script>
<script type="text/javascript" src="<?=$g4['path']?>/js/sideview.js"></script>
<table width=100% cellpadding=3 cellspacing=1>
<form name=fsearch method=get>
<input type=hidden name=gr_id value='<?=$gr_id?>'>
<form id="fsearch" name="fsearch" method=get>
<input type="hidden" id="gr_id" name="gr_id" value='<?=$gr_id?>'>
<tr>
<td width=50% align=left>* <? echo "'<b>[$gr[gr_id]] $gr[gr_subject]</b>' 그룹의 접근가능한 회원 목록"; ?></td>
<td width=50% align=right>
<select name=sfl class=cssfl>
<select id="sfl" name="sfl" class=cssfl>
<option value='a.mb_id'>회원아이디</option>
</select>
<input type=text name=stx required itemname='검색어' value='<? echo $stx ?>'>
<input type=image src='<?=$g4[admin_path]?>/img/btn_search.gif' align=absmiddle></td>
<input type="text" id="stx" name="stx" required value='<? echo $stx ?>'>
<input type="image" src='<?=$g4['admin_path']?>/img/btn_search.gif' align=absmiddle></td>
</tr>
</form>
</table>
@ -96,21 +96,21 @@ $colspan = 7;
for ($i=0; $row=sql_fetch_array($result); $i++)
{
// 접근가능한 그룹수
$sql2 = " select count(*) as cnt from $g4[group_member_table] where mb_id = '$row[mb_id]' ";
$sql2 = " select count(*) as cnt from $g4[group_member_table] where mb_id = '$row['mb_id']' ";
$row2 = sql_fetch($sql2);
$group = "";
if ($row2[cnt])
$group = "<a href='./boardgroupmember_form.php?mb_id=$row[mb_id]'>$row2[cnt]</a>";
$group = "<a href='./boardgroupmember_form.php?mb_id=$row['mb_id']'>$row2[cnt]</a>";
//$s_del = "<a href=\"javascript:del('./boardgroupmember_update.php?w=listdelete&gm_id=$row[gm_id]');\"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
$s_del = "<a href=\"javascript:post_delete('boardgroupmember_update.php', '$row[gm_id]');\"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
//$s_del = "<a href="javascript:del('./boardgroupmember_update.php?w=listdelete&gm_id=$row[gm_id]');"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
$s_del = "<a href="javascript:post_delete('boardgroupmember_update.php', '$row[gm_id]');"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
$mb_nick = get_sideview($row[mb_id], $row[mb_nick], $row[mb_email], $row[mb_homepage]);
$mb_nick = get_sideview($row['mb_id'], $row[mb_nick], $row[mb_email], $row[mb_homepage]);
$list = $i%2;
echo "
<tr class='list$list col1 ht center'>
<td>$row[mb_id]</td>
<td>$row['mb_id']</td>
<td>$row[mb_name]</td>
<td>$mb_nick</td>
<td>".substr($row[mb_today_login],2,8)."</td>
@ -150,15 +150,15 @@ function post_delete(action_url, val)
}
</script>
<form name='fpost' method='post'>
<input type='hidden' name='sst' value='<?=$sst?>'>
<input type='hidden' name='sod' value='<?=$sod?>'>
<input type='hidden' name='sfl' value='<?=$sfl?>'>
<input type='hidden' name='stx' value='<?=$stx?>'>
<input type='hidden' name='page' value='<?=$page?>'>
<input type='hidden' name='token' value='<?=$token?>'>
<input type='hidden' name='w' value='listdelete'>
<input type='hidden' name='gm_id'>
<form id="fpost" name="fpost" method='post'>
<input type="hidden" id="sst" name="sst" value='<?=$sst?>'>
<input type="hidden" id="sod" name="sod" value='<?=$sod?>'>
<input type="hidden" id="sfl" name="sfl" value='<?=$sfl?>'>
<input type="hidden" id="stx" name="stx" value='<?=$stx?>'>
<input type="hidden" id="page" name="page" value='<?=$page?>'>
<input type="hidden" id="token" name="token" value='<?=$token?>'>
<input type="hidden" id="w" name="w" value="listdelete">
<input type="hidden" id="gm_id" name="gm_id">
</form>
<?

View File

@ -9,7 +9,7 @@ if ($w == "")
auth_check($auth[$sub_menu], "w");
$mb = get_member($mb_id);
if (!$mb[mb_id]) {
if (!$mb['mb_id']) {
alert("존재하지 않는 회원입니다.");
}
@ -32,7 +32,7 @@ if ($w == "")
$sql = " insert into $g4[group_member_table]
set gr_id = '$_POST[gr_id]',
mb_id = '$_POST[mb_id]',
mb_id = '$_POST['mb_id']',
gm_datetime = '$g4[time_ymdhis]' ";
sql_query($sql);
}
@ -49,7 +49,7 @@ else if ($w == 'd' || $w == 'listdelete')
check_token();
$gr_id = $gm[gr_id];
$mb_id = $gm[mb_id];
$mb_id = $gm['mb_id'];
$sql = " delete from $g4[group_member_table] where gm_id = '$_POST[gm_id]' ";
sql_query($sql);

View File

@ -1,26 +1,26 @@
<?
$sub_menu = "100100";
include_once("./_common.php");
include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
auth_check($auth[$sub_menu], 'r');
$token = get_token();
if ($is_admin != 'super')
alert("최고관리자만 접근 가능합니다.");
alert('최고관리자만 접근 가능합니다.');
// 쪽지보낼시 차감 포인트 필드 추가 : 061218
sql_query(" ALTER TABLE `$g4[config_table]` ADD `cf_memo_send_point` INT NOT NULL AFTER `cf_login_point` ", FALSE);
sql_query(" ALTER TABLE '{$g4['config_table']}' ADD 'cf_memo_send_point' INT NOT NULL AFTER 'cf_login_point' ", FALSE);
// 개인정보보호정책 필드 추가 : 061121
$sql = " ALTER TABLE `$g4[config_table]` ADD `cf_privacy` TEXT NOT NULL AFTER `cf_stipulation` ";
$sql = " ALTER TABLE '{$g4['config_table']}' ADD 'cf_privacy' TEXT NOT NULL AFTER 'cf_stipulation' ";
sql_query($sql, FALSE);
if (!trim($config[cf_privacy])) {
$config[cf_privacy] = "해당 홈페이지에 맞는 개인정보취급방침을 입력합니다.";
if (!trim($config['cf_privacy'])) {
$config['cf_privacy'] = '해당 홈페이지에 맞는 개인정보취급방침을 입력합니다.';
}
$g4['title'] = "환경설정";
include_once ("./admin.head.php");
$g4['title'] = '환경설정';
include_once ('./admin.head.php');
?>
<form id="fconfigform" name="fconfigform" method="post" onsubmit="return fconfigform_submit(this);">
@ -33,9 +33,9 @@ include_once ("./admin.head.php");
<tbody>
<tr>
<th scope="row" id="th101"><label for="cf_title">홈페이지 제목</label></th>
<td headers="th101"><input type="text" id="cf_title" name="cf_title" required value="<?=$config[cf_title]?>"></td>
<td headers="th101"><input type="text" id="cf_title" name="cf_title" required value="<?=$config['cf_title']?>"></td>
<th scope="row" id="th102"><label for="cf_admin">최고관리자</label></th>
<td headers="th102"><?=get_member_id_select("cf_admin", 10, $config[cf_admin], "required")?></td>
<td headers="th102"><?=get_member_id_select("cf_admin", 10, $config['cf_admin'], "required")?></td>
</tr>
<tr>
<th scope="row" id="th103"><label for="cf_use_point">포인트 사용</label></th>
@ -43,16 +43,13 @@ include_once ("./admin.head.php");
</tr>
<tr>
<th scope="row" id="th104"><label for="cf_login_point">로그인시 포인트</label></th>
<td headers="th104"><input type="text" id="cf_login_point" name="cf_login_point" required value="<?=$config[cf_login_point]?>"> 점
<?=help("회원에게 하루에 한번만 부여")?></td>
<td headers="th104"><input type="text" id="cf_login_point" name="cf_login_point" required value="<?=$config[cf_login_point]?>"> 점 <?=help("회원에게 하루에 한번만 부여")?></td>
<th scope="row" id="th105"><label for="cf_memo_send_point">쪽지보낼시 차감 포인트</label></th>
<td headers="th105"><input type="text" id="cf_memo_send_point" name="cf_memo_send_point" required value="<?=$config[cf_memo_send_point]?>"> 점
<?=help("양수로 입력하십시오.<br>0으로 입력하시면 쪽지보낼시 포인트를 차감하지 않습니다.")?></td>
<td headers="th105"><input type="text" id="cf_memo_send_point" name="cf_memo_send_point" required value="<?=$config[cf_memo_send_point]?>"> 점 <?=help("양수로 입력하십시오.<br>0으로 입력하시면 쪽지보낼시 포인트를 차감하지 않습니다.")?></td>
</tr>
<tr>
<th scope="row" id="th106"><label for="cf_cut_name">이름(별명) 표시</label></th>
<td headers="th106" colspan="3"><input type="text" id="cf_cut_name" name="cf_cut_name" value="<?=$config[cf_cut_name]?>"> 자리만 표시
<?=help("영숫자 2글자 = 한글 1글자")?></td>
<td headers="th106" colspan="3"><input type="text" id="cf_cut_name" name="cf_cut_name" value="<?=$config[cf_cut_name]?>"> 자리만 표시 <?=help("영숫자 2글자 = 한글 1글자")?></td>
</tr>
<tr>
<th scope="row" id="th107"><label for="cf_nick_modify">별명 수정</label></th>
@ -62,33 +59,27 @@ include_once ("./admin.head.php");
</tr>
<tr>
<th scope="row" id="th109"><label for="cf_new_del">최근게시물 삭제</label></th>
<td headers="th109"><input type="text" id="cf_new_del" name="cf_new_del" value="<?=$config[cf_new_del]?>"> 일
<?=help("설정일이 지난 최근게시물 자동 삭제")?></td>
<td headers="th109"><input type="text" id="cf_new_del" name="cf_new_del" value="<?=$config[cf_new_del]?>"> 일 <?=help("설정일이 지난 최근게시물 자동 삭제")?></td>
<th scope="row" id="th110"><label for="cf_memo_del">쪽지 삭제</label></th>
<td headers="th110"><input type="text" id="cf_memo_del" name="cf_memo_del" value="<?=$config[cf_memo_del]?>"> 일
<?=help("설정일이 지난 쪽지 자동 삭제")?></td>
<td headers="th110"><input type="text" id="cf_memo_del" name="cf_memo_del" value="<?=$config[cf_memo_del]?>"> 일 <?=help("설정일이 지난 쪽지 자동 삭제")?></td>
</tr>
<tr>
<th scope="row" id="th111"><label for="cf_visit_del">접속자로그 삭제</label></th>
<td headers="th111"><input type="text" id="cf_visit_del" name="cf_visit_del" value="<?=$config[cf_visit_del]?>"> 일
<?=help("설정일이 지난 접속자 로그 자동 삭제")?></td>
<td headers="th111"><input type="text" id="cf_visit_del" name="cf_visit_del" value="<?=$config[cf_visit_del]?>"> 일 <?=help("설정일이 지난 접속자 로그 자동 삭제")?></td>
<th scope="row" id="th112"><label for="cf_popular_del">인기검색어 삭제</label></th>
<td headers="th112"><input type="text" id="cf_popular_del" name="cf_popular_del" value="<?=$config[cf_popular_del]?>"> 일
<?=help("설정일이 지난 인기검색어 자동 삭제")?></td>
<td headers="th112"><input type="text" id="cf_popular_del" name="cf_popular_del" value="<?=$config[cf_popular_del]?>"> 일 <?=help("설정일이 지난 인기검색어 자동 삭제")?></td>
</tr>
<tr>
<th scope="row" id="th113"><label for="cf_login_minutes">현재 접속자</label></th>
<td headers="th113"><input type="text" id="cf_login_minutes" name="cf_login_minutes" value="<?=$config[cf_login_minutes]?>"> 분
<?=help("설정값 이내의 접속자를 현재 접속자로 인정")?></td>
<td headers="th113"><input type="text" id="cf_login_minutes" name="cf_login_minutes" value="<?=$config[cf_login_minutes]?>"> 분 <?=help("설정값 이내의 접속자를 현재 접속자로 인정")?></td>
<th scope="row" id="th114"><label for="cf_page_rows">한페이지당 라인수</label></th>
<td headers="th114"><input type="text" id="cf_page_rows" name="cf_page_rows" value="<?=$config[cf_page_rows]?>"> 라인
<?=help("목록(리스트) 한페이지당 라인수")?></td>
<td headers="th114"><input type="text" id="cf_page_rows" name="cf_page_rows" value="<?=$config[cf_page_rows]?>"> 라인 <?=help("목록(리스트) 한페이지당 라인수")?></td>
</tr>
<tr>
<th scope="row" id="th115"><label for="cf_new_skin">최근게시물 스킨</label></th>
<td headers="th115"><select id="cf_new_skin" name="cf_new_skin" required >
<?
$arr = get_skin_dir("new");
$arr = get_skin_dir('new');
for ($i=0; $i<count($arr); $i++) {
echo '<option value="'.$arr[$i].'">'.$arr[$i].'</option>'.PHP_EOL;
}
@ -96,12 +87,11 @@ include_once ("./admin.head.php");
<script> document.getElementById('cf_new_skin').value="<?=$config[cf_new_skin]?>";</script>
</td>
<th scope="row" id="th116"><label for="cf_new_rows">최근게시물 라인수</label></th>
<td headers="th116"><input type="text" id="cf_new_rows" name="cf_new_rows" value="<?=$config[cf_new_rows]?>"> 라인
<?=help("목록 한페이지당 라인수")?></td>
<td headers="th116"><input type="text" id="cf_new_rows" name="cf_new_rows" value="<?=$config[cf_new_rows]?>"> 라인 <?=help("목록 한페이지당 라인수")?></td>
</tr>
<tr>
<th scope="row" id="th117"><label for="cf_search_skin">검색 스킨</label></th>
<td headers="th117" colspan="3"><select id=cf_search_skin id="cf_search_skin" name="cf_search_skin" required>
<td headers="th117" colspan="3"><select id="cf_search_skin" name="cf_search_skin" required>
<?
$arr = get_skin_dir("search");
for ($i=0; $i<count($arr); $i++) {
@ -206,13 +196,15 @@ include_once ("./admin.head.php");
<tbody>
<tr>
<th scope="row" id="th301"><label for="cf_member_skin">회원 스킨</label></th>
<td headers="th301" colspan="3"><select id="cf_member_skin" name="cf_member_skin" required>
<td headers="th301" colspan="3">
<select id="cf_member_skin" name="cf_member_skin" required>
<?
$arr = get_skin_dir("member");
$arr = get_skin_dir('member');
for ($i=0; $i<count($arr); $i++) {
echo '<option value="'.$arr[$i].'">'.$arr[$i].'</option>'.PHP_EOL;
}
?></select>
?>
</select>
<script> document.getElementById('cf_member_skin').value="<?=$config[cf_member_skin]?>";</script>
</td>
</tr>
@ -266,11 +258,12 @@ include_once ("./admin.head.php");
<th scope="row" id="th311"><label for="cf_use_member_icon">회원아이콘 사용</label></th>
<td headers="th311">
<select id="cf_use_member_icon" name="cf_use_member_icon">
<option value="0"<? if ($config[cf_use_member_icon] == 0) echo ' selected';?>>미사용
<option value="1"<? if ($config[cf_use_member_icon] == 1) echo ' selected';?>>아이콘만 표시
<option value="2"<? if ($config[cf_use_member_icon] == 2) echo ' selected';?>>아이콘+이름 표시
<option value="0">미사용
<option value="1">아이콘만 표시
<option value="2">아이콘+이름 표시
</select>
<?=help("게시물에 게시자 별명 대신 아이콘 사용")?>
<script> document.getElementById('cf_use_member_icon').value="<?=$config[cf_use_member_icon]?>";</script>
</td>
<th scope="row" id="th312"><label for="cf_icon_level">아이콘 업로드 권한</label></th>
<td headers="th312" colspan="3"><? echo get_member_level_select('cf_icon_level', 1, 9, $config[cf_icon_level]) ?> 이상</td>
@ -290,18 +283,18 @@ include_once ("./admin.head.php");
<tr>
<th scope="row" id="th317"><label for="cf_prohibit_id">아이디,별명 금지단어
<?=help("입력된 단어가 포함된 내용은 회원아이디, 별명으로 사용할 수 없습니다.\n\n단어와 단어 사이는 , 로 구분합니다.")?></label></th>
<td headers="th317"><textarea id="cf_prohibit_id" name="cf_prohibit_id" rows="5"><?=$config[cf_prohibit_id]?> </textarea></td>
<td headers="th317"><textarea id="cf_prohibit_id" name="cf_prohibit_id" rows="5"><?=$config['cf_prohibit_id']?> </textarea></td>
<th scope="row" id="th318"><label for="cf_prohibit_email">입력 금지 메일
<?=help("hanmail.net과 같은 메일 주소는 입력을 못합니다.\n\n엔터로 구분합니다.")?></label></th>
<td headers="th318"><textarea id="cf_prohibit_email" name="cf_prohibit_email" rows="5"><?=$config[cf_prohibit_email]?> </textarea><br></td>
<td headers="th318"><textarea id="cf_prohibit_email" name="cf_prohibit_email" rows="5"><?=$config['cf_prohibit_email']?> </textarea><br></td>
</tr>
<tr>
<th scope="row" id="th319"><label for="cf_stipulation">회원가입약관</label></th>
<td headers="th319" colspan="3"><textarea id="cf_stipulation" name="cf_stipulation" rows="10"><?=$config[cf_stipulation]?> </textarea></td>
<td headers="th319" colspan="3"><textarea id="cf_stipulation" name="cf_stipulation" rows="10"><?=$config['cf_stipulation']?> </textarea></td>
</tr>
<tr>
<th scope="row" id="th320"><label for="cf_privacy">개인정보취급방침</label></th>
<td headers="th320" colspan="3"><textarea id="cf_privacy" name="cf_privacy" rows="10"><?=$config[cf_privacy]?> </textarea></td>
<td headers="th320" colspan="3"><textarea id="cf_privacy" name="cf_privacy" rows="10"><?=$config['cf_privacy']?> </textarea></td>
</tr>
</tbody>
</table>
@ -318,13 +311,11 @@ include_once ("./admin.head.php");
</tr>
<tr>
<th scope="row" id="th402"><label for="cf_use_email_certify">메일인증 사용</label></th>
<td headers="th402"><input type="checkbox" id="cf_use_email_certify" name="cf_use_email_certify" value="1" <?=$config[cf_use_email_certify]?'checked':'';?>> 사용
<?=help("메일에 배달된 인증 주소를 클릭하여야 회원으로 인정합니다.");?></td>
<td headers="th402"><input type="checkbox" id="cf_use_email_certify" name="cf_use_email_certify" value="1" <?=$config[cf_use_email_certify]?'checked':'';?>> 사용 <?=help("메일에 배달된 인증 주소를 클릭하여야 회원으로 인정합니다.");?></td>
</tr>
<tr>
<th scope="row" id="th403"><label for="cf_formmail_is_member">폼메일 사용 여부</label></th>
<td headers="th403"><input type="checkbox" id="cf_formmail_is_member" name="cf_formmail_is_member" value="1" <?=$config[cf_formmail_is_member]?'checked':'';?>> 회원만 사용
<?=help("체크하지 않으면 비회원도 사용 할 수 있습니다.")?></td>
<td headers="th403"><input type="checkbox" id="cf_formmail_is_member" name="cf_formmail_is_member" value="1" <?=$config[cf_formmail_is_member]?'checked':'';?>> 회원만 사용 <?=help("체크하지 않으면 비회원도 사용 할 수 있습니다.")?></td>
</tr>
</table>
<table>
@ -385,36 +376,27 @@ include_once ("./admin.head.php");
<? for ($i=1; $i<=10; $i=$i+2) { $k=$i+1; ?>
<tr>
<th scope="row" id="th5a<?=$i?>"><label for="cf_<?=$i?>_subj">여분필드<?=$i?>제목</label></th>
<td headers="th5a<?=$i?>"><input type="text" id="cf_<?=$i?>_subj" name="cf_<?=$i?>_subj" value="<?=get_text($config["cf_{$i}_subj"])?>"></td>
<td headers="th5a<?=$i?>"><input type="text" id="cf_<?=$i?>_subj" name="cf_<?=$i?>_subj" value="<?=get_text($config['cf_'.$i.'_subj'])?>"></td>
<th scope="row" id="th5b<?=$i?>"><label for="cf_<?=$i?>">여분필드<?=$i?>설명</label></th>
<td headers="th5b<?=$i?>"><input type="text" id="cf_<?=$i?>" name="cf_<?=$i?>" value="<?=$config["cf_$i"]?>"></td>
<td headers="th5b<?=$i?>"><input type="text" id="cf_<?=$i?>" name="cf_<?=$i?>" value="<?=$config['cf_'.$i]?>"></td>
<th scope="row" id="th5a<?=$k?>"><label for="cf_<?=$k?>_subj">여분필드<?=$k?>제목</label></th>
<td headers="th5a<?=$k?>"><input type="text" id="cf_<?=$k?>_subj" name="cf_<?=$k?>_subj" value="<?=get_text($config["cf_{$k}_subj"])?>"></td>
<td headers="th5a<?=$k?>"><input type="text" id="cf_<?=$k?>_subj" name="cf_<?=$k?>_subj" value="<?=get_text($config['cf_'.$k.'_subj'])?>"></td>
<th scope="row" id="th5b<?=$k?>"><label for="cf_<?=$k?>">여분필드<?=$k?>설명</label></th>
<td headers="th5b<?=$k?>"><input type="text" id="cf_<?=$k?>" name="cf_<?=$k?>" value="<?=$config["cf_$k"]?>"></td>
<td headers="th5b<?=$k?>"><input type="text" id="cf_<?=$k?>" name="cf_<?=$k?>" value="<?=$config['cf_'.$k]?>"></td>
</tr>
<? } ?>
</tbody>
</table>
</section>
<section id="config_confirm">
<h2><span></span>XSS 혹은 CSRF 방지</h2>
<table>
<caption>관리자 권한을 탈취당하는 경우를 대비하여 패스워드를 다시 한번 확인합니다.</caption>
<tbody>
<tr>
<th scope="row" id="th601"><label for="admin_password">관리자 패스워드</label></th>
<td headers="th601">
<input type="password" id="admin_password" name="admin_password" required>
</td>
</tr>
</tbody>
</table>
</section>
<fieldset>
<legend><span></span>XSS 혹은 CSRF 방지</legend>
<p>관리자 권한을 탈취당하는 경우를 대비하여 패스워드를 다시 한번 확인합니다.</p>
<label for="admin_password">관리자 패스워드</label>
<input type="password" id="admin_password" name="admin_password" required>
<input type="submit" accesskey="s" value="확인">
</fieldset>
</form>
<script>

View File

@ -14,7 +14,7 @@ if ($member[mb_password] != sql_password($_POST['admin_password'])) {
}
$mb = get_member($cf_admin);
if (!$mb[mb_id])
if (!$mb['mb_id'])
alert("최고관리자 회원아이디가 존재하지 않습니다.");
check_token();

View File

@ -87,11 +87,11 @@ $colspan = 12;
for ($i=0; $row=sql_fetch_array($result); $i++)
{
// 접근가능한 그룹수
$sql2 = " select count(*) as cnt from $g4[group_member_table] where mb_id = '$row[mb_id]' ";
$sql2 = " select count(*) as cnt from $g4[group_member_table] where mb_id = '{$row['mb_id']}' ";
$row2 = sql_fetch($sql2);
$group = "";
if ($row2['cnt'])
$group = "<a href='./boardgroupmember_form.php?mb_id=$row[mb_id]'>$row2[cnt]</a>";
$group = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">$row2[cnt]</a>';
if ($is_admin == 'group')
{
@ -100,10 +100,10 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
}
else
{
$s_mod = "<a href=\"./member_form.php?$qstr&amp;w=u&amp;mb_id=$row[mb_id]\">수정</a>";
$s_del = "<a href=\"javascript:del('./member_delete.php?$qstr&amp;w=d&amp;mb_id=$row[mb_id]&amp;url=$_SERVER[PHP_SELF]');\">삭제</a>";
$s_mod = '<a href="./member_form.php?$qstr&amp;w=u&amp;mb_id='.$row['mb_id'].'">수정</a>';
$s_del = '<a href="javascript:del(\'./member_delete.php?$qstr&amp;w=d&amp;mb_id='.$row['mb_id'].'&amp;url='.$_SERVER['PHP_SELF'].'\');">삭제</a>';
}
$s_grp = "<a href='./boardgroupmember_form.php?mb_id=$row[mb_id]'><img src='img/icon_group.gif' border=0 title='그룹'></a>";
$s_grp = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">그룹</a>';
$leave_date = $row['mb_leave_date'] ? $row['mb_leave_date'] : date("Ymd", $g4['server_time']);
$intercept_date = $row['mb_intercept_date'] ? $row['mb_intercept_date'] : date("Ymd", $g4['server_time']);
@ -122,7 +122,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
<td><?=$row['mb_name']?></td>
<td><?=$mb_nick?></td>
<td><?=$row[mb_level]?></td>
<td><a href='./point_list.php?sfl=mb_id&amp;stx=<?=$row[mb_id]?>'><?=number_format($row['mb_point'])?></td>
<td><a href='./point_list.php?sfl=mb_id&amp;stx=<?=$row['mb_id']?>'><?=number_format($row['mb_point'])?></td>
<td><?=substr($row['mb_today_login'],2,8)?></td>
<td><?=$row['mb_mailling']?'예':'아니오';?></td>
<td><?=$row['mb_open']?'예':'아니오';?></td>
@ -291,7 +291,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
{
if ($row2['mb_id'] != $row['mb_id'])
{
$sql2 = " select mb_id, mb_name, mb_nick, mb_email, mb_homepage, mb_point from $g4[member_table] where mb_id = '$row[mb_id]' ";
$sql2 = " select mb_id, mb_name, mb_nick, mb_email, mb_homepage, mb_point from $g4[member_table] where mb_id = '{$row['mb_id']}' ";
$row2 = sql_fetch($sql2);
}
@ -305,7 +305,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
}
?>
<tr>
<td><a href='./point_list.php?sfl=mb_id&amp;stx=$row[mb_id]'><?=$row['mb_id']?></a></td>
<td><a href='./point_list.php?sfl=mb_id&amp;stx=$row['mb_id']'><?=$row['mb_id']?></a></td>
<td><?=$row2['mb_name']?></td>
<td><?=$mb_nick?></td>
<td><?=$row['po_datetime']?></td>

View File

@ -24,26 +24,26 @@ $g4[title] = $html_title;
include_once("./admin.head.php");
?>
<form name=fmailform method=post action="./mail_update.php" onsubmit="return fmailform_check(this);">
<input type=hidden name=w value='<?=$w?>'>
<input type=hidden name=ma_id value='<?=$ma[ma_id]?>'>
<input type=hidden name=token value='<?=$token?>'>
<form id="fmailform" name="fmailform" method=post action="./mail_update.php" onsubmit="return fmailform_check(this);">
<input type="hidden" id="w" name="w" value='<?=$w?>'>
<input type="hidden" id="ma_id" name="ma_id" value='<?=$ma[ma_id]?>'>
<input type="hidden" id="token" name="token" value='<?=$token?>'>
<table cellpadding=0 cellspacing=0 width=100%>
<colgroup width=20% class='col1 pad1 bold right'>
<colgroup width=80% class='col2 pad2'>
<tr>
<td colspan=2 class=title align=left><img src='<?=$g4[admin_path]?>/img/icon_title.gif'> <?=$html_title?></td>
<td colspan=2 class=title align=left><img src='<?=$g4['admin_path']?>/img/icon_title.gif'> <?=$html_title?></td>
</tr>
<tr><td colspan=2 class='line1'></td></tr>
<tr class='ht'>
<td>메일 제목</td>
<td><input type=text class='ed w99' name=ma_subject value='<?=$ma[ma_subject]?>' required itemname='메일 제목'></td>
<td><input type="text" class='ed w99' id="ma_subject" name="ma_subject" value='<?=$ma[ma_subject]?>' required 제목'></td>
</tr>
<tr>
<td>메일 내용</td>
<td class=lh>
<?=textarea_size("ma_content")?>
<textarea id=ma_content name=ma_content rows=20 class='ed w99' required itemname='메일 내용'><?=$ma[ma_content]?></textarea>
<textarea id=ma_content id="ma_content" name="ma_content" rows=20 class='ed w99' required 내용'><?=$ma[ma_content]?></textarea>
<br>{이름} , {별명} , {회원아이디} , {이메일} , {생일}
<br>위와 같이 HTML 코드에 삽입하면 해당 내용에 맞게 변환하여 메일 발송합니다.
</td>
@ -52,7 +52,7 @@ include_once("./admin.head.php");
</table>
<p align=center>
<input type=submit class=btn1 accesskey='s' value=' 확 인 '>
<input type="submit" class=btn1 accesskey='s' value=' 확 인 '>
</form>

View File

@ -39,7 +39,7 @@ $colspan = 6;
<td width=120>작성일시</td>
<td width=50>테스트</td>
<td width=50>보내기</td>
<td width=80><a href='./mail_form.php'><img src='<?=$g4[admin_path]?>/img/icon_insert.gif' border=0></a></td>
<td width=80><a href='./mail_form.php'><img src='<?=$g4['admin_path']?>/img/icon_insert.gif' border=0></a></td>
</tr>
<tr><td colspan='<?=$colspan?>' class='line2'></td></tr>
@ -47,7 +47,7 @@ $colspan = 6;
for ($i=0; $row=mysql_fetch_array($result); $i++) {
$s_mod = icon("수정", "./mail_form.php?w=u&ma_id=$row[ma_id]");
//$s_del = icon("삭제", "javascript:del('./mail_update.php?w=d&ma_id=$row[ma_id]');");
$s_del = "<a href=\"javascript:post_delete('mail_update.php', '$row[ma_id]');\"><img src='img/icon_delete.gif' border=0 title='삭제' align='absmiddle'></a>";
$s_del = "<a href="javascript:post_delete('mail_update.php', '$row[ma_id]');"><img src='img/icon_delete.gif' border=0 title='삭제' align='absmiddle'></a>";
$s_vie = icon("보기", "./mail_preview.php?ma_id=$row[ma_id]", "_blank");
$num = number_format($total_count - ($page - 1) * $config[cf_page_rows] - $i);
@ -84,14 +84,14 @@ function post_delete(action_url, val)
}
</script>
<form name='fpost' method='post'>
<input type='hidden' name='sst' value='<?=$sst?>'>
<input type='hidden' name='sod' value='<?=$sod?>'>
<input type='hidden' name='sfl' value='<?=$sfl?>'>
<input type='hidden' name='stx' value='<?=$stx?>'>
<input type='hidden' name='page' value='<?=$page?>'>
<input type='hidden' name='w' value='d'>
<input type='hidden' name='ma_id'>
<form id="fpost" name="fpost" method='post'>
<input type="hidden" id="sst" name="sst" value='<?=$sst?>'>
<input type="hidden" id="sod" name="sod" value='<?=$sod?>'>
<input type="hidden" id="sfl" name="sfl" value='<?=$sfl?>'>
<input type="hidden" id="stx" name="stx" value='<?=$stx?>'>
<input type="hidden" id="page" name="page" value='<?=$page?>'>
<input type="hidden" id="w" name="w" value="d">
<input type="hidden" id="ma_id" name="ma_id">
</form>
<?

View File

@ -1,7 +1,7 @@
<?
$sub_menu = "200300";
include_once("./_common.php");
include_once("$g4[path]/lib/mailer.lib.php");
include_once("$g4['path']/lib/mailer.lib.php");
auth_check($auth[$sub_menu], "r");

View File

@ -49,8 +49,8 @@ include_once("./admin.head.php");
<tr>
<td>
<table cellpadding=0 cellspacing=0 width=100%>
<form name=frmsendmailselectform method=post action="./mail_select_list.php" autocomplete="off">
<input type=hidden name=ma_id value='<? echo $ma_id ?>'>
<form id="frmsendmailselectform" name="frmsendmailselectform" method=post action="./mail_select_list.php" autocomplete="off">
<input type="hidden" id="ma_id" name="ma_id" value='<? echo $ma_id ?>'>
<colgroup width=20% class='col1 pad1 bold right'>
<colgroup width=80% class='col2 pad2'>
<tr>
@ -61,11 +61,11 @@ include_once("./admin.head.php");
<tr class='ht'>
<td>회원 ID</td>
<td>
<input type=radio name='mb_id1' value='1' onclick="mb_id1_click(1);" <?=$mb_id1?"checked":"";?>> 전체
<input type=radio name='mb_id1' value='0' onclick="mb_id1_click(0);" <?=!$mb_id1?"checked":"";?>> 구간
<input type="radio" id="mb_id1" name="mb_id1" value="1" onclick="mb_id1_click(1);" <?=$mb_id1?"checked":"";?>> 전체
<input type="radio" id="mb_id1" name="mb_id1" value="0" onclick="mb_id1_click(0);" <?=!$mb_id1?"checked":"";?>> 구간
<br>
<input type=text class=ed id=mb_id1_from name=mb_id1_from value="<?=$mb_id1_from?>"> 에서
<input type=text class=ed id=mb_id1_to name=mb_id1_to value="<?=$mb_id1_to?>"> 까지
<input type="text" class=ed id=mb_id1_from id="mb_id1_from" name="mb_id1_from" value="<?=$mb_id1_from?>"> 에서
<input type="text" class=ed id=mb_id1_to id="mb_id1_to" name="mb_id1_to" value="<?=$mb_id1_to?>"> 까지
<script type="text/javascript">
function mb_id1_click(num)
@ -89,20 +89,20 @@ include_once("./admin.head.php");
<tr class='ht'>
<td>생일</td>
<td>
<input type=text name='mb_birth_from' size=4 maxlength=4 class=ed value="<?=$mb_birth_from?>"> 부터
<input type=text name='mb_birth_to' size=4 maxlength=4 class=ed value="<?=$mb_birth_to?>"> 까지 (예 : 5월5일 인 경우, 0505 와 같이 입력 , 둘다 입력해야함)</td>
<input type="text" id="mb_birth_from" name="mb_birth_from" size=4 maxlength=4 class=ed value="<?=$mb_birth_from?>"> 부터
<input type="text" id="mb_birth_to" name="mb_birth_to" size=4 maxlength=4 class=ed value="<?=$mb_birth_to?>"> 까지 (예 : 5월5일 인 경우, 0505 와 같이 입력 , 둘다 입력해야함)</td>
</tr>
<tr class='ht'>
<td>E-mail에</td>
<td><input type=text name='mb_email' class=ed value="<?=$mb_email?>"> 단어 포함 (예 : @sir.co.kr)</td>
<td><input type="text" id="mb_email" name="mb_email" class=ed value="<?=$mb_email?>"> 단어 포함 (예 : @sir.co.kr)</td>
</tr>
<tr class='ht'>
<td>성별</td>
<td>
<select id=mb_sex name=mb_sex>
<select id=mb_sex id="mb_sex" name="mb_sex">
<option value=''>전체
<option value='F'>여자
<option value='M'>남자
<option value="F">여자
<option value="M">남자
</select>
<script type="text/javascript"> document.getElementById('mb_sex').value = "<?=$mb_sex?>"; </script>
</td>
@ -110,7 +110,7 @@ include_once("./admin.head.php");
<tr class='ht'>
<td>지역</td>
<td>
<select id=mb_area name=mb_area>
<select id=mb_area id="mb_area" name="mb_area">
<option value=''>전체
<option value='서울'>서울
<option value='부산'>부산
@ -135,8 +135,8 @@ include_once("./admin.head.php");
<tr class='ht'>
<td>메일링</td>
<td>
<select id=mb_mailling name=mb_mailling>
<option value='1'>수신동의한 회원만
<select id=mb_mailling id="mb_mailling" name="mb_mailling">
<option value="1">수신동의한 회원만
<option value=''>전체
</select>
<script type="text/javascript"> document.getElementById('mb_mailling').value = "<?=$mb_mailling?>"; </script>
@ -145,12 +145,12 @@ include_once("./admin.head.php");
<tr class='ht'>
<td>권한</td>
<td>
<select id=mb_level_from name=mb_level_from>
<select id=mb_level_from id="mb_level_from" name="mb_level_from">
<? for ($i=1; $i<=10; $i++) { ?>
<option value='<? echo $i ?>'><? echo $i ?>
<? } ?>
</select> 에서
<select id=mb_level_to name=mb_level_to>
<select id=mb_level_to id="mb_level_to" name="mb_level_to">
<? for ($i=1; $i<=10; $i++) { ?>
<option value='<? echo $i ?>'><? echo $i ?>
<? } ?>
@ -162,7 +162,7 @@ include_once("./admin.head.php");
<tr class='ht'>
<td>게시판그룹회원</td>
<td>
<select id=gr_id name=gr_id>
<select id=gr_id id="gr_id" name="gr_id">
<option value=''>전체
<?
$sql = " select gr_id, gr_subject from $g4[group_table] order by gr_subject ";
@ -180,8 +180,8 @@ include_once("./admin.head.php");
</table>
<p align=center>
<input type=submit class=btn1 value=' 확 인 '>&nbsp;
<input type=button class=btn1 value=' 목 록 ' onclick="document.location.href='./mail_list.php';">
<input type="submit" class=btn1 value=' 확 인 '>&nbsp;
<input type="button" class=btn1 value=' 목 록 ' onclick="document.location.href='./mail_list.php';">
</form>
</td>
</tr></table>

View File

@ -49,7 +49,7 @@ if ($gr_id)
$result2 = sql_query($sql2);
for ($k=0; $row2=sql_fetch_array($result2); $k++)
{
$group_member .= "{$comma}'$row2[mb_id]'";
$group_member .= "{$comma}'$row2['mb_id']'";
$comma = ",";
}
@ -93,13 +93,13 @@ include_once("./admin.head.php");
<?//=subtitle_bar($html_title)?><p>
<div align=right>선택된 회원수 : <?=number_format($cnt)?> 명</div>
<form name=fmailselectlist method=post onsubmit="return fmailselectlist_submit(this);">
<input type=hidden name=token value='<?=$token?>'>
<form id="fmailselectlist" name="fmailselectlist" method=post onsubmit="return fmailselectlist_submit(this);">
<input type="hidden" id="token" name="token" value='<?=$token?>'>
<table cellpadding=4 cellspacing=1 width=100% class=tablebg>
<input type="hidden" name="ma_id" value="<? echo $ma_id ?>">
<input type="hidden" id="ma_id" name="ma_id" value="<? echo $ma_id ?>">
<tr>
<td align=center>
<select size=25 name='list' style='width:500px;'>
<select size=25 id="list" name="list" style='width:500px;'>
<option>번호 . 회원아이디 / 이름 / 별명 / 생일 / E-mail
<?
$sql = " select mb_id, mb_name, mb_nick, mb_email, mb_birth, mb_datetime $sql_common $sql_where order by mb_id ";
@ -110,20 +110,20 @@ include_once("./admin.head.php");
while ($row=sql_fetch_array($result))
{
$i++;
echo "<option>$i . $row[mb_id] / $row[mb_name] / $row[mb_nick] / $row[mb_birth] / $row[mb_email]";
$ma_list .= $cr . $row[mb_email] . "||" . $row[mb_id] . "||" . $row[mb_name] . "||" . $row[mb_nick] . "||" . $row[mb_birth] . "||" . $row[mb_datetime];
echo "<option>$i . $row['mb_id'] / $row[mb_name] / $row[mb_nick] / $row[mb_birth] / $row[mb_email]";
$ma_list .= $cr . $row[mb_email] . "||" . $row['mb_id'] . "||" . $row[mb_name] . "||" . $row[mb_nick] . "||" . $row[mb_birth] . "||" . $row[mb_datetime];
$cr = "\n";
}
?>
</select>
<textarea name="ma_list" style="display:none"><?=$ma_list?></textarea>
<textarea id="ma_list" name="ma_list" style="display:none"><?=$ma_list?></textarea>
</td>
</tr>
</table>
<p align=center>
<input type=submit class=btn1 value=' 메일 보내기 '>&nbsp;
<input type=button class=btn1 value=' 뒤 로 ' onclick="history.go(-1);">
<input type="submit" class=btn1 value=' 메일 보내기 '>&nbsp;
<input type="button" class=btn1 value=' 뒤 로 ' onclick="history.go(-1);">
</form>
</td></tr></table>

View File

@ -11,7 +11,7 @@ check_demo();
check_token();
include_once("./admin.head.php");
include_once("$g4[path]/lib/mailer.lib.php");
include_once("$g4['path']/lib/mailer.lib.php");
$countgap = 10; // 몇건씩 보낼지 설정
$maxscreen = 500; // 몇건씩 화면에 보여줄건지?

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
if (!$config[cf_email_use])
alert("환경설정에서 \'메일발송 사용\'에 체크하셔야 메일을 발송할 수 있습니다.");
include_once("$g4[path]/lib/mailer.lib.php");
include_once("$g4['path']/lib/mailer.lib.php");
auth_check($auth[$sub_menu], "w");
@ -15,7 +15,7 @@ $g4[title] = "회원메일 테스트";
$name = $member[mb_name];
$nick = $member[mb_nick];
$mb_id = $member[mb_id];
$mb_id = $member['mb_id'];
$email = $member[mb_email];
$birth = $member[mb_birth];
@ -31,7 +31,7 @@ $content = preg_replace("/{회원아이디}/", $mb_id, $content);
$content = preg_replace("/{이메일}/", $email, $content);
$content = preg_replace("/{생일}/", (int)substr($birth,4,2).'월 '.(int)substr($birth,6,2).'일', $content);
$mb_md5 = md5($member[mb_id].$member[mb_email].$member[mb_datetime]);
$mb_md5 = md5($member['mb_id'].$member[mb_email].$member[mb_datetime]);
$content = $content . "<hr size=0><p><span style='font-size:9pt; font-familye:굴림'>▶ 더 이상 정보 수신을 원치 않으시면 [<a href='$g4[url]/$g4[bbs]/email_stop.php?mb_id=$mb_id&mb_md5=$mb_md5' target='_blank'>수신거부</a>] 해 주십시오.</span></p>";

View File

@ -8,7 +8,7 @@ auth_check($auth[$sub_menu], "d");
$mb = get_member($_POST['mb_id']);
if (!$mb[mb_id])
if (!$mb['mb_id'])
alert("회원자료가 존재하지 않습니다.");
else if ($member['mb_id'] == $mb['mb_id'])
alert("로그인 중인 관리자는 삭제 할 수 없습니다.");

View File

@ -1,5 +1,5 @@
<?
$sub_menu = '200100';
$sub_menu = "200100";
include_once('./_common.php');
auth_check($auth[$sub_menu], 'w');
@ -8,8 +8,8 @@ $token = get_token();
if ($w == '')
{
$required_mb_id = 'required minlength=3 alphanumericunderline itemname="회원아이디"';
$required_mb_password = 'required itemname="패스워드"';
$required_mb_id = 'required minlength="3" alphanumericunderline id="회원아이디" name="회원아이디"';
$required_mb_password = 'required id="패스워드" name="패스워드"';
$mb[mb_mailling] = 1;
$mb[mb_open] = 1;
@ -19,7 +19,7 @@ if ($w == '')
else if ($w == 'u')
{
$mb = get_member($mb_id);
if (!$mb[mb_id])
if (!$mb['mb_id'])
alert('존재하지 않는 회원자료입니다.');
if ($is_admin != 'super' && $mb[mb_level] >= $member[mb_level])
@ -55,185 +55,231 @@ else if ($w == 'u')
else
alert('제대로 된 값이 넘어오지 않았습니다.');
if ($mb[mb_mailling]) $mailling_checked = "checked"; // 메일 수신
if ($mb[mb_sms]) $sms_checked = "checked"; // SMS 수신
if ($mb[mb_open]) $open_checked = "checked"; // 정보 공개
if ($mb[mb_mailling]) $mailling_checked = 'checked'; // 메일 수신
if ($mb[mb_sms]) $sms_checked = 'checked'; // SMS 수신
if ($mb[mb_open]) $open_checked = 'checked'; // 정보 공개
$g4['title'] = "회원정보 " . $html_title;
$g4['title'] = '회원정보 ' . $html_title;
include_once("./admin.head.php");
?>
<table width=100% align=center cellpadding=0 cellspacing=0>
<form name=fmember method=post onsubmit="return fmember_submit(this);" enctype="multipart/form-data" autocomplete="off">
<input type=hidden name=w value='<?=$w?>'>
<input type=hidden name=sfl value='<?=$sfl?>'>
<input type=hidden name=stx value='<?=$stx?>'>
<input type=hidden name=sst value='<?=$sst?>'>
<input type=hidden name=sod value='<?=$sod?>'>
<input type=hidden name=page value='<?=$page?>'>
<input type=hidden name=token value='<?=$token?>'>
<colgroup width=20% class='col1 pad1 bold right'>
<colgroup width=30% class='col2 pad2'>
<colgroup width=20% class='col1 pad1 bold right'>
<colgroup width=30% class='col2 pad2'>
<h2><span></span>회원정보 입력</h2>
<form id="fmember" name="fmember" method="post" onsubmit="return fmember_submit(this);" enctype="multipart/form-data" autocomplete="off">
<input type="hidden" id="w" name="w" value="<?=$w?>">
<input type="hidden" id="sfl" name="sfl" value="<?=$sfl?>">
<input type="hidden" id="stx" name="stx" value="<?=$stx?>">
<input type="hidden" id="sst" name="sst" value="<?=$sst?>">
<input type="hidden" id="sod" name="sod" value="<?=$sod?>">
<input type="hidden" id="page" name="page" value="<?=$page?>">
<input type="hidden" id="token" name="token" value="<?=$token?>">
<table>
<caption>
회원의 사이트 기본정보 <?=$html_title?>
</caption>
<tbody>
<tr>
<td colspan=4 class=title align=left><img src='<?=$g4[admin_path]?>/img/icon_title.gif'> <?=$g4[title]?></td>
</tr>
<tr><td colspan=4 class=line1></td></tr>
<tr class='ht'>
<td>아이디</td>
<td>
<input type=text class=ed name='mb_id' size=20 maxlength=20 minlength=2 <?=$required_mb_id?> itemname='아이디' value='<? echo $mb[mb_id] ?>'>
<?if ($w=="u"){?><a href='./boardgroupmember_form.php?mb_id=<?=$mb[mb_id]?>'>접근가능그룹보기</a><?}?>
<th scope="row" id="th101"><label for="mb_id">아이디</label></th>
<td headers="th101">
<input type="text" id="mb_id" name="mb_id" maxlength="20" minlength="2" <?=$required_mb_id?> value='<?=$mb['mb_id'] ?>'>
<?if ($w=="u"){?><a href='./boardgroupmember_form.php?mb_id=<?=$mb['mb_id']?>'>접근가능그룹보기</a><?}?>
</td>
<td>패스워드</td>
<td><input type=password class=ed name='mb_password' size=20 maxlength=20 <?=$required_mb_password?> itemname='암호'></td>
</tr>
<tr class='ht'>
<td>이름(실명)</td>
<td><input type=text class=ed name='mb_name' maxlength=20 minlength=2 required itemname='이름(실명)' value='<? echo $mb[mb_name] ?>'></td>
<td>별명</td>
<td><input type=text class=ed name='mb_nick' maxlength=20 minlength=2 required itemname='별명' value='<? echo $mb[mb_nick] ?>'></td>
<tr>
<th scope="row" id="th102"><label for="mb_password">패스워드</label></th>
<td headers="th102"><input type="password" id="mb_password" name="mb_password" maxlength="20" <?=$required_mb_password?>></td>
</tr>
<tr class='ht'>
<td>회원 권한</td>
<td><?=get_member_level_select("mb_level", 1, $member[mb_level], $mb[mb_level])?></td>
<td>포인트</td>
<td><a href='./point_list.php?sfl=mb_id&stx=<?=$mb[mb_id]?>' class='bold'><?=number_format($mb[mb_point])?></a> 점</td>
<tr>
<th scope="row" id="th103"><label for="mb_level">회원 권한</label></th>
<td headers="th103"><?=get_member_level_select("mb_level", 1, $member[mb_level], $mb[mb_level])?></td>
</tr>
<tr class='ht'>
<td>E-mail</td>
<td><input type=text class=ed name='mb_email' size=40 maxlength=100 required email itemname='e-mail' value='<? echo $mb[mb_email] ?>'></td>
<td>홈페이지</td>
<td><input type=text class=ed name='mb_homepage' size=40 maxlength=255 itemname='홈페이지' value='<? echo $mb[mb_homepage] ?>'></td>
<tr>
<th scope="row" id="th104">포인트</th>
<td headers="th104"><a href="./point_list.php?sfl=mb_id&amp;stx=<?=$mb['mb_id']?>"><?=number_format($mb[mb_point])?></a> 점</td>
</tr>
<tr class='ht'>
<td>전화번호</td>
<td><input type=text class=ed name='mb_tel' maxlength=20 itemname='전화번호' value='<? echo $mb[mb_tel] ?>'></td>
<td>핸드폰번호</td>
<td><input type=text class=ed name='mb_hp' maxlength=20 itemname='핸드폰번호' value='<? echo $mb[mb_hp] ?>'></td>
</tbody>
</table>
<table>
<caption>
회원의 개인정보를 <?=$html_title?>
</caption>
<tbody>
<tr>
<th scope="row" id="th201"><label for="mb_name">이름(실명)</label></th>
<td headers="th201"><input type="text" id="mb_name" name="mb_name" maxlength="20" minlength="2" required value="<?=$mb['mb_name']?>"></td>
</tr>
<tr class='ht'>
<td>주소</td>
<td>
<input type=text class=ed name='mb_zip1' size=4 maxlength=3 readonly itemname='우편번호 앞자리' value='<? echo $mb[mb_zip1] ?>'> -
<input type=text class=ed name='mb_zip2' size=4 maxlength=3 readonly itemname='우편번호 뒷자리' value='<? echo $mb[mb_zip2] ?>'>
<a href="javascript:;" onclick="win_zip('fmember', 'mb_zip1', 'mb_zip2', 'mb_addr1', 'mb_addr2');"><img src='<?=$g4[bbs_img_path]?>/btn_zip.gif' align=absmiddle border=0></a>
<br><input type=text class=ed name='mb_addr1' size=40 readonly value='<? echo $mb[mb_addr1] ?>'>
<br><input type=text class=ed name='mb_addr2' size=25 itemname='상세주소' value='<? echo $mb[mb_addr2] ?>'> 상세주소 입력</td>
<td>회원아이콘</td>
<td colspan=3>
<input type=file name='mb_icon' class=ed><br>이미지 크기는 <?=$config[cf_member_icon_width]?>x<?=$config[cf_member_icon_height]?>으로 해주세요.
<tr>
<th scope="row" id="th202"><label for="mb_nick">별명</label></th>
<td headers="th202"><input type="text" id="mb_nick" name="mb_nick" maxlength="20" minlength="2" required value="<?=$mb['mb_nick']?>"></td>
</tr>
<tr>
<th scope="row" id="th203"><label for="mb_birth">생년월일</label></th>
<td headers="th203"><input type="text" id="mb_birth" name="mb_birth" maxlength="8" value='<? echo $mb['mb_birth'] ?>'></td>
</tr>
<tr>
<th scope="row" id="th204"><label for="mb_sex">성별</label></th>
<td headers="th204">
<select id="mb_sex" name="mb_sex">
<option value=''>선택</option>
<option value="F">여자</option>
<option value="M">남자</option>
</select>
<script> document.fmember.mb_sex.value = "<?=$mb['mb_sex']?>"; </script>
</td>
</tr>
<tr>
<th scope="row" id="th205"><label for="mb_email">E-mail</label></th>
<td headers="th205"><input type="text" id="mb_email" name="mb_email" maxlength="100" required id="e-mail" name="e-mail" value="<?=$mb['mb_email'] ?>"></td>
</tr>
<tr>
<th scope="row" id="th206"><label for="mb_homepage">홈페이지</label></th>
<td headers="th206"><input type="text" id="mb_homepage" name="mb_homepage" maxlength="255" value="<?=$mb['mb_homepage']?>"></td>
</tr>
<tr>
<th scope="row" id="th207"><label for="mb_tel">전화번호</label></th>
<td headers="th207"><input type="text" id="mb_tel" name="mb_tel" maxlength="20" value="<?=$mb['mb_tel']?>"></td>
</tr>
<tr>
<th scope="row" id="th208"><label for="mb_hp">핸드폰번호</label></th>
<td headers="th208"><input type="text" id="mb_hp" name="mb_hp" maxlength="20" value="<?=$mb['mb_hp']?>"></td>
</tr>
<tr>
<th scope="row" id="th209">주소</th>
<td headers="th209">
<input type="text" id="mb_zip1" name="mb_zip1" maxlength="3" readonly value="<?=$mb[mb_zip1]?>" title="우편번호 앞자리"> -
<input type="text" id="mb_zip2" name="mb_zip2" maxlength="3" readonly value="<?=$mb[mb_zip2]?>" title="우편번호 뒷자리">
<a href="javascript:;" onclick="win_zip('fmember', 'mb_zip1', 'mb_zip2', 'mb_addr1', 'mb_addr2');">우편번호 검색</a>
<input type="text" id="mb_addr1" name="mb_addr1" readonly value="<?=$mb['mb_addr1'] ?>" title="기본주소">
<label for="mb_addr2" class="visibility_hidden_label">상세주소</label>
<input type="text" id="mb_addr2" name="mb_addr2" value="<?=$mb['mb_addr2']?>"> 상세주소 입력
</td>
</tr>
<tr>
<th scope="row" id="th210"><label for="mb_signature">서명</label></th>
<td headers="th210"><textarea id="mb_signature" name="mb_signature"><? echo $mb['mb_signature'] ?></textarea></td>
</tr>
<tr>
<th scope="row" id="th211"><label for="mb_icon">회원아이콘</label></th>
<td headers="th211">
<input type="file" id="mb_icon" name="mb_icon">
이미지 크기는 <?=$config[cf_member_icon_width]?>x<?=$config[cf_member_icon_height]?>으로 해주세요.
<?
$mb_dir = substr($mb[mb_id],0,2);
$icon_file = "$g4[path]/data/member/$mb_dir/$mb[mb_id].gif";
$mb_dir = substr($mb['mb_id'],0,2);
$icon_file = $g4['path'].'/data/member/'.$mb_dir.'/'.$mb['mb_id'].'.gif';
if (file_exists($icon_file)) {
echo "<br><img src='$icon_file' align=absmiddle>";
echo " <input type=checkbox name='del_mb_icon' value='1' class='csscheck'>삭제";
}
echo '<img src="$icon_file">';
echo '<input type="checkbox" id="del_mb_icon" name="del_mb_icon" value="1">삭제';
}
?>
</td>
</tr>
<tr class='ht'>
<td>생년월일</td>
<td><input type=text class=ed name=mb_birth size=9 maxlength=8 value='<? echo $mb[mb_birth] ?>'></td>
<td>남녀</td>
<td>
<select name=mb_sex><option value=''>----<option value='F'>여자<option value='M'>남자</select>
<script type="text/javascript"> document.fmember.mb_sex.value = "<?=$mb[mb_sex]?>"; </script></td>
<tr>
<th scope="row" id="th212"><label for="mb_profile">자기 소개</label></th>
<td headers="th212"><textarea id="mb_profile" name="mb_profile"><? echo $mb['mb_profile'] ?></textarea></td>
</tr>
<tr class='ht'>
<td>메일 수신</td>
<td><input type=checkbox name=mb_mailling value='1' <?=$mailling_checked?>> 정보 메일을 받음</td>
<td>SMS 수신</td>
<td><input type=checkbox name=mb_sms value='1' <?=$sms_checked?>> 문자메세지를 받음</td>
<tr>
<th scope="row" id="th213"><label for="mb_memo">메모</label></th>
<td headers="th213"><textarea id="mb_memo" name="mb_memo"><? echo $mb[mb_memo] ?></textarea></td>
</tr>
<tr class='ht'>
<td>정보 공개</td>
<td colspan=3><input type=checkbox name=mb_open value='1' <?=$open_checked?>> 타인에게 자신의 정보를 공개</td>
</tr>
<tr class='ht'>
<td>서명</td>
<td><textarea class=ed name=mb_signature rows=5 style='width:99%; word-break:break-all;'><? echo $mb[mb_signature] ?></textarea></td>
<td>자기 소개</td>
<td><textarea class=ed name=mb_profile rows=5 style='width:99%; word-break:break-all;'><? echo $mb[mb_profile] ?></textarea></td>
</tr>
<tr class='ht'>
<td>메모</td>
<td colspan=3><textarea class=ed name=mb_memo rows=5 style='width:99%; word-break:break-all;'><? echo $mb[mb_memo] ?></textarea></td>
</tr>
<? if ($w == "u") { ?>
<tr class='ht'>
<td>회원가입일</td>
<td><?=$mb[mb_datetime]?></td>
<td>최근접속일</td>
<td><?=$mb[mb_today_login]?></td>
</tr>
<tr class='ht'>
<td>IP</td>
<td><?=$mb[mb_ip]?></td>
<? if ($config[cf_use_email_certify]) { ?>
<td>인증일시</td>
<td><?=$mb[mb_email_certify]?>
<? if ($mb[mb_email_certify] == "0000-00-00 00:00:00") { echo "<input type=checkbox name=passive_certify>수동인증"; } ?></td>
<? } else { ?>
<td></td>
<td></td>
<? } ?>
</tr>
<? } ?>
<? if ($config[cf_use_recommend]) { // 추천인 사용 ?>
<tr class='ht'>
<td>추천인</td>
<td colspan=3><?=($mb[mb_recommend] ? get_text($mb[mb_recommend]) : "없음"); // 081022 : CSRF 보안 결함으로 인한 코드 수정 ?></td>
</tr>
<? } ?>
<tr class='ht'>
<td>탈퇴일자</td>
<td><input type=text class=ed name=mb_leave_date size=9 maxlength=8 value='<? echo $mb[mb_leave_date] ?>'></td>
<td>접근차단일자</td>
<td><input type=text class=ed name=mb_intercept_date size=9 maxlength=8 value='<? echo $mb[mb_intercept_date] ?>'> <input type=checkbox value='<? echo date("Ymd"); ?>' onclick='if (this.form.mb_intercept_date.value==this.form.mb_intercept_date.defaultValue) { this.form.mb_intercept_date.value=this.value; } else { this.form.mb_intercept_date.value=this.form.mb_intercept_date.defaultValue; } '>오늘</td>
</tr>
<? for ($i=1; $i<=10; $i=$i+2) { $k=$i+1; ?>
<tr class='ht'>
<td>여분 필드 <?=$i?></td>
<td><input type=text class=ed style='width:99%;' name='mb_<?=$i?>' maxlength=255 value='<?=$mb["mb_$i"]?>'></td>
<td>여분 필드 <?=$k?></td>
<td><input type=text class=ed style='width:99%;' name='mb_<?=$k?>' maxlength=255 value='<?=$mb["mb_$k"]?>'></td>
</tr>
<? } ?>
<tr class='ht'>
<td colspan=4 align=left>
<?=subtitle("XSS / CSRF 방지")?>
</td>
</tr>
<tr><td colspan=4 class=line1></td></tr>
<tr class='ht'>
<td>
관리자 패스워드
</td>
<td colspan=3>
<input class='ed' type='password' name='admin_password' itemname="관리자 패스워드" required>
<?=help("관리자 권한을 빼앗길 것에 대비하여 로그인한 관리자의 패스워드를 한번 더 묻는것 입니다.");?>
</td>
</tr>
<tr><td colspan=4 class=line2></td></tr>
</tbody>
</table>
<p align=center>
<input type=submit class=btn1 accesskey='s' value=' 확 인 '>&nbsp;
<input type=button class=btn1 value=' 목 록 ' onclick="document.location.href='./member_list.php?<?=$qstr?>';">&nbsp;
<? if ($w != '') { ?>
<input type=button class=btn1 value=' 삭 제 ' onclick="del('./member_delete.php?<?=$qstr?>&w=d&mb_id=<?=$mb[mb_id]?>&url=<?=$_SERVER[PHP_SELF]?>');">&nbsp;
<? } ?>
<table>
<caption>
회원의 정보 수신 및 공개 여부 <?=$html_title?>
</caption>
<tbody>
<tr>
<th scope="row" id="th301"><label for="mb_mailing">메일 수신</label></th>
<td headers="th301"><input type="checkbox" id="mb_mailling" name="mb_mailling" value="1" <?=$mailling_checked?>> 정보 메일을 받음</td>
</tr>
<tr>
<th scope="row" id="th302"><label for="mb_sms">SMS 수신</label></th>
<td headers="th302"><input type="checkbox" id="mb_sms" name="mb_sms" value="1" <?=$sms_checked?>> 문자메세지를 받음</td>
</tr>
<tr>
<th scope="row" id="th302"><label for="mb_open">정보 공개</label></th>
<td headers="th302"><input type="checkbox" id="mb_open" name="mb_open" value="1" <?=$open_checked?>> 타인에게 자신의 정보를 공개</td>
</tr></tbody>
</table>
<table>
<caption>회원의 사이트 이용상태 확인 (혹은 <?=$html_title?>)</caption>
<tbody>
<? if ($w == "u") { ?>
<tr>
<th scope="row" id="th401">회원가입일</th>
<td headers="th401"><?=$mb[mb_datetime]?></td>
</tr>
<tr>
<th scope="row" id="th402">최근접속일</th>
<td headers="th402"><?=$mb[mb_today_login]?></td>
</tr>
<tr>
<th scope="row" id="th403">IP</th>
<td headers="th403"><?=$mb[mb_ip]?></td>
</tr>
<? if ($config[cf_use_email_certify]) { ?>
<tr>
<th scope="row" id="th404"><? if ($mb['mb_email_certify'] == "0000-00-00 00:00:00") {?><label for="passive_certify">인증일시</label><?}else{?>인증일시<?}?></th>
<td headers="th404">
<?=$mb['mb_email_certify']?>
<? if ($mb['mb_email_certify'] == "0000-00-00 00:00:00") { echo '<input type="checkbox" id="passive_certify" name="passive_certify">수동인증'; } ?>
</td>
</tr>
<? } ?>
<? } ?>
<? if ($config[cf_use_recommend]) { // 추천인 사용 ?>
<tr>
<th scope="row" id="th405">추천인</th>
<td headers="th405"><?=($mb['mb_recommend'] ? get_text($mb['mb_recommend']) : "없음"); // 081022 : CSRF 보안 결함으로 인한 코드 수정 ?></td>
</tr>
<? } ?>
<tr>
<th scope="row" id="th406"><label for="mb_leave_date">탈퇴일자</label></th>
<td headers="th406"><input type="text" id="mb_leave_date" name="mb_leave_date" maxlength="8" value="<?=$mb['mb_leave_date']?>"></td>
</tr>
<tr>
<th scope="row" id="th407"><label for="mb_intercept_date">접근차단일자</label></th>
<td headers="th407">
<input type="text" id="mb_intercept_date" name="mb_intercept_date" maxlength="8" value="<?=$mb['mb_intercept_date']?>">
<input type="checkbox" id="mb_intercept_today" name="mb_intercept_today" value='<? echo date("Ymd"); ?>' onclick='if (this.form.mb_intercept_date.value==this.form.mb_intercept_date.defaultValue) { this.form.mb_intercept_date.value="this".value; } else { this.form.mb_intercept_date.value="this".form.mb_intercept_date.defaultValue; } '>
<label for="mb_intercept_today">오늘</label>
</td>
</tr></tbody>
</table>
<table>
<caption>
회원과 관련되어 미리 정의된 추가사항 <?=$html_title?>
</caption>
<tbody>
<? for ($i=1; $i<=10; $i=$i+2) { $k=$i+1; ?>
<tr>
<th scope="row" id="th5<?=$i?>"><label for="mb_<?=$i?>">여분 필드 <?=$i?></label></th>
<td headers="th5<?=$i?>"><input type="text" id="mb_<?=$i?>" name="mb_<?=$i?>" maxlength="255" value="<?=$mb['mb_{$i}']?>"></td>
<th scope="row" id="th5<?=$k?>"><label for="mb_<?=$k?>">여분 필드 <?=$k?></label></th>
<td headers="th5<?=$k?>"><input type="text" id="mb_<?=$k?>" name="mb_<?=$k?>" maxlength="255" value="<?=$mb['mb_{$k}']?>"></td>
</tr>
<? } ?>
</tbody>
</table>
<fieldset>
<legend><span></span>XSS/CSRF 방지 관리자 패스워드 확인</legend>
<p>관리자 권한을 빼앗길 것에 대비하여 로그인한 관리자의 패스워드를 한번 더 묻는것 입니다.</p>
<label for="admin_password">관리자 패스워드</label>
<input type="password" id="admin_password" name="admin_password" name="관리자 패스워드" required>
<input type="submit" accesskey="s" value="확인">
<input type="button" value="목록" onclick="document.location.href='./member_list.php?<?=$qstr?>';">
<? if ($w != '') { ?>
<input type="button" value="삭제" onclick="del('./member_delete.php?<?=$qstr?>&amp;w=d&amp;mb_id=<?=$mb['mb_id']?>&amp;url=<?=$_SERVER['PHP_SELF']?>');">
<? } ?>
</fieldset>
</form>
<script type='text/javascript'>

View File

@ -50,34 +50,34 @@ $sql_common = " mb_name = '$_POST[mb_name]',
if ($w == "")
{
$mb = get_member($mb_id);
if ($mb[mb_id])
alert("이미 존재하는 회원입니다.\\n\\n : $mb[mb_id]\\n\\n이름 : $mb[mb_name]\\n\\n별명 : $mb[mb_nick]\\n\\n메일 : $mb[mb_email]");
if ($mb['mb_id'])
alert("이미 존재하는 회원입니다.\\n\\n : $mb['mb_id']\\n\\n이름 : $mb[mb_name]\\n\\n별명 : $mb[mb_nick]\\n\\n메일 : $mb[mb_email]");
if ($mb[mb_nick] == $mb_nick)
alert("이미 존재하는 별명입니다.\\n\\n : $mb[mb_id]\\n\\n이름 : $mb[mb_name]\\n\\n별명 : $mb[mb_nick]\\n\\n메일 : $mb[mb_email]");
alert("이미 존재하는 별명입니다.\\n\\n : $mb['mb_id']\\n\\n이름 : $mb[mb_name]\\n\\n별명 : $mb[mb_nick]\\n\\n메일 : $mb[mb_email]");
if ($mb[mb_email] == $mb_email)
alert("이미 존재하는 E-mail 입니다.\\n\\n : $mb[mb_id]\\n\\n이름 : $mb[mb_name]\\n\\n별명 : $mb[mb_nick]\\n\\n메일 : $mb[mb_email]");
alert("이미 존재하는 E-mail 입니다.\\n\\n : $mb['mb_id']\\n\\n이름 : $mb[mb_name]\\n\\n별명 : $mb[mb_nick]\\n\\n메일 : $mb[mb_email]");
sql_query(" insert into $g4[member_table] set mb_id = '$mb_id', mb_password = '".sql_password($mb_password)."', mb_datetime = '$g4[time_ymdhis]', mb_ip = '$_SERVER[REMOTE_ADDR]', mb_email_certify = '$g4[time_ymdhis]', $sql_common ");
}
else if ($w == "u")
{
$mb = get_member($mb_id);
if (!$mb[mb_id])
if (!$mb['mb_id'])
alert("존재하지 않는 회원자료입니다.");
if ($is_admin != "super" && $mb[mb_level] >= $member[mb_level])
alert("자신보다 권한이 높거나 같은 회원은 수정할 수 없습니다.");
if ($_POST[mb_id] == $member[mb_id] && $_POST[mb_level] != $mb[mb_level])
alert("$mb[mb_id] : 로그인 중인 관리자 레벨은 수정 할 수 없습니다.");
if ($_POST['mb_id'] == $member['mb_id'] && $_POST[mb_level] != $mb[mb_level])
alert("$mb['mb_id'] : 로그인 중인 관리자 레벨은 수정 할 수 없습니다.");
$mb_dir = substr($mb_id,0,2);
// 회원 아이콘 삭제
if ($del_mb_icon)
@unlink("$g4[path]/data/member/$mb_dir/$mb_id.gif");
@unlink("$g4['path']/data/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['path']/data/member/$mb_dir", 0707);
@chmod("$g4['path']/data/member/$mb_dir", 0707);
$dest_path = "$g4[path]/data/member/$mb_dir/$mb_id.gif";
$dest_path = "$g4['path']/data/member/$mb_dir/$mb_id.gif";
move_uploaded_file($_FILES[mb_icon][tmp_name], $dest_path);
chmod($dest_path, 0606);

View File

@ -1,26 +1,26 @@
<?
$sub_menu = "200100";
include_once("./_common.php");
include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
auth_check($auth[$sub_menu], 'r');
$token = get_token();
$sql_common = " from $g4[member_table] ";
$sql_common = " from {$g4['member_table']} ";
$sql_search = " where (1) ";
if ($stx) {
$sql_search .= " and ( ";
switch ($sfl) {
case "mb_point" :
case 'mb_point' :
$sql_search .= " ($sfl >= '$stx') ";
break;
case "mb_level" :
case 'mb_level' :
$sql_search .= " ($sfl = '$stx') ";
break;
case "mb_tel" :
case "mb_hp" :
$sql_search .= " ($sfl like '%$stx') ";
case 'mb_tel' :
case 'mb_hp' :
$sql_search .= " ($sfl like '%$stx') ";
break;
default :
$sql_search .= " ($sfl like '$stx%') ";
@ -31,7 +31,7 @@ if ($stx) {
//if ($is_admin == 'group') $sql_search .= " and mb_level = '$member[mb_level]' ";
if ($is_admin != 'super')
$sql_search .= " and mb_level <= '$member[mb_level]' ";
$sql_search .= " and mb_level <= '{$member[mb_level]}' ";
if (!$sst) {
$sst = "mb_datetime";
@ -53,7 +53,7 @@ if (!$page) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
// 탈퇴회원수
$sql = " select count(*) as cnt
$sql = "select count(*) as cnt
$sql_common
$sql_search
and mb_leave_date <> ''
@ -71,10 +71,10 @@ $row = sql_fetch($sql);
$intercept_count = $row[cnt];
if ($sfl || $stx)
$listall = "<a href='$_SERVER[PHP_SELF]' class=tt>처음으로</a>";
$listall = '<a href="'.$_SERVER['PHP_SELF'].'">처음으로</a>';
$g4[title] = "회원관리";
include_once("./admin.head.php");
$g4[title] = '회원관리';
include_once('./admin.head.php');
$sql = " select *
$sql_common
@ -86,20 +86,20 @@ $result = sql_query($sql);
$colspan = 15;
?>
<script src="<?=$g4[path]?>/js/sideview.js"></script>
<script src="<?=$g4['path']?>/js/sideview.js"></script>
<script>
var list_update_php = "member_list_update.php";
var list_delete_php = "member_list_delete.php";
var list_update_php = 'member_list_update.php';
var list_delete_php = 'member_list_delete.php';
</script>
<form id="fsearch" name="fsearch" method="get">
<form id="fsearch" id="fsearch" name="fsearch" method="get">
<fieldset>
<legend>회원검색</legend>
<?=$listall?>
<span>총회원 <?=number_format($total_count)?></span> 중
<a href='?sst=mb_intercept_date&amp;sod=desc&amp;sfl=<?=$sfl?>&amp;stx=<?=$stx?>' title='차단된 회원부터 출력'>차단 : <?=number_format($intercept_count)?></a>,
<a href='?sst=mb_leave_date&amp;sod=desc&amp;sfl=<?=$sfl?>&amp;stx=<?=$stx?>' title='탈퇴한 회원부터 출력'>탈퇴 : <?=number_format($leave_count)?></a>
<select id="sfl" name="sfl">
<select id="sfl" id="sfl" name="sfl">
<option value="mb_id">회원아이디</option>
<option value="mb_name">이름</option>
<option value="mb_nick">별명</option>
@ -113,18 +113,18 @@ var list_delete_php = "member_list_delete.php";
<option value="mb_recommend">추천인</option>
</select>
<label for="stx">검색어</label>
<input type="text" id="stx" name="stx" required value='<? echo $stx ?>'>
<input type="text" id="stx" id="stx" name="stx" required value='<?=$stx?>'>
<input type="submit" value="검색">
</fieldset>
</form>
<form id="fmemberlist" name="fmemberlist" method="post">
<input type="hidden" name="sst" value="<?=$sst?>">
<input type="hidden" name="sod" value="<?=$sod?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="token" value="<?=$token?>">
<form id="fmemberlist" id="fmemberlist" name="fmemberlist" method="post">
<input type="hidden" id="sst" name="sst" value="<?=$sst?>">
<input type="hidden" id="sod" name="sod" value="<?=$sod?>">
<input type="hidden" id="sfl" name="sfl" value="<?=$sfl?>">
<input type="hidden" id="stx" name="stx" value="<?=$stx?>">
<input type="hidden" id="page" name="page" value="<?=$page?>">
<input type="hidden" id="token" name="token" value="<?=$token?>">
<a href="./member_form.php">회원추가</a>
@ -135,7 +135,7 @@ var list_delete_php = "member_list_delete.php";
</caption>
<thead>
<tr>
<th scope="col" id="th1"><label for="chkall">전체선택</label><input type="checkbox" id="chkall" name="chkall" value='1' onclick='check_all(this.form)'></th>
<th scope="col" id="th1"><label for="chkall">전체선택</label><input type="checkbox" id="chkall" id="chkall" name="chkall" value="1" onclick="check_all(this.form)"></th>
<th scope="col" id="th2"><?=subject_sort_link('mb_id')?>회원아이디</a></th>
<th scope="col" id="th3"><?=subject_sort_link('mb_name')?>이름</a></th>
<th scope="col" id="th4"><?=subject_sort_link('mb_nick')?>별명</a></th>
@ -155,18 +155,18 @@ var list_delete_php = "member_list_delete.php";
<?
for ($i=0; $row=sql_fetch_array($result); $i++) {
// 접근가능한 그룹수
$sql2 = " select count(*) as cnt from $g4[group_member_table] where mb_id = '$row[mb_id]' ";
$sql2 = " select count(*) as cnt from {$g4['group_member_table']} where mb_id = '{$row['mb_id']}' ";
$row2 = sql_fetch($sql2);
$group = "";
if ($row2[cnt])
$group = "<a href='./boardgroupmember_form.php?mb_id=$row[mb_id]'>$row2[cnt]</a>";
$group = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">'.$row2[cnt].'</a>';
if ($is_admin == 'group')
{
$s_mod = "";
$s_del = "";
}
else
$s_mod = '';
$s_del = '';
}
else
{
$s_mod = '<a href="./member_form.php?$qstr&amp;w=u&amp;mb_id='.$row[mb_id].'">수정</a>';
//$s_del = '<a href="javascript:del('./member_delete.php?$qstr&amp;w=d&amp;mb_id=$row[mb_id]');">삭제</a>';
@ -174,23 +174,23 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
}
$s_grp = '<a href="./boardgroupmember_form.php?mb_id='.$row[mb_id].'">그룹</a>';
$leave_date = $row[mb_leave_date] ? $row[mb_leave_date] : date("Ymd", $g4[server_time]);
$intercept_date = $row[mb_intercept_date] ? $row[mb_intercept_date] : date("Ymd", $g4[server_time]);
$leave_date = $row['mb_leave_date'] ? $row['mb_leave_date'] : date("Ymd", $g4[server_time]);
$intercept_date = $row['mb_intercept_date'] ? $row['mb_intercept_date'] : date("Ymd", $g4[server_time]);
$mb_nick = get_sideview($row[mb_id], $row[mb_nick], $row[mb_email], $row[mb_homepage]);
$mb_nick = get_sideview($row['mb_id'], $row['mb_nick'], $row['mb_email'], $row['mb_homepage']);
$mb_id = $row[mb_id];
if ($row[mb_leave_date])
$mb_id = "<font color=crimson>$mb_id</font>";
else if ($row[mb_intercept_date])
$mb_id = "<font color=orange>$mb_id</font>";
$mb_id = $row['mb_id'];
if ($row['mb_leave_date'])
$mb_id = $mb_id;
else if ($row['mb_intercept_date'])
$mb_id = $mb_id;
?>
<tr>
<td headers="th1">
<label for="chk[<?=$i?>]">이 회원을 선택</label>
<input type="checkbox" id="chk[<?=$i?>]" name="chk[]" value="<?=$i?>">
<input type="hidden" name="mb_id[<?=$i?>]" value="<?=$row['mb_id']?>">
<input type="checkbox" id="chk[<?=$i?>]" id="chk[]" name="chk[]" value="<?=$i?>">
<input type="hidden" id="mb_id[<?=$i?>]" name="mb_id[<?=$i?>]" value="<?=$row['mb_id']?>">
</td>
<td headers="th2"><?=$mb_id?></td>
<td headers="th3"><?=$row['mb_name']?></td>
@ -202,7 +202,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
<td headers="th9"><?=$row[mb_open]?'예':'아니오'?></td>
<!-- <td headers="th10"><?=$row[mb_leave_date]?'예':'아니오';?></td> -->
<td headers="th11"><?=preg_match('/[1-9]/', $row[mb_email_certify])?'예':'아니오'?></td>
<td headers="th12"><input type="checkbox" name="mb_intercept_date[<?=$i?>]" <?$row['mb_intercept_date']?'checked':''?> value="<?=$intercept_date?>"></td>
<td headers="th12"><input type="checkbox" id="mb_intercept_date[<?=$i?>]" name="mb_intercept_date[<?=$i?>]" <?$row['mb_intercept_date']?'checked':''?> value="<?=$intercept_date?>"></td>
<td headers="th13"><?=$group?></td>
<td headers="th14"><?=$s_mod?> <?=$s_del?> <?=$s_grp?></td>
</tr>
@ -248,14 +248,14 @@ function post_delete(action_url, val)
}
</script>
<form name="fpost" method="post">
<input type="hidden" name="sst" value="<?=$sst?>">
<input type="hidden" name="sod" value="<?=$sod?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="token" value="<?=$token?>">
<input type="hidden" name="mb_id">
<form id="fpost" name="fpost" method="post">
<input type="hidden" id="sst" name="sst" value="<?=$sst?>">
<input type="hidden" id="sod" name="sod" value="<?=$sod?>">
<input type="hidden" id="sfl" name="sfl" value="<?=$sfl?>">
<input type="hidden" id="stx" name="stx" value="<?=$stx?>">
<input type="hidden" id="page" name="page" value="<?=$page?>">
<input type="hidden" id="token" name="token" value="<?=$token?>">
<input type="hidden" id="mb_id" name="mb_id">
</form>
<?

View File

@ -16,17 +16,17 @@ for ($i=0; $i<count($chk); $i++)
$mb = get_member($_POST['mb_id'][$k]);
if (!$mb[mb_id]) {
$msg .= "$mb[mb_id] : 회원자료가 존재하지 않습니다.\\n";
} else if ($member[mb_id] == $mb[mb_id]) {
$msg .= "$mb[mb_id] : 로그인 중인 관리자는 삭제 할 수 없습니다.\\n";
} else if (is_admin($mb[mb_id]) == "super") {
$msg .= "$mb[mb_id] : 최고 관리자는 삭제할 수 없습니다.\\n";
if (!$mb['mb_id']) {
$msg .= "$mb['mb_id'] : 회원자료가 존재하지 않습니다.\\n";
} else if ($member['mb_id'] == $mb['mb_id']) {
$msg .= "$mb['mb_id'] : 로그인 중인 관리자는 삭제 할 수 없습니다.\\n";
} else if (is_admin($mb['mb_id']) == "super") {
$msg .= "$mb['mb_id'] : 최고 관리자는 삭제할 수 없습니다.\\n";
} else if ($is_admin != "super" && $mb[mb_level] >= $member[mb_level]) {
$msg .= "$mb[mb_id] : 자신보다 권한이 높거나 같은 회원은 삭제할 수 없습니다.\\n";
$msg .= "$mb['mb_id'] : 자신보다 권한이 높거나 같은 회원은 삭제할 수 없습니다.\\n";
} else {
// 회원자료 삭제
member_delete($mb[mb_id]);
member_delete($mb['mb_id']);
}
}

View File

@ -15,12 +15,12 @@ for ($i=0; $i<count($chk); $i++)
$mb = get_member($_POST['mb_id'][$k]);
if (!$mb[mb_id]) {
$msg .= "$mb[mb_id] : 회원자료가 존재하지 않습니다.\\n";
if (!$mb['mb_id']) {
$msg .= "$mb['mb_id'] : 회원자료가 존재하지 않습니다.\\n";
} else if ($is_admin != "super" && $mb[mb_level] >= $member[mb_level]) {
$msg .= "$mb[mb_id] : 자신보다 권한이 높거나 같은 회원은 수정할 수 없습니다.\\n";
} else if ($member[mb_id] == $mb[mb_id]) {
$msg .= "$mb[mb_id] : 로그인 중인 관리자는 수정 할 수 없습니다.\\n";
$msg .= "$mb['mb_id'] : 자신보다 권한이 높거나 같은 회원은 수정할 수 없습니다.\\n";
} else if ($member['mb_id'] == $mb['mb_id']) {
$msg .= "$mb['mb_id'] : 로그인 중인 관리자는 수정 할 수 없습니다.\\n";
} else {
$sql = " update $g4[member_table]
set mb_level = '{$_POST['mb_level'][$k]}',

View File

@ -37,7 +37,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$total = 0;
$sql2 = " select po_id, po_point
from $g4[point_table]
where mb_id = '$row[mb_id]'
where mb_id = '$row['mb_id']'
order by po_id desc
limit $max_count, $row[cnt] ";
$result2 = sql_query($sql2);
@ -49,9 +49,9 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
sql_query(" delete from $g4[point_table] where po_id = '$row2[po_id]' ");
}
insert_point($row[mb_id], $total, "포인트 {$count}건 정리", "@clear", $row[mb_id], $g4[time_ymd]."-".uniqid(""));
insert_point($row['mb_id'], $total, "포인트 {$count}건 정리", "@clear", $row['mb_id'], $g4[time_ymd]."-".uniqid(""));
$str = $row[mb_id]."님 포인트 내역 ".number_format($count)."".number_format($total)."점 정리<br>";
$str = $row['mb_id']."님 포인트 내역 ".number_format($count)."".number_format($total)."점 정리<br>";
echo "<script>document.getElementById('ct').innerHTML += '$str';</script>\n";
flush();
}

View File

@ -58,7 +58,7 @@ include_once ("./admin.head.php");
$colspan = 8;
?>
<script type="text/javascript" src="<?=$g4[path]?>/js/sideview.js"></script>
<script type="text/javascript" src="<?=$g4['path']?>/js/sideview.js"></script>
<script type="text/javascript">
var list_update_php = "";
var list_delete_php = "point_list_delete.php";
@ -75,13 +75,13 @@ function point_clear()
</script>
<table width=100%>
<form name=fsearch method=get>
<form id="fsearch" name="fsearch" method=get>
<tr>
<td width=50% align=left>
<?=$listall?> (건수 : <?=number_format($total_count)?>)
<?
if ($mb[mb_id])
echo "&nbsp;(" . $mb[mb_id] ." 님 포인트 합계 : " . number_format($mb[mb_point]) . "점)";
if ($mb['mb_id'])
echo "&nbsp;(" . $mb['mb_id'] ." 님 포인트 합계 : " . number_format($mb[mb_point]) . "점)";
else {
$row2 = sql_fetch(" select sum(po_point) as sum_point from $g4[point_table] ");
echo "&nbsp;(전체 포인트 합계 : " . number_format($row2[sum_point]) . "점)";
@ -90,23 +90,23 @@ function point_clear()
<? if ($is_admin == "super") { ?><!-- <a href="javascript:point_clear();">포인트정리</a> --><? } ?>
</td>
<td width=50% align=right>
<select name=sfl class=cssfl>
<option value='mb_id'>회원아이디</option>
<option value='po_content'>내용</option>
<select id="sfl" name="sfl" class=cssfl>
<option value="mb_id">회원아이디</option>
<option value="po_content">내용</option>
</select>
<input type=text name=stx class=ed required itemname='검색어' value='<?=$stx?>'>
<input type=image src='<?=$g4[admin_path]?>/img/btn_search.gif' align=absmiddle></td>
<input type="text" id="stx" name="stx" class=ed required value='<?=$stx?>'>
<input type="image" src='<?=$g4['admin_path']?>/img/btn_search.gif' align=absmiddle></td>
</tr>
</form>
</table>
<form name=fpointlist method=post>
<input type=hidden name=sst value='<?=$sst?>'>
<input type=hidden name=sod value='<?=$sod?>'>
<input type=hidden name=sfl value='<?=$sfl?>'>
<input type=hidden name=stx value='<?=$stx?>'>
<input type=hidden name=page value='<?=$page?>'>
<input type=hidden name=token value='<?=$token?>'>
<form id="fpointlist" name="fpointlist" method=post>
<input type="hidden" id="sst" name="sst" value='<?=$sst?>'>
<input type="hidden" id="sod" name="sod" value='<?=$sod?>'>
<input type="hidden" id="sfl" name="sfl" value='<?=$sfl?>'>
<input type="hidden" id="stx" name="stx" value='<?=$stx?>'>
<input type="hidden" id="page" name="page" value='<?=$page?>'>
<input type="hidden" id="token" name="token" value='<?=$token?>'>
<table width=100% cellpadding=0 cellspacing=1>
<colgroup width=30>
@ -119,7 +119,7 @@ function point_clear()
<colgroup width=80>
<tr><td colspan='<?=$colspan?>' class='line1'></td></tr>
<tr class='bgcol1 bold col1 ht center'>
<td><input type=checkbox name=chkall value='1' onclick='check_all(this.form)'></td>
<td><input type="checkbox" id="chkall" name="chkall" value="1" onclick='check_all(this.form)'></td>
<td><?=subject_sort_link('mb_id')?>회원아이디</a></td>
<td>이름</td>
<td>별명</td>
@ -132,13 +132,13 @@ function point_clear()
<?
for ($i=0; $row=sql_fetch_array($result); $i++)
{
if ($row2[mb_id] != $row[mb_id])
if ($row2['mb_id'] != $row['mb_id'])
{
$sql2 = " select mb_id, mb_name, mb_nick, mb_email, mb_homepage, mb_point from $g4[member_table] where mb_id = '$row[mb_id]' ";
$sql2 = " select mb_id, mb_name, mb_nick, mb_email, mb_homepage, mb_point from $g4[member_table] where mb_id = '$row['mb_id']' ";
$row2 = sql_fetch($sql2);
}
$mb_nick = get_sideview($row[mb_id], $row2[mb_nick], $row2[mb_email], $row2[mb_homepage]);
$mb_nick = get_sideview($row['mb_id'], $row2[mb_nick], $row2[mb_email], $row2[mb_homepage]);
$link1 = $link2 = "";
if (!preg_match("/^\@/", $row[po_rel_table]) && $row[po_rel_table])
@ -149,11 +149,11 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$list = $i%2;
echo "
<input type=hidden name=po_id[$i] value='$row[po_id]'>
<input type=hidden name=mb_id[$i] value='$row[mb_id]'>
<input type="hidden" id="po_id" name="po_id"[$i] value='$row[po_id]'>
<input type="hidden" id="mb_id" name="mb_id"[$i] value='$row['mb_id']'>
<tr class='list$list col1 ht center'>
<td><input type=checkbox name=chk[] value='$i'></td>
<td><a href='?sfl=mb_id&stx=$row[mb_id]'>$row[mb_id]</a></td>
<td><input type="checkbox" id="chk" name="chk"[] value='$i'></td>
<td><a href='?sfl=mb_id&stx=$row['mb_id']'>$row['mb_id']</a></td>
<td>$row2[mb_name]</td>
<td>$mb_nick</td>
<td>$row[po_datetime]</td>
@ -172,7 +172,7 @@ echo "</table>";
$pagelist = get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]?$qstr&page=");
echo "<table width=100% cellpadding=3 cellspacing=1>";
echo "<tr><td width=50%>";
echo "<input type=button class='btn1' value='선택삭제' onclick=\"btn_check(this.form, 'delete')\">";
echo "<input type="button" class='btn1' value='선택삭제' onclick="btn_check(this.form, 'delete')">";
echo "</td>";
echo "<td width=50% align=right>$pagelist</td></tr></table>\n";
@ -190,13 +190,13 @@ else
<?$colspan=5?>
<p>
<form name=fpointlist2 method=post onsubmit="return fpointlist2_submit(this);" autocomplete="off">
<input type=hidden name=sfl value='<?=$sfl?>'>
<input type=hidden name=stx value='<?=$stx?>'>
<input type=hidden name=sst value='<?=$sst?>'>
<input type=hidden name=sod value='<?=$sod?>'>
<input type=hidden name=page value='<?=$page?>'>
<input type=hidden name=token value='<?=$token?>'>
<form id="fpointlist2" name="fpointlist2" method=post onsubmit="return fpointlist2_submit(this);" autocomplete="off">
<input type="hidden" id="sfl" name="sfl" value='<?=$sfl?>'>
<input type="hidden" id="stx" name="stx" value='<?=$stx?>'>
<input type="hidden" id="sst" name="sst" value='<?=$sst?>'>
<input type="hidden" id="sod" name="sod" value='<?=$sod?>'>
<input type="hidden" id="page" name="page" value='<?=$page?>'>
<input type="hidden" id="token" name="token" value='<?=$token?>'>
<table width=100% cellpadding=0 cellspacing=1 class=tablebg>
<colgroup width=150>
<colgroup width=''>
@ -213,11 +213,11 @@ else
</tr>
<tr><td colspan='<?=$colspan?>' class='line2'></td></tr>
<tr class='ht center'>
<td><input type=text class=ed name=mb_id required itemname='회원아이디' value='<?=$mb_id?>'></td>
<td><input type=text class=ed name=po_content required itemname='내용' style='width:99%;'></td>
<td><input type=text class=ed name=po_point required itemname='포인트' size=10></td>
<td><input type=password class=ed name=admin_password required itemname='관리자 패스워드'></td>
<td><input type=submit class=btn1 value=' 확 인 '></td>
<td><input type="text" class=ed id="mb_id" name="mb_id" required value='<?=$mb_id?>'></td>
<td><input type="text" class=ed id="po_content" name="po_content" required style='width:99%;'></td>
<td><input type="text" class=ed id="po_point" name="po_point" required size=10></td>
<td><input type="password" class=ed id="admin_password" name="admin_password" required 패스워드'></td>
<td><input type="submit" class=btn1 value=' 확 인 '></td>
</tr>
<tr><td colspan='<?=$colspan?>' class='line2'></td></tr>
</form>

View File

@ -16,13 +16,13 @@ $po_content = $_POST['po_content'];
$mb = get_member($mb_id);
if (!$mb[mb_id])
if (!$mb['mb_id'])
alert("존재하는 회원아이디가 아닙니다.", "./point_list.php?$qstr");
if (($po_point < 0) && ($po_point * (-1) > $mb[mb_point]))
alert("포인트를 깎는 경우 현재 포인트보다 작으면 안됩니다.", "./point_list.php?$qstr");
insert_point($mb_id, $po_point, $po_content, '@passive', $mb_id, $member[mb_id]."-".uniqid(""));
insert_point($mb_id, $po_point, $po_content, '@passive', $mb_id, $member['mb_id']."-".uniqid(""));
goto_url("./point_list.php?$qstr");
?>

View File

@ -20,27 +20,27 @@ $g4[title] = $html_title;
include_once("./admin.head.php");
?>
<form name=fpoll method=post onsubmit="return fpoll_check(this);" enctype="multipart/form-data">
<input type=hidden name=po_id value='<?=$po_id?>'>
<input type=hidden name=w value='<?=$w?>'>
<input type=hidden name=sfl value='<?=$sfl?>'>
<input type=hidden name=stx value='<?=$stx?>'>
<input type=hidden name=sst value='<?=$sst?>'>
<input type=hidden name=sod value='<?=$sod?>'>
<input type=hidden name=page value='<?=$page?>'>
<input type=hidden name=token value='<?=$token?>'>
<form id="fpoll" name="fpoll" method=post onsubmit="return fpoll_check(this);" enctype="multipart/form-data">
<input type="hidden" id="po_id" name="po_id" value='<?=$po_id?>'>
<input type="hidden" id="w" name="w" value='<?=$w?>'>
<input type="hidden" id="sfl" name="sfl" value='<?=$sfl?>'>
<input type="hidden" id="stx" name="stx" value='<?=$stx?>'>
<input type="hidden" id="sst" name="sst" value='<?=$sst?>'>
<input type="hidden" id="sod" name="sod" value='<?=$sod?>'>
<input type="hidden" id="page" name="page" value='<?=$page?>'>
<input type="hidden" id="token" name="token" value='<?=$token?>'>
<table width=100% cellpadding=0 cellspacing=0>
<colgroup width=20% class='col1 pad1 bold right'>
<colgroup width=30% class='col2 pad2'>
<colgroup width=20% class='col1 pad1 bold right'>
<colgroup width=30% class='col2 pad2'>
<tr>
<td colspan=4 class=title align=left><img src='<?=$g4[admin_path]?>/img/icon_title.gif'> <?=$html_title?></td>
<td colspan=4 class=title align=left><img src='<?=$g4['admin_path']?>/img/icon_title.gif'> <?=$html_title?></td>
</tr>
<tr><td colspan=4 class='line1'></td></tr>
<tr class='ht'>
<td>투표 제목</td>
<td colspan=3><input type='text' class=ed name='po_subject' style='width:99%;' required itemname='투표 제목' value='<?=$po[po_subject]?>' maxlength="125"></td>
<td colspan=3><input type="text" class=ed id="po_subject" name="po_subject" style='width:99%;' required 제목' value='<?=$po[po_subject]?>' maxlength="125"></td>
</tr>
<?
@ -57,9 +57,9 @@ for ($i=1; $i<=9; $i++) {
echo <<<HEREDOC
<tr class='ht'>
<td>항목{$i}</td>
<td><input type="text" class=ed name="po_poll{$i}" {$required} {$itemname} value="{$po_poll}" style="width:99%;" maxlength="125"></td>
<td><input type="text" class=ed id="po_poll{$i}" name="po_poll{$i}" {$required} {$itemname} value="{$po_poll}" style="width:99%;" maxlength="125"></td>
<td>투표수</td>
<td><input type="text" class=ed name="po_cnt{$i}" size=5 value="{$po["po_cnt".$i]}"></td>
<td><input type="text" class=ed id="po_cnt{$i}" name="po_cnt{$i}" size=5 value="{$po["po_cnt".$i]}"></td>
</tr>
HEREDOC;
@ -68,7 +68,7 @@ HEREDOC;
<tr class='ht'>
<td>기타의견</td>
<td colspan=3><input type='text' class=ed name='po_etc' style='width:99%;' value='<?=get_text($po[po_etc])?>' maxlength="125"></td>
<td colspan=3><input type="text" class=ed id="po_etc" name="po_etc" style='width:99%;' value='<?=get_text($po[po_etc])?>' maxlength="125"></td>
</tr>
<tr class='ht'>
@ -78,24 +78,24 @@ HEREDOC;
<tr class='ht'>
<td>포인트</td>
<td colspan=3><input type='text' class=ed name='po_point' size='10' value='<?=$po[po_point]?>'> 점 (투표한 회원에게 부여함)</td>
<td colspan=3><input type="text" class=ed id="po_point" name="po_point" size='10' value='<?=$po[po_point]?>'> 점 (투표한 회원에게 부여함)</td>
</tr>
<? if ($w == "u") { ?>
<tr class='ht'>
<td>투표시작일</td>
<td colspan=3><input type="text" class=ed name="po_date" size=10 maxlength=10 value="<?=$po[po_date]?>"></td>
<td colspan=3><input type="text" class=ed id="po_date" name="po_date" size=10 maxlength=10 value="<?=$po[po_date]?>"></td>
</tr>
<tr class='ht'>
<td>투표참가 IP</td>
<td colspan=3><textarea class=ed name="po_ips" rows=10 style='width:99%;' readonly><?=preg_replace("/\n/", " / ", $po[po_ips])?></textarea></td>
<td colspan=3><textarea class=ed id="po_ips" name="po_ips" rows=10 style='width:99%;' readonly><?=preg_replace("/\n/", " / ", $po[po_ips])?></textarea></td>
</tr>
<tr class='ht'>
<td>투표참가 회원</td>
<td colspan=3><textarea class=ed name="mb_ids" rows=10 style='width:99%;' readonly><?=preg_replace("/\n/", " / ", $po[mb_ids])?></textarea></td>
<td colspan=3><textarea class=ed id="mb_ids" name="mb_ids" rows=10 style='width:99%;' readonly><?=preg_replace("/\n/", " / ", $po[mb_ids])?></textarea></td>
</tr>
<? } ?>
@ -104,8 +104,8 @@ HEREDOC;
</table>
<p align=center>
<input type=submit class=btn1 accesskey='s' value=' 확 인 '>&nbsp;
<input type=button class=btn1 value=' 목 록 ' onclick="document.location.href='./poll_list.php?<?=$qstr?>';">
<input type="submit" class=btn1 accesskey='s' value=' 확 인 '>&nbsp;
<input type="button" class=btn1 value=' 목 록 ' onclick="document.location.href='./poll_list.php?<?=$qstr?>';">
</form>
<script type='text/javascript'>

View File

@ -53,15 +53,15 @@ $colspan = 6;
?>
<table width=100%>
<form name=fsearch method=get>
<form id="fsearch" name="fsearch" method=get>
<tr>
<td width=50% align=left><?=$listall?> (투표수 : <?=number_format($total_count)?>개)</td>
<td width=50% align=right>
<select name=sfl>
<option value='po_subject'>제목</option>
<select id="sfl" name="sfl">
<option value="po_subject">제목</option>
</select>
<input type=text name=stx class=ed required itemname='검색어' value='<?=$stx?>'>
<input type=image src='<?=$g4[admin_path]?>/img/btn_search.gif' align=absmiddle></td>
<input type="text" id="stx" name="stx" class=ed required value='<?=$stx?>'>
<input type="image" src='<?=$g4['admin_path']?>/img/btn_search.gif' align=absmiddle></td>
</tr>
</form>
</table>
@ -80,7 +80,7 @@ $colspan = 6;
<td>투표권한</td>
<td>투표수</td>
<td>기타의견</td>
<td><a href="./poll_form.php"><img src='<?=$g4[admin_path]?>/img/icon_insert.gif' border=0 title='생성'></a></td>
<td><a href="./poll_form.php"><img src='<?=$g4['admin_path']?>/img/icon_insert.gif' border=0 title='생성'></a></td>
</tr>
<tr><td colspan='<?=$colspan?>' class='line2'></td></tr>
<?
@ -90,8 +90,8 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
$po_etc = ($row[po_etc]) ? "사용" : "미사용";
$s_mod = "<a href='./poll_form.php?$qstr&w=u&po_id=$row[po_id]'><img src='img/icon_modify.gif' border=0 title='수정'></a>";
//$s_del = "<a href=\"javascript:del('./poll_form_update.php?$qstr&w=d&po_id=$row[po_id]');\"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
$s_del = "<a href=\"javascript:post_delete('poll_form_update.php', '$row[po_id]');\"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
//$s_del = "<a href="javascript:del('./poll_form_update.php?$qstr&w=d&po_id=$row[po_id]');"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
$s_del = "<a href="javascript:post_delete('poll_form_update.php', '$row[po_id]');"><img src='img/icon_delete.gif' border=0 title='삭제'></a>";
$list = $i%2;
echo "
@ -138,15 +138,15 @@ function post_delete(action_url, val)
}
</script>
<form name='fpost' method='post'>
<input type='hidden' name='sst' value='<?=$sst?>'>
<input type='hidden' name='sod' value='<?=$sod?>'>
<input type='hidden' name='sfl' value='<?=$sfl?>'>
<input type='hidden' name='stx' value='<?=$stx?>'>
<input type='hidden' name='page' value='<?=$page?>'>
<input type='hidden' name='token' value='<?=$token?>'>
<input type='hidden' name='w' value='d'>
<input type='hidden' name='po_id'>
<form id="fpost" name="fpost" method='post'>
<input type="hidden" id="sst" name="sst" value='<?=$sst?>'>
<input type="hidden" id="sod" name="sod" value='<?=$sod?>'>
<input type="hidden" id="sfl" name="sfl" value='<?=$sfl?>'>
<input type="hidden" id="stx" name="stx" value='<?=$stx?>'>
<input type="hidden" id="page" name="page" value='<?=$page?>'>
<input type="hidden" id="token" name="token" value='<?=$token?>'>
<input type="hidden" id="w" name="w" value="d">
<input type="hidden" id="po_id" name="po_id">
</form>
<?

View File

@ -72,27 +72,27 @@ var list_delete_php = 'popular_list.php';
</script>
<table width=100% cellpadding=3 cellspacing=1>
<form name=fsearch method=get>
<form id="fsearch" name="fsearch" method=get>
<tr>
<td width=50% align=left><?=$listall?> (건수 : <?=number_format($total_count)?>개)</td>
<td width=50% align=right>
<select name=sfl>
<option value='pp_word'>검색어</option>
<option value='pp_date'>등록일</option>
<select id="sfl" name="sfl">
<option value="pp_word">검색어</option>
<option value="pp_date">등록일</option>
</select>
<input type=text name=stx class=ed required itemname='검색어' value='<?=$stx?>'>
<input type=image src='<?=$g4[admin_path]?>/img/btn_search.gif' align=absmiddle></td>
<input type="text" id="stx" name="stx" class=ed required value='<?=$stx?>'>
<input type="image" src='<?=$g4['admin_path']?>/img/btn_search.gif' align=absmiddle></td>
</tr>
</form>
</table>
<form name=fpopularlist method=post>
<input type=hidden name=sst value="<?=$sst?>">
<input type=hidden name=sod value="<?=$sod?>">
<input type=hidden name=sfl value="<?=$sfl?>">
<input type=hidden name=stx value="<?=$stx?>">
<input type=hidden name=page value="<?=$page?>">
<input type=hidden name=token value="<?=$token?>">
<form id="fpopularlist" name="fpopularlist" method=post>
<input type="hidden" id="sst" name="sst" value="<?=$sst?>">
<input type="hidden" id="sod" name="sod" value="<?=$sod?>">
<input type="hidden" id="sfl" name="sfl" value="<?=$sfl?>">
<input type="hidden" id="stx" name="stx" value="<?=$stx?>">
<input type="hidden" id="page" name="page" value="<?=$page?>">
<input type="hidden" id="token" name="token" value="<?=$token?>">
<table width=100% cellpadding=0 cellspacing=1>
<colgroup width=30>
<colgroup width=>
@ -100,7 +100,7 @@ var list_delete_php = 'popular_list.php';
<colgroup width=150>
<tr><td colspan='<?=$colspan?>' class='line1'></td></tr>
<tr class='bgcol1 bold col1 ht center'>
<td><input type=checkbox name=chkall value="1" onclick="check_all(this.form)"></td>
<td><input type="checkbox" id="chkall" name="chkall" value="1" onclick="check_all(this.form)"></td>
<td><?=subject_sort_link("pp_word")?>검색어</a></td>
<td>등록일</td>
<td>등록IP</td>
@ -112,9 +112,9 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
$word = get_text($row[pp_word]);
$list = $i % 2;
echo "<input type=hidden name=pp_id[$i] value='$row[pp_id]'>";
echo "<input type="hidden" id="pp_id" name="pp_id"[$i] value='$row[pp_id]'>";
echo "<tr class='list$list col1 ht center'>";
echo "<td height=25><input type=checkbox name=chk[] value='$i'></td>";
echo "<td height=25><input type="checkbox" id="chk" name="chk"[] value='$i'></td>";
echo "<td align='left'>&nbsp; <a href='$_SERVER[PHP_SELF]?sfl=pp_word&stx=$word'>$word</a></td>";
echo "<td>$row[pp_date]</td>";
echo "<td>$row[pp_ip]</td>";
@ -134,7 +134,7 @@ echo "<table width=100% cellpadding=3 cellspacing=1>";
echo "<tr><td width=50%>";
if ($is_admin == "super")
echo "<input type=button class='btn1' value='선택삭제' onclick=\"btn_check(this.form, 'delete')\">";
echo "<input type="button" class='btn1' value='선택삭제' onclick="btn_check(this.form, 'delete')">";
echo "</td>";
echo "<td width=50% align=right>$pagelist</td></tr></table>\n";

View File

@ -89,7 +89,7 @@ jQuery(function($){
$('#fr_date, #to_date').datepicker({
showOn: 'button',
buttonImage: '<?=$g4[path]?>/img/calendar.gif',
buttonImage: '<?=$g4['path']?>/img/calendar.gif',
buttonImageOnly: true,
buttonText: "달력",
changeMonth: true,
@ -105,26 +105,26 @@ jQuery(function($){
?>
<table width=100% cellpadding=3 cellspacing=1>
<form name=fsearch method=get>
<form id="fsearch" name="fsearch" method=get>
<tr>
<td width=50% align=left><?=$listall?> (건수 : <?=number_format($total_count)?>개)</td>
<td width=50% align=right>
기간 :
<input type='text' id='fr_date' name='fr_date' size=11 maxlength=10 value='<?=$fr_date?>' class=ed>
<input type="text" id='fr_date' id="fr_date" name="fr_date" size=11 maxlength=10 value='<?=$fr_date?>' class=ed>
-
<input type='text' id='to_date' name='to_date' size=11 maxlength=10 value='<?=$to_date?>' class=ed>
<input type=image src='<?=$g4[admin_path]?>/img/btn_search.gif' align=absmiddle></td>
<input type="text" id='to_date' id="to_date" name="to_date" size=11 maxlength=10 value='<?=$to_date?>' class=ed>
<input type="image" src='<?=$g4['admin_path']?>/img/btn_search.gif' align=absmiddle></td>
</tr>
</form>
</table>
<form name=fpopularrank method=post>
<input type=hidden name=sst value="<?=$sst?>">
<input type=hidden name=sod value="<?=$sod?>">
<input type=hidden name=sfl value="<?=$sfl?>">
<input type=hidden name=stx value="<?=$stx?>">
<input type=hidden name=page value="<?=$page?>">
<input type=hidden name=token value="<?=$token?>">
<form id="fpopularrank" name="fpopularrank" method=post>
<input type="hidden" id="sst" name="sst" value="<?=$sst?>">
<input type="hidden" id="sod" name="sod" value="<?=$sod?>">
<input type="hidden" id="sfl" name="sfl" value="<?=$sfl?>">
<input type="hidden" id="stx" name="stx" value="<?=$stx?>">
<input type="hidden" id="page" name="page" value="<?=$page?>">
<input type="hidden" id="token" name="token" value="<?=$token?>">
<table width=100% cellpadding=0 cellspacing=1>
<colgroup width=>
<colgroup width=150>
@ -163,7 +163,7 @@ echo "<table width=100% cellpadding=3 cellspacing=1>";
echo "<tr><td width=50%>";
if ($is_admin == "super")
echo "<input type=button class='btn1' value='선택삭제' onclick=\"btn_check(this.form, 'delete')\">";
echo "<input type="button" class='btn1' value='선택삭제' onclick="btn_check(this.form, 'delete')">";
echo "</td>";
echo "<td width=50% align=right>$pagelist</td></tr></table>\n";

View File

@ -3,7 +3,7 @@ $sub_menu = "100700";
include_once("./_common.php");
if ($is_admin != "super")
alert("최고관리자만 접근 가능합니다.", $g4[path]);
alert("최고관리자만 접근 가능합니다.", $g4['path']);
$g4[title] = "테이블 복구 및 최적화";
include_once("./admin.head.php");
@ -41,7 +41,7 @@ $result = sql_query($sql);
while ($row=sql_fetch_array($result))
{
// 회원자료 삭제
member_delete($row[mb_id]);
member_delete($row['mb_id']);
}

View File

@ -7,7 +7,7 @@ auth_check($auth[$sub_menu], "r");
if (!$config[cf_email_use])
alert("환경설정에서 \'메일발송 사용\'에 체크하셔야 메일을 발송할 수 있습니다.");
include_once("$g4[path]/lib/mailer.lib.php");
include_once("$g4['path']/lib/mailer.lib.php");
$g4[title] = "메일 테스트";
include_once("./admin.head.php");
@ -32,8 +32,8 @@ HEREDOC;
$token = get_token();
?>
<form id="fsendmailtest" name="fsendmailtest" method="post">
<input type=hidden name=token value='<?=$token?>'>
<form id="fsendmailtest" id="fsendmailtest" name="fsendmailtest" method="post">
<input type="hidden" id="token" name="token" value='<?=$token?>'>
<p>
고객님들께서 메일이 오지 않는다고 하면 사용하는 메뉴입니다.<br>
아래 테스트메일 발송하기에 입력한 메일주소로 테스트 메일을 발송합니다.<br>
@ -44,7 +44,7 @@ $token = get_token();
<fieldset>
<legend>테스트메일 발송하기</legend>
<label for="mail">받는 메일주소</label>
<input type="text" id="mail" name="mail" required value="<?=$member[mb_email]?>">
<input type="text" id="mail" id="mail" name="mail" required value="<?=$member[mb_email]?>">
<input type="submit" value="발송">
</fieldset>
</form>

View File

@ -3,7 +3,7 @@ $sub_menu = "100700";
include_once("./_common.php");
if ($is_admin != "super")
alert("최고관리자만 접근 가능합니다.", $g4[path]);
alert("최고관리자만 접근 가능합니다.", $g4['path']);
$g4[title] = "세션 삭제";
include_once("./admin.head.php");
@ -12,7 +12,7 @@ echo "<span id='ct'></span>";
include_once("./admin.tail.php");
flush();
$session_path = "$g4[path]/data/session"; // 세션이저장된 디렉토리
$session_path = "$g4['path']/data/session"; // 세션이저장된 디렉토리
if (!$dir=@opendir($session_path)) {
echo "세션 디렉토리를 열지못했습니다.";
}

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
check_demo();
if ($is_admin != "super")
alert("최고관리자만 접근 가능합니다.", $g4[path]);
alert("최고관리자만 접근 가능합니다.", $g4['path']);
$g4[title] = "업그레이드";
include_once("./admin.head.php");
@ -73,7 +73,7 @@ sql_query("CREATE TABLE `$g4[token_table]` (
PRIMARY KEY (`to_token`),
KEY `to_datetime` (`to_datetime`),
KEY `to_ip` (`to_ip`)
) TYPE=MyISAM", FALSE);
) type="MyISAM"", FALSE);
// 4.09.00
// 기본환경설정 테이블 필드 추가
@ -140,7 +140,7 @@ sql_query(" CREATE TABLE `{$g4[board_good_table]}` (
`bg_datetime` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`bg_id`),
UNIQUE KEY `fkey1` (`bo_table`,`wr_id`,`mb_id`)
) TYPE=MyISAM AUTO_INCREMENT=1 ", false);
) type="MyISAM" AUTO_INCREMENT=1 ", false);
// 4.07.00
@ -156,7 +156,7 @@ for ($i=0; $row=sql_fetch_array($res); $i++)
$sql2 = " select mb_id from $ttmp where wr_id = '$row[wr_id]' ";
$row2 = sql_fetch($sql2);
$sql3 = " update $g4[board_new_table] set mb_id = '$row2[mb_id]' where bn_id = '$row[bn_id]' ";
$sql3 = " update $g4[board_new_table] set mb_id = '$row2['mb_id']' where bn_id = '$row[bn_id]' ";
sql_query($sql3, false);
}
@ -285,7 +285,7 @@ $sql = " CREATE TABLE $g4[popular_table] (
pp_ip varchar(50) NOT NULL default '',
PRIMARY KEY (pp_id),
UNIQUE KEY index1 (pp_date,pp_word,pp_ip)
) TYPE=MyISAM ";
) type="MyISAM" ";
sql_query($sql, FALSE);
sql_query(" ALTER TABLE `$g4[board_new_table]` ADD `wr_parent` INT NOT NULL AFTER `wr_id` ", FALSE);
@ -321,7 +321,7 @@ $sql = " CREATE TABLE $g4[mail_table] (
ma_ip varchar(255) NOT NULL default '',
ma_last_option text NOT NULL,
PRIMARY KEY (ma_id)
) TYPE=MyISAM ";
) type="MyISAM" ";
sql_query($sql, FALSE);
@ -331,7 +331,7 @@ $sql = " CREATE TABLE $g4[auth_table] (
au_menu varchar(20) NOT NULL default '',
au_auth set('r','w','d') NOT NULL default '',
PRIMARY KEY (mb_id,au_menu)
) TYPE=MyISAM ";
) type="MyISAM" ";
sql_query($sql, FALSE);
*/

View File

@ -11,15 +11,15 @@ auth_check($auth[$sub_menu], "r");
$g4[title] = "버전확인";
include_once("./admin.head.php");
include_once("$g4[path]/lib/mailer.lib.php");
include_once("$g4['path']/lib/mailer.lib.php");
echo "현재버전 : <strong>";
$args = "head -1 ".$g4[path]."/HISTORY";
$args = "head -1 ".$g4['path']."/HISTORY";
system($args);
echo "</strong>";
?>
<p><?=implode("", file("$g4[path]/HISTORY"));?></p>
<p><?=implode("", file("$g4['path']/HISTORY"));?></p>
<?
include_once("./admin.tail.php");

View File

@ -1,7 +1,7 @@
<?
if (!defined("_GNUBOARD_")) exit;
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4['path']/lib/visit.lib.php");
if (empty($fr_date)) $fr_date = $g4[time_ymd];
if (empty($to_date)) $to_date = $g4[time_ymd];
@ -10,23 +10,23 @@ $qstr = "fr_date=$fr_date&to_date=$to_date";
?>
<table width=100% cellpadding=3 cellspacing=1>
<form name=fvisit method=get>
<form id="fvisit" name="fvisit" method=get>
<tr>
<td>
기간 :
<input type='text' name='fr_date' size=11 maxlength=10 value='<?=$fr_date?>' class=ed>
<input type="text" id="fr_date" name="fr_date" size=11 maxlength=10 value='<?=$fr_date?>' class=ed>
-
<input type='text' name='to_date' size=11 maxlength=10 value='<?=$to_date?>' class=ed>
<input type="text" id="to_date" name="to_date" size=11 maxlength=10 value='<?=$to_date?>' class=ed>
&nbsp;
<input type=button class=btn1 value=' 접속자 ' onclick="fvisit_submit('visit_list.php');">
<input type=button class=btn1 value=' 도메인 ' onclick="fvisit_submit('visit_domain.php');">
<input type=button class=btn1 value=' 브라우저 ' onclick="fvisit_submit('visit_browser.php');">
<input type=button class=btn1 value=' OS ' onclick="fvisit_submit('visit_os.php');">
<input type=button class=btn1 value=' 시간 ' onclick="fvisit_submit('visit_hour.php');">
<input type=button class=btn1 value=' 요일 ' onclick="fvisit_submit('visit_week.php');">
<input type=button class=btn1 value=' 일 ' onclick="fvisit_submit('visit_date.php');">
<input type=button class=btn1 value=' 월 ' onclick="fvisit_submit('visit_month.php');">
<input type=button class=btn1 value=' 년 ' onclick="fvisit_submit('visit_year.php');">
<input type="button" class=btn1 value=' 접속자 ' onclick="fvisit_submit('visit_list.php');">
<input type="button" class=btn1 value=' 도메인 ' onclick="fvisit_submit('visit_domain.php');">
<input type="button" class=btn1 value=' 브라우저 ' onclick="fvisit_submit('visit_browser.php');">
<input type="button" class=btn1 value=' OS ' onclick="fvisit_submit('visit_os.php');">
<input type="button" class=btn1 value=' 시간 ' onclick="fvisit_submit('visit_hour.php');">
<input type="button" class=btn1 value=' 요일 ' onclick="fvisit_submit('visit_week.php');">
<input type="button" class=btn1 value=' 일 ' onclick="fvisit_submit('visit_date.php');">
<input type="button" class=btn1 value=' 월 ' onclick="fvisit_submit('visit_month.php');">
<input type="button" class=btn1 value=' 년 ' onclick="fvisit_submit('visit_year.php');">
</td>
</tr>
</form>

View File

@ -62,7 +62,7 @@ if (count($arr)) {
$s_rate = number_format($rate, 1);
$bar = (int)($count / $max * 100);
$graph = "<img src='{$g4[admin_path]}/img/graph.gif' width='$bar%' height='18'>";
$graph = "<img src='{$g4['admin_path']}/img/graph.gif' width='$bar%' height='18'>";
$list = ($k++%2);
echo "

View File

@ -52,7 +52,7 @@ if (count($arr)) {
$s_rate = number_format($rate, 1);
$bar = (int)($count / $max * 100);
$graph = "<img src='{$g4[admin_path]}/img/graph.gif' width='$bar%' height='18'>";
$graph = "<img src='{$g4['admin_path']}/img/graph.gif' width='$bar%' height='18'>";
$list = ($k++%2);
echo "

View File

@ -71,7 +71,7 @@ if (count($arr)) {
$s_rate = number_format($rate, 1);
$bar = (int)($count / $max * 100);
$graph = "<img src='{$g4[admin_path]}/img/graph.gif' width='$bar%' height='18'>";
$graph = "<img src='{$g4['admin_path']}/img/graph.gif' width='$bar%' height='18'>";
$list = ($k++%2);
echo "

View File

@ -51,7 +51,7 @@ if ($i) {
$s_rate = number_format($rate, 1);
$bar = (int)($count / $max * 100);
$graph = "<img src='{$g4[admin_path]}/img/graph.gif' width='$bar%' height='18'>";
$graph = "<img src='{$g4['admin_path']}/img/graph.gif' width='$bar%' height='18'>";
$list = ($k++%2);
echo "

View File

@ -53,7 +53,7 @@ if (count($arr)) {
$s_rate = number_format($rate, 1);
$bar = (int)($count / $max * 100);
$graph = "<img src='{$g4[admin_path]}/img/graph.gif' width='$bar%' height='18'>";
$graph = "<img src='{$g4['admin_path']}/img/graph.gif' width='$bar%' height='18'>";
$list = ($k++%2);
echo "

View File

@ -66,7 +66,7 @@ if (count($arr)) {
$s_rate = number_format($rate, 1);
$bar = (int)($count / $max * 100);
$graph = "<img src='{$g4[admin_path]}/img/graph.gif' width='$bar%' height='18'>";
$graph = "<img src='{$g4['admin_path']}/img/graph.gif' width='$bar%' height='18'>";
$list = ($k++%2);
echo "

View File

@ -47,7 +47,7 @@ if ($i) {
$rate = ($count / $sum_count * 100);
$s_rate = number_format($rate, 1);
$graph = "<img src='{$g4[admin_path]}/img/graph.gif' width='$rate%' height='18'>";
$graph = "<img src='{$g4['admin_path']}/img/graph.gif' width='$rate%' height='18'>";
$list = ($k++%2);
echo "

View File

@ -53,7 +53,7 @@ if (count($arr)) {
$s_rate = number_format($rate, 1);
$bar = (int)($count / $max * 100);
$graph = "<img src='{$g4[admin_path]}/img/graph.gif' width='$bar%' height='18'>";
$graph = "<img src='{$g4['admin_path']}/img/graph.gif' width='$bar%' height='18'>";
$list = ($k++%2);
echo "

View File

@ -1,7 +1,4 @@
<script type="text/javascript" src="<?=$g4['path']?>/js/wrest.js"></script>
<!-- 새창 대신 사용하는 iframe -->
<iframe width=0 height=0 name='hiddenframe' style='display:none;'></iframe>
<script src="<?=$g4['path']?>/js/wrest.js"></script>
<? if ($is_admin == "super") { ?><!-- <div style='float:left; width:<?=$table_width?>px; text-align:center;'>RUN TIME : <?=get_microtime()-$begin_time;?><br></div> --><? } ?>