getting through tests on mac
[feisty_meow.git] / nucleus / applications / nechung / cgi_nechung.cpp
index a7478245175a5da151e8637eb69d037e80cf3bfd..46ddbaf9e5c0c2c8c410168d02746324111b2af8 100644 (file)
@@ -71,7 +71,7 @@ int main(int argc, char *argv[])
   tmp.zap( (end + 1) - extension.length(), end);
   tmp += "idx";
   astring base_part = filename(tmp).basename();
-  index_file_name = environment::get("TMP") + "/" + base_part;
+  index_file_name = environment::TMP() + "/" + base_part;
 #ifdef DEBUG_NECHUNG
   LOG(astring("index file is ") + index_file_name);
 #endif
@@ -81,9 +81,9 @@ int main(int argc, char *argv[])
   // send the header for html text.
   printf("content-type: text/html\n\n");
   // send the preliminary gunk.
-  printf("<body text=\"#00ee00\" bgcolor=\"#000000\" link=\"#66ff99\" "
-      "vlink=\"#cc33cc\" alink=\"#ff9900\">\n");
-//old text color #33ccff
+  printf("<body>\n");
+//text=\"#00ee00\" bgcolor=\"#000000\" link=\"#66ff99\" "
+//      "vlink=\"#cc33cc\" alink=\"#ff9900\">\n");
   printf("<tt style=\"font-weight: bold;\">\n");
   printf("<font size=\"+1\">\n");
 
@@ -113,6 +113,7 @@ int main(int argc, char *argv[])
   printf("</font>\n");
   printf("</tt>\n");
   printf("</body>\n");
+  printf("</html>\n");
   return 0;
 }