]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - language.c
Changed Pedro's address in headers.
[thirdparty/sarg.git] / language.c
index 268ef1af7df48055dbf1397a8af476c290cfc43e..9604af4ec023d3090675180c92f3f1916daad490 100644 (file)
@@ -1,55 +1,55 @@
-/*\r
- * AUTHOR: Pedro Lineu Orso                      orso@penguintech.com.br\r
- *                                                            1998, 2005\r
- * SARG Squid Analysis Report Generator      http://sarg.sourceforge.net\r
- *\r
- * SARG donations:\r
- *      please look at http://sarg.sourceforge.net/donations.php\r
- * ---------------------------------------------------------------------\r
- *\r
- *  This program is free software; you can redistribute it and/or modify\r
- *  it under the terms of the GNU General Public License as published by\r
- *  the Free Software Foundation; either version 2 of the License, or\r
- *  (at your option) any later version.\r
- *\r
- *  This program is distributed in the hope that it will be useful,\r
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
- *  GNU General Public License for more details.\r
- *\r
- *  You should have received a copy of the GNU General Public License\r
- *  along with this program; if not, write to the Free Software\r
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.\r
- *\r
- */\r
-\r
-#include "include/conf.h"\r
-\r
-void language_load(char *language)\r
-{\r
-\r
-   FILE *fp_text;\r
-   int record=0;\r
-\r
-   sprintf(warea,"%s/languages/%s",SYSCONFDIR,language);\r
-\r
-   if((fp_text=fopen(warea,"r"))==NULL) {\r
-     fprintf(stderr, "SARG: (language) Cannot open language file: %s\n",warea);\r
-     exit(1);\r
-   }\r
-\r
-   while(fgets(buf,MAXLEN,fp_text)!=NULL) {\r
-      getword(warea,buf,'"');\r
-      getword(warea,buf,'"');\r
-      strcpy(text[record],warea);\r
-\r
-      if(langcode)\r
-      printf("%d %s\n",record,warea);\r
-\r
-      record++;\r
-   }\r
-\r
-   fclose(fp_text);\r
-\r
-   return;\r
-}\r
+/*
+ * AUTHOR: Pedro Lineu Orso                         pedro.orso@gmail.com
+ *                                                            1998, 2008
+ * SARG Squid Analysis Report Generator      http://sarg.sourceforge.net
+ *
+ * SARG donations:
+ *      please look at http://sarg.sourceforge.net/donations.php
+ * ---------------------------------------------------------------------
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
+ *
+ */
+
+#include "include/conf.h"
+
+void language_load(char *language)
+{
+
+   FILE *fp_text;
+   int record=0;
+
+   sprintf(warea,"%s/languages/%s",SYSCONFDIR,language);
+
+   if((fp_text=fopen(warea,"r"))==NULL) {
+     fprintf(stderr, "SARG: (language) Cannot open language file: %s\n",warea);
+     exit(1);
+   }
+
+   while(fgets(buf,MAXLEN,fp_text)!=NULL) {
+      getword(warea,buf,'"');
+      getword(warea,buf,'"');
+      strcpy(text[record],warea);
+
+      if(langcode)
+      printf("%d %s\n",record,warea);
+
+      record++;
+   }
+
+   fclose(fp_text);
+
+   return;
+}