?>
'", <?php 
            print get_config('download_waittime') * 1000;
            ?>
);
      </script>
      <noscript>
        <a href="<?php 
            print $file_download_url;
            ?>
">Click here to start your download</a>
      </noscript>
    </div>
    <div id="file_info">
      File Name: <i><?php 
            print shorten_title($file_name);
            ?>
</i><br />
      File Size: <?php 
            print $size_text;
            ?>
    </div>
<?php 
            // Is download sponsor enabled?
            if (get_config('download_sponsor') == 1) {
                ?>
    <div id="sponsor">
      <div class="message">Please support our sponsor. Thank you!</div>
      <div style="height: 250px;">
<?php 
                // Print out download sponsor code
            }
        }
    } else {
        print "    <div id=\"notice\">\n";
        print "      <span>You did not select a file to upload.</span>\n";
        print "    </div>\n";
        $show_upload = true;
        $show_success = false;
    }
}
if ($show_success == true) {
    ?>
    <div id="box">
      <div id="filename_label">
        <?php 
    print shorten_title($name_text);
    ?>
      </div>
      <div id="download_instructions">
        This is your download URL.
        It expires <?php 
    print $expiry_text;
    ?>
.
      </div>
      <input type="text" id="download_url" value="http://<?php 
    print $site_domain . "/" . $file_id;
    ?>
" onkeyup="select_text();" onclick="select_text();" readonly="readonly"/>
      <script type="text/javascript">select_text();</script>
      <div id="file_size">File Size: <?php 
        <td width="17%" align="center"><b>IP Address</b></td>
        <td width="15%" align="center"><b>Manage</b></td>
      </tr>
<?php 
while ($files_row = mysql_fetch_array($files_result)) {
    ?>
      <tr class="file">
        <td align="center" valign="top" style="border-top: 1px dashed grey; padding: 5px 5px 5px 5px;"><?php 
    print $files_row['access_id'];
    ?>
</td>
        <td align="center" valign="top" style="border-top: 1px dashed grey; padding: 5px 5px 5px 5px;"><acronym title="<?php 
    print $files_row['file_name'];
    ?>
"><?php 
    print shorten_title($files_row['file_name']);
    ?>
</acronym></td>
        <td align="center" valign="top" style="border-top: 1px dashed grey; padding: 5px 5px 5px 5px;"><?php 
    print bytesToSize($files_row['file_size']);
    ?>
</td>
        <td align="center" valign="top" style="border-top: 1px dashed grey; padding: 5px 5px 5px 5px;"><?php 
    print date("M j, Y, g:i A", $files_row['timestamp']);
    ?>
</td>
        <td align="center" valign="top" style="border-top: 1px dashed grey; padding: 5px 5px 5px 5px;"><?php 
    print $files_row['ip_address'];
    ?>
</td>
        <td align="center" valign="top" style="border-top: 1px dashed grey; padding: 5px 5px 5px 5px;"><a href="./download_file.php?access_id=<?php