Merge branch 'master' of github.com:gnuboard/g4s

This commit is contained in:
gnuboard
2013-02-15 14:09:54 +09:00
5 changed files with 80 additions and 32 deletions

View File

@ -3,7 +3,7 @@ $sub_menu = "100900";
include_once("./_common.php");
if ($is_admin != "super")
alert("최고관리자만 접근 가능합니다.", $g4[path]);
alert("최고관리자만 접근 가능합니다.", G4_URL);
$g4['title'] = "캐시파일 일괄삭제";
include_once("./admin.head.php");
@ -21,27 +21,27 @@ include_once("./admin.head.php");
include_once("./admin.tail.php");
flush();
if (!$dir=@opendir($g4['cache_latest_path'])) {
echo "최신글 캐시디렉토리를 열지못했습니다.";
}
if (!$dir=@opendir(G4_DATA_PATH.'/cache')) {
echo "최신글 캐시디렉토리를 열지못했습니다.";
}
$cnt=0;
while($file=readdir($dir)) {
while($file=readdir($dir)) {
if ($file=='.' || $file=='..') continue;
$cache_file = $g4['cache_latest_path'].'/'.$file;
$cache_file = G4_DATA_PATH.'/cache/'.$file;
if (!$atime=@fileatime($cache_file))
continue;
if (!$atime=@fileatime($cache_file))
continue;
$cnt++;
$return = unlink($cache_file);
$return = unlink($cache_file);
echo "<script>document.getElementById('delete_message').innerHTML += '{$cache_file}<br/>';</script>\n";
flush();
if ($cnt%10==0)
if ($cnt%10==0)
echo "<script>document.getElementById('delete_message').innerHTML = '';</script>\n";
}
}
echo "<script>document.getElementById('delete_message').innerHTML += '최신글 캐시파일 {$cnt}건 삭제 완료.<br><br>프로그램의 실행을 끝마치셔도 좋습니다.';</script>\n";
?>

View File

@ -38,10 +38,16 @@ $pg_anchor = "
<?=$pg_anchor?>
<table class="frm_tbl">
<colgroup>
<col class="grid_2">
<col class="grid_3">
<col class="grid_2">
<col class="grid_3">
</colgroup>
<tbody>
<tr>
<th scope="row"><label for="cf_title">홈페이지 제목<strong class="sound_only">필수</strong></label></th>
<td><input type="text" id="cf_title" name="cf_title" class="required" required value="<?=$config['cf_title']?>" size="50"></td>
<td><input type="text" id="cf_title" name="cf_title" class="required" required value="<?=$config['cf_title']?>" size="40"></td>
<th scope="row"><label for="cf_admin">최고관리자<strong class="sound_only">필수</strong></label></th>
<td><?=get_member_id_select('cf_admin', 10, $config['cf_admin'], 'required')?></td>
</tr>
@ -180,6 +186,12 @@ $pg_anchor = "
<p>각 게시판 관리에서 개별적으로 설정 가능합니다.</p>
<table class="frm_tbl">
<colgroup>
<col class="grid_2">
<col class="grid_3">
<col class="grid_2">
<col class="grid_3">
</colgroup>
<tbody>
<tr>
<th scope="row"><label for="cf_read_point">글읽기 포인트<strong class="sound_only">필수</strong></label></th>
@ -251,6 +263,12 @@ $pg_anchor = "
<p>회원가입 시 사용할 스킨과 입력 받을 정보 등을 설정할 수 있습니다.</p>
<table class="frm_tbl">
<colgroup>
<col class="grid_2">
<col class="grid_3">
<col class="grid_2">
<col class="grid_3">
</colgroup>
<tbody>
<tr>
<th scope="row"><label for="cf_member_skin">회원 스킨<strong class="sound_only">필수</strong></label></th>
@ -373,6 +391,10 @@ $pg_anchor = "
<?=$pg_anchor?>
<table class="frm_tbl">
<colgroup>
<col class="grid_2">
<col class="grid_8">
</colgroup>
<tbody>
<tr>
<th scope="row"><label for="cf_email_use">메일발송 사용</label></th>
@ -410,6 +432,10 @@ $pg_anchor = "
<?=$pg_anchor?>
<table class="frm_tbl">
<colgroup>
<col class="grid_2">
<col class="grid_8">
</colgroup>
<tbody>
<tr>
<th scope="row"><label for="cf_email_wr_super_admin">최고관리자</label></th>
@ -455,6 +481,10 @@ $pg_anchor = "
<?=$pg_anchor?>
<table class="frm_tbl">
<colgroup>
<col class="grid_2">
<col class="grid_8">
</colgroup>
<tbody>
<tr>
<th scope="row"><label for="cf_email_mb_super_admin">최고관리자 메일발송</label></th>
@ -480,6 +510,10 @@ $pg_anchor = "
<?=$pg_anchor?>
<table class="frm_tbl">
<colgroup>
<col class="grid_2">
<col class="grid_8">
</colgroup>
<tbody>
<tr>
<th scope="row"><label for="cf_email_po_super_admin">최고관리자 메일발송</label></th>
@ -498,6 +532,10 @@ $pg_anchor = "
<p>각 게시판 관리에서 개별적으로 설정 가능합니다.</p>
<table class="frm_tbl">
<colgroup>
<col class="grid_2">
<col class="grid_8">
</colgroup>
<tbody>
<? for ($i=1; $i<=10; $i++) { ?>
<tr>

View File

@ -1,7 +1,7 @@
<?
$sub_menu = "200300";
define('G4_EDITOR', 1);
include_once('./_common.php');
include_once(G4_CKEDITOR_PATH.'/ckeditor.lib.php');
auth_check($auth[$sub_menu], 'r');
@ -40,7 +40,7 @@ include_once('./admin.head.php');
<th scope="row"><label for="ma_content">메일 내용<strong class="sound_only">필수</strong></label></th>
<td>
<?=help('{이름} , {별명} , {회원아이디} , {이메일} 처럼 내용에 삽입하면 해당 내용에 맞게 변환하여 메일 발송합니다.')?>
<?=editor_html("ma_content", $ma['ma_content'], '400');?>
<?=editor_html("ma_content", $ma['ma_content']);?>
</td>
</tr>
</tbody>

View File

@ -3,7 +3,7 @@ $sub_menu = "100800";
include_once("./_common.php");
if ($is_admin != "super")
alert("최고관리자만 접근 가능합니다.", $g4[path]);
alert("최고관리자만 접근 가능합니다.", G4_URL);
$g4['title'] = "세션파일 일괄삭제";
include_once("./admin.head.php");
@ -21,31 +21,31 @@ include_once("./admin.head.php");
include_once("./admin.tail.php");
flush();
if (!$dir=@opendir($g4['session_path'])) {
echo "세션 디렉토리를 열지못했습니다.";
}
if (!$dir=@opendir(G4_DATA_PATH.'/session')) {
echo "세션 디렉토리를 열지못했습니다.";
}
$cnt=0;
while($file=readdir($dir)) {
while($file=readdir($dir)) {
if (!strstr($file,'sess_')) continue;
if (strpos($file,'sess_')!=0) continue;
if (!strstr($file,'sess_')) continue;
if (strpos($file,'sess_')!=0) continue;
$session_file = $g4['session_path'].'/'.$file;
$session_file = G4_DATA_PATH.'/session/'.$file;
if (!$atime=@fileatime($session_file)) {
continue;
}
if (!$atime=@fileatime($session_file)) {
continue;
}
if (time() > $atime + (3600 * 6)) { // 지난시간을 초로 계산해서 적어주시면 됩니다. default : 6시간전
$cnt++;
$return = unlink($session_file);
$return = unlink($session_file);
echo "<script>document.getElementById('ct').innerHTML += '{$session_file}<br/>';</script>\n";
flush();
if ($cnt%10==0)
echo "<script>document.getElementById('ct').innerHTML = '';</script>\n";
}
}
}
}
echo "<script>document.getElementById('ct').innerHTML += '세션데이터 {$cnt}건 삭제 완료.<br><br>프로그램의 실행을 끝마치셔도 좋습니다.';</script>\n";
?>

