first
This commit is contained in:
20
layouts/rc-starter/_pages/main.php
Normal file
20
layouts/rc-starter/_pages/main.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
if ($my['uid'] && $d['layout']['main_dashboard']=='true') getLink('/dashboard','','','');
|
||||
|
||||
if ($d['layout']['main_type']=='postAllFeed') {
|
||||
getWidget('rc-default/site/cover-default',array());
|
||||
getWidget('rc-default/post/post/all/feed-card',array('wrapper'=>'[data-role="postFeed"].widget','start'=>'#page-main','recnum'=>5));
|
||||
} else {
|
||||
$g['layoutPageVForSite'] = $g['path_var'].'site/'.$r.'/layout.'.$layout.'.main.php'; // 레이아웃 메인페이지 웨젯설정
|
||||
include is_file($g['layoutPageVForSite']) ? $g['layoutPageVForSite'] : $g['dir_layout'].'_var/_var.main.php';
|
||||
getWidgetList($d['layout']['main_widgets']);
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if (!$d['layout']['main_widgets'] && $my['admin'] && $d['layout']['main_type']!='postAllFeed'): ?>
|
||||
<div class="alert alert-danger text-xs-center border-0 rounded-0" role="alert">
|
||||
<a data-href="<?php echo $g['s'].'/?r='.$r.'&layoutPage=settings&prelayout=rc-starter/blank' ?>" class="alert-link">
|
||||
<u>메인 꾸미기가 필요합니다.</u>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
382
layouts/rc-starter/_pages/settings.php
Normal file
382
layouts/rc-starter/_pages/settings.php
Normal file
@@ -0,0 +1,382 @@
|
||||
<?php
|
||||
checkAdmin(0);
|
||||
include $g['dir_layout'].'_var/_var.config.php';
|
||||
?>
|
||||
|
||||
<section class="page center" id="page-layout-settings">
|
||||
<header class="bar bar-nav bar-light bg-white p-x-0">
|
||||
<a data-href="/" class="icon icon-home pull-left p-x-1" role="button"></a>
|
||||
<button class="btn btn-link btn-nav pull-right px-4" data-act="submit">
|
||||
<span class="not-loading">
|
||||
저장
|
||||
</span>
|
||||
<span class="is-loading">
|
||||
<div class="spinner-border spinner-border-sm text-primary" role="status">
|
||||
<span class="sr-only">저장중...</span>
|
||||
</div>
|
||||
</span>
|
||||
</button>
|
||||
<h1 class="title">
|
||||
<a data-location="reload" data-text="새로고침..">
|
||||
레이아웃 편집
|
||||
</a>
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<main class="content bg-faded">
|
||||
|
||||
<form action="<?php echo $g['s']?>/" method="post" enctype="multipart/form-data" target="_action_frame_<?php echo $m?>">
|
||||
<input type="hidden" name="r" value="<?php echo $r?>">
|
||||
<input type="hidden" name="m" value="<?php echo $m?>">
|
||||
<input type="hidden" name="a" value="regislayoutsite">
|
||||
<input type="hidden" name="send_mod" value="ajax">
|
||||
|
||||
<ul class="table-view table-view-full border-top-0 bg-white" id="layout-settings-panels">
|
||||
<?php $_i=1;foreach($d['layout']['dom'] as $_key => $_val):$__i=sprintf('%02d',$_i)?>
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right collapsed"
|
||||
data-toggle="collapse"
|
||||
data-parent="#layout-settings-panels"
|
||||
data-target="#layout-settings-<?php echo $__i?>-body"
|
||||
aria-expanded="true">
|
||||
<?php echo $_val[0]?>
|
||||
</a>
|
||||
<ul class="table-view collapse" id="layout-settings-<?php echo $__i?>-body" style="padding-right: 3.9rem">
|
||||
<li class="table-view-cell">
|
||||
<p class="text-muted small mb-1"><?php echo $_val[1]?></p>
|
||||
<?php if(count($_val[2])):?>
|
||||
<?php foreach($_val[2] as $_v):?>
|
||||
<div class="form-group">
|
||||
<?php if($_v[1]!='hidden'):?>
|
||||
<label><?php echo $_v[2]?></label>
|
||||
<?php endif?>
|
||||
|
||||
<?php if($_v[1]=='hidden'):?>
|
||||
<input type="hidden" name="layout_<?php echo $_key?>_<?php echo $_v[0]?>" value="<?php echo $d['layout'][$_key.'_'.$_v[0]]?>">
|
||||
<?php endif?>
|
||||
|
||||
<?php if($_v[1]=='input'):?>
|
||||
<input type="text" class="form-control" name="layout_<?php echo $_key?>_<?php echo $_v[0]?>" value="<?php echo stripslashes($d['layout'][$_key.'_'.$_v[0]])?>" autocomplete="off">
|
||||
<?php endif?>
|
||||
|
||||
<?php if($_v[1]=='color'):?>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" name="layout_<?php echo $_key?>_<?php echo $_v[0]?>" id="layout_<?php echo $_key?>_<?php echo $_v[0]?>" value="<?php echo $d['layout'][$_key.'_'.$_v[0]]?>">
|
||||
<span class="input-group-append">
|
||||
<button class="btn btn-light" type="button" data-toggle="modal" data-target=".bs-example-modal-sm" onclick="getColorLayer(getId('layout_<?php echo $_key?>_<?php echo $_v[0]?>').value.replace('#',''),'layout_<?php echo $_key?>_<?php echo $_v[0]?>');"><i class="fa fa-tint"></i></button>
|
||||
</span>
|
||||
</div>
|
||||
<?php endif?>
|
||||
|
||||
<?php if($_v[1]=='date'):?>
|
||||
<div class="input-group input-daterange">
|
||||
<input type="text" class="form-control" name="layout_<?php echo $_key?>_<?php echo $_v[0]?>" id="layout_<?php echo $_key?>_<?php echo $_v[0]?>" value="<?php echo $d['layout'][$_key.'_'.$_v[0]]?>">
|
||||
<span class="input-group-append">
|
||||
<button class="btn btn-light" type="button" onclick="getCalCheck('<?php echo $_key?>_<?php echo $_v[0]?>');"><i class="fa fa-calendar"></i></button>
|
||||
</span>
|
||||
</div>
|
||||
<?php endif?>
|
||||
|
||||
<?php if($_v[1]=='mediaset'):?>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control rb-modal-photo-drop js-tooltip" name="layout_<?php echo $_key?>_<?php echo $_v[0]?>" id="layout_<?php echo $_key?>_<?php echo $_v[0]?>" value="<?php echo $d['layout'][$_key.'_'.$_v[0]]?>" onmousedown="_mediasetField='layout_<?php echo $_key?>_<?php echo $_v[0]?>&dfiles='+this.value;" title="선택된 사진" data-toggle="modal" data-target="#modal_window">
|
||||
<span class="input-group-append">
|
||||
<button onmousedown="_mediasetField='layout_<?php echo $_key?>_<?php echo $_v[0]?>';" class="btn btn-light rb-modal-photo-drop js-tooltip" type="button" title="포토셋" data-toggle="modal" data-target="#modal_window"><i class="fa fa-picture-o"></i></button>
|
||||
</span>
|
||||
</div>
|
||||
<?php endif?>
|
||||
|
||||
<?php if($_v[1]=='videoset'):?>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control rb-modal-video-drop js-tooltip" name="layout_<?php echo $_key?>_<?php echo $_v[0]?>" id="layout_<?php echo $_key?>_<?php echo $_v[0]?>" value="<?php echo $d['layout'][$_key.'_'.$_v[0]]?>" onmousedown="_mediasetField='layout_<?php echo $_key?>_<?php echo $_v[0]?>&dfiles='+this.value;" title="선택된 비디오" data-toggle="modal" data-target="#modal_window">
|
||||
<span class="input-group-append">
|
||||
<button onmousedown="_mediasetField='layout_<?php echo $_key?>_<?php echo $_v[0]?>';" class="btn btn-light rb-modal-video-drop js-tooltip" type="button" title="비디오셋" data-toggle="modal" data-target="#modal_window"><i class="fa fa-video-camera"></i></button>
|
||||
</span>
|
||||
</div>
|
||||
<?php endif?>
|
||||
|
||||
<?php if($_v[1]=='file'):?>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" id="layout_<?php echo $_key?>_<?php echo $_v[0]?>_name" value="<?php echo $d['layout'][$_key.'_'.$_v[0]]?>" onclick="$('#layout_<?php echo $_key?>_<?php echo $_v[0]?>').click();">
|
||||
<input type="file" class="d-none" name="layout_<?php echo $_key?>_<?php echo $_v[0]?>" id="layout_<?php echo $_key?>_<?php echo $_v[0]?>" onchange="getId('layout_<?php echo $_key?>_<?php echo $_v[0]?>_name').value='파일 선택됨';">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-secondary" type="button" onclick="$('#layout_<?php echo $_key?>_<?php echo $_v[0]?>').click();" style="padding: 0.5rem 0.75rem;font-size: 1rem;">
|
||||
파일첨부
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
<?php if($d['layout'][$_key.'_'.$_v[0]]):?>
|
||||
<div style="padding:3px 0 0 2px;"><input type="checkbox" name="layout_<?php echo $_key?>_<?php echo $_v[0]?>_del" value="1"> 현재파일 삭제</div>
|
||||
<?php endif?>
|
||||
<?php endif?>
|
||||
|
||||
<?php if($_v[1]=='textarea'):?>
|
||||
<textarea type="text" rows="<?php echo $_v[3]?>" class="form-control" name="layout_<?php echo $_key?>_<?php echo $_v[0]?>"><?php echo stripslashes($d['layout'][$_key.'_'.$_v[0]])?></textarea>
|
||||
<?php endif?>
|
||||
|
||||
<?php if($_v[1]=='select'):?>
|
||||
<select name="layout_<?php echo $_key?>_<?php echo $_v[0]?>" class="form-control custom-select">
|
||||
<?php $_sk=explode(',',$_v[3])?>
|
||||
<?php foreach($_sk as $_sa):?>
|
||||
<?php $_sa1=explode('=',$_sa)?>
|
||||
<option value="<?php echo $_sa1[1]?>"<?php if($d['layout'][$_key.'_'.$_v[0]] == $_sa1[1]):?> selected<?php endif?>><?php echo $_sa1[0]?></option>
|
||||
<?php endforeach?>
|
||||
</select>
|
||||
<?php endif?>
|
||||
|
||||
<?php if($_v[1]=='radio'):?>
|
||||
<?php $_sk=explode(',',$_v[3])?>
|
||||
<?php foreach($_sk as $_sa):?>
|
||||
<?php $_sa1=explode('=',$_sa)?>
|
||||
<label class="rb-rabel"><input type="radio" name="layout_<?php echo $_key?>_<?php echo $_v[0]?>" value="<?php echo $_sa1[1]?>"<?php if($d['layout'][$_key.'_'.$_v[0]] == $_sa1[1]):?> checked<?php endif?>> <?php echo $_sa1[0]?></label>
|
||||
<?php endforeach?>
|
||||
<?php endif?>
|
||||
|
||||
<?php if($_v[1]=='checkbox'):?>
|
||||
<?php $_sk=explode(',',$_v[3])?>
|
||||
<?php foreach($_sk as $_sa):?>
|
||||
<?php $_sa1=explode('=',$_sa)?>
|
||||
<label class="rb-rabel"><input type="checkbox" name="layout_<?php echo $_key?>_<?php echo $_v[0]?>_chk[]" value="<?php echo $_sa1[1]?>"<?php if(strstr($d['layout'][$_key.'_'.$_v[0]],$_sa1[1])):?> checked<?php endif?>> <?php echo $_sa1[0]?></label>
|
||||
<?php endforeach?>
|
||||
<?php endif?>
|
||||
|
||||
<?php if($_v[1]=='menu'):?>
|
||||
<select name="layout_<?php echo $_key?>_<?php echo $_v[0]?>" class="form-control custom-select">
|
||||
<option value="">사용안함</option>
|
||||
<option value="" disabled>--------------------------------</option>
|
||||
<?php include_once $g['path_core'].'function/menu1.func.php'?>
|
||||
<?php $cat=$d['layout'][$_key.'_'.$_v[0]]?>
|
||||
<?php getMenuShowSelectCode($s,$table['s_menu'],0,0,0,0,0,'')?>
|
||||
</select>
|
||||
<?php endif?>
|
||||
|
||||
<?php if($_v[1]=='bbs'):?>
|
||||
<select name="layout_<?php echo $_key?>_<?php echo $_v[0]?>" class="form-control custom-select">
|
||||
<option value="">사용안함</option>
|
||||
<option value="" disabled>----------------------------------</option>
|
||||
<?php $BBSLIST = getDbArray($table['bbslist'],'','*','gid','asc',0,1)?>
|
||||
<?php while($R=db_fetch_array($BBSLIST)):?>
|
||||
<option value="<?php echo $R['id']?>"<?php if($d['layout'][$_key.'_'.$_v[0]]==$R['id']):?> selected="selected"<?php endif?>>
|
||||
ㆍ<?php echo $R['name']?>(<?php echo $R['id']?>)
|
||||
</option>
|
||||
<?php endwhile?>
|
||||
</select>
|
||||
<?php endif?>
|
||||
|
||||
</div>
|
||||
<?php endforeach?>
|
||||
<?php endif?>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php $_i++;endforeach?>
|
||||
|
||||
</ul>
|
||||
|
||||
<ul class="table-view table-view-full bg-white<?php echo $d['layout']['main_type']=='widget'?'':' d-none' ?>">
|
||||
<li class="table-view-cell" data-toggle="page" data-target="#page-widget-list" data-start="#page-layout-settings">
|
||||
<a class="navigate-right">
|
||||
<strong>메인 꾸미기</strong>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
|
||||
</main>
|
||||
</section>
|
||||
|
||||
<section class="page right" id="page-widget-list">
|
||||
<header class="bar bar-nav bar-light bg-white p-x-0">
|
||||
<a class="icon material-icons pull-left px-3" role="button" data-history="back">arrow_back</a>
|
||||
<button class="btn btn-link btn-nav pull-right px-4" data-act="submit">
|
||||
<span class="not-loading">
|
||||
저장
|
||||
</span>
|
||||
<span class="is-loading">
|
||||
<div class="spinner-border spinner-border-sm text-primary" role="status">
|
||||
<span class="sr-only">저장중...</span>
|
||||
</div>
|
||||
</span>
|
||||
</button>
|
||||
<h1 class="title title-left" data-history="back">
|
||||
메인 꾸미기
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<nav class="bar bar-tab bg-white shadow-sm">
|
||||
<a class="tab-item text-reset" role="button"
|
||||
data-toggle="sheet"
|
||||
href="#sheet-layoutreset-confirm"
|
||||
data-role="reset">
|
||||
초기화
|
||||
</a>
|
||||
<a class="tab-item text-reset border-left" role="button"
|
||||
data-toggle="modal"
|
||||
href="#modal-widget-selector"
|
||||
data-area="main">
|
||||
위젯 추가
|
||||
</a>
|
||||
</nav>
|
||||
|
||||
<main class="content bg-faded">
|
||||
|
||||
<form name="layoutMainPage" method="post" action="<?php echo $g['s']?>/" target="_action_frame_<?php echo $m?>" class="" role="form">
|
||||
<input type="hidden" name="r" value="<?php echo $r?>">
|
||||
<input type="hidden" name="a" value="regislayoutpage">
|
||||
<input type="hidden" name="m" value="site">
|
||||
<input type="hidden" name="page" value="main">
|
||||
<input type="hidden" name="area" value="main_widgets">
|
||||
<input type="hidden" name="main_widgets" value="">
|
||||
<div data-role="widgetPage" data-plugin="sortable" data-area="main" class="mx-4"></div>
|
||||
</form>
|
||||
|
||||
</main>
|
||||
</section>
|
||||
|
||||
<section class="page right" id="page-widget-view">
|
||||
<header class="bar bar-nav bar-light bg-white px-0">
|
||||
<a class="icon material-icons pull-left px-3" role="button" data-history="back">arrow_back</a>
|
||||
<button class="btn btn-link btn-nav pull-right px-4" data-act="save">
|
||||
<span class="not-loading">
|
||||
저장
|
||||
</span>
|
||||
<span class="is-loading">
|
||||
<div class="spinner-border spinner-border-sm text-primary" role="status">
|
||||
<span class="sr-only">저장중...</span>
|
||||
</div>
|
||||
</span>
|
||||
</button>
|
||||
<h1 class="title title-left" data-history="back">
|
||||
위젯 설정 <small class="text-muted ml-2" data-role="title"></small>
|
||||
</h1>
|
||||
</header>
|
||||
<div class="content bg-white" data-role="widgetConfig">
|
||||
<div class="content-padded pb-4" data-role="form">
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="page right" id="page-widget-makelist">
|
||||
<header class="bar bar-nav bar-light bg-white px-0">
|
||||
<a class="icon material-icons pull-left px-3" role="button" data-history="back">arrow_back</a>
|
||||
<button class="btn btn-link btn-nav pull-right px-4" data-act="submit">
|
||||
<span class="not-loading">
|
||||
만들기
|
||||
</span>
|
||||
<span class="is-loading">
|
||||
<div class="spinner-border spinner-border-sm text-primary" role="status">
|
||||
<span class="sr-only">생성중...</span>
|
||||
</div>
|
||||
</span>
|
||||
</button>
|
||||
<h1 class="title title-left" data-history="back">
|
||||
새 리스트
|
||||
</h1>
|
||||
</header>
|
||||
<main class="content bg-white">
|
||||
|
||||
<div class="form-list floating">
|
||||
<div class="input-row position-relative" style="padding: 6px 0 5px 16px;">
|
||||
<label class="w-100">리스트 명</label>
|
||||
<input type="text" placeholder="리스트 명" name="name" autocomplete="off">
|
||||
<div class="invalid-tooltip"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
</section>
|
||||
|
||||
<section class="page right" id="page-widget-makebbs">
|
||||
<header class="bar bar-nav bar-light bg-white px-0">
|
||||
<a class="icon material-icons pull-left px-3" role="button" data-history="back">arrow_back</a>
|
||||
<button class="btn btn-link btn-nav pull-right px-4" data-act="submit">
|
||||
<span class="not-loading">
|
||||
만들기
|
||||
</span>
|
||||
<span class="is-loading">
|
||||
<div class="spinner-border spinner-border-sm text-primary" role="status">
|
||||
<span class="sr-only">생성중...</span>
|
||||
</div>
|
||||
</span>
|
||||
</button>
|
||||
<h1 class="title title-left" data-history="back">
|
||||
새 게시판
|
||||
</h1>
|
||||
</header>
|
||||
<main class="content bg-white">
|
||||
<form class="">
|
||||
<div class="form-list floating">
|
||||
<div class="input-row position-relative" style="padding: 6px 0 5px 16px;">
|
||||
<label class="w-100">게시판 아이디 <span class="ml-1">(영문 또는 숫자만)</span></label>
|
||||
<input type="text" placeholder="게시판 아이디" name="id" autocomplete="off">
|
||||
<div class="invalid-tooltip"></div>
|
||||
</div>
|
||||
<div class="input-row position-relative" style="padding: 6px 0 5px 16px;">
|
||||
<label class="w-100">게시판 이름</label>
|
||||
<input type="text" placeholder="게시판 이름" name="name" autocomplete="off">
|
||||
<div class="invalid-tooltip"></div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</main>
|
||||
</section>
|
||||
|
||||
<!-- 레이아웃 위젯탐색기 -->
|
||||
<section id="modal-widget-selector" class="modal fast">
|
||||
<header class="bar bar-nav bar-light bg-white px-0">
|
||||
<a class="icon material-icons pull-left px-3" role="button" data-history="back">arrow_back</a>
|
||||
<h1 class="title title-left" data-history="back">위젯 찾아보기</h1>
|
||||
</header>
|
||||
<div class="bar bar-standard bar-header-secondary bar-light bg-white px-0">
|
||||
<select class="form-control custom-select border-0" name="widget_selector" data-area="">
|
||||
<option value="">선택하세요.</option>
|
||||
<?php include $g['dir_layout'].'_var/_var.config.php'; ?>
|
||||
<?php $_i=1;foreach($d['layout']['widget'] as $_key => $_val):$__i=sprintf('%02d',$_i)?>
|
||||
<optgroup label="<?php echo $_val[0]?>">
|
||||
<?php foreach($_val[1] as $_v):?>
|
||||
<option value="<?php echo $_key ?>/<?php echo $_v[0]?>"><?php echo $_v[1]?></option>
|
||||
<?php endforeach?>
|
||||
</optgroup>
|
||||
<?php $_i++;endforeach?>
|
||||
</select>
|
||||
</div>
|
||||
<nav class="bar bar-tab bar-dark bg-primary d-none">
|
||||
<a class="tab-item" role="button" data-act="apply">
|
||||
다음
|
||||
</a>
|
||||
</nav>
|
||||
<main class="content bg-faded">
|
||||
<blockquote class="content-padded py-3 blockquote text-muted" data-role="readme"></blockquote>
|
||||
<div data-role="none">
|
||||
<div class="d-flex justify-content-center align-items-center bg-light" style="height:370px">
|
||||
<div class="text-muted">
|
||||
<p>위젯을 선택해주세요.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card mt-2 p-2 shadow-sm d-none" data-role="thumb">
|
||||
<img src="" alt="" class="img-fluid" style="filter: grayscale(100%);">
|
||||
</div>
|
||||
</main>
|
||||
</section>
|
||||
|
||||
<section id="sheet-layoutreset-confirm" class="sheet" style="top: 70vh;">
|
||||
<header class="bar bar-nav bar-inverse bg-primary">
|
||||
<h1 class="title title-left px-3">초기화 전 유의사항</h1>
|
||||
</header>
|
||||
<nav class="bar bar-tab bar-light bg-white">
|
||||
<a class="tab-item text-reset" role="button" data-history="back">
|
||||
취소
|
||||
</a>
|
||||
<a class="tab-item text-primary border-left" role="button" data-reset="main">
|
||||
확인
|
||||
</a>
|
||||
</nav>
|
||||
<main>
|
||||
<div class="content-padded py-3 text-xs-center text-muted">
|
||||
<p>모바일 메인 페이지를 초기 상태로 되돌립니다.</p>
|
||||
</div>
|
||||
</main>
|
||||
</section>
|
||||
|
||||
<script src="<?php echo $g['url_layout']?>/_js/settings.js<?php echo $g['wcache']?>"></script>
|
||||
206
layouts/rc-starter/_pages/system.php
Normal file
206
layouts/rc-starter/_pages/system.php
Normal file
@@ -0,0 +1,206 @@
|
||||
<script type="text/javascript">
|
||||
putCookieAlert('system_update_result');
|
||||
</script>
|
||||
|
||||
<?php
|
||||
checkAdmin(0);
|
||||
include $g['path_module'].'admin/var/var.version.php';
|
||||
include $g['path_core'].'function/rss.func.php';
|
||||
$lastest_version = trim(getUrlData('https://kimsq.github.io/rb2/lastest.txt'.$g['wcache'],10));
|
||||
$current_version = $_SESSION['current_version']?$_SESSION['current_version']:$d['admin']['version'];
|
||||
$_current_version = str_replace('.','',$current_version);
|
||||
$_lastest_version = str_replace('.','',$lastest_version);
|
||||
$git_version = shell_exec('git --version');
|
||||
if ($_lastest_version-$_current_version > 0) $try_update = true;
|
||||
else $try_update = false;
|
||||
|
||||
$LASTUID = getDbCnt($table['s_gitlog'],'max(uid)','');
|
||||
$R = getUidData($table['s_gitlog'],$LASTUID);
|
||||
$d_last = $LASTUID?getDateFormat($R['d_regis'],'Y.m.d H:i'):'';
|
||||
$_SESSION['current_version'] = '';
|
||||
?>
|
||||
|
||||
<link href="<?php echo $g['s']?>/_core/css/github-markdown.css" rel="stylesheet">
|
||||
|
||||
<section class="page center" id="page-software-main">
|
||||
<header class="bar bar-nav bar-light bg-faded px-0">
|
||||
<a data-href="/" class="icon icon-home pull-left p-x-1" role="button"></a>
|
||||
<a class="icon icon-refresh pull-right p-x-1" data-location="reload" data-text="업데이트를 확인하는 중.." role="button"></a>
|
||||
<h1 class="title" data-location="reload" data-text="업데이트를 확인하는 중..">시스템 정보</h1>
|
||||
</header>
|
||||
<div class="content bg-faded">
|
||||
|
||||
<form name="updateForm" method="post" action="<?php echo $g['s']?>/" target="_action_frame_site" class="py-4">
|
||||
<input type="hidden" name="r" value="<?php echo $r?>">
|
||||
<input type="hidden" name="m" value="admin">
|
||||
<input type="hidden" name="a" value="update">
|
||||
<input type="hidden" name="remote" value="https://github.com/kimsQ/rb2.git">
|
||||
<input type="hidden" name="current_version" value="<?php echo $current_version?>">
|
||||
<input type="hidden" name="lastest_version" value="<?php echo $lastest_version?>">
|
||||
|
||||
<div class="text-xs-center">
|
||||
<i class="h1 kf kf-bi-01"></i>
|
||||
<strong class="d-block mt-2">
|
||||
현재 버전 <?php echo $current_version?>
|
||||
</strong>
|
||||
|
||||
<?php if ($try_update): ?>
|
||||
<small class="d-block text-muted">최신 버전 <?php echo $lastest_version ?></small>
|
||||
|
||||
<?php if ($git_version): ?>
|
||||
<?php if (is_dir('./.git')): ?>
|
||||
<a data-toggle="sheet" href="#sheet-update-confirm" class="btn btn-primary mt-3">
|
||||
업데이트
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<button type="button" data-act="gitinit" class="btn btn-outline-success mt-3">
|
||||
업데이트 환경 초기화
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<div class="alert alert-danger content-padded f14" role="alert">
|
||||
<strong>[git 설치필요]</strong> 버전관리를 위해 git 설치가 필요합니다. 호스팅 제공업체 또는 서버 관리자에게 요청해주세요.
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<small class="d-block text-muted mt-2">최신 버전 입니다.</small>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<ul class="table-view text-xs-left bg-white">
|
||||
<?php if ($d_last): ?>
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right" data-toggle="page" data-target="#page-software-loglist" data-start="#page-software-main">
|
||||
<span class="badge badge-default badge-inverted"><?php echo $d_last ?></span>
|
||||
업데이트 이력
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right" data-toggle="page" data-target="#page-software-kimsq" data-start="#page-software-main">
|
||||
설명서
|
||||
</a>
|
||||
</li>
|
||||
<li class="table-view-cell">
|
||||
<a class="navigate-right" data-toggle="page" data-target="#page-software-license" data-start="#page-software-main">
|
||||
라이센스
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="table-view text-xs-left bg-white">
|
||||
<li class="table-view-cell">
|
||||
<span class="badge badge-default badge-inverted"><?php echo $_SERVER['SERVER_SOFTWARE']?></span>
|
||||
웹서버
|
||||
</li>
|
||||
<li class="table-view-cell">
|
||||
<span class="badge badge-default badge-inverted">PHP <?php echo phpversion()?></span>
|
||||
개발언어
|
||||
</li>
|
||||
<li class="table-view-cell">
|
||||
<span class="badge badge-default badge-inverted"><?php echo db_info()?> (<?php echo $DB['type']?>)</span>
|
||||
데이터베이스
|
||||
</li>
|
||||
<li class="table-view-cell">
|
||||
<span class="badge badge-default badge-inverted"><?php echo $git_version?$git_version:'git 미설치'?></span>
|
||||
버전관리
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="page right" id="page-software-loglist">
|
||||
<header class="bar bar-nav bar-light bg-white px-0">
|
||||
<a class="icon material-icons pull-left px-3" role="button" data-history="back">arrow_back</a>
|
||||
<h1 class="title title-left" data-history="back">업데이트 이력</h1>
|
||||
</header>
|
||||
<div class="content">
|
||||
<ul class="table-view mt-0 border-top-0 bg-white" data-role="list">
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="page right" id="page-software-logview">
|
||||
<header class="bar bar-nav bar-light bg-white px-0">
|
||||
<a class="icon material-icons pull-left px-3" role="button" data-history="back">arrow_back</a>
|
||||
<h1 class="title title-left" data-history="back">업데이트 상세내역 <small class="ml-2 text-muted" data-role="title"></small></h1>
|
||||
</header>
|
||||
<div class="content text-xs-left bg-white">
|
||||
<table class="table f14 bg-white border-bottom mb-1" style="margin-top:-1px">
|
||||
<colgroup>
|
||||
<col width="25%">
|
||||
<col>
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row" class="text-xs-center">버전</th>
|
||||
<td><span data-role="version"></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" class="text-xs-center">일시</th>
|
||||
<td><span data-role="d_regis"></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" class="text-xs-center">작업자</th>
|
||||
<td><span data-role="name"></span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="">
|
||||
<textarea class="form-control border-0 f14" style="height:60vh" data-role="output"></textarea>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="page right" id="page-software-kimsq">
|
||||
<header class="bar bar-nav bar-light bg-white px-0">
|
||||
<a class="icon material-icons pull-left px-3" role="button" data-history="back">arrow_back</a>
|
||||
<h1 class="title title-left" data-history="back">설명서</h1>
|
||||
</header>
|
||||
<div class="content">
|
||||
|
||||
<div class="content-padded markdown-body text-xs-left">
|
||||
<?php readfile('./README.md')?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="page right" id="page-software-license">
|
||||
<header class="bar bar-nav bar-light bg-white px-0">
|
||||
<a class="icon material-icons pull-left px-3" role="button" data-history="back">arrow_back</a>
|
||||
<h1 class="title title-left" data-history="back">라이센스</h1>
|
||||
</header>
|
||||
<div class="content">
|
||||
|
||||
<textarea class="form-control border-0" style="height:90vh"><?php readfile('./LICENSE')?></textarea>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div id="sheet-update-confirm" class="sheet" style="top: 50vh;">
|
||||
<header class="bar bar-nav bar-inverse bg-primary">
|
||||
<h1 class="title title-left px-3">업데이트 전 유의사항</h1>
|
||||
</header>
|
||||
<nav class="bar bar-tab bar-light bg-white">
|
||||
<a class="tab-item text-muted" role="button" data-history="back">
|
||||
취소
|
||||
</a>
|
||||
<a class="tab-item text-primary border-left" role="button" data-act="submit">
|
||||
확인 했습니다.
|
||||
</a>
|
||||
</nav>
|
||||
<main>
|
||||
<div class="content-padded">
|
||||
<p>업데이트시 최신 코드가 적용됩니다.</p>
|
||||
<p>기본 패키지 파일에 직접 수정하거나 추가한 코드가 포함된 파일이 업데이트 내역에 포함되어 있을 경우, 해당사항이 덧씌워 집니다.</p>
|
||||
<p><mark>업데이트 전에 반드시 코드를 별도파일로 분리하거나 파일명을 변경한 후 업데이트 해주세요.</mark></p>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<?php getImport('jquery-markdown','jquery.markdown','0.0.10','js')?>
|
||||
|
||||
<script src="<?php echo $g['url_layout']?>/_js/system.js<?php echo $g['wcache']?>"></script>
|
||||
Reference in New Issue
Block a user