Esempio n. 1
0
function getMaximumUploadSize()
{
    // *************************************************
    // function getMaximumUploadSize
    // Parameters: none
    // Return value: maximum allowed upload size in human readable format
    //
    // Checks some values in the PHP-configuration and calculates the max.
    // possible upload size
    // *************************************************
    return size_hum_read(min(sizeCpuReadable(ini_get('post_max_size')), sizeCpuReadable(ini_get('upload_max_filesize'))));
}
Esempio n. 2
0
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<?php 
require_once "config.php";
require_once "languageFiles/" . $config['language'] . "/texts.php";
require_once "functions.php";
$uploadDone = size_hum_read(filesize("files/" . $HTTP_GET_VARS["currentFile"]));
?>
<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
  <meta name="generator" content="Sven Walther" />
  <link rel="Shortcut Icon" type="image/x-icon" href="favicon.ico" />
  <link href="<?php 
echo "themes/" . $config['theme'] . "/stylesheet.css";
?>
" rel="stylesheet" type="text/css" />
  <title>xx% done</title>
  </head>
  <body>
    <div id="progressBar">
      <div id="progressDone" style="width:30px;">a</div>
      <div id="progressToDo" style="width:170px;">b</div>
      <div id="progressInfo">
        xx% / <?php 
echo $uploadDone;
?>
 of 456KB
      </div>
    </div>
  </body>
</html>
Esempio n. 3
0
            echo $key;
            ?>
" target="_blank">
              <?php 
            echo displayFileName($key, $config['maxFilenameLength']);
            ?>
</a>
          </td>
          <td class="fileDate">
            <?php 
            echo date($config['dateFormat'], filemtime($config['fileDir'] . $key));
            ?>
          </td>
          <td class="fileSize">
            <?php 
            echo size_hum_read(filesize($config['fileDir'] . $key));
            ?>
          </td>
          <td class="actions">
            <form method="post" action="<?php 
            echo $_SELF;
            ?>
">
              <input class="deleteButton" type="submit" name="submit" value="<?php 
            echo $lang['listDelete'];
            ?>
" />
              <input type="hidden" name="delete" value="first" />
              <input type="hidden" name="name" value="<?php 
            echo $key;
            ?>