]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - index.c
Imported sarg 2.0.9
[thirdparty/sarg.git] / index.c
diff --git a/index.c b/index.c
index d27c4d3e268ef561b927a5c1bd2b7feb363fb7d4..ff2b5a8938d26aed4d98dcbeddd866320eec9c58 100644 (file)
--- a/index.c
+++ b/index.c
@@ -1,7 +1,7 @@
 /*
- * AUTHOR: Pedro Lineu Orso                          orso@brturbo.com.br
+ * AUTHOR: Pedro Lineu Orso                      orso@penguintech.com.br
  *                                                            1998, 2005
- * SARG Squid Analysis Report Generator            http://sarg-squid.org
+ * SARG Squid Analysis Report Generator      http://sarg.sourceforge.net
  *
  * SARG donations:
  *      please look at http://sarg.sourceforge.net/donations.php
@@ -138,11 +138,15 @@ void geraindex()
 
    sprintf(buf,"<center><table cellpadding=\"0\" cellspacing=\"0\">\n");
    fputs(buf,fp_ou);
+
    if(strlen(LogoImage) > 0) {
-      sprintf(html,"<tr><th align=\"center\"><img src=\"%s\" border=0 align=absmiddle width=%s height=%s> \
-       <font color=%s>%s</font></th></tr>\n",LogoImage,Width,Height,LogoTextColor,LogoText);
+      fputs("<center><table cellpadding=\"0\" cellspacing=\"0\">\n",fp_ou);
+      sprintf(html,"<tr><th class=\"logo\"><img src='%s' border=0 align=absmiddle width=%s height=%s>&nbsp;%s</th></tr>\n",LogoImage,Width,Height,LogoText);
       fputs(html,fp_ou);
+      fputs("<tr><td height=\"5\"></td></tr>\n",fp_ou);
+      fputs("</table>\n",fp_ou);
    }
+
    show_sarg(fp_ou, ".");
    sprintf(html,"<tr><th class=\"title\">%s</th></tr>\n",Title);
    fputs(html,fp_ou);