From: wessels <>
Date: Sat, 19 Jul 1997 13:17:59 +0000 (+0000)
Subject: add special cases for DIR, DIRUP, and LINK icons
X-Git-Tag: SQUID_3_0_PRE1~4853
X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f117cb466c6a23365fa9061bc81b33f6d8d181b;p=thirdparty%2Fsquid.git
add special cases for DIR, DIRUP, and LINK icons
---
diff --git a/src/defines.h b/src/defines.h
index d1052a79ac..780c0df698 100644
--- a/src/defines.h
+++ b/src/defines.h
@@ -246,3 +246,7 @@
#define ICP_DATA_SZ (sizeof(icp_databe_t))
#define ICP_MESSAGE_SZ (sizeof(icp_message_t))
#define ICP_MESSAGE_SZ (sizeof(icp_message_t))
+
+#define ICON_MENU "anthony-dir.gif"
+#define ICON_DIRUP "anthony-dirup.gif"
+#define ICON_LINK "anthony-link.gif"
diff --git a/src/ftp.cc b/src/ftp.cc
index 108ece04ec..1ea983d797 100644
--- a/src/ftp.cc
+++ b/src/ftp.cc
@@ -1,6 +1,6 @@
/*
- * $Id: ftp.cc,v 1.134 1997/07/19 01:33:55 wessels Exp $
+ * $Id: ftp.cc,v 1.135 1997/07/19 07:18:00 wessels Exp $
*
* DEBUG: section 9 File Transfer Protocol (FTP)
* AUTHOR: Harvest Derived
@@ -463,7 +463,7 @@ ftpHtmlifyListEntry(char *line, int flags)
if (!strcmp(line, "..")) {
sprintf(icon, "
",
"http://internal.squid/icons/",
- "menu",
+ ICON_DIRUP,
"[DIR]");
sprintf(link, "%s", "../", "Parent Directory");
sprintf(html, "%s %s\n", icon, link);
@@ -496,7 +496,7 @@ ftpHtmlifyListEntry(char *line, int flags)
case 'd':
sprintf(icon, "
",
"http://internal.squid/icons/",
- "menu",
+ ICON_MENU,
"[DIR]");
sprintf(link, "%s%s",
ename,
@@ -510,7 +510,7 @@ ftpHtmlifyListEntry(char *line, int flags)
case 'l':
sprintf(icon, "
",
"http://internal.squid/icons/",
- mimeGetIcon(parts->link),
+ ICON_LINK,
"[LINK]");
sprintf(link, "%s%s",
ename,
diff --git a/src/mime.cc b/src/mime.cc
index 8938ca60e4..bf306124a6 100644
--- a/src/mime.cc
+++ b/src/mime.cc
@@ -1,5 +1,5 @@
/*
- * $Id: mime.cc,v 1.33 1997/07/19 01:33:57 wessels Exp $
+ * $Id: mime.cc,v 1.34 1997/07/19 07:18:01 wessels Exp $
*
* DEBUG: section 25 MIME Parsing
* AUTHOR: Harvest Derived
@@ -376,6 +376,9 @@ mimeInit(char *filename)
MimeTableTail = &m->next;
}
fclose(fp);
+ mimeLoadIconFile(ICON_MENU);
+ mimeLoadIconFile(ICON_DIRUP);
+ mimeLoadIconFile(ICON_LINK);
}
static void