forked from HANYANG/HANYANG_MES
40 lines
1.3 KiB
PHP
40 lines
1.3 KiB
PHP
<?php
|
|
include_once "{$_SERVER['DOCUMENT_ROOT']}/common.inc.php";
|
|
include_once _SVC_INC_PATH_ ."/auth_check.php"; /* 권한 통합 코드 */
|
|
|
|
//비회원 처리
|
|
if( !$GLOBALS['_Umem']['member_id'] ) {
|
|
move_page(_SVC_URL_, $GLOBALS['_Auth_']['deny_view']);
|
|
}
|
|
|
|
//접근 권한(조회) 불가 처리
|
|
if( !$GLOBALS['_Auth_']['menuObj']->hasMenuAuth("R", $GLOBALS['_Auth_']['cate_id']) ){
|
|
hback($GLOBALS['_Auth_']['deny_view']);
|
|
}
|
|
|
|
$menu_hist = array();
|
|
if( $GLOBALS['_Auth_']['menuObj'] ){
|
|
$menu_hist = $GLOBALS['_Auth_']['menuObj']->getMenuBrdcom($GLOBALS['_Auth_']['cate_id']);
|
|
}
|
|
|
|
if( $menu_hist ){
|
|
$GLOBALS['_Menu_'] = array(
|
|
"menu_code" => $menu_hist['cate_code'][count($menu_hist['cate_id'])-1],
|
|
"menu_name" => $menu_hist['cate_name'][count($menu_hist['cate_id'])-1],
|
|
"menu_class" => $menu_hist['cate_class'][count($menu_hist['cate_id'])-1],
|
|
"menu_exp" => $menu_hist['cate_exp'][count($menu_hist['cate_id'])-1],
|
|
);
|
|
}
|
|
?>
|
|
<!doctype html>
|
|
<html lang="ko">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<meta name="description" content="Member Login">
|
|
<title>(주)한양공업 - <?=explode('.',$_SERVER['HTTP_HOST'])[0]?></title>
|
|
|
|
<?php include _SVC_INC_PATH_ ."/header_common.php"?>
|
|
<link rel="shortcut icon" href="/include/img/favicon.ico">
|
|
</head>
|
|
<body>
|