function calc_size($adr,&$total,&$dir,&$size){ $adr=realpath($adr); $dp=OpenDir($adr); do{ $itm=ReadDir($dp); if (($itm!=".")&&($itm!="..")&&($itm!="")&&Is_Dir("$adr/$itm")){ calc_size("$adr/$itm",$total,$dir,$size); $dir++; } elseif (($itm!=".")&&($itm!="..")&&($itm!="")){ $size = $size+FileSize("$adr/$itm"); $total++; } } while ($itm!=false); CloseDir($dp); }
\tbody { font-family: "Trebuchet MS", Helvetica, sans-serif; font-size: 100% } \t--> \t</style> </head> <body>{$upld2}</body> </html> html; exit; } $title = ''; $content = ''; if (!$id || $id == '') { $title = $upld3; $maximum_filesize = calc_size($uploads_size); $content = <<<html <ul> \t<li>{$upld11} <b>{$furl}/uploads</b>.</li> \t<li>{$upld12} {$uploads_ext}.</li> \t<li>{$upld13} {$maximum_filesize}.</li> </ul> <form method="post" enctype="multipart/form-data" action="?id=upload"> <fieldset> \t<legend>{$upld3}</legend> \t<div> <input type="hidden" name="MAX_FILE_SIZE" value="{$uploads_size}" /> \t\t<label for="F0">{$upld14} 1</label><br /> <input type="file" name="F[]" id="F0" size="50" /><br />
<a href="{$image_url}" onclick="window.open(this.href,'','height={$popup_height},width={$popup_width},toolbar=no,menubar=no,scrollbars=yes,resizable=yes'); return false">{$file}</a> </td> <td>{$filesize_text}</td> <td>{$image_uploaded_date}</td> </tr> html; } closedir($dir); if ($directory_size == 0) { echo <<<html <tr> \t<td style="text-align:center" colspan="4">{$ind300}</td> </tr> html; } $directorysize_text = calc_size($directory_size); echo <<<html </tbody> </table> <p> <a href="javascript:un_check_all ('uploaded_images', true)">{$ind44}</a> | <a href="javascript:un_check_all ('uploaded_images', false)">{$ind44a}</a> </p> <p> <input class="mainoption" id="delete" name="delete" disabled="disabled" type="submit" value="{$ind97}" /> <b>{$ind264} {$directorysize_text}</b> </p> </form> html; } } else { if ($id == 'deluploads') { if (!has_access(NEWS_EDITOR)) {