배포본과 써글닷컴을 합치는 작업중
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<?
|
||||
define('G4_IS_ADMIN', true);
|
||||
include_once ('../common.php');
|
||||
include_once(G4_ADMIN_PATH.'/admin.lib.php');
|
||||
$admin_index = false;
|
||||
?>
|
||||
@ -2,7 +2,7 @@
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
|
||||
$begin_time = get_microtime();
|
||||
$administrator = 1;
|
||||
|
||||
include_once(G4_PATH.'/head.sub.php');
|
||||
|
||||
function print_menu1($key, $no)
|
||||
|
||||
@ -14,6 +14,15 @@ if (!isset($config['cf_email_admin'])) {
|
||||
sql_query(" ALTER TABLE {$g4['config_table']} ADD cf_email_admin VARCHAR(255) NOT NULL DEFAULT '' AFTER cf_email_use ", TRUE);
|
||||
}
|
||||
|
||||
if (!isset($config['cf_include_index'])) {
|
||||
sql_query(" ALTER TABLE `{$g4['config_table']}`
|
||||
ADD `cf_include_index` VARCHAR(255) NOT NULL AFTER `cf_admin`,
|
||||
ADD `cf_include_head` VARCHAR(255) NOT NULL AFTER `cf_include_index`,
|
||||
ADD `cf_include_tail` VARCHAR(255) NOT NULL AFTER `cf_include_head`,
|
||||
ADD `cf_add_script` TEXT NOT NULL AFTER `cf_include_tail`
|
||||
", TRUE);
|
||||
}
|
||||
|
||||
$g4['title'] = '환경설정';
|
||||
include_once ('./admin.head.php');
|
||||
|
||||
@ -51,6 +60,34 @@ $pg_anchor = "
|
||||
<th scope="row"><label for="cf_admin">최고관리자<strong class="sound_only">필수</strong></label></th>
|
||||
<td><?=get_member_id_select('cf_admin', 10, $config['cf_admin'], 'required')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="cf_include_index">초기화면 파일 경로</label></th>
|
||||
<td colspan="3">
|
||||
<?=help('입력이 없으면 index.php가 초기화면 파일의 기본 경로로 설정됩니다.')?>
|
||||
<input type="text" id="cf_include_index" name="cf_include_index" class="frm_input" value="<?=$config['cf_include_index']?>" size="50">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="cf_include_head">상단 파일 경로</label></th>
|
||||
<td colspan="3">
|
||||
<?=help('입력이 없으면 head.php가 상단 파일의 기본 경로로 설정됩니다.')?>
|
||||
<input type="text" id="cf_include_head" name="cf_include_head" class="frm_input" value="<?=$config['cf_include_head']?>" size="50">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="cf_include_tail">하단 파일 경로</label></th>
|
||||
<td colspan="3">
|
||||
<?=help('입력이 없으면 tail.php가 상단 파일의 기본 경로로 설정됩니다.')?>
|
||||
<input type="text" id="cf_include_tail" name="cf_include_tail" class="frm_input" value="<?=$config['cf_include_tail']?>" size="50">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="cf_add_script">추가 script, css</label></th>
|
||||
<td colspan="3">
|
||||
<?=help('HTML의 </HEAD> 태그위로 추가될 JavaScript와 css 코드를 설정합니다.')?>
|
||||
<textarea id="cf_add_script" name="cf_add_script"><?=$config['cf_add_script']?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="cf_use_point">포인트 사용</label></th>
|
||||
<td colspan="3"><input type="checkbox" id="cf_use_point" name="cf_use_point" value="1" <?=$config['cf_use_point']?'checked':'';?>> 사용</td>
|
||||
|
||||
@ -22,6 +22,10 @@ check_token();
|
||||
$sql = " update {$g4['config_table']}
|
||||
set cf_title = '{$_POST['cf_title']}',
|
||||
cf_admin = '{$_POST['cf_admin']}',
|
||||
cf_include_index = '{$_POST['cf_include_index']}',
|
||||
cf_include_head = '{$_POST['cf_include_head']}',
|
||||
cf_include_tail = '{$_POST['cf_include_tail']}',
|
||||
cf_add_script = '{$_POST['cf_add_script']}',
|
||||
cf_use_point = '{$_POST['cf_use_point']}',
|
||||
cf_use_norobot = '{$_POST['cf_use_norobot']}',
|
||||
cf_use_copy_log = '{$_POST['cf_use_copy_log']}',
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
include_once('./_common.php');
|
||||
|
||||
$g4['title'] = '관리자메인';
|
||||
$admin_index = true;
|
||||
include_once ('./admin.head.php');
|
||||
|
||||
$new_member_rows = 5;
|
||||
|
||||
Reference in New Issue
Block a user