function getTotalUp($flag) { global $DB_CONNECT; $DB_DIR = opendir("../bbs/table"); while (false !== ($table = readdir($DB_DIR))) { if (strstr($table, '.')) { continue; } if ($flag == 'num') { $total += getUpFileNum($table); } if ($flag == 'size') { $tsize += getUpFileSize($table); } } closedir($DB_DIR); return $flag == 'num' ? $total : $tsize; }
<td> <a href='./add_dbmanager.php?action=table_view&table=kimsbod7_<?php echo $table; ?> _rpl' target='_blank'><font color=blue><?php echo number_format($CmtNum[0]); ?> </font></a> </td> <td width=30> <a href='./add_fmanager.php?pwd=../bbs/table/<?php echo $table; ?> /upload/' target='_blank'><font color=blue><?php echo number_format(getUpFileNum($table)); ?> </font></a> </td> <td> <?php echo getSizeFormat(getUpFileSize($table), 1); ?> </td> <td> <a class='Blink' onclick="location.href='bod_cfgmanager.php?table=<?php echo $table; ?> &p=<?php echo $p; ?> ';">관리</a> </td> <td> <?php if (strstr($SERVER_SOFTWARE, 'Win')) { ?>