echo '<th abbr="mime" scope="col">MIME</th>'; } if ($c_date) { echo '<th abbr="date" scope="col">日期</th>'; } if ($c_orig) { echo '<th abbr="original name" scope="col">原檔名</th>'; } echo "</tr>\n"; //メイン表示 for ($i = $st; $i < $st + $page_def; $i++) { if ($lines[$i] == '') { continue; } list($id, $ext, $usr, $com, $host, $now, $size, $mtype, $pas, $orig, ) = explode("\t", $lines[$i]); $fsize = FormatByte($size); if ($auto_link) { $com = preg_replace('/(https?|ftp|news)(:\\/\\/[\\w\\+\\$\\;\\?\\.\\{\\}%,!#~*\\/:@&=_-]+)/u', '<a href="$1$2">$1$2</a>', $com); } $filename = $prefix . $id . '.' . $ext; $target = $updir . $filename; echo '<tr><!--' . str_replace('--', '- -', $host) . "-->\n"; //ホスト表示 if ($c_act) { if ($act == 'mult') { echo "<td class=\"del\"><input type=\"checkbox\" name=\"mdid[]\" value=\"{$id}\"/></td>"; } else { echo "<td class=\"del\"><a href=\"{$PHP_SELF}?del={$id}\">D</a></td>"; } } echo "<td>[<a href=\"{$target}\">{$filename}</a>]</td>";
} if ($c_date) { echo '<th abbr="date" scope="col">日期</th>'; } if ($c_dlim) { echo '<th abbr="limit" scope="col">限制</th>'; } if ($c_orig) { echo '<th abbr="original name" scope="col">原檔名</th>'; } echo "</tr>\n"; //メイン表示 $qry = 'SELECT * FROM upload ORDER BY id desc LIMIT ' . $st . ',' . $page_def; $rs = sqlite_query($conn, $qry); while ($row = sqlite_fetch_array($rs)) { $fsize = FormatByte($row['upfile_size']); if ($auto_link) { $com = preg_replace('/(https?|ftp|news)(:\\/\\/[\\w\\+\\$\\;\\?\\.\\{\\}%,!#~*\\/:@&=_-]+)/u', '<a href="$1$2">$1$2</a>', $com); } $pmark = $row['dpwd'] != '*' ? '<span class="rb">*</span>' : ''; $filename = $prefix . padNum($row['id']) . '.' . $row['ext']; echo '<tr><!--' . str_replace('--', '- -', $row['host']) . "-->\n"; //ホスト表示 if ($c_act) { if ($act == 'mult') { echo "<td class=\"del\"><input type=\"checkbox\" name=\"mdid[]\" value=\"{$row['id']}\"/></td>"; } else { echo "<td class=\"del\"><a href=\"{$PHP_SELF}?del={$row['id']}\">D</a></td>"; } } $dlink = $row['utime'] ? "<a href=\"{$PHP_SELF}?act=down&id={$row['id']}\">{$filename}</a>" : $filename;