Changeset 10840
- Timestamp:
- 10/31/11 05:48:13 (11 years ago)
- Location:
- titan/titan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/httpdfunc.h
r10839 r10840 672 672 char* webswitch(char* param) 673 673 { 674 if(status.channelswitch == 1) goto end; 675 674 676 int ret = 0; 675 677 char* param1 = NULL, *param2 = NULL; 676 678 struct channel* chnode = NULL; 677 678 if(param == NULL) return NULL; 679 int tmpservicetype = status.servicetype; 680 681 if(param == NULL) goto end; 679 682 680 683 //create param1 … … 688 691 } 689 692 690 if(param1 == NULL ) return NULL;693 if(param1 == NULL && param2 == NULL) goto end; 691 694 692 695 chnode = getchannel(atoi(param), atoi(param1)); … … 695 698 ret = channelnottunable(chnode); 696 699 if(ret == 0) 700 { 701 status.servicetype = chnode->servicetype; 697 702 ret = servicestart(chnode, NULL, 0); 703 if(ret != 20 && ret != 21 && ret != 22) 698 704 { 699 if(param2 != NULL && ret != 20 && ret != 21 && ret != 22) 705 if(status.servicetype == 0) 706 { 707 free(status.oldchannellist); status.oldchannellist = NULL; 708 status.oldchannellist = ostrcat(NULL, getconfig("channellist", NULL), 0, 0); 700 709 addconfig("channellist", param2); 710 } 711 else 712 { 713 free(status.oldchannellist); status.oldchannellist = NULL; 714 status.oldchannellist = ostrcat(NULL, getconfig("rchannellist", NULL), 0, 0); 715 addconfig("rchannellist", param2); 716 } 701 717 } 702 } 703 718 else 719 status.servicetype = tmpservicetype; 720 } 721 } 722 723 end: 704 724 return webgetaktservice(); 705 725 } -
titan/titan/struct.h
r10810 r10840 766 766 struct status 767 767 { 768 //set to 1 if channellist or channelnr open 769 int channelswitch; 768 770 //deaktivates child protect if greater then akttime 769 771 time_t protecttime;
Note: See TracChangeset
for help on using the changeset viewer.