Changeset 35959


Ignore:
Timestamp:
10/16/15 11:00:17 (8 years ago)
Author:
Stephan
Message:

next try

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/httpdfunc.h

    r35958 r35959  
    66036603
    66046604char* webgetbackup(int fmt)
    6605         if(checkbox("UFS910") == 1 || checkbox("ATEMIO510") == 1 || checkbox("ATEMIO520") == 1);
    6606         {                       
    6607                 if(status.security == 0) return NULL;
    6608 
    6609                 char* buf = NULL, *tmpstr = NULL;
    6610 
    6611                 if(fmt == 0)
    6612                 {
     6605{       
     6606        if(status.security == 0) return NULL;
     6607
     6608        char* buf = NULL, *tmpstr = NULL;
     6609
     6610        if(fmt == 0)
     6611        {
     6612                if(checkbox("UFS910") == 1 || checkbox("ATEMIO510") == 1 || checkbox("ATEMIO520") == 1);               
     6613                {                       
    66136614                        buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
    66146615                        buf = ostrcat(buf, "<link rel=stylesheet type=text/css href=titan.css><script type=text/javascript src=titan.js></script>", 1, 0);
     
    66206621                        buf = ostrcat(buf, "<br>", 1, 0);
    66216622                }
    6622 
    6623                 tmpstr = create_backup(NULL, 0);
    6624        
    6625                 tmpstr = string_replace_all("\n", "<br>\n", tmpstr, 1);
    6626                 buf = ostrcat(buf, tmpstr, 1, 1);
    6627                 buf = ostrcat(buf, "</br></br>", 1, 0);
    6628                 buf = ostrcat(buf, "<a class=linelink2 href=queryraw?getcreatebackup target=main>", 1, 0);
    6629                 buf = ostrcat(buf, _("create System Backup"), 1, 0);
    6630                 buf = ostrcat(buf, "</a>", 1, 0);
    6631                 buf = ostrcat(buf, "</br></br>", 1, 0);
    6632 
    6633                 if(fmt == 0)
    6634                 {
    6635                         buf = ostrcat(buf, "</center></body></html>", 1, 0);
    6636                 }       
    6637        
    6638                 return buf;
    6639         }
    6640 
     6623        }
     6624
     6625        tmpstr = create_backup(NULL, 0);
     6626       
     6627        tmpstr = string_replace_all("\n", "<br>\n", tmpstr, 1);
     6628        buf = ostrcat(buf, tmpstr, 1, 1);
     6629        buf = ostrcat(buf, "</br></br>", 1, 0);
     6630        buf = ostrcat(buf, "<a class=linelink2 href=queryraw?getcreatebackup target=main>", 1, 0);
     6631        buf = ostrcat(buf, _("create System Backup"), 1, 0);
     6632        buf = ostrcat(buf, "</a>", 1, 0);
     6633        buf = ostrcat(buf, "</br></br>", 1, 0);
     6634
     6635        if(fmt == 0)
     6636        {
     6637                buf = ostrcat(buf, "</center></body></html>", 1, 0);
     6638        }       
     6639       
     6640        return buf;
     6641}
    66416642
    66426643char* webgetcreatebackup(int fmt)
Note: See TracChangeset for help on using the changeset viewer.