* fix_scrollbar_bug is now a class instead of an id. Fixes validator warnings.
[citadel.git] / webcit / subst.c
index 9e93b0a8e7dc670b1111311544ccb16e1d6997d4..c872650db803cd8846a54c662652819cf5a8586c 100644 (file)
@@ -7,26 +7,6 @@
 
 
 
-#include <ctype.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <stdio.h>
-#include <fcntl.h>
-#include <signal.h>
-#include <sys/types.h>
-#include <sys/wait.h>
-#include <sys/socket.h>
-#include <sys/time.h>
-#include <sys/stat.h>
-#include <limits.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#include <string.h>
-#include <pwd.h>
-#include <errno.h>
-#include <stdarg.h>
-#include <pthread.h>
-#include <signal.h>
 #include "webcit.h"
 
 
@@ -123,7 +103,7 @@ void pvo_do_cmd(char *servcmd) {
                        wprintf("%s\n", &buf[4]);
                        break;
                case '1':
-                       fmout(NULL, "CENTER");
+                       fmout("CENTER");
                        break;
                case '4':
                        wprintf("%s\n", &buf[4]);
@@ -177,7 +157,7 @@ void print_value_of(char *keyname) {
        }
 
        else if (!strcasecmp(keyname, "CURRENT_USER")) {
-               escputs(WC->wc_username);
+               escputs(WC->wc_fullname);
        }
 
        else if (!strcasecmp(keyname, "CURRENT_ROOM")) {
@@ -222,7 +202,7 @@ void do_template(void *templatename) {
        
        fp = fopen(filename, "r");
        if (fp == NULL) {
-               wprintf("<BLINK>ERROR</BLINK> - could not open template ");
+               wprintf(_("ERROR: could not open template "));
                wprintf("'%s' - %s<br />\n",
                        templatename, strerror(errno));
                return;