Changeset 35959
- Timestamp:
- 10/16/15 11:00:17 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/httpdfunc.h
r35958 r35959 6603 6603 6604 6604 char* 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 { 6613 6614 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); 6614 6615 buf = ostrcat(buf, "<link rel=stylesheet type=text/css href=titan.css><script type=text/javascript src=titan.js></script>", 1, 0); … … 6620 6621 buf = ostrcat(buf, "<br>", 1, 0); 6621 6622 } 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 } 6641 6642 6642 6643 char* webgetcreatebackup(int fmt)
Note: See TracChangeset
for help on using the changeset viewer.