Esempio n. 1
0
 *
 * Used to view text and image files; other files may be supported
 * in later versions.
 *
 * Default module - Performs important functionality,
 * but can be deleted if absolutely necessary
 * 
 */
include 'config.inc.php';
include 'fileman.lib.php';
if ($ftpmode) {
    include_once 'ftpsession.lib.php';
} else {
    include_once 'session.lib.php';
}
$finfo = fm_fileinfo($d);
if ($finfo['ft'] == 5) {
    ?>
<!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">
function fm_getdfiles($path)
{
    $files = fm_getfiles($path);
    if ($files === FALSE) {
        return FALSE;
    }
    $dfiles = array();
    foreach ($files as $file) {
        $dfiles[] = fm_fileinfo($path . $file);
    }
    return $dfiles;
}
Esempio n. 3
0
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                            ?>
  </body>
</html>
<?php 
                        } else {
                            //====================
                            // Directory list
                            //====================
                            $files = fm_getdfiles($presub . $postsub);
                            $fileinfo = fm_fileinfo($presub . $postsub . $file);
                            ?>
<!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>File list</title>
    <link rel="stylesheet" type="text/css" href="fileman-core.css" />
    <style type="text/css"><!--
      html {height:100%; cursor:default;}
      body
      {
        color: #000000;
        background-color: #FFFFFF;
        font-size: 8pt;
        min-height: 100%;