사이트 내 전체검색
그누보드
[개선] 게시판 관리자에 첨부파일 크기 KByte + 컴마 표시 하기
로빈아빠
https://cmd.kr/gnu/120 URL이 복사되었습니다.

본문

1) board_form.php
<tr class='ht'>
    <td><input type=checkbox name=chk_upload_size value=1></td>
    <td>파일 업로드 용량</td>
    <td>업로드 파일 한개당 <input type=text class=ed name=bo_upload_size size=10 required itemname='파일 업로드 용량' value='<?=number_format($board[bo_upload_size]/1024)?>'> Kbytes 이하 (최대 <?=ini_get("upload_max_filesize")?> 이하) <?=help("1 MB = 1,024 KByte")?></td>
</tr>

2) board_form_update.php
$_POST[bo_upload_size]=str_replace(",","",$_POST[bo_upload_size])*1024;
$bo_upload_size=$_POST[bo_upload_size];

$sql_common = " gr_id               = '$_POST[gr_id]',
                bo_subject          = '$_POST[bo_subject]',
                bo_subject2         = '$_POST[bo_subject2]',
                bo_admin            = '$_POST[bo_admin]',
                bo_list_level       = '$_POST[bo_list_level]',
                bo_read_level       = '$_POST[bo_read_level]',
                bo_write_level      = '$_POST[bo_write_level]',
                bo_reply_level      = '$_POST[bo_reply_level]',
                bo_comment_level    = '$_POST[bo_comment_level]',
                bo_html_level       = '$_POST[bo_html_level]',
                bo_link_level       = '$_POST[bo_link_level]',
                bo_trackback_level  = '$_POST[bo_trackback_level]',
                bo_count_modify     = '$_POST[bo_count_modify]',
                bo_count_delete     = '$_POST[bo_count_delete]',
                bo_upload_level     = '$_POST[bo_upload_level]',
                bo_download_level   = '$_POST[bo_download_level]',
                bo_read_point       = '$_POST[bo_read_point]',
                bo_write_point      = '$_POST[bo_write_point]',
                bo_comment_point    = '$_POST[bo_comment_point]',
                bo_download_point   = '$_POST[bo_download_point]',
                bo_use_category     = '$_POST[bo_use_category]',
                bo_category_list    = '$_POST[bo_category_list]',
                bo_disable_tags     = '$_POST[bo_disable_tags]',
                bo_use_sideview     = '$_POST[bo_use_sideview]',
                bo_use_file_content = '$_POST[bo_use_file_content]',
                bo_use_secret       = '$_POST[bo_use_secret]',
                bo_use_dhtml_editor = '$_POST[bo_use_dhtml_editor]',
                bo_hide_comment  = '$_POST[bo_hide_comment]',
                bo_use_upload_tool = '$_POST[bo_use_upload_tool]',
                bo_use_rss_view     = '$_POST[bo_use_rss_view]',
                bo_use_comment      = '$_POST[bo_use_comment]',
                bo_use_good         = '$_POST[bo_use_good]',
                bo_use_nogood       = '$_POST[bo_use_nogood]',
                bo_use_name         = '$_POST[bo_use_name]',
                bo_use_signature    = '$_POST[bo_use_signature]',
                bo_use_ip_view      = '$_POST[bo_use_ip_view]',
                bo_use_trackback    = '$_POST[bo_use_trackback]',
                bo_use_list_view    = '$_POST[bo_use_list_view]',
                bo_use_list_content = '$_POST[bo_use_list_content]',
                bo_use_email        = '$_POST[bo_use_email]',
                bo_table_width      = '$_POST[bo_table_width]',
                bo_subject_len      = '$_POST[bo_subject_len]',
                bo_page_rows        = '$_POST[bo_page_rows]',
                bo_new              = '$_POST[bo_new]',
                bo_hot              = '$_POST[bo_hot]',
                bo_image_width      = '$_POST[bo_image_width]',
                bo_skin             = '$_POST[bo_skin]',
                bo_include_head     = '$_POST[bo_include_head]',
                bo_include_tail     = '$_POST[bo_include_tail]',
                bo_content_head     = '$_POST[bo_content_head]',
                bo_content_tail     = '$_POST[bo_content_tail]',
                bo_insert_content   = '$_POST[bo_insert_content]',
                bo_gallery_cols     = '$_POST[bo_gallery_cols]',
                bo_upload_count     = '$_POST[bo_upload_count]',
                bo_upload_size      = '$_POST[bo_upload_size]',
                bo_reply_order      = '$_POST[bo_reply_order]',
                bo_use_search       = '$_POST[bo_use_search]',
                bo_order_search     = '$_POST[bo_order_search]',
                bo_write_min        = '$_POST[bo_write_min]',
                bo_write_max        = '$_POST[bo_write_max]',
                bo_comment_min      = '$_POST[bo_comment_min]',
                bo_comment_max      = '$_POST[bo_comment_max]',
                bo_sort_field       = '$_POST[bo_sort_field]' ";

출처:freeimage.kr

댓글목록

등록된 댓글이 없습니다.

그누보드
190 (3/4P)

Search

Copyright © Cmd 명령어 3.129.218.223