g4s 코드 적용
This commit is contained in:
@ -68,7 +68,6 @@ if(!sql_query(" SELECT uq_ip from {$g4['uniqid_table']} limit 1 ", false)) {
|
|||||||
sql_query(" ALTER TABLE {$g4['uniqid_table']} ADD `uq_ip` VARCHAR(255) NOT NULL ");
|
sql_query(" ALTER TABLE {$g4['uniqid_table']} ADD `uq_ip` VARCHAR(255) NOT NULL ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 임시저장 테이블이 없을 경우 생성
|
// 임시저장 테이블이 없을 경우 생성
|
||||||
if(!sql_query(" DESC {$g4['autosave_table']} ", false)) {
|
if(!sql_query(" DESC {$g4['autosave_table']} ", false)) {
|
||||||
sql_query(" CREATE TABLE IF NOT EXISTS `{$g4['autosave_table']}` (
|
sql_query(" CREATE TABLE IF NOT EXISTS `{$g4['autosave_table']}` (
|
||||||
@ -114,6 +113,11 @@ if(!isset($config['cf_cert_use'])) {
|
|||||||
)", true);
|
)", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!isset($config['cf_analytics'])) {
|
||||||
|
sql_query(" ALTER TABLE `{$g4['config_table']}`
|
||||||
|
ADD `cf_analytics` TEXT NOT NULL AFTER `cf_intercept_ip` ", true);
|
||||||
|
}
|
||||||
|
|
||||||
$g4['title'] = '환경설정';
|
$g4['title'] = '환경설정';
|
||||||
include_once ('./admin.head.php');
|
include_once ('./admin.head.php');
|
||||||
|
|
||||||
@ -374,6 +378,13 @@ $pg_anchor = '<ul class="anchor">
|
|||||||
<textarea name="cf_intercept_ip" id="cf_intercept_ip"><?php echo $config['cf_intercept_ip'] ?> </textarea>
|
<textarea name="cf_intercept_ip" id="cf_intercept_ip"><?php echo $config['cf_intercept_ip'] ?> </textarea>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"><label for="cf_analytics">방문자분석 스크립트</label></th>
|
||||||
|
<td colspan="3">
|
||||||
|
<?php echo help('방문자분석 스크립트 코드를 입력합니다. 예) 구글 애널리스틱'); ?>
|
||||||
|
<textarea name="cf_analytics" id="cf_analytics"><?php echo $config['cf_analytics']; ?> </textarea>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@ -52,6 +52,7 @@ $sql = " update {$g4['config_table']}
|
|||||||
cf_filter = '{$_POST['cf_filter']}',
|
cf_filter = '{$_POST['cf_filter']}',
|
||||||
cf_possible_ip = '".trim($_POST['cf_possible_ip'])."',
|
cf_possible_ip = '".trim($_POST['cf_possible_ip'])."',
|
||||||
cf_intercept_ip = '".trim($_POST['cf_intercept_ip'])."',
|
cf_intercept_ip = '".trim($_POST['cf_intercept_ip'])."',
|
||||||
|
cf_analytics = '{$_POST['cf_analytics']}',
|
||||||
cf_member_skin = '{$_POST['cf_member_skin']}',
|
cf_member_skin = '{$_POST['cf_member_skin']}',
|
||||||
cf_use_homepage = '{$_POST['cf_use_homepage']}',
|
cf_use_homepage = '{$_POST['cf_use_homepage']}',
|
||||||
cf_req_homepage = '{$_POST['cf_req_homepage']}',
|
cf_req_homepage = '{$_POST['cf_req_homepage']}',
|
||||||
|
|||||||
BIN
adm/img/logo.jpg
BIN
adm/img/logo.jpg
Binary file not shown.
|
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 6.4 KiB |
@ -27,7 +27,7 @@ h2 {font-size:1.2em}
|
|||||||
#hd h1, #hd h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
#hd h1, #hd h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||||
#hd_wrap {z-index:11;position:relative;margin:0 auto;width:1000px}
|
#hd_wrap {z-index:11;position:relative;margin:0 auto;width:1000px}
|
||||||
#logo {position:relative;height:70px}
|
#logo {position:relative;height:70px}
|
||||||
#logo img {position:absolute;top:13px;left:0}
|
#logo img {position:absolute;top:19px;left:0}
|
||||||
|
|
||||||
#tnb {z-index:2;position:absolute;top:20px;right:0;zoom:1}
|
#tnb {z-index:2;position:absolute;top:20px;right:0;zoom:1}
|
||||||
#tnb:after {display:block;visibility:hidden;clear:both;content:""}
|
#tnb:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
|
|||||||
@ -22,7 +22,7 @@ a:hover, a:focus, a:active {color:#000;text-decoration:underline}
|
|||||||
#hd h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
#hd h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||||
#hd_wrapper {position:relative;margin:0 auto;width:980px}
|
#hd_wrapper {position:relative;margin:0 auto;width:980px}
|
||||||
|
|
||||||
#logo {padding:17px 0}
|
#logo {padding:26px 0}
|
||||||
|
|
||||||
/* 전체 검색 */
|
/* 전체 검색 */
|
||||||
#sch_all {position:absolute;top:22px;left:170px;margin:0;padding:0;border:1px solid #555}
|
#sch_all {position:absolute;top:22px;left:170px;margin:0;padding:0;border:1px solid #555}
|
||||||
|
|||||||
BIN
img/ft_catch.jpg
BIN
img/ft_catch.jpg
Binary file not shown.
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 7.0 KiB |
BIN
img/logo.jpg
BIN
img/logo.jpg
Binary file not shown.
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 3.4 KiB |
@ -223,6 +223,7 @@ CREATE TABLE IF NOT EXISTS `g4s_config` (
|
|||||||
`cf_filter` text NOT NULL,
|
`cf_filter` text NOT NULL,
|
||||||
`cf_possible_ip` text NOT NULL,
|
`cf_possible_ip` text NOT NULL,
|
||||||
`cf_intercept_ip` text NOT NULL,
|
`cf_intercept_ip` text NOT NULL,
|
||||||
|
`cf_analytics` text NOT NULL,
|
||||||
`cf_register_skin` varchar(255) NOT NULL DEFAULT 'basic',
|
`cf_register_skin` varchar(255) NOT NULL DEFAULT 'basic',
|
||||||
`cf_member_skin` varchar(255) NOT NULL DEFAULT '',
|
`cf_member_skin` varchar(255) NOT NULL DEFAULT '',
|
||||||
`cf_use_homepage` tinyint(4) NOT NULL DEFAULT '0',
|
`cf_use_homepage` tinyint(4) NOT NULL DEFAULT '0',
|
||||||
|
|||||||
4
tail.php
4
tail.php
@ -57,6 +57,10 @@ if(!G4_IS_MOBILE) {
|
|||||||
<a href="<?php echo $href; ?>" id="device_change">모바일 버전으로 보기</a>
|
<a href="<?php echo $href; ?>" id="device_change">모바일 버전으로 보기</a>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($config['cf_analytics']) {
|
||||||
|
echo $config['cf_analytics'];
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- } 하단 끝 -->
|
<!-- } 하단 끝 -->
|
||||||
|
|||||||
Reference in New Issue
Block a user