summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2015-12-12 15:20:45 +0000
committerLuke Bratch <luke@bratch.co.uk>2015-12-12 15:20:45 +0000
commit0897380ee3cf5d06279e6790bfc4875a03bc8925 (patch)
tree62809e103ab732d6200f415b93b469bffa1c711f /index.php
parentf9c44edcef62e0987109d0bb3922e819d346d86f (diff)
parentb9c99951aa54368bc09904311197ece121dc4130 (diff)
Merge remote-tracking branch 'remotes/origin/feature/sprites'
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>