관리페이지 메뉴 접근 권한이 부여된 경우 관리페이지의 index 페이지의 정보가 노출되는 문제 #258

This commit is contained in:
thisgun
2023-08-16 11:44:42 +09:00
parent e43e424d80
commit 5d4ba1030e
3 changed files with 353 additions and 340 deletions

View File

@ -5,7 +5,7 @@ if (!defined('_GNUBOARD_')) {
// 그누보드5.4.5.5 버전과 영카트5.4.5.5.1 버전이 통합됨에 따라 그누보드 버전만 표시 // 그누보드5.4.5.5 버전과 영카트5.4.5.5.1 버전이 통합됨에 따라 그누보드 버전만 표시
// $print_version = defined('G5_YOUNGCART_VER') ? 'YoungCart Version '.G5_YOUNGCART_VER : 'Version '.G5_GNUBOARD_VER; // $print_version = defined('G5_YOUNGCART_VER') ? 'YoungCart Version '.G5_YOUNGCART_VER : 'Version '.G5_GNUBOARD_VER;
$print_version = 'Version ' . G5_GNUBOARD_VER; $print_version = ($is_admin == 'super') ? 'Version ' . G5_GNUBOARD_VER : '';
?> ?>
<noscript> <noscript>

View File

@ -14,6 +14,8 @@ $new_member_rows = 5;
$new_point_rows = 5; $new_point_rows = 5;
$new_write_rows = 5; $new_write_rows = 5;
if (! auth_check_menu($auth, '200100', 'r', true)) {
$sql_common = " from {$g5['member_table']} "; $sql_common = " from {$g5['member_table']} ";
$sql_search = " where (1) "; $sql_search = " where (1) ";
@ -130,6 +132,10 @@ $colspan = 12;
</section> </section>
<?php <?php
} //endif 최신 회원
if (! auth_check_menu($auth, '300100', 'r', true)) {
$sql_common = " from {$g5['board_new_table']} a, {$g5['board_table']} b, {$g5['group_table']} c where a.bo_table = b.bo_table and b.gr_id = c.gr_id "; $sql_common = " from {$g5['board_new_table']} a, {$g5['board_table']} b, {$g5['group_table']} c where a.bo_table = b.bo_table and b.gr_id = c.gr_id ";
if ($gr_id) { if ($gr_id) {
@ -233,6 +239,10 @@ $colspan = 5;
</section> </section>
<?php <?php
} //endif 최근게시물
if (! auth_check_menu($auth, '200200', 'r', true)) {
$sql_common = " from {$g5['point_table']} "; $sql_common = " from {$g5['point_table']} ";
$sql_search = " where (1) "; $sql_search = " where (1) ";
$sql_order = " order by po_id desc "; $sql_order = " order by po_id desc ";
@ -314,4 +324,5 @@ $colspan = 7;
</section> </section>
<?php <?php
} //endif
require_once './admin.tail.php'; require_once './admin.tail.php';

View File

@ -112,7 +112,7 @@ function get_max_value($arr)
return array_pop($arr); return array_pop($arr);
} }
?> ?>
<?php if (! auth_check_menu($auth, '400400', 'r', true)) { ?>
<div class="sidx"> <div class="sidx">
<section id="anc_sidx_ord"> <section id="anc_sidx_ord">
<h2>주문현황</h2> <h2>주문현황</h2>
@ -368,6 +368,66 @@ function get_max_value($arr)
</div> </div>
</section> </section>
<script>
jQuery(function($) {
graph_draw();
$("#sidx_graph_area div").hover(
function() {
if($(this).is(":animated"))
return false;
var title = $(this).attr("title");
if(title && $(this).data("title") == undefined)
$(this).data("title", title);
var left = parseInt($(this).css("left")) + 10;
var bottom = $(this).height() + 5;
$(this)
.attr("title", "")
.append("<div id=\"price_tooltip\"><div></div></div>");
$("#price_tooltip")
.find("div")
.html(title)
.end()
// .css({ left: left+"px", bottom: bottom+"px" })
.show(200);
},
function() {
if($(this).is(":animated"))
return false;
$(this).attr("title", $(this).data("title"));
$("#price_tooltip").remove();
}
);
});
function graph_draw()
{
var g_h1 = new Array("<?php echo implode('", "', $h_val['order']); ?>");
var g_h2 = new Array("<?php echo implode('", "', $h_val['cancel']); ?>");
var duration = 600;
var $el = $("#sidx_graph_area li");
var h1, h2;
var $g1, $g2;
$el.each(function(index) {
h1 = g_h1[index];
h2 = g_h2[index];
$g1 = $(this).find(".order");
$g2 = $(this).find(".cancel");
$g1.animate({ height: h1+"px" }, duration);
$g2.animate({ height: h2+"px" }, duration);
});
}
</script>
<?php } //endif ?>
<?php if ($is_admin === 'super') { ?>
<div class="sidx sidx_cs"> <div class="sidx sidx_cs">
<section id="anc_sidx_oneq"> <section id="anc_sidx_oneq">
<h2>1:1문의</h2> <h2>1:1문의</h2>
@ -480,64 +540,6 @@ function get_max_value($arr)
</div> </div>
</section> </section>
</div> </div>
<script>
$(function() {
graph_draw();
$("#sidx_graph_area div").hover(
function() {
if($(this).is(":animated"))
return false;
var title = $(this).attr("title");
if(title && $(this).data("title") == undefined)
$(this).data("title", title);
var left = parseInt($(this).css("left")) + 10;
var bottom = $(this).height() + 5;
$(this)
.attr("title", "")
.append("<div id=\"price_tooltip\"><div></div></div>");
$("#price_tooltip")
.find("div")
.html(title)
.end()
// .css({ left: left+"px", bottom: bottom+"px" })
.show(200);
},
function() {
if($(this).is(":animated"))
return false;
$(this).attr("title", $(this).data("title"));
$("#price_tooltip").remove();
}
);
});
function graph_draw()
{
var g_h1 = new Array("<?php echo implode('", "', $h_val['order']); ?>");
var g_h2 = new Array("<?php echo implode('", "', $h_val['cancel']); ?>");
var duration = 600;
var $el = $("#sidx_graph_area li");
var h1, h2;
var $g1, $g2;
$el.each(function(index) {
h1 = g_h1[index];
h2 = g_h2[index];
$g1 = $(this).find(".order");
$g2 = $(this).find(".cancel");
$g1.animate({ height: h1+"px" }, duration);
$g2.animate({ height: h2+"px" }, duration);
});
}
</script>
<?php <?php
} //end if
include_once (G5_ADMIN_PATH.'/admin.tail.php'); include_once (G5_ADMIN_PATH.'/admin.tail.php');