Changeset 30042


Ignore:
Timestamp:
09/22/14 01:29:57 (9 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/httpdfunc.h

    r30040 r30042  
    46934693        if(status.security == 0) return NULL;
    46944694
    4695         if(fmt == 0)
    4696         {
     4695//      if(fmt == 0)
     4696//      {
    46974697                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
    46984698                buf = ostrcat(buf, "<link rel=stylesheet type=text/css href=titan.css><script type=text/javascript src=titan.js></script>", 1, 0);
    46994699                buf = ostrcat(buf, "</head><body class=body id=\"command\">", 1, 0);
    4700         }
     4700//      }
    47014701
    47024702        debug(10, "cmd: %s", param);
     
    47044704        buf = ostrcat(buf, tmpstr, 1, 0);
    47054705        free(tmpstr), tmpstr = NULL;   
    4706         buf = ostrcat(buf, "</body></html>", 1, 0);
     4706
     4707//      if(fmt == 0)
     4708                buf = ostrcat(buf, "</body></html>", 1, 0);
    47074709
    47084710        return buf;
     
    47434745        tmpstr1 = readfiletomem(tmpstr, 1);
    47444746
    4745         buf = ostrcat(buf, tmpstr1, 1, 0);
     4747        buf = ostrcat(buf, _(tmpstr1), 1, 0);
     4748
     4749// segfault ??
     4750//      free(helppath), helppath = NULL;
    47464751        free(tmpstr), tmpstr = NULL;   
    47474752        free(tmpstr1), tmpstr1 = NULL; 
     
    48014806        }               
    48024807
     4808// segfault ??
     4809//      free(helppath), helppath = NULL;
    48034810        free(tmpstr), tmpstr = NULL;
     4811        free(ret1), ret1 = NULL;
    48044812//      if(fmt == 0)
    48054813                buf = ostrcat(buf, "</td></tr></table></center></body></html>", 1, 0);
     
    48144822        if(status.security == 0) return NULL;
    48154823
    4816         if(fmt == 0)
    4817         {
     4824//      if(fmt == 0)
     4825//      {
    48184826                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
    48194827                buf = ostrcat(buf, "<link rel=stylesheet type=text/css href=titan.css><script type=text/javascript src=titan.js></script>", 1, 0);
    48204828                buf = ostrcat(buf, "</head><body class=body id=\"help\">", 1, 0);
    4821         }
     4829//      }
    48224830       
    48234831        debug(10, "file: %s", param);
     
    48274835        free(tmpstr), tmpstr = NULL;   
    48284836
    4829         if(fmt == 0)
     4837//      if(fmt == 0)
    48304838                buf = ostrcat(buf, "</body></html>", 1, 0);
    48314839
Note: See TracChangeset for help on using the changeset viewer.