Changeset 11362


Ignore:
Timestamp:
11/18/11 23:03:46 (12 years ago)
Author:
gost
Message:

[titan] WebIF: add -> edit RecTimer step6 -> title change now possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/httpdfunc.h

    r11361 r11362  
    17851785char* webrectimersend(char* param)
    17861786{
    1787         char* buf = NULL, *string = NULL, *name = NULL, *begin = NULL, *end = NULL, *type = NULL, *node = NULL;
     1787        char* buf = NULL, *string = NULL, *name = NULL, *begin = NULL, *end = NULL, *type = NULL, *anode = NULL;
    17881788        int maxlen = 0, pos = 0;
    1789 
    1790         node=strstr(param, "node=");
    1791         if(node != NULL)
    1792                 node = node + 5;
     1789        struct rectimer *node = NULL;
     1790
     1791        anode=strstr(param, "node=");
     1792        if(anode != NULL)
     1793                anode = anode + 5;
    17931794        name=strstr(param, "name=");
    17941795        if(name != NULL)
     
    18111812        }
    18121813       
    1813         ostrcatbig(&buf, param, &maxlen, &pos);
     1814        node = atoi(anode);
     1815        node->name = ostrcat(NULL, name, 1, 0);
     1816        status.writerectimer = 1;
     1817        writerectimer(getconfig("rectimerfile", NULL), 0);
     1818               
     1819        buf = webgetrectimer(NULL, 0);
     1820        //ostrcatbig(&buf, param, &maxlen, &pos);
    18141821        return buf;
    18151822}
Note: See TracChangeset for help on using the changeset viewer.