newFile($_FILES['userfile']['tmp_name'], $name); else $str .= "File is too big " . sprintf("%.0f", filesize($_FILES['userfile']['tmp_name'])/1024). "kb, max file size: " . sprintf("%.0f", $FILE_MAX_SIZE/1024) . "kb."; krsort($files->files); } } if($task == "delete" && $fid) { $files->deleteFile($fid); } $str .= "
"; $str .= "

File:

\n"; $str .= "

Use alternative filename (leave empty to use original filename):

\n"; $str .= "

"; $str .= "
"; $str .= $files->show(); return $str; }