파일 업로드 개수 코드 수정

This commit is contained in:
chicpro
2016-05-04 10:42:59 +09:00
parent b4a83c1969
commit 71efd5c97f
9 changed files with 10 additions and 10 deletions

View File

@ -304,7 +304,6 @@ $secret_checked = "";
if ($w == '') {
$password_required = 'required';
$file = array('count'=>$file_count);
} else if ($w == 'u') {
$password_required = '';
@ -338,6 +337,8 @@ if ($w == '') {
}
$file = get_file($bo_table, $wr_id);
if($file_count < $file['count'])
$file_count = $file['count'];
} else if ($w == 'r') {
if (strstr($write['wr_option'], 'secret')) {
$is_secret = true;
@ -349,7 +350,6 @@ if ($w == '') {
for ($i=1; $i<=G5_LINK_COUNT; $i++) {
$write['wr_link'.$i] = get_text($write['wr_link'.$i]);
}
$file = array('count'=>$file_count);
}
set_session('ss_bo_table', $_REQUEST['bo_table']);

View File

@ -129,7 +129,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
</tr>
<?php } ?>
<?php for ($i=0; $is_file && $i<$file['count']; $i++) { ?>
<?php for ($i=0; $is_file && $i<$file_count; $i++) { ?>
<tr>
<th scope="row">파일 #<?php echo $i+1 ?></th>
<td>

View File

@ -128,7 +128,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
</tr>
<?php } ?>
<?php for ($i=0; $is_file && $i<$file['count']; $i++) { ?>
<?php for ($i=0; $is_file && $i<$file_count; $i++) { ?>
<tr>
<th scope="row">파일 #<?php echo $i+1 ?></th>
<td>

View File

@ -146,7 +146,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
</tr>
<?php } ?>
<?php for ($i=0; $is_file && $i<$file['count']; $i++) { ?>
<?php for ($i=0; $is_file && $i<$file_count; $i++) { ?>
<tr>
<th scope="row">파일 #<?php echo $i+1 ?></th>
<td>

View File

@ -146,7 +146,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
</tr>
<?php } ?>
<?php for ($i=0; $is_file && $i<$file['count']; $i++) { ?>
<?php for ($i=0; $is_file && $i<$file_count; $i++) { ?>
<tr>
<th scope="row">파일 #<?php echo $i+1 ?></th>
<td>

View File

@ -129,7 +129,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
</tr>
<?php } ?>
<?php for ($i=0; $is_file && $i<$file['count']; $i++) { ?>
<?php for ($i=0; $is_file && $i<$file_count; $i++) { ?>
<tr>
<th scope="row">파일 #<?php echo $i+1 ?></th>
<td>

View File

@ -128,7 +128,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
</tr>
<?php } ?>
<?php for ($i=0; $is_file && $i<$file['count']; $i++) { ?>
<?php for ($i=0; $is_file && $i<$file_count; $i++) { ?>
<tr>
<th scope="row">파일 #<?php echo $i+1 ?></th>
<td>

View File

@ -146,7 +146,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
</tr>
<?php } ?>
<?php for ($i=0; $is_file && $i<$file['count']; $i++) { ?>
<?php for ($i=0; $is_file && $i<$file_count; $i++) { ?>
<tr>
<th scope="row">파일 #<?php echo $i+1 ?></th>
<td>

View File

@ -146,7 +146,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0
</tr>
<?php } ?>
<?php for ($i=0; $is_file && $i<$file['count']; $i++) { ?>
<?php for ($i=0; $is_file && $i<$file_count; $i++) { ?>
<tr>
<th scope="row">파일 #<?php echo $i+1 ?></th>
<td>