난초보님의 미디어 통합스킨중 "오디오게시판" 파일업로드 용량늘리는 방법좀 가르처 주세요. 정보
난초보님의 미디어 통합스킨중 "오디오게시판" 파일업로드 용량늘리는 방법좀 가르처 주세요.
본문
안녕하세요
미디어 통합(음악) 스킨을 설치하였습니다.
그런데 오디오 게시판의 경우 게시판에 직접 파일을 업로드 해도 데이터 베이스에 아주 잘 올라 갑니다.
여쭙고 싶은 것은 어찌하면 이 게시판 자체에서 업로드 파일용량을 늘릴 수 있는 것인지 알고 싶습니다.
즉 업로드 용량 설정을 해주는 것에 대한 질문입니다.
현재는 파일 용량 1.0M 이하만 업로드 가능으로 되어 있네요.
요것을 10M정도로 늘려 주려고 합니다.
어느 곳을 수정해 주어야 하는 지요?
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("{$g4['path']}/lib/kplayer_common_lib.php");
if (!($member['mb_id'] && ($is_admin == "super" || $group['gr_admin'] == $member['mb_id'] || $board['bo_admin'] == $member['mb_id']))){
die("<script language='javascript' type='text/javascript'> alert('권한이 없습니다.'); window.history.go(-1);</script>");
}else if ($w == "r"){
die("<script language='javascript' type='text/javascript'> alert('잘못된 방법으로 변수가 정의되었습니다.'); window.history.go(-1);</script>");
}else{
$alert_str = kplayer_board_check("\\n\\n", "audio", $board, 1);
if ($alert_str){
die("<script language='javascript' type='text/javascript'> alert('({$board['bo_subject']}) board \\n\\n{$alert_str}설정 에러.\\n\\n관리자에게 문의하시기 바랍니다.'); window.history.go(-1);</script>");
}
}
die("<script language='javascript' type='text/javascript'> alert('권한이 없습니다.'); window.history.go(-1);</script>");
}else if ($w == "r"){
die("<script language='javascript' type='text/javascript'> alert('잘못된 방법으로 변수가 정의되었습니다.'); window.history.go(-1);</script>");
}else{
$alert_str = kplayer_board_check("\\n\\n", "audio", $board, 1);
if ($alert_str){
die("<script language='javascript' type='text/javascript'> alert('({$board['bo_subject']}) board \\n\\n{$alert_str}설정 에러.\\n\\n관리자에게 문의하시기 바랍니다.'); window.history.go(-1);</script>");
}
}
$source = array("/\n/", "/\r/");
$target = array("\\n", "");
$two_lyrics = preg_replace($source, $target, trim(addslashes($write['wr_10'])));
$singer = preg_replace("/\"/", """, get_text(trim($write['wr_1'])));
$title_song = preg_replace("/\"/", """, get_text(trim($write['wr_2'])));
$target = array("\\n", "");
$two_lyrics = preg_replace($source, $target, trim(addslashes($write['wr_10'])));
$singer = preg_replace("/\"/", """, get_text(trim($write['wr_1'])));
$title_song = preg_replace("/\"/", """, get_text(trim($write['wr_2'])));
?>
<link rel="stylesheet" href="<?=$board_skin_path?>/css/kplayer_board.css" type="text/css">
<link rel="stylesheet" href="<?=$board_skin_path?>/css/kplayer_board.css" type="text/css">
<script language="javascript" type="text/javascript">
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대
</script>
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대
</script>
<!-- 김선용 2005.4 - ff(불여우) 에서는 innerhtml 사용시 폼이 <table> 아래에 있으면 인식하지 못합니다. -->
<form name="fwrite" method="post" action="javascript:fwrite_check(document.fwrite);" enctype="multipart/form-data">
<input type="hidden" name="null"><!-- 삭제하지 마십시오. -->
<input type="hidden" name="w" value="<?=$w?>">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="wr_id" value="<?=$wr_id?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="spt" value="<?=$spt?>">
<input type="hidden" name="sst" value="<?=$sst?>">
<input type="hidden" name="sod" value="<?=$sod?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="wr_10" value=""><!-- 두줄 가사 삭제하지 마십시오.-->
<form name="fwrite" method="post" action="javascript:fwrite_check(document.fwrite);" enctype="multipart/form-data">
<input type="hidden" name="null"><!-- 삭제하지 마십시오. -->
<input type="hidden" name="w" value="<?=$w?>">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="wr_id" value="<?=$wr_id?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="spt" value="<?=$spt?>">
<input type="hidden" name="sst" value="<?=$sst?>">
<input type="hidden" name="sod" value="<?=$sod?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="wr_10" value=""><!-- 두줄 가사 삭제하지 마십시오.-->
<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0" border="0"><tr><td>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td height="10"></td></tr>
<tr>
<td height="30" align="center" style="background-image:url('<?=$board_skin_path?>/img/bg_top.gif');">
<span class="type w-title">[<?=$board['bo_subject']?>] <?=$title_msg?> </span>
</td>
</tr>
</table>
<tr><td height="10"></td></tr>
<tr>
<td height="30" align="center" style="background-image:url('<?=$board_skin_path?>/img/bg_top.gif');">
<span class="type w-title">[<?=$board['bo_subject']?>] <?=$title_msg?> </span>
</td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<colgroup>
<col width="20">
<col width="80">
<col>
</colgroup>
<tr>
<td height="30"></td>
<td height="30" class="type w-text">옵션</td>
<td class="type w-text2"><input type="checkbox" name="notice" value="1" <?=$notice_checked?> onclick="blockdisplay();">공지 </td></tr>
<tr><td colspan="3" height="1" style="background-image:url('<?=$board_skin_path?>/img/line.gif');" border="0"></td></tr>
<tr>
<td height="30"></td>
<td height="30" class="type w-text">가수 - 곡</td>
<td><input class="type w-input2" name="wr_subject" itemname="가수 - 곡" required value="<?=$subject?>"></td></tr>
<tr><td colspan="3" height="1" style="background-image:url('<?=$board_skin_path?>/img/line.gif');" border="0"></td></tr>
<tr>
<td height="30"></td>
<td height="30" class="type w-text">가수</td>
<td><input class="type w-input2" name="wr_1" itemname="가수" required value="<?=$singer?>"></td></tr>
<tr><td colspan="3" height="1" style="background-image:url('<?=$board_skin_path?>/img/line.gif');" border="0"></td></tr>
<tr>
<td height="30"></td>
<td height="30" class="type w-text">곡</td>
<td><input class="type w-input2" name="wr_2" itemname="곡" required value="<?=$title_song?>"></td></tr>
<tr><td colspan="3" height="1" style="background-image:url('<?=$board_skin_path?>/img/line.gif');" border="0"></td></tr>
<tr>
<td></td>
<td valign="top"></td>
<td>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td colspan="2" height="10"></td></tr>
<tr><td colspan="2" class="type w-text2">가사 내용 (<span class="w-text3">html</span> - <span class="w-text4">no</span>)</td></tr>
<tr><td colspan="2" height="5"></td></tr>
<tr>
<td width="50%" align="left" valign="bottom" class="type w-text2">
<span class="cursor" onclick="textarea_decrease('wr_content', 10);"><img src="<?=$board_skin_path?>/img/content_up.gif"></span>
<span class="cursor" onclick="textarea_original('wr_content', 10);"><img src="<?=$board_skin_path?>/img/content_start.gif"></span>
<span class="cursor" onclick="textarea_increase('wr_content', 10);"><img src="<?=$board_skin_path?>/img/content_down.gif"></span></td>
<td width="50%" align="right"><? if ($write_min || $write_max) { ?><span id="char_count" class="w-text4"></span>글자<?}?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td></td>
<td valign="top" class="type w-text">가사</td>
<td>
<textarea id="wr_content" name="wr_content" class="type w-textarea" rows="20" itemname="가사 내용" required
<? if ($write_min || $write_max) { ?> onkeyup="check_byte('wr_content', 'char_count');"<?}?>><?=$content?></textarea>
<? if ($write_min || $write_max) { ?><script language="javascript"> check_byte('wr_content', 'char_count'); </script><?}?></td>
</tr>
<tr><td colspan="3" height="10"></td></tr>
<colgroup>
<col width="20">
<col width="80">
<col>
</colgroup>
<tr>
<td height="30"></td>
<td height="30" class="type w-text">옵션</td>
<td class="type w-text2"><input type="checkbox" name="notice" value="1" <?=$notice_checked?> onclick="blockdisplay();">공지 </td></tr>
<tr><td colspan="3" height="1" style="background-image:url('<?=$board_skin_path?>/img/line.gif');" border="0"></td></tr>
<tr>
<td height="30"></td>
<td height="30" class="type w-text">가수 - 곡</td>
<td><input class="type w-input2" name="wr_subject" itemname="가수 - 곡" required value="<?=$subject?>"></td></tr>
<tr><td colspan="3" height="1" style="background-image:url('<?=$board_skin_path?>/img/line.gif');" border="0"></td></tr>
<tr>
<td height="30"></td>
<td height="30" class="type w-text">가수</td>
<td><input class="type w-input2" name="wr_1" itemname="가수" required value="<?=$singer?>"></td></tr>
<tr><td colspan="3" height="1" style="background-image:url('<?=$board_skin_path?>/img/line.gif');" border="0"></td></tr>
<tr>
<td height="30"></td>
<td height="30" class="type w-text">곡</td>
<td><input class="type w-input2" name="wr_2" itemname="곡" required value="<?=$title_song?>"></td></tr>
<tr><td colspan="3" height="1" style="background-image:url('<?=$board_skin_path?>/img/line.gif');" border="0"></td></tr>
<tr>
<td></td>
<td valign="top"></td>
<td>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td colspan="2" height="10"></td></tr>
<tr><td colspan="2" class="type w-text2">가사 내용 (<span class="w-text3">html</span> - <span class="w-text4">no</span>)</td></tr>
<tr><td colspan="2" height="5"></td></tr>
<tr>
<td width="50%" align="left" valign="bottom" class="type w-text2">
<span class="cursor" onclick="textarea_decrease('wr_content', 10);"><img src="<?=$board_skin_path?>/img/content_up.gif"></span>
<span class="cursor" onclick="textarea_original('wr_content', 10);"><img src="<?=$board_skin_path?>/img/content_start.gif"></span>
<span class="cursor" onclick="textarea_increase('wr_content', 10);"><img src="<?=$board_skin_path?>/img/content_down.gif"></span></td>
<td width="50%" align="right"><? if ($write_min || $write_max) { ?><span id="char_count" class="w-text4"></span>글자<?}?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td></td>
<td valign="top" class="type w-text">가사</td>
<td>
<textarea id="wr_content" name="wr_content" class="type w-textarea" rows="20" itemname="가사 내용" required
<? if ($write_min || $write_max) { ?> onkeyup="check_byte('wr_content', 'char_count');"<?}?>><?=$content?></textarea>
<? if ($write_min || $write_max) { ?><script language="javascript"> check_byte('wr_content', 'char_count'); </script><?}?></td>
</tr>
<tr><td colspan="3" height="10"></td></tr>
<tr><td colspan="3">
<table width="100%" id="display_hidden" cellpadding="0" cellspacing="0" border="0" style="display:none;">
<?
// 링크(1) audio, 링크 1개로 고정 제한
if ($is_link) {
?>
<tr><td colspan="3" height="1" style="background-image:url('<?=$board_skin_path?>/img/line.gif');" border="0"></td></tr>
<tr>
<td height="30"></td>
<td height="30" class="type w-text">Media Link</td>
<td></td>
</tr>
<tr>
<td></td>
<td class="type w-text2">· Audio Link</td>
<td><input type="text" class="type w-input2" name="wr_link1" itemname="Audio Link" value="<?=$write['wr_link1']?>"></td>
</tr>
<tr><td colspan="3" height="10" ></td></tr>
<? }
<table width="100%" id="display_hidden" cellpadding="0" cellspacing="0" border="0" style="display:none;">
<?
// 링크(1) audio, 링크 1개로 고정 제한
if ($is_link) {
?>
<tr><td colspan="3" height="1" style="background-image:url('<?=$board_skin_path?>/img/line.gif');" border="0"></td></tr>
<tr>
<td height="30"></td>
<td height="30" class="type w-text">Media Link</td>
<td></td>
</tr>
<tr>
<td></td>
<td class="type w-text2">· Audio Link</td>
<td><input type="text" class="type w-input2" name="wr_link1" itemname="Audio Link" value="<?=$write['wr_link1']?>"></td>
</tr>
<tr><td colspan="3" height="10" ></td></tr>
<? }
// 파일 업로드(1) audio 파일 1개로 고정 제한
if ($is_file) {
?>
<tr><td colspan="3" height="1" style="background-image:url('<?=$board_skin_path?>/img/line.gif');" border="0"></td></tr>
<tr>
<td height="30"></td>
<td height="30" class="type w-text">Media File</td>
<td class="type w-text2">파일 용량 <span class="type w-text4"><?=get_filesize($board['bo_upload_size'])?></span> 이하만 업로드 가능</span></td>
</tr>
<tr>
<td></td>
<td valign="top" class="type w-text2">· Audio File</td>
<td>
<?
echo "<input type=\"file\" name=\"bf_file[]\" size=\"44\" class=\"type w-input2\" title=\"파일 용량 " . get_filesize($board['bo_upload_size']) . " 이하만 업로드 가능\">";
if ($w == "u"){
$row = sql_fetch(" select bf_file, bf_content from {$g4['board_file_table']} where bo_table = '{$bo_table}' and wr_id = '{$wr_id}' and bf_no = '0' ");
if ($row['bf_file']){
echo "<br /><input type=\"checkbox\" name=\"bf_file_del[]\" value=\"1\"><a href=\"{$file[0]['href']}\" class=\"link\">{$file[0]['source']}</a>({$file[0]['size']}) 파일 삭제";
}else{
echo "";
}
}
if ($is_file_content){
echo "<br /><input type=\"text\" name=\"bf_content[]\" size=\"44\" class=\"type w-input2\" value='{$row['bf_content']}' title=\"업로드 이미지 파일에 해당 되는 내용을 입력하세요.\">";
}
?>
</td>
</tr>
<tr><td colspan="3" height="10" ></td></tr>
<?
}
?>
</table></td></tr>
if ($is_file) {
?>
<tr><td colspan="3" height="1" style="background-image:url('<?=$board_skin_path?>/img/line.gif');" border="0"></td></tr>
<tr>
<td height="30"></td>
<td height="30" class="type w-text">Media File</td>
<td class="type w-text2">파일 용량 <span class="type w-text4"><?=get_filesize($board['bo_upload_size'])?></span> 이하만 업로드 가능</span></td>
</tr>
<tr>
<td></td>
<td valign="top" class="type w-text2">· Audio File</td>
<td>
<?
echo "<input type=\"file\" name=\"bf_file[]\" size=\"44\" class=\"type w-input2\" title=\"파일 용량 " . get_filesize($board['bo_upload_size']) . " 이하만 업로드 가능\">";
if ($w == "u"){
$row = sql_fetch(" select bf_file, bf_content from {$g4['board_file_table']} where bo_table = '{$bo_table}' and wr_id = '{$wr_id}' and bf_no = '0' ");
if ($row['bf_file']){
echo "<br /><input type=\"checkbox\" name=\"bf_file_del[]\" value=\"1\"><a href=\"{$file[0]['href']}\" class=\"link\">{$file[0]['source']}</a>({$file[0]['size']}) 파일 삭제";
}else{
echo "";
}
}
if ($is_file_content){
echo "<br /><input type=\"text\" name=\"bf_content[]\" size=\"44\" class=\"type w-input2\" value='{$row['bf_content']}' title=\"업로드 이미지 파일에 해당 되는 내용을 입력하세요.\">";
}
?>
</td>
</tr>
<tr><td colspan="3" height="10" ></td></tr>
<?
}
?>
</table></td></tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td width="100%" height="30" style="background-image:url('<?=$board_skin_path?>/img/bg_write_bottom.gif');"></td></tr>
<tr>
<td height="20" width="100%" align="center">
<input type="image" id="btn_submit" src="<?=$board_skin_path?>/img/btn_write.gif" border="0" accesskey="s"
> <img id="btn_list" class="cursor" src="<?=$board_skin_path?>/img/btn_list.gif" border="0" onclick="window.location='./board.php?bo_table=<?=$bo_table?>';"
> <img id="btn_cancel" class="cursor" src="<?=$board_skin_path?>/img/btn_cancel.gif" border="0" onclick="window.history.go(-1);"></td>
</tr>
<tr><td width="100%" height="20"></td></tr>
</table>
<tr><td width="100%" height="30" style="background-image:url('<?=$board_skin_path?>/img/bg_write_bottom.gif');"></td></tr>
<tr>
<td height="20" width="100%" align="center">
<input type="image" id="btn_submit" src="<?=$board_skin_path?>/img/btn_write.gif" border="0" accesskey="s"
> <img id="btn_list" class="cursor" src="<?=$board_skin_path?>/img/btn_list.gif" border="0" onclick="window.location='./board.php?bo_table=<?=$bo_table?>';"
> <img id="btn_cancel" class="cursor" src="<?=$board_skin_path?>/img/btn_cancel.gif" border="0" onclick="window.history.go(-1);"></td>
</tr>
<tr><td width="100%" height="20"></td></tr>
</table>
</td></tr></table>
</form>
</form>
<script language="javascript" type="text/javascript">
with (document.fwrite) {
if (typeof(wr_subject) != "undefined")
wr_subject.focus();
else if (typeof(wr_1) != "undefined")
wr_1.focus();
else if (typeof(wr_2) != "undefined")
wr_2.focus();
else if (typeof(wr_content) != "undefined")
wr_content.focus();
}
if (typeof(wr_subject) != "undefined")
wr_subject.focus();
else if (typeof(wr_1) != "undefined")
wr_1.focus();
else if (typeof(wr_2) != "undefined")
wr_2.focus();
else if (typeof(wr_content) != "undefined")
wr_content.focus();
}
function fwrite_check(f)
{
var s = "";
if (s = word_filter_check(f.wr_subject.value)) {
alert("제목에 금지단어('"+s+"')가 포함되어있습니다");
return;
}
{
var s = "";
if (s = word_filter_check(f.wr_subject.value)) {
alert("제목에 금지단어('"+s+"')가 포함되어있습니다");
return;
}
if (s = word_filter_check(f.wr_content.value)) {
alert("내용에 금지단어('"+s+"')가 포함되어있습니다");
return;
}
alert("내용에 금지단어('"+s+"')가 포함되어있습니다");
return;
}
if (char_min > 0 || char_max > 0)
{
var cnt = parseInt(document.getElementById('char_count').innerHTML);
if (char_min > 0 && char_min > cnt)
{
alert("내용은 "+char_min+"글자 이상 쓰셔야 합니다.");
return;
} else if (char_max > 0 && char_max < cnt)
{
alert("내용은 "+char_max+"글자 이하로 쓰셔야 합니다.");
return;
}
}
{
var cnt = parseInt(document.getElementById('char_count').innerHTML);
if (char_min > 0 && char_min > cnt)
{
alert("내용은 "+char_min+"글자 이상 쓰셔야 합니다.");
return;
} else if (char_max > 0 && char_max < cnt)
{
alert("내용은 "+char_max+"글자 이하로 쓰셔야 합니다.");
return;
}
}
if (typeof(f.wr_key) != "undefined") {
if (hex_md5(f.wr_key.value) != md5_norobot_key) {
alert("자동등록방지용 빨간글자가 순서대로 입력되지 않았습니다.");
f.wr_key.focus();
return;
}
}
if (hex_md5(f.wr_key.value) != md5_norobot_key) {
alert("자동등록방지용 빨간글자가 순서대로 입력되지 않았습니다.");
f.wr_key.focus();
return;
}
}
document.getElementById('btn_submit').disabled = true;
document.getElementById('btn_list').disabled = true;
document.getElementById('btn_cancel').disabled = true;
document.getElementById('btn_list').disabled = true;
document.getElementById('btn_cancel').disabled = true;
f.action = "./write_update.php";
f.wr_10.value = "<?=$two_lyrics?>";
f.submit();
}
f.wr_10.value = "<?=$two_lyrics?>";
f.submit();
}
if (!document.fwrite.wr_content.value){
document.fwrite.wr_content.value = "가사는 준비중....";
}
document.fwrite.wr_content.value = "가사는 준비중....";
}
blockdisplay();
function blockdisplay(){
if (document.fwrite.notice.checked){
document.getElementById('display_hidden').style.display = "none";
}else{
document.getElementById('display_hidden').style.display = "";
}
}
</script>
function blockdisplay(){
if (document.fwrite.notice.checked){
document.getElementById('display_hidden').style.display = "none";
}else{
document.getElementById('display_hidden').style.display = "";
}
}
</script>
댓글 전체
게시판 관리자에서 용량을 10메가로 하더라도 php.ini에서 용량제한이 1메가로 되어 있으면 1메가이상 업로드 되지 않습니다.
php.ini 파일의 File Uploads 항목중
upload_max_filesize 부분을 upload_max_filesize = 10M 로 수정하고 아파치를 재시작해야 됩니다.
관리자메뉴 -> phpinfo() 항목
upload_max_filesize 항목을 찾아보시고 값이 얼마로 되어있는지 확인해 보세요.
php.ini 파일의 File Uploads 항목중
upload_max_filesize 부분을 upload_max_filesize = 10M 로 수정하고 아파치를 재시작해야 됩니다.
관리자메뉴 -> phpinfo() 항목
upload_max_filesize 항목을 찾아보시고 값이 얼마로 되어있는지 확인해 보세요.
네 지금 찾아 보니 10M로 되어 있는데요. 그렇다면 그 항목을 20M로 늘리려면 어떻게 수정해야 하는 것인지요 수정 불가 항목같은데요.
해당 게시판 관리자로 들어가서 파일 업로드 용량 항목에 입력하세요
추가)20메가는 안됩니다. php.ini에 설정된 10메가 까지만 됩니다.
호스팅 받는다면 업체에 문의하세요
추가)20메가는 안됩니다. php.ini에 설정된 10메가 까지만 됩니다.
호스팅 받는다면 업체에 문의하세요
php. ini는제가 건드릴수 있는 것은 아닌듯합니다.
아므래도 용량이 큰것은 서버에 있는 그누 디렉토리에 파일을 직접 업로드하고 링크 시켜야 할것 같습니다.
그럼 간단하죠 친절한 서기님 조언 감사드립니다.
그럼 행복하세요 ^^
아므래도 용량이 큰것은 서버에 있는 그누 디렉토리에 파일을 직접 업로드하고 링크 시켜야 할것 같습니다.
그럼 간단하죠 친절한 서기님 조언 감사드립니다.
그럼 행복하세요 ^^