?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html style="width:100%;height:100%;margin:0;padding:0;"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title><?php echo htmlentities($file); ?> - Text Editor</title> <link rel="stylesheet" href="fileman.css" type="text/css" media="screen" /> </head> <body style="width:100%;height:100%;margin:0;padding:0;background:#CCCCCC none;"> <table id="preview_img" border="0" cellspacing="0" cellpadding="0" style="width:100%;height:100%;margin:0;padding:0;"><tr><td align="center" valign="middle"> <img src="<?php echo fm_geturl($d); ?> " class="image" style="border:1px solid #000000;background:#FFFFFF url(fileman_img/transp.gif);" /> </td></tr></table> </body> </html> <?php } else { ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title><?php echo htmlentities($file);
?> filedesc['<?php echo $tfile['id']; ?> '] = '<?php if ($tfile['ft'] == 5 && $tfile['imgsize'][0]) { $w = $tfile['imgsize'][0]; $h = $tfile['imgsize'][1]; if ($w > 168) { list($w, $h) = array(168, intval($h * 168 / $w)); } if ($h > 168) { list($w, $h) = array(intval($w * 168 / $h), 168); } echo '<br \\/><img src="' . addslashes(htmlspecialchars(fm_geturl($d . $tfile['name']))) . '" width="' . $w . '" height="' . $h . '" /><br \\/><br \\/>'; } if (!$tfile['writable']) { echo '<strong style="color:#F00">Read-only</strong><br \\/>'; } echo $tfile['type']; ?> <br \/><br \/><?php if ($tfile['imgsize'][2]) { ?> Dimensions: <?php echo $tfile['imgsize'][0] . 'x' . $tfile['imgsize'][1]; ?> <br \/><?php } ?>