View File

@ -42,7 +42,6 @@ h1 {margin-bottom:20px;color:#333;font-size:1.5em;font-family:"dotum";letter-spa
#snb a {display:inline-block;padding:5px 0;color:#e0e0e0;text-decoration:none}
/* gnb js off */
#gnb {}
#gnb ul {z-index:10}
.gnb_1depth {position:relative;margin-left:-1px;background:#383a3f;zoom:1}
@ -103,6 +102,17 @@ td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9
.bo_sideview td {padding:6px 4px} /* 사이드뷰 사용하는 테이블 셀 패딩값 */
/* 내용 없는 테이블 */
.empty_table {padding:200px 0;text-align:center}
/* 테이블 그리드 */
table .grid_1 {width:80px}
table .grid_2 {width:170px}
table .grid_3 {width:260px}
table .grid_4 {width:350px}
table .grid_5 {width:440px}
table .grid_6 {width:530px}
table .grid_7 {width:620px}
table .grid_8 {width:710px}
table .grid_9 {width:800px}
table .grid_10 {width:890px}
/* 버튼 */
.btn_confirm {margin-bottom:20px;text-align:center}
@ -141,7 +151,7 @@ button {padding:3px;border:1px solid #ced9de;background:#f6f9fa;cursor:pointer}
.adm_field_explain {display:block;padding:0 0 5px;color:#5b747e}
/* 폼 바로가기 */
.frm_list {margin:0 0 20px;padding:0 0 0 1px;zoom:1}
.frm_list {margin:0 0 10px;padding:0;zoom:1}
.frm_list:after {display:block;visibility:hidden;clear:both;content:""}
.frm_list li {float:left;margin-left:-1px;list-style:none}
.frm_list a {display:inline-block;border:1px solid #586267;background:#667379;padding:0 7px;height:30px;color:#fff;text-decoration:none;line-height:2.3em}
@ -149,7 +159,7 @@ button {padding:3px;border:1px solid #ced9de;background:#f6f9fa;cursor:pointer}
.frm_list a:hover {background:#434f54;text-decoration:none}
/* 폼 테이블 */
.frm_tbl th {width:130px;text-align:left;font-weight:normal}
.frm_tbl th {padding:0 5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:#eef2f3;text-align:left;font-weight:normal}
.frm_tbl textarea {height:150px}
#frm_extra label {display:inline-block;width:100px}
#frm_extra input {margin-right:10px}
@ -159,7 +169,7 @@ button {padding:3px;border:1px solid #ced9de;background:#f6f9fa;cursor:pointer}
/* 관리권한설정 목록 */
.td_menu {}
.td_auth {width:100px;text-align:center}
.td_auth_mbnick {width:200px;text-align:center}
.td_auth_mbnick {width:200px}
/* 회원관리 목록 */
.tbl_mb_list td {text-align:center}
/* 포인트관리 목록 */