本文整理汇总了PHP中get_skin_dir函数的典型用法代码示例。如果您正苦于以下问题:PHP get_skin_dir函数的具体用法?PHP get_skin_dir怎么用?PHP get_skin_dir使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_skin_dir函数的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: get_mobile_skin_select
function get_mobile_skin_select($skin_gubun, $id, $name, $selected = '', $event = '')
{
global $config;
$skins = array();
if (defined('G5_THEME_PATH') && $config['cf_theme']) {
$dirs = get_skin_dir($skin_gubun, G5_THEME_MOBILE_PATH . '/' . G5_SKIN_DIR);
if (!empty($dirs)) {
foreach ($dirs as $dir) {
$skins[] = 'theme/' . $dir;
}
}
}
$skins = array_merge($skins, get_skin_dir($skin_gubun, G5_MOBILE_PATH . '/' . G5_SKIN_DIR));
$str = "<select id=\"{$id}\" name=\"{$name}\" {$event}>\n";
for ($i = 0; $i < count($skins); $i++) {
if ($i == 0) {
$str .= "<option value=\"\">선택</option>";
}
if (preg_match('#^theme/(.+)$#', $skins[$i], $match)) {
$text = '(테마) ' . $match[1];
} else {
$text = $skins[$i];
}
$str .= option_selected($skins[$i], $selected, $text);
}
$str .= "</select>";
return $str;
}
开发者ID:dingdong2310,项目名称:g5_theme,代码行数:28,代码来源:admin.lib.php
示例2: get_mobile_skin_select
function get_mobile_skin_select($skin_gubun, $id, $name, $selected = '', $event = '')
{
$skins = get_skin_dir($skin_gubun, G5_MOBILE_PATH . '/' . G5_SKIN_DIR);
$str = "<select class=\"form-control\" id=\"{$id}\" name=\"{$name}\" {$event}>\n";
for ($i = 0; $i < count($skins); $i++) {
if ($i == 0) {
$str .= "<option value=\"\">선택</option>";
}
$str .= option_selected($skins[$i], $selected);
}
$str .= "</select>";
return $str;
}
开发者ID:kimyongyeon,项目名称:myproject,代码行数:13,代码来源:admin.lib.php
示例3: get_sms5_skin_select
function get_sms5_skin_select($skin_gubun, $id, $name, $selected = '', $event = '')
{
$skins = get_skin_dir($skin_gubun, G5_SMS5_PATH);
$str = "<select id=\"{$id}\" name=\"{$name}\" {$event}>\n";
for ($i = 0; $i < count($skins); $i++) {
if ($i == 0) {
$str .= "<option value=\"\">선택</option>";
}
$str .= option_selected($skins[$i], $selected);
}
$str .= "</select>";
return $str;
}
开发者ID:khk0613,项目名称:YHK,代码行数:13,代码来源:sms5.lib.php
示例4: get_skin_dir
<?php
$arr = get_skin_dir('member');
for ($i = 0; $i < count($arr); $i++) {
if ($i == 0) {
echo "<option value=\"\">선택</option>";
}
echo '<option value="' . $arr[$i] . '"' . get_selected($config['cf_member_skin'], $arr[$i]) . '>' . $arr[$i] . '</option>' . "\n";
}
?>
</select>
</td>
<th scope="row"><label for="cf_mobile_member_skin">모바일<br>회원 스킨<strong class="sound_only">필수</strong></label></th>
<td>
<select name="cf_mobile_member_skin" id="cf_mobile_member_skin" required class="required">
<?php
$arr = get_skin_dir('member', G5_MOBILE_PATH . '/' . G5_SKIN_DIR);
for ($i = 0; $i < count($arr); $i++) {
if ($i == 0) {
echo "<option value=\"\">선택</option>";
}
echo '<option value="' . $arr[$i] . '"' . get_selected($config['cf_mobile_member_skin'], $arr[$i]) . '>' . $arr[$i] . '</option>' . "\n";
}
?>
</select>
</td>
</tr>
<tr>
<th scope="row">홈페이지 입력</th>
<td>
<input type="checkbox" name="cf_use_homepage" value="1" id="cf_use_homepage" <?php
echo $config['cf_use_homepage'] ? 'checked' : '';
开发者ID:eeewq123,项目名称:aaa,代码行数:31,代码来源:config_form.php
示例5: apms_cache
}
apms_cache('apms_mobile_bbs_menu', 0, "apms_chk_auto_menu(1,1)");
apms_cache('apms_pc_bbs_menu', 0, "apms_chk_auto_menu(1)");
}
}
}
//Move
goto_url('./apms.groupsubmenu.php?gr_id=' . $gr_id . '&cid=' . $cid);
}
auth_check($auth[$sub_menu], 'r');
//읽기 권한
include_once G5_LIB_PATH . '/apms.widget.lib.php';
$skinlist = array();
$headlist = array();
$skinlist = get_skin_dir('page', G5_SKIN_PATH);
$headlist = get_skin_dir('header', G5_SKIN_PATH);
$row1 = sql_fetch("select bo_subject from {$g5['apms_page']} where id = '{$cid}' ");
include_once G5_PATH . '/head.sub.php';
?>
<script src="<?php
echo G5_ADMIN_URL;
?>
/admin.js"></script>
<script src="<?php
echo G5_ADMIN_URL;
?>
/apms_admin/apms.admin.js"></script>
<style>
.sp { height:6px; }
.sp1 { height:10px; }
开发者ID:peb317,项目名称:gbamn,代码行数:31,代码来源:apms.groupsubmenu.php
示例6: get_skin_dir
$g5_shop_skin_path = G5_PATH . '/' . G5_SKIN_DIR . '/shop/' . $ca['ca_skin_dir'];
}
}
if (!$ca['ca_mobile_skin_dir']) {
$g5_mshop_skin_path = G5_MSHOP_SKIN_PATH;
} else {
if (preg_match('#^theme/(.+)$#', $ca['ca_mobile_skin_dir'], $match)) {
$g5_mshop_skin_path = G5_THEME_MOBILE_PATH . '/' . G5_SKIN_DIR . '/shop/' . $match[1];
} else {
$g5_mshop_skin_path = G5_MOBILE_PATH . '/' . G5_SKIN_DIR . '/shop/' . $ca['ca_mobile_skin_dir'];
}
}
} else {
// APMS - 2014.07.25
$itemskin = get_skin_dir('item', G5_SKIN_PATH . '/apms');
$listskin = get_skin_dir('list', G5_SKIN_PATH . '/apms');
}
?>
<form name="fcategoryform" action="./categoryformupdate.php" onsubmit="return fcategoryformcheck(this);" method="post" enctype="multipart/form-data">
<input type="hidden" name="codedup" value="<?php
echo $default['de_code_dup_use'];
?>
">
<input type="hidden" name="w" value="<?php
echo $w;
?>
">
<input type="hidden" name="sst" value="<?php
echo $sst;
开发者ID:peb317,项目名称:gbamn,代码行数:31,代码来源:categoryform.php
示例7: subtitle
<tr><td colspan=4 class=line2></td></tr>
<tr><td colspan=4 class=ht></td></tr>
<tr class='ht'>
<td colspan=4 align=left><?php
echo subtitle("회원가입 설정");
?>
</td>
</tr>
<tr><td colspan=4 class=line1></td></tr>
<tr class='ht'>
<td>회원 스킨</td>
<td colspan=3><select id=cf_member_skin name=cf_member_skin required itemname="회원가입 스킨">
<?php
$arr = get_skin_dir("member");
for ($i = 0; $i < count($arr); $i++) {
echo "<option value='{$arr[$i]}'>{$arr[$i]}</option>\n";
}
?>
</select>
<script type="text/javascript"> document.getElementById('cf_member_skin').value="<?php
echo $config[cf_member_skin];
?>
";</script>
</td>
</tr>
<tr class='ht'>
<td>홈페이지 입력</td>
<td>
<input type='checkbox' name='cf_use_homepage' value='1' <?php
开发者ID:jin255ff,项目名称:company_website,代码行数:31,代码来源:config_form.php
示例8: get_list_skin_options
<input type="checkbox" name="de_mobile_rel_list_use" value="1" id="de_mobile_rel_list_use" <?php
echo $default['de_mobile_rel_list_use'] ? "checked" : "";
?>
>
</td>
</tr>
<tr>
<th scope="row">검색상품출력</th>
<td>
<label for="de_search_list_skin">스킨</label>
<select name="de_search_list_skin" id="de_search_list_skin">
<?php
if (USE_G5_THEME) {
echo get_list_skin_options("^list.[0-9]+\\.skin\\.php", G5_SHOP_SKIN_PATH, $default['de_search_list_skin']);
} else {
$listskin = get_skin_dir('search', G5_SKIN_PATH . '/apms');
for ($k = 0; $k < count($listskin); $k++) {
echo "<option value=\"" . $listskin[$k] . "\"" . get_selected($default['de_search_list_skin'], $listskin[$k]) . ">" . $listskin[$k] . "</option>\n";
}
}
?>
</select>
<label for="de_search_img_width">이미지폭</label>
<input type="text" name="de_search_img_width" value="<?php
echo $default['de_search_img_width'];
?>
" id="de_search_img_width" class="frm_input" size="3">
<label for="de_search_img_height">이미지높이</label>
<input type="text" name="de_search_img_height" value="<?php
echo $default['de_search_img_height'];
?>
开发者ID:peb317,项目名称:gbamn,代码行数:31,代码来源:configform.php
示例9: get_selected
for ($i = 0; $i < count($arr); $i++) {
if ($i == 0) {
echo "<option value=\"\">선택</option>";
}
echo "<option value=\"" . $arr[$i] . "\"" . get_selected($ca['ca_skin_dir'], $arr[$i]) . ">" . $arr[$i] . "</option>\n";
}
?>
</select>
</td>
</tr>
<tr>
<th scope="row"><label for="ca_mobile_skin_dir">모바일용 스킨명</label></th>
<td colspan="3">
<select name="ca_mobile_skin_dir" id="ca_mobile_skin_dir">
<?php
$arr = get_skin_dir('shop', G5_MOBILE_PATH . '/' . G5_SKIN_DIR);
for ($i = 0; $i < count($arr); $i++) {
if ($i == 0) {
echo "<option value=\"\">선택</option>";
}
echo "<option value=\"" . $arr[$i] . "\"" . get_selected($ca['ca_mobile_skin_dir'], $arr[$i]) . ">" . $arr[$i] . "</option>\n";
}
?>
</select>
</td>
</tr>
<tr>
<th scope="row">본인확인 체크</th>
<td>
<input type="radio" name="ca_cert_use" value="1" id="ca_cert_use_yes" <?php
if ($ca['ca_cert_use']) {
开发者ID:ned3y2k,项目名称:youngcart5,代码行数:31,代码来源:categoryform.php
示例10: get_selected
?>
>PC 전용</option>
<option value="mobile"<?php
echo get_selected($group['gr_device'], 'mobile');
?>
>모바일 전용</option>
</select>
</td>
</tr>
<tr>
<th scope="row"><label for="as_main">PC 그룹스킨</label></th>
<td>
<select name="as_main" id="as_main">
<option value="">사용안함</option>
<?php
$groupskin = get_skin_dir('group');
for ($i = 0; $i < count($groupskin); $i++) {
echo "<option value=\"" . $groupskin[$i] . "\"" . get_selected($group['as_main'], $groupskin[$i]) . ">" . $groupskin[$i] . "</option>\n";
}
?>
</select>
</td>
</tr>
<tr>
<th scope="row"><label for="as_mobile_main">모바일 그룹스킨</label></th>
<td>
<select name="as_mobile_main" id="as_mobile_main">
<option value="">사용안함</option>
<?php
for ($i = 0; $i < count($groupskin); $i++) {
echo "<option value=\"" . $groupskin[$i] . "\"" . get_selected($group['as_mobile_main'], $groupskin[$i]) . ">" . $groupskin[$i] . "</option>\n";
开发者ID:peb317,项目名称:gbamn,代码行数:31,代码来源:boardgroup_form.php
示例11: sql_query
$n = $cn[$i];
$id = $_POST['id'][$n];
if (!$id) {
continue;
}
sql_query(" delete from {$g5['apms_page']} where id = '{$id}' ", false);
}
}
}
}
//Move
goto_url($go_url);
}
//Header
include_once G5_LIB_PATH . '/apms.widget.lib.php';
$headskin = get_skin_dir('header');
//Group List
$html_gr = array();
$result = sql_query("select gr_id, gr_subject from {$g5['group_table']} order by gr_order", false);
for ($i = 0; $row = sql_fetch_array($result); $i++) {
$html_gr[$i][0] = $row['gr_id'];
$html_gr[$i][1] = $row['gr_subject'];
}
$result = sql_query("select * from {$g5['apms_page']} where as_html = '0' order by gr_id desc, id ");
$row_cnt = @sql_num_rows($result);
?>
<div class="local_ov01 local_ov">
회원가입, 현재접속자, 새글모음, 전체검색, 마이페이지, 장바구니, 주문서 등
</div>
<form id="pageform" name="pageform" method="post">
开发者ID:peb317,项目名称:gbamn,代码行数:31,代码来源:apms.page.basic.php
示例12: get_skin_dir
<?php
$g5_path = '../../..';
include_once $g5_path . '/common.php';
include_once EYOOM_PATH . '/common.php';
@(include_once EYOOM_INC_PATH . '/hookedfile.header.php');
include_once G5_PATH . '/head.sub.php';
$emo = $_GET['emo'];
if (!$emo) {
$emo = 'rabbit';
}
$emoticon = $eb->get_emoticon($emo);
$emo_type = get_skin_dir('emoticon', EYOOM_THEME_PATH . '/' . $theme);
function get_skin_dir($skin, $skin_path = G5_SKIN_PATH)
{
global $g5;
$result_array = array();
$dirname = $skin_path . '/' . $skin . '/';
$handle = opendir($dirname);
while ($file = readdir($handle)) {
if ($file == '.' || $file == '..') {
continue;
}
if (is_dir($dirname . $file)) {
$result_array[] = $file;
}
}
closedir($handle);
sort($result_array);
return $result_array;
}
开发者ID:l2zeo,项目名称:eyoom_builder-1,代码行数:31,代码来源:emoticon.php
示例13: sql_query
$id = $_POST['id'][$n];
if (!$id) {
continue;
}
sql_query(" delete from {$g5['apms_page']} where id = '{$id}' ", false);
}
}
}
}
//Move
goto_url($go_url);
}
//Header
include_once G5_LIB_PATH . '/apms.widget.lib.php';
$headskin = get_skin_dir('header');
$pageskin = get_skin_dir('page');
//Group List
$html_gr = array();
$result = sql_query("select gr_id, gr_subject from {$g5['group_table']} order by gr_order", false);
for ($i = 0; $row = sql_fetch_array($result); $i++) {
$html_gr[$i][0] = $row['gr_id'];
$html_gr[$i][1] = $row['gr_subject'];
}
$result = sql_query("select * from {$g5['apms_page']} where as_html = '1' order by gr_id desc, id ");
$row_cnt = @sql_num_rows($result);
?>
<div class="local_ov01 local_ov">
사이트 소개, 회원약관, 개인정보보호방침, 이용안내 등
</div>
开发者ID:peb317,项目名称:gbamn,代码行数:30,代码来源:apms.page.normal.php
示例14: get_skin_dir
<table>
<caption>회원가입 설정</caption>
<colgroup>
<col class="grid_4">
<col>
<col class="grid_4">
<col>
</colgroup>
<tbody>
<div class="row">
<div class="form-group col-md-3">
<label for="cf_member_skin">회원 스킨<strong class="sound_only">필수</strong></label>
<select name="cf_member_skin" id="cf_member_skin" required class="required form-control">
<?php
$arr = get_skin_dir('member');
for ($i = 0; $i < count($arr); $i++) {
if ($i == 0) {
echo "<option value=\"\">선택</option>";
}
echo '<option value="' . $arr[$i] . '"' . get_selected($config['cf_member_skin'], $arr[$i]) . '>' . $arr[$i] . '</option>' . "\n";
}
?>
</select>
</div>
<div class="form-group col-md-3">
<label for="cf_register_level">회원가입시 권한</label>
<?php
echo get_member_level_select('cf_register_level', 1, 9, $config['cf_register_level']);
?>
开发者ID:kimyongyeon,项目名称:myproject,代码行数:31,代码来源:config_form.php
示例15: get_skin_dir
<h2 class="h2_frm">테마 메니저<span class='exp'>각 테마별로 다양한 설정을 하실 수 있습니다.</span></h2>
<div class="tbl_frm01 tbl_wrap">
<input type="hidden" name="shop_theme" id="shop_theme" value="<?php
echo $shop_theme;
?>
">
<input type="hidden" name="theme_target" id="theme_target" value="">
<table style="background:#f5f5f5;border:1px solid #eaeaea;">
<caption>테마설정</caption>
<tbody>
<tr>
<td>
<div id="theme_select">
<?php
$arr = get_skin_dir('theme', EYOOM_PATH);
for ($i = 0; $i < count($arr); $i++) {
if ($arr[$i] == 'countdown') {
continue;
}
$config_file = $arr[$i] == 'basic' ? eyoom_config : G5_DATA_PATH . '/eyoom.' . $arr[$i] . '.config.php';
if (file_exists($config_file)) {
include $config_file;
?>
<div class="themes">
<div class="theme_name"><?php
echo $arr[$i];
?>
<span style='font-weight:normal;'><?php
if ($tminfo[$arr[$i]]['tm_alias']) {
echo "(" . $tminfo[$arr[$i]]['tm_alias'] . ")";
开发者ID:l2zeo,项目名称:eyoom_builder-1,代码行数:31,代码来源:theme_manager.php
示例16: get_skin_dir
</tr>
<tr class="heavy">
<td><input type='checkbox' name='chk_use_email' value='1' /></td>
<th>메일발송 사용</th>
<td><input type='checkbox' name='bo_use_email' value='1' <?php
echo $board[bo_use_email] ? "checked='checked'" : "";
?>
/>사용</td>
</tr>
<tr>
<td><input type='checkbox' name='chk_skin' value='1' /></td>
<th>스킨 디렉토리</th>
<td><select name='bo_skin' class='required' title='스킨 디렉토리'>
<?php
$arr = get_skin_dir("board");
for ($i = 0; $i < count($arr); $i++) {
echo "<option value='{$arr[$i]}'>{$arr[$i]}</option>\n";
}
?>
</select>
<script type='text/javascript'>document.getElementById('fboardform').bo_skin.value="<?php
echo $board[bo_skin];
?>
";</script>
</td>
</tr>
<tr>
<td><input type='checkbox' name='chk_gallery_cols' value='1' /></td>
<th>가로 이미지수</th>
<td><input type='text' name='bo_gallery_cols' size='10' class='text required' title='가로 이미지수' value='<?php
开发者ID:rokmc820,项目名称:g4dtd,代码行数:31,代码来源:board_form.php
示例17: get_skin_dir
<td>
<label for="countdown_use"><input type="checkbox" name="countdown_use" value="y" id="countdown_use" <?php
if ($eyoom_basic['countdown'] == 'y') {
echo 'checked';
}
?>
> 사용</label>
</td>
</tr>
<tr>
<th scope="row"><label for="countdown">스킨선택</label></th>
<td>
<select name="cd_skin" id="cd_skin">
<option value="">::스킨선택::</option>
<?php
$arr = get_skin_dir('countdown', EYOOM_THEME_PATH);
for ($i = 0; $i < count($arr); $i++) {
?>
<option value="<?php
echo $arr[$i];
?>
" <?php
if ($arr[$i] == $eyoom_basic['countdown_skin']) {
echo 'selected';
}
?>
><?php
echo $arr[$i];
?>
</option>
<?php
开发者ID:l2zeo,项目名称:eyoom_builder-1,代码行数:31,代码来源:countdown_form.php
示例18: get_selected
}
echo "<option value=\"" . $arr[$i] . "\"" . get_selected($config['cf_editor'], $arr[$i]) . ">" . $arr[$i] . "</option>\n";
}
?>
</select>
</td>
</tr>
<tr>
<th scope="row"><label for="cf_captcha_mp3">음성캡챠 선택<strong class="sound_only">필수</strong></label></th>
<td colspan="3">
<?php
echo help(G5_CAPTCHA_URL . '/mp3 밑의 음성 폴더를 선택합니다.');
?>
<select name="cf_captcha_mp3" id="cf_captcha_mp3" required class="required">
<?php
$arr = get_skin_dir('mp3', G5_CAPTCHA_PATH);
for ($i = 0; $i < count($arr); $i++) {
if ($i == 0) {
echo "<option value=\"\">선택</option>";
}
echo "<option value=\"" . $arr[$i] . "\"" . get_selected($config['cf_captcha_mp3'], $arr[$i]) . ">" . $arr[$i] . "</option>\n";
}
?>
</select>
</td>
</tr>
<tr>
<th scope="row"><label for="cf_use_copy_log">복사, 이동시 로그</label></th>
<td colspan="3">
<?php
echo help('게시물 아래에 누구로 부터 복사, 이동됨 표시');
开发者ID:dingdong2310,项目名称:g5_theme,代码行数:31,代码来源:config_form.php
示例19: form
function form($w = '', $bo_table = '')
{
$this->load->library('form_validation');
$config = array(array('field' => 'bo_table', 'label' => 'TABLE', 'rules' => 'trim|required|min_length[3]|max_length[20]|alpha_dash|xss_clean'), array('field' => 'gr_id', 'label' => '게시판 그룹', 'rules' => 'trim|required|min_length[3]|max_length[20]|alpha_dash'), array('field' => 'bo_subject', 'label' => '게시판 제목', 'rules' => 'trim|required|max_length[20]'), array('field' => 'bo_admin', 'label' => '게시판 관리자', 'rules' => 'trim|min_length[3]|max_length[20]|alpha_dash'));
$this->form_validation->set_rules($config);
if ($this->form_validation->run() == FALSE) {
if (!$this->Board_model->is_group()) {
alert('게시판그룹이 한개 이상 생성되어야 합니다.', ADM_F . '/boardgroup/form');
}
if ($w == '' || $w != 'u') {
$title = '생성';
$board = array_false(array('bo_table', 'bo_subject', 'bo_admin', 'bo_head', 'bo_tail', 'bo_sort_field', 'bo_insert_content', 'bo_use_private', 'bo_use_rss', 'bo_use_sns', 'bo_use_category', 'bo_use_name', 'bo_use_ip_view', 'bo_use_list_view', 'bo_use_email', 'bo_use_extra', 'bo_use_syntax', 'bo_order_search'));
$board['bo_count_delete'] = 0;
$board['bo_count_modify'] = 0;
$board['bo_use_secret'] = 0;
$board['bo_page_rows'] = 15;
$board['bo_page_rows_comt'] = 50;
$board['bo_subject_len'] = 75;
$board['bo_new'] = 24;
$board['bo_hot'] = 100;
$board['bo_image_width'] = 800;
$board['bo_upload_ext'] = 'zip|swf';
$board['bo_upload_size'] = 2048;
$board['bo_reply_order'] = 1;
$board['bo_use_comment'] = 1;
$board['bo_use_sideview'] = 1;
$board['bo_use_editor'] = 1;
$board['bo_use_search'] = 1;
$board['bo_skin'] = 'basic';
$board['gr_id'] = $w;
} else {
if ($w == 'u') {
$title = '수정';
$board = $this->Basic_model->get_board($bo_table);
if (!isset($board['bo_table'])) {
alert('존재하지 않은 게시판 입니다.');
}
}
}
$upload_max_size = ini_get('upload_max_filesize');
if (!preg_match("/([m|M])\$/", $upload_max_size)) {
$upload_max_size = (int) ($upload_max_size / 1048576);
}
$head = array('title' => '게시판' . $title);
$data = array('w' => $w, 'token' => get_token(), 'bo_table' => $board['bo_table'], 'bo_subject' => $board['bo_subject'], 'bo_admin' => $board['bo_admin'], 'bo_head' => $board['bo_head'], 'bo_tail' => $board['bo_tail'], 'bo_insert_content' => $board['bo_insert_content'], 'bo_order_search' => $board['bo_order_search'], 'bo_sort_field' => $board['bo_sort_field'], 'bo_count_write' => isset($board['bo_count_write']) ? number_format($board['bo_count_write']) : FALSE, 'bo_count_comment' => isset($board['bo_count_comment']) ? number_format($board['bo_count_comment']) : FALSE, 'upload_max_size' => $upload_max_size, 'bo_skin' => $board['bo_skin'], 'gr_id' => $board['gr_id'], 'bo_count_delete' => $board['bo_count_delete'], 'bo_count_modify' => $board['bo_count_modify'], 'bo_use_secret' => $board['bo_use_secret'], 'bo_page_rows' => $board['bo_page_rows'], 'bo_page_rows_comt' => $board['bo_page_rows_comt'], 'bo_subject_len' => $board['bo_subject_len'], 'bo_new' => $board['bo_new'], 'bo_hot' => $board['bo_hot'], 'bo_image_width' => $board['bo_image_width'], 'bo_upload_ext' => $board['bo_upload_ext'], 'bo_upload_size' => $board['bo_upload_size'], 'bo_reply_order' => $board['bo_reply_order'], 'use_private_chk' => $board['bo_use_private'] ? "checked='checked'" : '', 'use_rss_chk' => $board['bo_use_rss'] ? "checked='checked'" : '', 'use_sns_chk' => $board['bo_use_sns'] ? "checked='checked'" : '', 'use_comment_chk' => $board['bo_use_comment'] ? "checked='checked'" : '', 'use_category_chk' => $board['bo_use_category'] ? "checked='checked'" : '', 'use_sideview_chk' => $board['bo_use_sideview'] ? "checked='checked'" : '', 'use_editor_chk' => $board['bo_use_editor'] ? "checked='checked'" : '', 'use_name_chk' => $board['bo_use_name'] ? "checked='checked'" : '', 'use_ip_view_chk' => $board['bo_use_ip_view'] ? "checked='checked'" : '', 'use_list_view_chk' => $board['bo_use_list_view'] ? "checked='checked'" : '', 'use_email_chk' => $board['bo_use_email'] ? "checked='checked'" : '', 'use_extra_chk' => $board['bo_use_extra'] ? "checked='checked'" : '', 'use_syntax_chk' => $board['bo_use_syntax'] ? "checked='checked'" : '', 'use_search_chk' => $board['bo_use_search'] ? "checked='checked'" : '', 'group_select' => get_group_select('gr_id', $board['gr_id']), 'skin_select' => get_skin_dir('board', 'bo_skin', $board['bo_skin']), 'bo_list_level' => get_mb_level_select('bo_list_level', isset($board['bo_list_level']) ? $board['bo_list_level'] : 1), 'bo_read_level' => get_mb_level_select('bo_read_level', isset($board['bo_read_level']) ? $board['bo_read_level'] : 1), 'bo_write_level' => get_mb_level_select('bo_write_level', isset($board['bo_write_level']) ? $board['bo_write_level'] : 2), 'bo_reply_level' => get_mb_level_select('bo_reply_level', isset($board['bo_reply_level']) ? $board['bo_reply_level'] : 2), 'bo_comment_level' => get_mb_level_select('bo_comment_level', isset($board['bo_comment_level']) ? $board['bo_comment_level'] : 2), 'bo_upload_level' => get_mb_level_select('bo_upload_level', isset($board['bo_upload_level']) ? $board['bo_upload_level'] : 2), 'bo_download_level' => get_mb_level_select('bo_download_level', isset($board['bo_download_level']) ? $board['bo_download_level'] : 2));
widget::run('head', $head);
$this->load->view(ADM_F . '/board_form', $data);
widget::run('tail');
} else {
check_token();
$w = $this->input->post('w');
$bo_table = $this->input->post('bo_table');
if (!$w) {
$bo = $this->Basic_model->get_board($bo_table, 'bo_table');
if (isset($bo['bo_table'])) {
alert($bo['bo_table'] . '은(는) 이미 존재하는 TABLE 입니다.');
}
$board_path = DATA_PATH . '/file/' . $bo_table;
// 게시판 디렉토리 생성
mkdir($board_path, 0707);
chmod($board_path, 0707);
// 게시판 썸네일 디렉토리 생성
mkdir($board_path . '/thumb', 0707);
chmod($board_path . '/thumb', 0707);
$this->load->helper('file');
$board_index = $board_path . '/index.html';
write_file($board_index, '');
chmod($board_index, 0606);
$this->Board_model->insert();
} else {
if ($w == 'u') {
// 글수 조정
if ($this->input->post('proc_count')) {
$this->Board_model->proc_count();
}
// 공지 가져오기
$is_notice = '';
$bo = $this->Basic_model->get_board($bo_table, 'bo_notice');
if (isset($bo['bo_notice'])) {
$is_notice = $bo['bo_notice'];
}
$this->Board_model->update($is_notice);
} else {
alert('잘못된 접근입니다.');
}
}
if ($this->input->post('chk')) {
$this->Board_model->group_update();
}
goto_url(ADM_F . '/board/form/u/' . $bo_table);
}
}
开发者ID:ubiopen,项目名称:KI_Board,代码行数:92,代码来源:board.php
注:本文中的get_skin_dir函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论