Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
78 changed files
with
1,312 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
$sub_menu = "100000"; | ||
include_once('./_common.php'); | ||
|
||
if (!$is_admin) alert('관리자만 접근 가능합니다.'); | ||
|
||
/** | ||
* 이윰 관리자 관련 설정 | ||
*/ | ||
if (!isset($config['cf_eyoom_admin'])) { | ||
sql_query("ALTER TABLE `{$g5['config_table']}` | ||
ADD `cf_eyoom_admin` enum('y','n') NOT NULL DEFAULT 'y' AFTER `cf_add_script`, | ||
ADD `cf_eyoom_admin_theme` varchar(255) NOT NULL DEFAULT 'basic' AFTER `cf_eyoom_admin`, | ||
ADD `cf_eyoom_mobile_skin` tinyint(4) NOT NULL DEFAULT '1' AFTER `cf_eyoom_admin_theme` ", true); | ||
} | ||
|
||
$cf_eyoom_admin = ''; | ||
|
||
$permit_to = array('gnu', 'eyoom'); | ||
$to = trim($_GET['to']); | ||
if (!in_array($to, $permit_to)) { | ||
alert('잘못된 접근입니다.'); | ||
} else { | ||
switch ($to) { | ||
case 'gnu': $cf_eyoom_admin = 'n'; break; | ||
case 'eyoom': $cf_eyoom_admin = 'y'; break; | ||
} | ||
|
||
$sql = "update `{$g5['config_table']}` set cf_eyoom_admin = '{$cf_eyoom_admin}' "; | ||
sql_query($sql, false); | ||
|
||
goto_url(G5_ADMIN_URL, false); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?php | ||
/** | ||
* @file /adm/eyoom_admin/core/theme/ebbanner_list.php | ||
*/ | ||
if (!defined('_EYOOM_IS_ADMIN_')) exit; | ||
|
||
$sub_menu = "999630"; | ||
|
||
auth_check($auth[$sub_menu], 'r'); | ||
|
||
/** | ||
* 테마 환경설정 파일 | ||
*/ | ||
include_once(EYOOM_ADMIN_CORE_PATH . "/theme/theme_head.php"); | ||
|
||
$action_url1 = G5_ADMIN_URL . '/?dir=theme&pid=ebbanner_list_update&smode=1'; | ||
|
||
/** | ||
* EB최신글 테이블 생성 | ||
*/ | ||
$sql = " | ||
CREATE TABLE IF NOT EXISTS `" . $g5['eyoom_banner'] . "` ( | ||
`bn_no` int(10) unsigned NOT NULL, | ||
`bn_code` varchar(20) NOT NULL, | ||
`bn_subject` varchar(255) NOT NULL, | ||
`bn_theme` varchar(30) NOT NULL DEFAULT 'eb4_basic', | ||
`bn_skin` varchar(50) NOT NULL DEFAULT 'basic', | ||
`bn_state` smallint(1) NOT NULL DEFAULT '0', | ||
`bn_cache` int(10) NOT NULL DEFAULT '0', | ||
`bn_new` mediumint(3) NOT NULL DEFAULT '0', | ||
`bn_link` varchar(255) NOT NULL, | ||
`bn_target` varchar(10) NOT NULL, | ||
`bn_regdt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', | ||
PRIMARY KEY (`bn_no`) | ||
) ENGINE=MyISAM DEFAULT CHARSET=utf8; | ||
"; | ||
sql_query($sql, false); | ||
|
||
/** | ||
* EB최신글 아이템 파일 저장 경로 | ||
*/ | ||
$ebbanner_folder = G5_DATA_PATH.'/ebbanner/'; | ||
if(!@is_dir($ebbanner_folder) ) { | ||
@mkdir($ebbanner_folder, G5_DIR_PERMISSION); | ||
@chmod($ebbanner_folder, G5_DIR_PERMISSION); | ||
} | ||
|
||
/** | ||
* 작업테마의 최신글 레코드 정보 가져오기 | ||
*/ | ||
$sql_common = " from {$g5['eyoom_latest']} "; | ||
|
||
/** | ||
* 작업테마 조건문 | ||
*/ | ||
$sql_search = " where bn_theme='{$this_theme}' "; | ||
|
||
$sql = " select count(*) as cnt {$sql_common} {$sql_search} order by bn_regdt desc "; | ||
$row = sql_fetch($sql); | ||
$total_count = $row['cnt']; | ||
|
||
$rows = $config['cf_page_rows']; | ||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산 | ||
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지) | ||
$from_record = ($page - 1) * $rows; // 시작 열을 구함 | ||
|
||
$sql = " select * {$sql_common} {$sql_search} order by bn_regdt desc limit {$from_record}, {$rows}"; | ||
$result = sql_query($sql); | ||
|
||
for ($i=0; $row=sql_fetch_array($result); $i++) { | ||
$list[$i] = $row; | ||
$list[$i]['bn_chg_code'] = "<?php echo eb_latest('{$row['bn_code']}'); ?>"; | ||
} | ||
|
||
/** | ||
* 페이징 | ||
*/ | ||
$paging = $eb->set_paging('./?dir=theme&pid=ebbanner_list&'.$qstr.'&page='); |
Oops, something went wrong.