summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index dd34a1c..c229199 100644
--- a/index.php
+++ b/index.php
@@ -313,6 +313,7 @@ if (!isset($_GET['format']) || $_GET['format'] == "html") {
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
+<link rel="stylesheet" type="text/css" href="css/sprite.css">
<title>Index of /</title>
</head>
<body>
@@ -322,7 +323,7 @@ if ($headerfile) {
echo file_get_contents($headerfile);
}
?>
-<pre><img src="/icons/blank.gif" alt="Icon "> <a href="<?php echo $nameurl; ?>">Name</a> <a href="<?php echo $modifiedurl; ?>">Last modified</a> <a href="<?php echo $sizeurl; ?>">Size</a> <?php echo $signout; ?>
+<pre><div class="icon iconblank"></div><a href="<?php echo $nameurl; ?>">Name</a> <a href="<?php echo $modifiedurl; ?>">Last modified</a> <a href="<?php echo $sizeurl; ?>">Size</a> <?php echo $signout; ?>
<hr><?php
for ($i = 0; $i < count($listing); $i++) {
if (strlen($listing[$i]['filename']) > 23) {
@@ -336,8 +337,7 @@ for ($i = 0; $i < count($listing); $i++) {
for ($j = 0; $j < (24 - strlen($preview)); $j++) {
$spaces = $spaces . " ";
}
-
- echo '<img src="/icons/' . $listing[$i]['type'] . '.gif" alt="[IMG]"> <a href="' . rawurlencode($listing[$i]['filename']) . '">' . $preview . "</a>" . $spaces . date("d-M-Y H:i", $listing[$i]['modified']) . " " . size_readable($listing[$i]['size'], null, "bi") . " " . "\n";
+ echo '<div class="icon icon' . $listing[$i]['type'] . '"></div><a href="' . rawurlencode($listing[$i]['filename']) . '">' . $preview . "</a>" . $spaces . date("d-M-Y H:i", $listing[$i]['modified']) . " " . size_readable($listing[$i]['size'], null, "bi") . " " . "\n";
}
?>
<hr></pre>