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

This commit is contained in:
chicpro
2013-01-28 17:40:18 +09:00
46 changed files with 182 additions and 87 deletions

View File

@ -3,6 +3,17 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('G4_USE_SHOP') || !G4_USE_SHOP) return;
$menu['menu500'] = array (
<<<<<<< HEAD
array('500000', '쇼핑몰현황/기타', G4_SHOP_ADMIN_URL.'/itemsellrank.php'),
array('500100', '상품판매순위', G4_SHOP_ADMIN_URL.'/itemsellrank.php'),
array('500110', '매출현황', G4_SHOP_ADMIN_URL.'/sale1.php'),
array('500120', '주문내역출력', G4_SHOP_ADMIN_URL.'/orderprint.php'),
array('500130', '전자결제내역', G4_SHOP_ADMIN_URL.'/ordercardhistory.php'),
array('500140', '보관함현황', G4_SHOP_ADMIN_URL.'/wishlist.php'),
array('500200', 'SMS 문자전송', G4_SHOP_ADMIN_URL.'/smssend.php'),
array('500210', '가격비교사이트', G4_SHOP_ADMIN_URL.'/price.php')
=======
array('500000', '쇼핑몰현황/기타', G4_SHOP_ADMIN_URL.'/itemsellrank.php'),
array('500100', '상품판매순위', G4_SHOP_ADMIN_URL.'/itemsellrank.php'),
array('500110', '매출현황', G4_SHOP_ADMIN_URL.'/sale1.php'),
@ -12,5 +23,6 @@ $menu['menu500'] = array (
array('500200', 'SMS 문자전송', G4_SHOP_ADMIN_URL.'/smssend.php'),
array('500210', '가격비교사이트', G4_SHOP_ADMIN_URL.'/price.php')
>>>>>>> e82fa69b4c2eeb9e9eb9eefa11b485ed5a6846c6
);
?>

View File

@ -20,7 +20,7 @@ else
}
$g4[title] = $html_title;
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
?>
<?=subtitle($html_title)?>
@ -137,5 +137,5 @@ if (document.fbanner.w.value == 'u')
</script>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "배너관리";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
$sql_common = " from $g4[yc4_banner_table] ";
@ -101,5 +101,5 @@ if ($i == 0) {
</table>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -77,7 +77,7 @@ else if ($w == "u")
$qstr = "page=$page&sort1=$sort1&sort2=$sort2";
$g4[title] = $html_title;
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
?>
<?=smarteditor_load();?>
@ -348,5 +348,5 @@ document.fcategoryform.ca_name.focus();
<iframe name='hiddenFrame' width=0 height=0></iframe>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -33,7 +33,7 @@ if ($ca_id && ($move == 'up' || $move == 'down')) {
}
$g4[title] = "분류관리";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
$where = " where ";
@ -273,5 +273,5 @@ $(function() {
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -2,7 +2,7 @@
$sub_menu = "400210";
include_once("./_common.php");
$g4[title] = $html_title;
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
?>
<style>
@ -115,5 +115,5 @@ $(function(){
</script>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -1,7 +1,7 @@
<?
$sub_menu = "400100";
define('G4_EDITOR', 1);
include_once("./_common.php");
include_once(G4_CKEDITOR_PATH.'/ckeditor.lib.php');
auth_check($auth[$sub_menu], "r");
@ -61,7 +61,7 @@ if ($default[de_icode_id] && $default[de_icode_pw]) {
$g4[title] = "쇼핑몰설정";
include_once ("$g4[admin_path]/admin.head.php");
include_once (G4_ADMIN_PATH."/admin.head.php");
?>
<form name=fconfig method=post action='./configformupdate.php' onsubmit="return fconfig_check(this)" enctype="MULTIPART/FORM-DATA" style="margin:0px;">
@ -914,5 +914,5 @@ $(function() {
</script>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once (G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -29,7 +29,7 @@ else
}
$g4[title] = $html_title;
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
?>
<?=subtitle($html_title)?><p>
@ -134,5 +134,5 @@ function frmcontentform_check(f)
</script>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "내용관리";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
$sql_common = " from $g4[yc4_content_table] ";
@ -74,5 +74,5 @@ if ($i == 0) {
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -20,7 +20,7 @@ if($w == 'u') {
}
$g4['title'] = $html_title;
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
?>
<style type="text/css">

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4['title'] = "쿠폰관리";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
$sql_common = " from {$g4['yc4_coupon_table']} a left join {$g4['yc4_item_table']} b on ( a.it_id = b.it_id ) ";
@ -183,5 +183,5 @@ $(function() {
</script>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -20,7 +20,7 @@ else
}
$g4[title] = $html_title;
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
?>
<?=subtitle($html_title);?>
@ -60,5 +60,5 @@ include_once ("$g4[admin_path]/admin.head.php");
</form>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "배송회사관리";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
$sql_common = " from $g4[yc4_delivery_table] ";
@ -71,5 +71,5 @@ if ($i == 0)
</table>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "배송일괄처리";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
//sql_query(" update $g4[yc4_cart_table] set ct_status = '완료' where ct_status = '배송' ");
@ -210,5 +210,5 @@ if ($i == 0)
* 배송일시, 배송회사는 입력의 편의성을 위하여 기본값으로 설정되어 있습니다. 운송장번호만 없는것이 미배송 주문자료입니다.
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -28,7 +28,7 @@ else
$html_title .= " : $fm[fm_subject]";
$g4[title] = $html_title;
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
?>
<?=subtitle($html_title)?><p>
@ -99,5 +99,5 @@ document.getElementById('fa_order').focus();
</script>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "FAQ 상세관리 : $fm[fm_subject]";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
$sql = " select * from $g4[yc4_faq_master_table] where fm_id = '$fm_id' ";
$fm = sql_fetch($sql);
@ -96,5 +96,5 @@ if ($i == 0) {
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -21,7 +21,7 @@ else
}
$g4[title] = $html_title;
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
?>
<?=subtitle($html_title)?>
@ -103,5 +103,5 @@ document.frmfaqmasterform.fm_subject.focus();
</script>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "FAQ관리";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
$sql_common = " from $g4[yc4_faq_master_table] ";
@ -104,5 +104,5 @@ if ($i == 0)
</table>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "배송일괄등록";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
?>
<table width=550><tr><td>
@ -106,5 +106,5 @@ function finvoicebundle_submit(f)
</script>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -55,7 +55,7 @@ while (($item = fgetcsv($handle, 1000, ",")) !== FALSE)
}
$g4[title] = "배송일괄등록 처리결과";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
echo subtitle($g4[title]);
echo "<p>";
@ -69,5 +69,5 @@ else
echo "처리 내역이 없습니다.";
echo "<p>[끝]";
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "이벤트관리";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
$sql_common = " from $g4[yc4_event_table] ";
@ -84,5 +84,5 @@ function itemeventwin(ev_id)
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -32,7 +32,7 @@ else
}
$g4[title] = $html_title;
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
?>
<?=subtitle($html_title);?><p>
@ -189,5 +189,5 @@ document.feventform.ev_subject.focus();
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "이벤트일괄처리";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
$where = " where ";
$sql_search = "";
@ -180,5 +180,5 @@ function fitemeventlistupdatecheck(f)
</script>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -17,7 +17,7 @@ if (!$is[is_id])
$name = get_sideview($is[mb_id], get_text($is[is_name]), $is[mb_email], $is[mb_homepage]);
$g4[title] = "사용후기 수정";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
$qstr = "page=$page&sort1=$sort1&sort2=$sort2";
?>
@ -82,5 +82,5 @@ function fitemps_submit(f)
</script>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "사용후기";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
$where = " where ";
$sql_search = "";
@ -152,5 +152,5 @@ if ($i == 0) {
</table>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -14,7 +14,7 @@ if (!$iq[iq_id]) alert("등록된 자료가 없습니다.");
$name = get_sideview($is[mb_id], $iq[iq_name], $is[mb_email], $is[mb_homepage]);
$g4[title] = "상품문의 수정";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
$qstr = "page=$page&sort1=$sort1&sort2=$sort2";
?>
@ -62,5 +62,5 @@ $qstr = "page=$page&sort1=$sort1&sort2=$sort2";
</form>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "상품문의";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
$where = " where ";
$sql_search = "";
@ -149,5 +149,5 @@ if ($i == 0) {
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "상품판매순위";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
if (!$to_date) $to_date = date("Ymd", time());
@ -145,5 +145,5 @@ if ($i == 0) {
* 수량을 합산하여 순위를 출력합니다.
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "상품재고관리";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
$sql_search = " where 1 ";
if ($search != "") {
@ -169,5 +169,5 @@ if (!$i)
* 재고수정의 수량은 창고재고를 수정하는것입니다.
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "상품유형관리";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
/*
$sql_search = " where 1 ";
@ -183,5 +183,5 @@ if (!$i)
* 상품의 유형을 일괄 처리합니다.
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -25,7 +25,7 @@ else
}
$g4[title] = $html_title;
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
?>
<?=subtitle($html_title)?>
@ -104,5 +104,5 @@ document.frmnewwin.nw_subject.focus();
</script>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "새창관리";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
$sql_common = " from $g4[yc4_new_win_table] ";
@ -84,5 +84,5 @@ if ($i == 0) {
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "전자결제내역";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
sql_query(" ALTER TABLE `$g4[yc4_card_history_table]` ADD INDEX `od_id` ( `od_id` ) ", false);
@ -121,5 +121,5 @@ if ($i == 0)
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -241,5 +241,5 @@ f.sel_field.value = '<? echo $sel_field ?>';
</script>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "주문서관리";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
$where = " where ";
$sql_search = "";
@ -265,5 +265,5 @@ f.sel_field.value = '<? echo $sel_field ?>';
</script>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "주문내역출력";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
?>
<table width=550><tr><td>
@ -112,5 +112,5 @@ function forderprintcheck(f)
</script>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "주문개별관리";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
$where = " where ";
$sql_search = "";
@ -211,5 +211,5 @@ f.sel_field.value = '<? echo $sel_field ?>';
</script>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "가격비교사이트 연동";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
?>
<?=subtitle($g4[title])?>
@ -101,5 +101,5 @@ include_once ("$g4[admin_path]/admin.head.php");
</ul>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "매출현황";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
?>
<?=subtitle($g4[title])?>
@ -67,5 +67,5 @@ include_once ("$g4[admin_path]/admin.head.php");
</table>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -8,7 +8,7 @@ $fr_date = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})/", "\\1-\\2-\\3", $fr_d
$to_date = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})/", "\\1-\\2-\\3", $to_date);
$g4[title] = "$fr_date ~ $to_date 매출현황";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
function print_line($save)
{
@ -132,5 +132,5 @@ if ($i == 0) {
</table>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -8,7 +8,7 @@ $fr_date = preg_replace("/([0-9]{4})([0-9]{2})/", "\\1-\\2", $fr_date);
$to_date = preg_replace("/([0-9]{4})([0-9]{2})/", "\\1-\\2", $to_date);
$g4[title] = "$fr_date ~ $to_date 매출현황";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
function print_line($save)
{
@ -132,5 +132,5 @@ if ($i == 0) {
</table>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -7,7 +7,7 @@ auth_check($auth[$sub_menu], "r");
$date = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})/", "\\1-\\2-\\3", $date);
$g4[title] = "$date 매출현황";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
?>
<?=subtitle($g4[title])?>
@ -107,5 +107,5 @@ if ($i == 0) {
</table>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "$fr_date ~ $to_date 매출현황";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
function print_line($save)
{
@ -127,5 +127,5 @@ if ($i == 0) {
</table>
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "SMS 문자전송";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
// 발신자번호
$send_number = preg_replace("/[^0-9]/", "", $default[de_admin_company_tel]);
@ -359,5 +359,5 @@ function smsform_check(f)
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

View File

@ -5,7 +5,7 @@ include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "보관함현황";
include_once ("$g4[admin_path]/admin.head.php");
include_once(G4_ADMIN_PATH."/admin.head.php");
if (!$to_date) $to_date = date("Ymd", time());
@ -124,5 +124,5 @@ if ($i == 0) {
* 수량을 합산하여 순위를 출력합니다.
<?
include_once ("$g4[admin_path]/admin.tail.php");
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>

83
lib/thumbnail.lib.php Normal file
View File

@ -0,0 +1,83 @@
<?php
if (!defined('_GNUBOARD_')) exit;
@ini_set('memory_limit', '512M');
function it_img_thumb($filename, $filepath, $thumb_width, $thumb_height, $is_create=false)
{
return thumbnail($filename, $filepath, $filepath, $thumb_width, $thumb_height, $is_create);
}
//function thumbnail($bo_table, $file, $width, $height, $is_create=false)
function thumbnail($filename, $source_path, $target_path, $thumb_width, $thumb_height, $is_create);
{
global $g4;
$thumb_dir = "$g4[path]/data/thumb/$bo_table";
if (!is_dir($thumb_dir)) {
@mkdir($thumb_dir, 0707);
@chmod($thumb_dir, 0707);
}
$thumb_file = "$thumb_dir/{$width}x{$height}_{$file}.png";
$thumb_time = @filemtime($thumb_file);
$source_file = "$g4[path]/data/file/$bo_table/$file";
$source_time = @filemtime($source_file);
if (file_exists($thumb_file)) {
if ($is_create == false && $source_time < $thumb_time) {
return $thumb_file;
}
}
$size = @getimagesize($source_file);
// 이미지 파일이 없거나 아님
if (!$size[0]) {
if (!$height) $height = $width;
$thumb_file = "$g4[path]/data/thumb/{$width}x{$height}_noimg.gif";
if (!file_exists($thumb_file)) {
$target = imagecreate($width, $height);
imagecolorallocate($target, 250, 250, 250);
imagecopy($target, $target, 0, 0, 0, 0, $width, $height);
imagepng($target, $thumb_file, 0);
@chmod($thumb_file, 0606); // 추후 삭제를 위하여 파일모드 변경
}
return $thumb_file;
}
$is_imagecopyresampled = false;
$is_large = false;
$src = null;
if ($size[2] == 1) {
$src = imagecreatefromgif($source_file);
} else if ($size[2] == 2) {
$src = imagecreatefromjpeg($source_file);
} else if ($size[2] == 3) {
$src = imagecreatefrompng($source_file);
}
if ($width) {
if ($height) {
$rate = $width / $size[0];
$tmp_height = (int)($size[1] * $rate);
if ($tmp_height < $height) {
$dst = imagecreatetruecolor($width, $height);
$bgcolor = imagecolorallocate($dst, 250, 250, 250); // 배경색 여기야!!!
imagefill($dst, 0, 0, $bgcolor);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $width, $tmp_height, $size[0], $size[1]);
} else {
$dst = imagecreatetruecolor($width, $height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $width, $tmp_height, $size[0], $size[1]);
}
} else {
$rate = $width / $size[0];
$tmp_height = (int)($size[1] * $rate);
$dst = imagecreatetruecolor($width, $tmp_height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $width, $tmp_height, $size[0], $size[1]);
}
}
imagepng($dst, $thumb_file, 0); // 0 (no compression) ~ 9
chmod($thumb_file, 0606); // 추후 삭제를 위하여 파일모드 변경
return $thumb_file;
}
?>