Changeset 28294
- Timestamp:
- 04/02/14 09:23:32 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/httpdfunc.h
r28292 r28294 4472 4472 char* usecec = NULL; 4473 4473 char* playerbufferseektime = NULL; 4474 char* tmpstr = NULL; 4474 4475 4475 4476 anode = ostrstr(param, "node="); … … 4477 4478 anode = anode + 5; 4478 4479 4479 volbartimeout = ostrstr(param, "volbartimeout="); 4480 tmpstr = ostrcat(param, NULL, 0, 0); 4481 if(tmpstr != NULL) volbartimeout = ostrstr(tmpstr, "volbartimeout="); 4482 free(tmpstr); tmpstr = NULL; 4480 4483 if(volbartimeout != NULL) volbartimeout = volbartimeout + 14; 4481 4484 volbartimeout = stringreplacecharonce(volbartimeout, '&', '\0'); … … 4483 4486 debug(77, "volbartimeout: %s", volbartimeout); 4484 4487 4485 infobartimeout = ostrstr(param, "infobartimeout="); 4488 tmpstr = ostrcat(param, NULL, 0, 0); 4489 if(tmpstr != NULL) infobartimeout = ostrstr(tmpstr, "infobartimeout="); 4490 free(tmpstr); tmpstr = NULL; 4486 4491 if(infobartimeout != NULL) infobartimeout = infobartimeout + 15; 4487 4492 infobartimeout = stringreplacecharonce(infobartimeout, '&', '\0'); … … 4489 4494 debug(77, "infobartimeout: %s", infobartimeout); 4490 4495 4491 infobarsleep = ostrstr(param, "infobarsleep="); 4496 tmpstr = ostrcat(param, NULL, 0, 0); 4497 if(tmpstr != NULL) infobarsleep = ostrstr(tmpstr, "infobarsleep="); 4498 free(tmpstr); tmpstr = NULL; 4492 4499 if(infobarsleep != NULL) infobarsleep = infobarsleep + 13; 4493 4500 infobarsleep = stringreplacecharonce(infobarsleep, '&', '\0'); … … 4495 4502 debug(77, "infobarsleep: %s", infobarsleep); 4496 4503 4497 spinnerspeed = ostrstr(param, "spinnerspeed="); 4504 tmpstr = ostrcat(param, NULL, 0, 0); 4505 if(tmpstr != NULL) spinnerspeed = ostrstr(tmpstr, "spinnerspeed="); 4506 free(tmpstr); tmpstr = NULL; 4498 4507 if(spinnerspeed != NULL) spinnerspeed = spinnerspeed + 13; 4499 4508 spinnerspeed = stringreplacecharonce(spinnerspeed, '&', '\0'); … … 4501 4510 debug(77, "spinnerspeed: %s", spinnerspeed); 4502 4511 4503 spinnertime = ostrstr(param, "spinnertime="); 4512 tmpstr = ostrcat(param, NULL, 0, 0); 4513 if(tmpstr != NULL) spinnertime = ostrstr(tmpstr, "spinnertime="); 4514 free(tmpstr); tmpstr = NULL; 4504 4515 if(spinnertime != NULL) spinnertime = spinnertime + 12; 4505 4516 spinnertime = stringreplacecharonce(spinnertime, '&', '\0'); … … 4507 4518 debug(77, "spinnertime: %s", spinnertime); 4508 4519 4509 hangtime = ostrstr(param, "hangtime="); 4520 tmpstr = ostrcat(param, NULL, 0, 0); 4521 if(tmpstr != NULL) hangtime = ostrstr(tmpstr, "hangtime="); 4522 free(tmpstr); tmpstr = NULL; 4510 4523 if(hangtime != NULL) hangtime = hangtime + 9; 4511 4524 hangtime = stringreplacecharonce(hangtime, '&', '\0'); … … 4513 4526 debug(77, "hangtime: %s", hangtime); 4514 4527 4515 secondinfobar = ostrstr(param, "secondinfobar="); 4528 tmpstr = ostrcat(param, NULL, 0, 0); 4529 if(tmpstr != NULL) secondinfobar = ostrstr(param, "secondinfobar="); 4530 free(tmpstr); tmpstr = NULL; 4516 4531 if(secondinfobar != NULL) secondinfobar = secondinfobar + 14; 4517 4532 secondinfobar = stringreplacecharonce(secondinfobar, '&', '\0'); … … 4519 4534 debug(77, "secondinfobar: %s", secondinfobar); 4520 4535 4521 nozapclear = ostrstr(param, "nozapclear="); 4536 tmpstr = ostrcat(param, NULL, 0, 0); 4537 if(tmpstr != NULL) nozapclear = ostrstr(tmpstr, "nozapclear="); 4538 free(tmpstr); tmpstr = NULL; 4522 4539 if(nozapclear != NULL) nozapclear = nozapclear + 11; 4523 4540 nozapclear = stringreplacecharonce(nozapclear, '&', '\0'); … … 4525 4542 debug(77, "nozapclear: %s", nozapclear); 4526 4543 4527 fastzap = ostrstr(param, "fastzap="); 4544 tmpstr = ostrcat(param, NULL, 0, 0); 4545 if(tmpstr != NULL) fastzap = ostrstr(tmpstr, "fastzap="); 4546 free(tmpstr); tmpstr = NULL; 4528 4547 if(fastzap != NULL) fastzap = fastzap + 8; 4529 4548 fastzap = stringreplacecharonce(fastzap, '&', '\0'); … … 4531 4550 debug(77, "fastzap: %s", fastzap); 4532 4551 4533 faststop = ostrstr(param, "faststop="); 4552 tmpstr = ostrcat(param, NULL, 0, 0); 4553 if(tmpstr != NULL) faststop = ostrstr(tmpstr, "faststop="); 4554 free(tmpstr); tmpstr = NULL; 4534 4555 if(faststop != NULL) faststop = faststop + 9; 4535 4556 faststop = stringreplacecharonce(faststop, '&', '\0'); … … 4537 4558 debug(77, "faststop: %s", faststop); 4538 4559 4539 dirsort = ostrstr(param, "dirsort="); 4560 tmpstr = ostrcat(param, NULL, 0, 0); 4561 if(tmpstr != NULL) dirsort = ostrstr(tmpstr, "dirsort="); 4562 free(tmpstr); tmpstr = NULL; 4540 4563 if(dirsort != NULL) dirsort = dirsort + 8; 4541 4564 dirsort = stringreplacecharonce(dirsort, '&', '\0'); … … 4543 4566 debug(77, "dirsort: %s", dirsort); 4544 4567 4545 poweraktion = ostrstr(param, "poweraktion="); 4568 tmpstr = ostrcat(param, NULL, 0, 0); 4569 if(tmpstr != NULL) poweraktion = ostrstr(tmpstr, "poweraktion="); 4570 free(tmpstr); tmpstr = NULL; 4546 4571 if(poweraktion != NULL) poweraktion = poweraktion + 12; 4547 4572 poweraktion = stringreplacecharonce(poweraktion, '&', '\0'); … … 4549 4574 debug(77, "poweraktion: %s", poweraktion); 4550 4575 4551 virtualzap = ostrstr(param, "virtualzap="); 4576 tmpstr = ostrcat(param, NULL, 0, 0); 4577 if(tmpstr != NULL) virtualzap = ostrstr(tmpstr, "virtualzap="); 4578 free(tmpstr); tmpstr = NULL; 4552 4579 if(virtualzap != NULL) virtualzap = virtualzap + 11; 4553 4580 virtualzap = stringreplacecharonce(virtualzap, '&', '\0'); … … 4555 4582 debug(77, "virtualzap: %s", virtualzap); 4556 4583 4557 fasttextrender = ostrstr(param, "fasttextrender="); 4584 tmpstr = ostrcat(param, NULL, 0, 0); 4585 if(tmpstr != NULL) fasttextrender = ostrstr(tmpstr, "fasttextrender="); 4586 free(tmpstr); tmpstr = NULL; 4558 4587 if(fasttextrender != NULL) fasttextrender = fasttextrender + 15; 4559 4588 fasttextrender = stringreplacecharonce(fasttextrender, '&', '\0'); … … 4561 4590 debug(77, "fasttextrender: %s", fasttextrender); 4562 4591 4563 recsplitsize = ostrstr(param, "recsplitsize="); 4592 tmpstr = ostrcat(param, NULL, 0, 0); 4593 if(tmpstr != NULL) recsplitsize = ostrstr(tmpstr, "recsplitsize="); 4594 free(tmpstr); tmpstr = NULL; 4564 4595 if(recsplitsize != NULL) recsplitsize = recsplitsize + 13; 4565 4596 recsplitsize = stringreplacecharonce(recsplitsize, '&', '\0'); … … 4567 4598 debug(77, "recsplitsize: %s", recsplitsize); 4568 4599 4569 recforerun = ostrstr(param, "recforerun="); 4600 tmpstr = ostrcat(param, NULL, 0, 0); 4601 if(tmpstr != NULL) recforerun = ostrstr(tmpstr, "recforerun="); 4602 free(tmpstr); tmpstr = NULL; 4570 4603 if(recforerun != NULL) recforerun = recforerun + 11; 4571 4604 recforerun = stringreplacecharonce(recforerun, '&', '\0'); 4572 4605 if(recforerun != NULL) addconfigtmp("recforerun", recforerun); 4573 4606 debug(77, "recforerun: %s", recforerun); 4574 4575 recoverrun = ostrstr(param, "recoverrun="); 4607 4608 tmpstr = ostrcat(param, NULL, 0, 0); 4609 if(tmpstr != NULL) recoverrun = ostrstr(tmpstr, "recoverrun="); 4610 free(tmpstr); tmpstr = NULL; 4576 4611 if(recoverrun != NULL) recoverrun = recoverrun + 11; 4577 4612 recoverrun = stringreplacecharonce(recoverrun, '&', '\0'); … … 4579 4614 debug(77, "recoverrun: %s", recoverrun); 4580 4615 4581 skip13 = ostrstr(param, "skip13="); 4616 tmpstr = ostrcat(param, NULL, 0, 0); 4617 if(tmpstr != NULL) skip13 = ostrstr(tmpstr, "skip13="); 4618 free(tmpstr); tmpstr = NULL; 4582 4619 if(skip13 != NULL) skip13 = skip13 + 7; 4583 4620 skip13 = stringreplacecharonce(skip13, '&', '\0'); … … 4585 4622 debug(77, "skip13: %s", skip13); 4586 4623 4587 skip46 = ostrstr(param, "skip46="); 4624 tmpstr = ostrcat(param, NULL, 0, 0); 4625 if(tmpstr != NULL) skip46 = ostrstr(tmpstr, "skip46="); 4626 free(tmpstr); tmpstr = NULL; 4588 4627 if(skip46 != NULL) skip46 = skip46 + 7; 4589 4628 skip46 = stringreplacecharonce(skip46, '&', '\0'); … … 4591 4630 debug(77, "skip46: %s", skip46); 4592 4631 4593 skip79 = ostrstr(param, "skip79="); 4632 tmpstr = ostrcat(param, NULL, 0, 0); 4633 if(tmpstr != NULL) skip79 = ostrstr(tmpstr, "skip79="); 4634 free(tmpstr); tmpstr = NULL; 4594 4635 if(skip79 != NULL) skip79 = skip79 + 7; 4595 4636 skip79 = stringreplacecharonce(skip79, '&', '\0'); … … 4597 4638 debug(77, "skip79: %s", skip79); 4598 4639 4599 playertype = ostrstr(param, "playertype="); 4640 tmpstr = ostrcat(param, NULL, 0, 0); 4641 if(tmpstr != NULL) playertype = ostrstr(tmpstr, "playertype="); 4642 free(tmpstr); tmpstr = NULL; 4600 4643 if(playertype != NULL) playertype = playertype + 11; 4601 4644 playertype = stringreplacecharonce(playertype, '&', '\0'); … … 4603 4646 debug(77, "playertype: %s", playertype); 4604 4647 4605 autochangechannelname = ostrstr(param, "autochangechannelname="); 4648 tmpstr = ostrcat(param, NULL, 0, 0); 4649 if(tmpstr != NULL) autochangechannelname = ostrstr(tmpstr, "autochangechannelname="); 4650 free(tmpstr); tmpstr = NULL; 4606 4651 if(autochangechannelname != NULL) autochangechannelname = autochangechannelname + 22; 4607 4652 autochangechannelname = stringreplacecharonce(autochangechannelname, '&', '\0'); … … 4609 4654 debug(77, "autochangechannelname: %s", autochangechannelname); 4610 4655 4611 def_rectimer_after = ostrstr(param, "def_rectimer_after="); 4656 tmpstr = ostrcat(param, NULL, 0, 0); 4657 if(tmpstr != NULL) def_rectimer_after = ostrstr(tmpstr, "def_rectimer_after="); 4658 free(tmpstr); tmpstr = NULL; 4612 4659 if(def_rectimer_after != NULL) def_rectimer_after = def_rectimer_after + 19; 4613 4660 def_rectimer_after = stringreplacecharonce(def_rectimer_after, '&', '\0'); … … 4615 4662 debug(77, "def_rectimer_after: %s", def_rectimer_after); 4616 4663 4617 showchanneltimeline = ostrstr(param, "showchanneltimeline="); 4664 tmpstr = ostrcat(param, NULL, 0, 0); 4665 showchanneltimeline = ostrstr(tmpstr, "showchanneltimeline="); 4666 free(tmpstr); tmpstr = NULL; 4618 4667 if(showchanneltimeline != NULL) showchanneltimeline = showchanneltimeline + 20; 4619 4668 showchanneltimeline = stringreplacecharonce(showchanneltimeline, '&', '\0'); … … 4621 4670 debug(77, "showchanneltimeline: %s", showchanneltimeline); 4622 4671 4623 screenanim = ostrstr(param, "screenanim="); 4672 tmpstr = ostrcat(param, NULL, 0, 0); 4673 if(tmpstr != NULL) screenanim = ostrstr(tmpstr, "screenanim="); 4674 free(tmpstr); tmpstr = NULL; 4624 4675 if(screenanim != NULL) screenanim = screenanim + 11; 4625 4676 screenanim = stringreplacecharonce(screenanim, '&', '\0'); … … 4627 4678 debug(77, "screenanim: %s", screenanim); 4628 4679 4629 screenanimspeed = ostrstr(param, "screenanimspeed="); 4680 tmpstr = ostrcat(param, NULL, 0, 0); 4681 if(tmpstr != NULL) screenanimspeed = ostrstr(tmpstr, "screenanimspeed="); 4682 free(tmpstr); tmpstr = NULL; 4630 4683 if(screenanimspeed != NULL) screenanimspeed = screenanimspeed + 16; 4631 4684 screenanimspeed = stringreplacecharonce(screenanimspeed, '&', '\0'); … … 4633 4686 debug(77, "screenanimspeed: %s", screenanimspeed); 4634 4687 4635 channellistview = ostrstr(param, "channellistview="); 4688 tmpstr = ostrcat(param, NULL, 0, 0); 4689 channellistview = ostrstr(tmpstr, "channellistview="); 4690 free(tmpstr); tmpstr = NULL; 4636 4691 if(channellistview != NULL) channellistview = channellistview + 16; 4637 4692 channellistview = stringreplacecharonce(channellistview, '&', '\0'); … … 4639 4694 debug(77, "channellistview: %s", channellistview); 4640 4695 4641 showlastpos = ostrstr(param, "showlastpos="); 4696 tmpstr = ostrcat(param, NULL, 0, 0); 4697 if(tmpstr != NULL) showlastpos = ostrstr(tmpstr, "showlastpos="); 4698 free(tmpstr); tmpstr = NULL; 4642 4699 if(showlastpos != NULL) showlastpos = showlastpos + 12; 4643 4700 showlastpos = stringreplacecharonce(showlastpos, '&', '\0'); … … 4645 4702 debug(77, "showlastpos: %s", showlastpos); 4646 4703 4647 recsync = ostrstr(param, "recsync="); 4704 tmpstr = ostrcat(param, NULL, 0, 0); 4705 if(tmpstr != NULL) recsync = ostrstr(tmpstr, "recsync="); 4706 free(tmpstr); tmpstr = NULL; 4648 4707 if(recsync != NULL) recsync = recsync + 8; 4649 4708 recsync = stringreplacecharonce(recsync, '&', '\0'); … … 4651 4710 debug(77, "recsync: %s", recsync); 4652 4711 4653 recordnamefmt = ostrstr(param, "recordnamefmt="); 4712 tmpstr = ostrcat(param, NULL, 0, 0); 4713 recordnamefmt = ostrstr(tmpstr, "recordnamefmt="); 4714 free(tmpstr); tmpstr = NULL; 4654 4715 if(recordnamefmt != NULL) recordnamefmt = recordnamefmt + 14; 4655 4716 recordnamefmt = stringreplacecharonce(recordnamefmt, '&', '\0'); … … 4657 4718 debug(77, "recordnamefmt: %s", recordnamefmt); 4658 4719 4659 newsletter = ostrstr(param, "newsletter="); 4720 tmpstr = ostrcat(param, NULL, 0, 0); 4721 if(tmpstr != NULL) newsletter = ostrstr(tmpstr, "newsletter="); 4722 free(tmpstr); tmpstr = NULL; 4660 4723 if(newsletter != NULL) newsletter = newsletter + 11; 4661 4724 newsletter = stringreplacecharonce(newsletter, '&', '\0'); … … 4663 4726 debug(77, "newsletter: %s", newsletter); 4664 4727 4665 showhiddenfiles = ostrstr(param, "showhiddenfiles="); 4728 tmpstr = ostrcat(param, NULL, 0, 0); 4729 if(tmpstr != NULL) showhiddenfiles = ostrstr(tmpstr, "showhiddenfiles="); 4730 free(tmpstr); tmpstr = NULL; 4666 4731 if(showhiddenfiles != NULL) showhiddenfiles = showhiddenfiles + 16; 4667 4732 showhiddenfiles = stringreplacecharonce(showhiddenfiles, '&', '\0'); … … 4669 4734 debug(77, "showhiddenfiles: %s", showhiddenfiles); 4670 4735 4671 expertmodus = ostrstr(param, "expertmodus="); 4736 tmpstr = ostrcat(param, NULL, 0, 0); 4737 if(tmpstr != NULL) expertmodus = ostrstr(tmpstr, "expertmodus="); 4738 free(tmpstr); tmpstr = NULL; 4672 4739 if(expertmodus != NULL) expertmodus = expertmodus + 12; 4673 4740 expertmodus = stringreplacecharonce(expertmodus, '&', '\0'); … … 4675 4742 debug(77, "expertmodus: %s", expertmodus); 4676 4743 4677 infobarprogram = ostrstr(param, "infobarprogram="); 4744 tmpstr = ostrcat(param, NULL, 0, 0); 4745 if(tmpstr != NULL) infobarprogram = ostrstr(tmpstr, "infobarprogram="); 4746 free(tmpstr); tmpstr = NULL; 4678 4747 if(infobarprogram != NULL) infobarprogram = infobarprogram + 15; 4679 4748 infobarprogram = stringreplacecharonce(infobarprogram, '&', '\0'); … … 4681 4750 debug(77, "infobarprogram: %s", infobarprogram); 4682 4751 4683 emucontrol = ostrstr(param, "emucontrol="); 4752 tmpstr = ostrcat(param, NULL, 0, 0); 4753 if(tmpstr != NULL) emucontrol = ostrstr(tmpstr, "emucontrol="); 4754 free(tmpstr); tmpstr = NULL; 4684 4755 if(emucontrol != NULL) emucontrol = emucontrol + 10; 4685 4756 emucontrol = stringreplacecharonce(emucontrol, '&', '\0'); … … 4687 4758 debug(77, "emucontrol: %s", emucontrol); 4688 4759 4689 choiceminitv = ostrstr(param, "choiceminitv="); 4760 tmpstr = ostrcat(param, NULL, 0, 0); 4761 if(tmpstr != NULL) choiceminitv = ostrstr(tmpstr, "choiceminitv="); 4762 free(tmpstr); tmpstr = NULL; 4690 4763 if(choiceminitv != NULL) choiceminitv = choiceminitv + 13; 4691 4764 choiceminitv = stringreplacecharonce(choiceminitv, '&', '\0'); … … 4693 4766 debug(77, "choiceminitv: %s", choiceminitv); 4694 4767 4695 usecec = ostrstr(param, "usecec="); 4768 tmpstr = ostrcat(param, NULL, 0, 0); 4769 if(tmpstr != NULL) usecec = ostrstr(tmpstr, "usecec="); 4770 free(tmpstr); tmpstr = NULL; 4696 4771 if(usecec != NULL) usecec = usecec + 7; 4697 4772 usecec = stringreplacecharonce(usecec, '&', '\0'); 4698 4773 if(usecec != NULL) addconfigtmp("usecec", usecec); 4699 4774 debug(77, "usecec: %s", usecec); 4700 4701 playerbufferseektime = ostrstr(param, "playerbufferseektime="); 4775 4776 tmpstr = ostrcat(param, NULL, 0, 0); 4777 if(tmpstr != NULL) playerbufferseektime = ostrstr(tmpstr, "playerbufferseektime="); 4702 4778 if(playerbufferseektime != NULL) playerbufferseektime = playerbufferseektime + 21; 4779 free(tmpstr); tmpstr = NULL; 4703 4780 playerbufferseektime = stringreplacecharonce(playerbufferseektime, '&', '\0'); 4704 4781 if(playerbufferseektime != NULL) addconfigtmp("playerbufferseektime", playerbufferseektime);
Note: See TracChangeset
for help on using the changeset viewer.