Changeset 27899 for titan/titan/httpdfunc.h
- Timestamp:
- 03/24/14 15:25:22 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/httpdfunc.h
r25832 r27899 3345 3345 } 3346 3346 3347 char* webadjust(char* param, int fmt) 3348 { 3349 char* buf = NULL, *param1 = NULL, *param2 = NULL, *tmpstr = NULL, *tmpstr1 = NULL; 3350 int i = 0, max = 0, count = 0, maxlen = 0, pos = 0; 3351 3352 struct channel* chnode = NULL; 3353 struct epg* epgnode = NULL; 3354 3355 if(param != NULL) 3356 { 3357 //create param1 + 2 3358 param1 = strchr(param, '&'); 3359 if(param1 != NULL) 3360 { 3361 *param1++ = '\0'; 3362 param2 = strchr(param1, '&'); 3363 if(param2 != NULL) 3364 *param2++ = '\0'; 3365 } 3366 if(param1 == NULL || param2 == NULL) return NULL; 3367 chnode = getchannel(atoi(param), strtoull(param1, NULL, 10)); 3368 if(chnode == NULL) return NULL; 3369 3370 epgnode = getepg(chnode, atoi(param2), 0); 3371 if(epgnode == NULL) return NULL; 3372 } 3373 3374 ostrcatbig(&buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"><link rel=\"stylesheet\" type=\"text/css\" href=\"titan.css\"></head>", &maxlen, &pos); 3375 ostrcatbig(&buf, "<body class=body ><center>", &maxlen, &pos); 3376 ostrcatbig(&buf, "<table>", &maxlen, &pos); 3377 3378 /////////////////// 3379 // ostrcatbig(&buf, "<tr><td><font class=\"label\">Volbartimeout: </font></td><td><select name=\"volbartimeout\" border=\"0\"><option value=\"1\" selected>1</option><option value=\"2\">2</option><option value=\"3\">3</option><option value=\"4\">4</option><option value=\"5\">5</option><option value=\"6\">6</option><option value=\"7\">7</option><option value=\"8\">8</option><option value=\"9\">9</option><option value=\"10\">10</option></select></td></tr>", &maxlen, &pos); 3380 max = 10; 3381 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 3382 ostrcatbig(&buf, _("Volumebar Timeout"), &maxlen, &pos); 3383 ostrcatbig(&buf, " </font></td><td><select name=\"volbartimeout\" border=\"0\"> <option value=\"", &maxlen, &pos); 3384 for(i = 1; i <= max; i++) 3385 { 3386 ostrcatbig(&buf, "<option value=\"", &maxlen, &pos); 3387 ostrcatbig(&buf, oitoa(i), &maxlen, &pos); 3388 if(getconfigint("volbartimeout", NULL) == i) 3389 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 3390 else 3391 ostrcatbig(&buf, "\">", &maxlen, &pos); 3392 ostrcatbig(&buf, oitoa(i), &maxlen, &pos); 3393 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3394 } 3395 3396 /////////////////// 3397 // ostrcatbig(&buf, "<tr><td><font class=\"label\">Infobartimeout: </font></td><td><select name=\"infobartimeout\" border=\"0\"><option value=\"1\" selected>1</option><option value=\"2\">2</option><option value=\"3\">3</option><option value=\"4\">4</option><option value=\"5\">5</option><option value=\"6\">6</option><option value=\"7\">7</option><option value=\"8\">8</option><option value=\"9\">9</option><option value=\"10\">10</option></select></td></tr>", &maxlen, &pos); 3398 max = 10; 3399 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 3400 ostrcatbig(&buf, _("Infobar Timeout"), &maxlen, &pos); 3401 ostrcatbig(&buf, " </font></td><td><select name=\"infobartimeout\" border=\"0\"> <option value=\"", &maxlen, &pos); 3402 for(i = 1; i <= max; i++) 3403 { 3404 ostrcatbig(&buf, "<option value=\"", &maxlen, &pos); 3405 ostrcatbig(&buf, oitoa(i), &maxlen, &pos); 3406 if(getconfigint("infobartimeout", NULL) == i) 3407 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 3408 else 3409 ostrcatbig(&buf, "\">", &maxlen, &pos); 3410 ostrcatbig(&buf, oitoa(i), &maxlen, &pos); 3411 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3412 } 3413 3414 /////////////////// 3415 // ostrcatbig(&buf, "<tr><td><font class=\"label\">Infobar Sleep: </font></td><td><select name=\"infobarsleep\" border=\"0\"><option value=\"0\">0</option><option value=\"1\" selected>1</option><option value=\"2\">2</option><option value=\"3\">3</option><option value=\"4\">4</option><option value=\"5\">5</option></select></td></tr>", &maxlen, &pos); 3416 max = 5; 3417 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 3418 ostrcatbig(&buf, _("Infobar Sleep"), &maxlen, &pos); 3419 ostrcatbig(&buf, " </font></td><td><select name=\"infobarsleep\" border=\"0\"> <option value=\"", &maxlen, &pos); 3420 for(i = 0; i <= max; i++) 3421 { 3422 ostrcatbig(&buf, "<option value=\"", &maxlen, &pos); 3423 ostrcatbig(&buf, oitoa(i), &maxlen, &pos); 3424 if(getconfigint("infobarsleep", NULL) == i) 3425 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 3426 else 3427 ostrcatbig(&buf, "\">", &maxlen, &pos); 3428 ostrcatbig(&buf, oitoa(i), &maxlen, &pos); 3429 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3430 } 3431 3432 /////////////////// 3433 // ostrcatbig(&buf, "<tr><td><font class=\"label\">Infobar Sleep: </font></td><td><select name=\"infobarsleep\" border=\"0\"><option value=\"0\">0</option><option value=\"1\" selected>1</option><option value=\"2\">2</option><option value=\"3\">3</option><option value=\"4\">4</option><option value=\"5\">5</option></select></td></tr>", &maxlen, &pos); 3434 max = 5; 3435 tmpstr = ostrcat("1\n3\n9\n12\n15\n18\n21\n24\n27\n30", NULL, 0, 0); 3436 3437 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 3438 ostrcatbig(&buf, _("Spinnerspeed"), &maxlen, &pos); 3439 ostrcatbig(&buf, " </font></td><td><select name=\"spinnerspeed\" border=\"0\"> <option value=\"", &maxlen, &pos); 3440 3441 count = 0; 3442 struct splitstr* ret1 = NULL; 3443 ret1 = strsplit(tmpstr, "\n", &count); 3444 max = count - 1; 3445 3446 if(ret1 != NULL) 3447 { 3448 for(i = 0; i <= max; i++) 3449 { 3450 ostrcatbig(&buf, "<option value=\"", &maxlen, &pos); 3451 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 3452 tmpstr1 = ostrcat(ret1[i].part, NULL, 0, 0); 3453 if(getconfigint("spinnerspeed", NULL) == atoi(tmpstr1)) 3454 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 3455 else 3456 ostrcatbig(&buf, "\">", &maxlen, &pos); 3457 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 3458 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3459 } 3460 } 3461 free(ret1), ret1 = NULL; 3462 free(tmpstr), tmpstr = NULL; 3463 free(tmpstr1), tmpstr1 = NULL; 3464 3465 /////////////////// 3466 tmpstr = ostrcat("1\n2\n3\n4\n5\n6\n7\n8\n10000", NULL, 0, 0); 3467 3468 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 3469 ostrcatbig(&buf, _("Spinnertime"), &maxlen, &pos); 3470 ostrcatbig(&buf, " </font></td><td><select name=\"spinnertime\" border=\"0\"> <option value=\"", &maxlen, &pos); 3471 3472 count = 0; 3473 ret1 = strsplit(tmpstr, "\n", &count); 3474 max = count - 1; 3475 3476 if(ret1 != NULL) 3477 { 3478 for(i = 0; i <= max; i++) 3479 { 3480 ostrcatbig(&buf, "<option value=\"", &maxlen, &pos); 3481 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 3482 tmpstr1 = ostrcat(ret1[i].part, NULL, 0, 0); 3483 if(getconfigint("spinnertime", NULL) == atoi(tmpstr1)) 3484 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 3485 else 3486 ostrcatbig(&buf, "\">", &maxlen, &pos); 3487 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 3488 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3489 } 3490 } 3491 free(ret1), ret1 = NULL; 3492 free(tmpstr), tmpstr = NULL; 3493 free(tmpstr1), tmpstr1 = NULL; 3494 3495 /////////////////// 3496 tmpstr = ostrcat("5\n10\n15\n30\n60\n120\n10000", NULL, 0, 0); 3497 3498 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 3499 ostrcatbig(&buf, _("Hangtime"), &maxlen, &pos); 3500 ostrcatbig(&buf, " </font></td><td><select name=\"hangtime\" border=\"0\"> <option value=\"", &maxlen, &pos); 3501 3502 count = 0; 3503 ret1 = strsplit(tmpstr, "\n", &count); 3504 max = count - 1; 3505 3506 if(ret1 != NULL) 3507 { 3508 for(i = 0; i <= max; i++) 3509 { 3510 ostrcatbig(&buf, "<option value=\"", &maxlen, &pos); 3511 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 3512 tmpstr1 = ostrcat(ret1[i].part, NULL, 0, 0); 3513 if(getconfigint("hangtime", NULL) == atoi(tmpstr1)) 3514 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 3515 else 3516 ostrcatbig(&buf, "\">", &maxlen, &pos); 3517 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 3518 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3519 } 3520 } 3521 free(ret1), ret1 = NULL; 3522 free(tmpstr), tmpstr = NULL; 3523 free(tmpstr1), tmpstr1 = NULL; 3524 3525 /////////////////// 3526 // ostrcatbig(&buf, "<tr><td><font class=\"label\">Second Infobar: </font></td><td><select name=\"secondinfobar\" border=\"0\"><option value=\"0\">no</option><option value=\"1\" selected>infobar</option><option value=\"2\">epg</option><option value=\"3\">channel epg</option></select></td></tr>", &maxlen, &pos); 3527 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 3528 ostrcatbig(&buf, _("Second Infobar"), &maxlen, &pos); 3529 ostrcatbig(&buf, " </font></td><td><select name=\"secondinfobar\" border=\"0\">", &maxlen, &pos); 3530 3531 if(getconfigint("secondinfobar", NULL) == 0) 3532 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 3533 else 3534 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 3535 ostrcatbig(&buf, _("no"), &maxlen, &pos); 3536 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3537 3538 if(getconfigint("secondinfobar", NULL) == 1) 3539 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 3540 else 3541 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 3542 ostrcatbig(&buf, _("infobar"), &maxlen, &pos); 3543 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3544 3545 if(getconfigint("secondinfobar", NULL) == 2) 3546 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 3547 else 3548 ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos); 3549 ostrcatbig(&buf, _("epg"), &maxlen, &pos); 3550 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3551 3552 if(getconfigint("secondinfobar", NULL) == 3) 3553 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos); 3554 else 3555 ostrcatbig(&buf, "<option value=\"3\">", &maxlen, &pos); 3556 ostrcatbig(&buf, _("Channel EPG"), &maxlen, &pos); 3557 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3558 3559 /////////////////// 3560 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 3561 ostrcatbig(&buf, _("Don't clear TV on zap (only with fastzap)"), &maxlen, &pos); 3562 ostrcatbig(&buf, " </font></td><td><select name=\"nozapclear\" border=\"0\">", &maxlen, &pos); 3563 3564 if(getconfigint("nozapclear", NULL) == 0) 3565 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 3566 else 3567 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 3568 ostrcatbig(&buf, _("no"), &maxlen, &pos); 3569 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3570 3571 if(getconfigint("nozapclear", NULL) == 1) 3572 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 3573 else 3574 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 3575 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 3576 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3577 3578 /////////////////// 3579 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 3580 ostrcatbig(&buf, _("Fastzap"), &maxlen, &pos); 3581 ostrcatbig(&buf, " </font></td><td><select name=\"fastzap\" border=\"0\">", &maxlen, &pos); 3582 3583 if(getconfigint("fastzap", NULL) == 0) 3584 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 3585 else 3586 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 3587 ostrcatbig(&buf, _("no"), &maxlen, &pos); 3588 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3589 3590 if(getconfigint("fastzap", NULL) == 1) 3591 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 3592 else 3593 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 3594 ostrcatbig(&buf, _("medium"), &maxlen, &pos); 3595 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3596 3597 if(getconfigint("fastzap", NULL) == 2) 3598 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 3599 else 3600 ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos); 3601 ostrcatbig(&buf, _("fast"), &maxlen, &pos); 3602 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3603 3604 /////////////////// 3605 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 3606 ostrcatbig(&buf, _("Faststop"), &maxlen, &pos); 3607 ostrcatbig(&buf, " </font></td><td><select name=\"faststop\" border=\"0\">", &maxlen, &pos); 3608 3609 if(getconfigint("faststop", NULL) == 0) 3610 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 3611 else 3612 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 3613 ostrcatbig(&buf, _("no"), &maxlen, &pos); 3614 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3615 3616 if(getconfigint("faststop", NULL) == 1) 3617 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 3618 else 3619 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 3620 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 3621 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3622 3623 /////////////////// 3624 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 3625 ostrcatbig(&buf, _("Dirsort"), &maxlen, &pos); 3626 ostrcatbig(&buf, " </font></td><td><select name=\"dirsort\" border=\"0\">", &maxlen, &pos); 3627 3628 if(getconfigint("dirsort", NULL) == 0) 3629 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 3630 else 3631 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 3632 ostrcatbig(&buf, _("alpha"), &maxlen, &pos); 3633 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3634 3635 if(getconfigint("dirsort", NULL) == 1) 3636 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 3637 else 3638 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 3639 ostrcatbig(&buf, _("reverse alpha"), &maxlen, &pos); 3640 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3641 3642 if(getconfigint("dirsort", NULL) == 2) 3643 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 3644 else 3645 ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos); 3646 ostrcatbig(&buf, _("size"), &maxlen, &pos); 3647 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3648 3649 if(getconfigint("dirsort", NULL) == 3) 3650 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos); 3651 else 3652 ostrcatbig(&buf, "<option value=\"3\">", &maxlen, &pos); 3653 ostrcatbig(&buf, _("reverse size"), &maxlen, &pos); 3654 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3655 3656 if(getconfigint("dirsort", NULL) == 4) 3657 ostrcatbig(&buf, "<option value=\"4\" selected>", &maxlen, &pos); 3658 else 3659 ostrcatbig(&buf, "<option value=\"4\">", &maxlen, &pos); 3660 ostrcatbig(&buf, _("date"), &maxlen, &pos); 3661 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3662 3663 if(getconfigint("dirsort", NULL) == 5) 3664 ostrcatbig(&buf, "<option value=\"5\" selected>", &maxlen, &pos); 3665 else 3666 ostrcatbig(&buf, "<option value=\"5\">", &maxlen, &pos); 3667 ostrcatbig(&buf, _("reverse date"), &maxlen, &pos); 3668 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3669 3670 /////////////////// 3671 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 3672 ostrcatbig(&buf, _("Power aktion"), &maxlen, &pos); 3673 ostrcatbig(&buf, " </font></td><td><select name=\"poweraktion\" border=\"0\">", &maxlen, &pos); 3674 3675 if(getconfigint("poweraktion", NULL) == 0) 3676 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 3677 else 3678 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 3679 ostrcatbig(&buf, _("Power Menu"), &maxlen, &pos); 3680 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3681 3682 if(getconfigint("poweraktion", NULL) == 1) 3683 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 3684 else 3685 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 3686 ostrcatbig(&buf, _("Power Off"), &maxlen, &pos); 3687 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3688 3689 if(getconfigint("poweraktion", NULL) == 2) 3690 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 3691 else 3692 ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos); 3693 ostrcatbig(&buf, _("Standby"), &maxlen, &pos); 3694 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3695 3696 if(getconfigint("poweraktion", NULL) == 3) 3697 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos); 3698 else 3699 ostrcatbig(&buf, "<option value=\"3\">", &maxlen, &pos); 3700 ostrcatbig(&buf, _("Restart"), &maxlen, &pos); 3701 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3702 3703 if(getconfigint("poweraktion", NULL) == 4) 3704 ostrcatbig(&buf, "<option value=\"4\" selected>", &maxlen, &pos); 3705 else 3706 ostrcatbig(&buf, "<option value=\"4\">", &maxlen, &pos); 3707 ostrcatbig(&buf, _("Gui Restart"), &maxlen, &pos); 3708 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3709 3710 /////////////////// 3711 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 3712 ostrcatbig(&buf, _("Virtualzap Timeout"), &maxlen, &pos); 3713 ostrcatbig(&buf, " </font></td><td><select name=\"virtualzap\" border=\"0\">", &maxlen, &pos); 3714 3715 if(getconfigint("virtualzap", NULL) == 0) 3716 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 3717 else 3718 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 3719 ostrcatbig(&buf, _("deaktiv"), &maxlen, &pos); 3720 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3721 3722 if(getconfigint("virtualzap", NULL) == 1) 3723 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 3724 else 3725 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 3726 ostrcatbig(&buf, _("1 sec"), &maxlen, &pos); 3727 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3728 3729 if(getconfigint("virtualzap", NULL) == 2) 3730 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 3731 else 3732 ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos); 3733 ostrcatbig(&buf, _("2 sec"), &maxlen, &pos); 3734 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3735 3736 if(getconfigint("virtualzap", NULL) == 3) 3737 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos); 3738 else 3739 ostrcatbig(&buf, "<option value=\"3\">", &maxlen, &pos); 3740 ostrcatbig(&buf, _("endless"), &maxlen, &pos); 3741 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3742 3743 /////////////////// 3744 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 3745 ostrcatbig(&buf, _("Fast Text Render"), &maxlen, &pos); 3746 ostrcatbig(&buf, " </font></td><td><select name=\"fasttextrender\" border=\"0\">", &maxlen, &pos); 3747 3748 if(getconfigint("fasttextrender", NULL) == 0) 3749 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 3750 else 3751 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 3752 ostrcatbig(&buf, _("no"), &maxlen, &pos); 3753 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3754 3755 if(getconfigint("fasttextrender", NULL) == 1) 3756 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 3757 else 3758 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 3759 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 3760 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3761 3762 /////////////////// 3763 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 3764 ostrcatbig(&buf, _("Record Split Size"), &maxlen, &pos); 3765 ostrcatbig(&buf, " </font></td><td><select name=\"recsplitsize\" border=\"0\">", &maxlen, &pos); 3766 3767 if(getconfigint("recsplitsize", NULL) == 0) 3768 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 3769 else 3770 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 3771 ostrcatbig(&buf, _("deaktiv"), &maxlen, &pos); 3772 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3773 3774 if(getconfigint("recsplitsize", NULL) == 1) 3775 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 3776 else 3777 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 3778 ostrcatbig(&buf, _("1 GB"), &maxlen, &pos); 3779 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3780 3781 if(getconfigint("recsplitsize", NULL) == 2) 3782 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 3783 else 3784 ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos); 3785 ostrcatbig(&buf, _("2 GB"), &maxlen, &pos); 3786 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3787 3788 if(getconfigint("recsplitsize", NULL) == 3) 3789 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos); 3790 else 3791 ostrcatbig(&buf, "<option value=\"3\">", &maxlen, &pos); 3792 ostrcatbig(&buf, _("3 GB"), &maxlen, &pos); 3793 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3794 3795 if(getconfigint("recsplitsize", NULL) == 4) 3796 ostrcatbig(&buf, "<option value=\"4\" selected>", &maxlen, &pos); 3797 else 3798 ostrcatbig(&buf, "<option value=\"4\">", &maxlen, &pos); 3799 ostrcatbig(&buf, _("4 GB"), &maxlen, &pos); 3800 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3801 3802 /////////////////// 3803 tmpstr = ostrcat("0\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n15\n20\n25\n30\n35\n40\n45\n50\n55\n60", NULL, 0, 0); 3804 3805 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 3806 ostrcatbig(&buf, _("Record Forerun (min)"), &maxlen, &pos); 3807 ostrcatbig(&buf, " </font></td><td><select name=\"recforerun\" border=\"0\"> <option value=\"", &maxlen, &pos); 3808 3809 count = 0; 3810 ret1 = strsplit(tmpstr, "\n", &count); 3811 max = count - 1; 3812 3813 if(ret1 != NULL) 3814 { 3815 for(i = 0; i <= max; i++) 3816 { 3817 ostrcatbig(&buf, "<option value=\"", &maxlen, &pos); 3818 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 3819 tmpstr1 = ostrcat(ret1[i].part, NULL, 0, 0); 3820 if(getconfigint("recforerun", NULL) == atoi(tmpstr1)) 3821 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 3822 else 3823 ostrcatbig(&buf, "\">", &maxlen, &pos); 3824 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 3825 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3826 } 3827 } 3828 free(ret1), ret1 = NULL; 3829 free(tmpstr), tmpstr = NULL; 3830 free(tmpstr1), tmpstr1 = NULL; 3831 3832 /////////////////// 3833 tmpstr = ostrcat("0\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n15\n20\n25\n30\n35\n40\n45\n50\n55\n60", NULL, 0, 0); 3834 3835 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 3836 ostrcatbig(&buf, _("Record Overrun (min)"), &maxlen, &pos); 3837 ostrcatbig(&buf, " </font></td><td><select name=\"recoverrun\" border=\"0\"> <option value=\"", &maxlen, &pos); 3838 3839 count = 0; 3840 ret1 = strsplit(tmpstr, "\n", &count); 3841 max = count - 1; 3842 3843 if(ret1 != NULL) 3844 { 3845 for(i = 0; i <= max; i++) 3846 { 3847 ostrcatbig(&buf, "<option value=\"", &maxlen, &pos); 3848 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 3849 tmpstr1 = ostrcat(ret1[i].part, NULL, 0, 0); 3850 if(getconfigint("recoverrun", NULL) == atoi(tmpstr1)) 3851 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 3852 else 3853 ostrcatbig(&buf, "\">", &maxlen, &pos); 3854 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 3855 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3856 } 3857 } 3858 free(ret1), ret1 = NULL; 3859 free(tmpstr), tmpstr = NULL; 3860 free(tmpstr1), tmpstr1 = NULL; 3861 3862 /////////////////// 3863 tmpstr = ostrcat("0\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n15\n20\n25\n30\n35\n40\n45\n50\n55\n60", NULL, 0, 0); 3864 3865 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 3866 ostrcatbig(&buf, _("Skip 1/3"), &maxlen, &pos); 3867 ostrcatbig(&buf, " </font></td><td><select name=\"skip13\" border=\"0\"> <option value=\"", &maxlen, &pos); 3868 3869 count = 0; 3870 ret1 = strsplit(tmpstr, "\n", &count); 3871 max = count - 1; 3872 3873 if(ret1 != NULL) 3874 { 3875 for(i = 0; i <= max; i++) 3876 { 3877 ostrcatbig(&buf, "<option value=\"", &maxlen, &pos); 3878 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 3879 tmpstr1 = ostrcat(ret1[i].part, NULL, 0, 0); 3880 if(getconfigint("skip13", NULL) == atoi(tmpstr1)) 3881 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 3882 else 3883 ostrcatbig(&buf, "\">", &maxlen, &pos); 3884 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 3885 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3886 } 3887 } 3888 free(ret1), ret1 = NULL; 3889 free(tmpstr), tmpstr = NULL; 3890 free(tmpstr1), tmpstr1 = NULL; 3891 3892 /////////////////// 3893 tmpstr = ostrcat("0\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n15\n20\n25\n30\n35\n40\n45\n50\n55\n60", NULL, 0, 0); 3894 3895 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 3896 ostrcatbig(&buf, _("Skip 4/6"), &maxlen, &pos); 3897 ostrcatbig(&buf, " </font></td><td><select name=\"skip46\" border=\"0\"> <option value=\"", &maxlen, &pos); 3898 3899 count = 0; 3900 ret1 = strsplit(tmpstr, "\n", &count); 3901 max = count - 1; 3902 3903 if(ret1 != NULL) 3904 { 3905 for(i = 0; i <= max; i++) 3906 { 3907 ostrcatbig(&buf, "<option value=\"", &maxlen, &pos); 3908 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 3909 tmpstr1 = ostrcat(ret1[i].part, NULL, 0, 0); 3910 if(getconfigint("skip46", NULL) == atoi(tmpstr1)) 3911 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 3912 else 3913 ostrcatbig(&buf, "\">", &maxlen, &pos); 3914 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 3915 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3916 } 3917 } 3918 free(ret1), ret1 = NULL; 3919 free(tmpstr), tmpstr = NULL; 3920 free(tmpstr1), tmpstr1 = NULL; 3921 3922 /////////////////// 3923 tmpstr = ostrcat("0\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n15\n20\n25\n30\n35\n40\n45\n50\n55\n60", NULL, 0, 0); 3924 3925 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 3926 ostrcatbig(&buf, _("Skip 7/9"), &maxlen, &pos); 3927 ostrcatbig(&buf, " </font></td><td><select name=\"skip79\" border=\"0\"> <option value=\"", &maxlen, &pos); 3928 3929 count = 0; 3930 ret1 = strsplit(tmpstr, "\n", &count); 3931 max = count - 1; 3932 3933 if(ret1 != NULL) 3934 { 3935 for(i = 0; i <= max; i++) 3936 { 3937 ostrcatbig(&buf, "<option value=\"", &maxlen, &pos); 3938 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 3939 tmpstr1 = ostrcat(ret1[i].part, NULL, 0, 0); 3940 if(getconfigint("skip79", NULL) == atoi(tmpstr1)) 3941 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 3942 else 3943 ostrcatbig(&buf, "\">", &maxlen, &pos); 3944 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 3945 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3946 } 3947 } 3948 free(ret1), ret1 = NULL; 3949 free(tmpstr), tmpstr = NULL; 3950 free(tmpstr1), tmpstr1 = NULL; 3951 3952 /////////////////// 3953 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 3954 ostrcatbig(&buf, _("Player for .ts"), &maxlen, &pos); 3955 ostrcatbig(&buf, " </font></td><td><select name=\"playertype\" border=\"0\">", &maxlen, &pos); 3956 3957 if(getconfigint("playertype", NULL) == 0) 3958 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 3959 else 3960 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 3961 ostrcatbig(&buf, _("extern"), &maxlen, &pos); 3962 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3963 3964 if(getconfigint("faststop", NULL) == 1) 3965 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 3966 else 3967 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 3968 ostrcatbig(&buf, _("intern"), &maxlen, &pos); 3969 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3970 3971 /////////////////// 3972 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 3973 ostrcatbig(&buf, _("Change Channelname auto."), &maxlen, &pos); 3974 ostrcatbig(&buf, " </font></td><td><select name=\"autochangechannelname\" border=\"0\">", &maxlen, &pos); 3975 3976 if(getconfigint("autochangechannelname", NULL) == 0) 3977 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 3978 else 3979 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 3980 ostrcatbig(&buf, _("no"), &maxlen, &pos); 3981 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3982 3983 if(getconfigint("autochangechannelname", NULL) == 1) 3984 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 3985 else 3986 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 3987 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 3988 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3989 3990 /////////////////// 3991 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 3992 ostrcatbig(&buf, _("Set action after rec"), &maxlen, &pos); 3993 ostrcatbig(&buf, " </font></td><td><select name=\"def_rectimer_after\" border=\"0\">", &maxlen, &pos); 3994 3995 if(getconfigint("def_rectimer_after", NULL) == 0) 3996 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 3997 else 3998 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 3999 ostrcatbig(&buf, _("auto"), &maxlen, &pos); 4000 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4001 4002 if(getconfigint("def_rectimer_after", NULL) == 1) 4003 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4004 else 4005 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4006 ostrcatbig(&buf, _("nothing"), &maxlen, &pos); 4007 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4008 4009 if(getconfigint("def_rectimer_after", NULL) == 2) 4010 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 4011 else 4012 ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos); 4013 ostrcatbig(&buf, _("standby"), &maxlen, &pos); 4014 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4015 4016 if(getconfigint("def_rectimer_after", NULL) == 3) 4017 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos); 4018 else 4019 ostrcatbig(&buf, "<option value=\"3\">", &maxlen, &pos); 4020 ostrcatbig(&buf, _("power off"), &maxlen, &pos); 4021 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4022 4023 /////////////////// 4024 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 4025 ostrcatbig(&buf, _("Show Timeline in Channellist"), &maxlen, &pos); 4026 ostrcatbig(&buf, " </font></td><td><select name=\"showchanneltimeline\" border=\"0\">", &maxlen, &pos); 4027 4028 if(getconfigint("showchanneltimeline", NULL) == 0) 4029 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4030 else 4031 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 4032 ostrcatbig(&buf, _("no"), &maxlen, &pos); 4033 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4034 4035 if(getconfigint("showchanneltimeline", NULL) == 1) 4036 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4037 else 4038 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4039 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 4040 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4041 4042 /////////////////// 4043 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 4044 ostrcatbig(&buf, _("Animated Screens"), &maxlen, &pos); 4045 ostrcatbig(&buf, " </font></td><td><select name=\"screenanim\" border=\"0\">", &maxlen, &pos); 4046 4047 if(getconfigint("screenanim", NULL) == 0) 4048 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4049 else 4050 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 4051 ostrcatbig(&buf, _("no"), &maxlen, &pos); 4052 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4053 4054 if(getconfigint("screenanim", NULL) == 1) 4055 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4056 else 4057 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4058 ostrcatbig(&buf, _("anim. width"), &maxlen, &pos); 4059 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4060 4061 if(getconfigint("screenanim", NULL) == 2) 4062 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 4063 else 4064 ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos); 4065 ostrcatbig(&buf, _("anim. height"), &maxlen, &pos); 4066 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4067 4068 if(getconfigint("screenanim", NULL) == 3) 4069 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos); 4070 else 4071 ostrcatbig(&buf, "<option value=\"3\">", &maxlen, &pos); 4072 ostrcatbig(&buf, _("anim. both"), &maxlen, &pos); 4073 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4074 4075 /////////////////// 4076 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 4077 ostrcatbig(&buf, _("Animated Speed"), &maxlen, &pos); 4078 ostrcatbig(&buf, " </font></td><td><select name=\"screenanimspeed\" border=\"0\">", &maxlen, &pos); 4079 4080 if(getconfigint("screenanimspeed", NULL) == 1) 4081 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4082 else 4083 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4084 ostrcatbig(&buf, _("very fast"), &maxlen, &pos); 4085 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4086 4087 if(getconfigint("screenanimspeed", NULL) == 5) 4088 ostrcatbig(&buf, "<option value=\"5\" selected>", &maxlen, &pos); 4089 else 4090 ostrcatbig(&buf, "<option value=\"5\">", &maxlen, &pos); 4091 ostrcatbig(&buf, _("fast"), &maxlen, &pos); 4092 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4093 4094 if(getconfigint("screenanimspeed", NULL) == 10) 4095 ostrcatbig(&buf, "<option value=\"10\" selected>", &maxlen, &pos); 4096 else 4097 ostrcatbig(&buf, "<option value=\"10\">", &maxlen, &pos); 4098 ostrcatbig(&buf, _("normal"), &maxlen, &pos); 4099 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4100 4101 if(getconfigint("screenanimspeed", NULL) == 15) 4102 ostrcatbig(&buf, "<option value=\"15\" selected>", &maxlen, &pos); 4103 else 4104 ostrcatbig(&buf, "<option value=\"15\">", &maxlen, &pos); 4105 ostrcatbig(&buf, _("slow"), &maxlen, &pos); 4106 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4107 4108 if(getconfigint("screenanimspeed", NULL) == 20) 4109 ostrcatbig(&buf, "<option value=\"20\" selected>", &maxlen, &pos); 4110 else 4111 ostrcatbig(&buf, "<option value=\"20\">", &maxlen, &pos); 4112 ostrcatbig(&buf, _("very slow"), &maxlen, &pos); 4113 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4114 4115 /////////////////// 4116 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 4117 ostrcatbig(&buf, _("Channellist view"), &maxlen, &pos); 4118 ostrcatbig(&buf, " </font></td><td><select name=\"channellistview\" border=\"0\">", &maxlen, &pos); 4119 4120 if(getconfigint("channellistview", NULL) == 0) 4121 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4122 else 4123 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 4124 ostrcatbig(&buf, _("hidden"), &maxlen, &pos); 4125 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4126 4127 if(getconfigint("channellistview", NULL) == 1) 4128 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4129 else 4130 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4131 ostrcatbig(&buf, _("deaktiv"), &maxlen, &pos); 4132 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4133 4134 /////////////////// 4135 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 4136 ostrcatbig(&buf, _("Show last pos Question"), &maxlen, &pos); 4137 ostrcatbig(&buf, " </font></td><td><select name=\"showlastpos\" border=\"0\">", &maxlen, &pos); 4138 4139 if(getconfigint("showlastpos", NULL) == 0) 4140 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4141 else 4142 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 4143 ostrcatbig(&buf, _("no"), &maxlen, &pos); 4144 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4145 4146 if(getconfigint("showlastpos", NULL) == 1) 4147 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4148 else 4149 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4150 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 4151 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4152 4153 /////////////////// 4154 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 4155 ostrcatbig(&buf, _("Resync Recording immediately"), &maxlen, &pos); 4156 ostrcatbig(&buf, " </font></td><td><select name=\"recsync\" border=\"0\">", &maxlen, &pos); 4157 4158 if(getconfigint("recsync", NULL) == 0) 4159 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4160 else 4161 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 4162 ostrcatbig(&buf, _("no"), &maxlen, &pos); 4163 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4164 4165 if(getconfigint("recsync", NULL) == 1) 4166 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4167 else 4168 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4169 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 4170 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4171 4172 /////////////////// 4173 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 4174 ostrcatbig(&buf, _("Recording name"), &maxlen, &pos); 4175 ostrcatbig(&buf, " </font></td><td><select name=\"recordnamefmt\" border=\"0\">", &maxlen, &pos); 4176 4177 if(getconfigint("recordnamefmt", NULL) == 0) 4178 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4179 else 4180 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 4181 ostrcatbig(&buf, _("channel-movie"), &maxlen, &pos); 4182 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4183 4184 if(getconfigint("recordnamefmt", NULL) == 1) 4185 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4186 else 4187 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4188 ostrcatbig(&buf, _("movie-channel"), &maxlen, &pos); 4189 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4190 4191 /////////////////// 4192 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 4193 ostrcatbig(&buf, _("Newsletter"), &maxlen, &pos); 4194 ostrcatbig(&buf, " </font></td><td><select name=\"newsletter\" border=\"0\">", &maxlen, &pos); 4195 4196 if(getconfigint("newsletter", NULL) == 0) 4197 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4198 else 4199 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 4200 ostrcatbig(&buf, _("no"), &maxlen, &pos); 4201 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4202 4203 if(getconfigint("newsletter", NULL) == 1) 4204 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4205 else 4206 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4207 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 4208 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4209 4210 /////////////////// 4211 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 4212 ostrcatbig(&buf, _("Show hidden files"), &maxlen, &pos); 4213 ostrcatbig(&buf, " </font></td><td><select name=\"showhiddenfiles\" border=\"0\">", &maxlen, &pos); 4214 4215 if(getconfigint("showhiddenfiles", NULL) == 0) 4216 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4217 else 4218 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 4219 ostrcatbig(&buf, _("no"), &maxlen, &pos); 4220 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4221 4222 if(getconfigint("showhiddenfiles", NULL) == 1) 4223 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4224 else 4225 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4226 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 4227 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4228 4229 /////////////////// 4230 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 4231 ostrcatbig(&buf, _("Expert Modus"), &maxlen, &pos); 4232 ostrcatbig(&buf, " </font></td><td><select name=\"expertmodus\" border=\"0\">", &maxlen, &pos); 4233 4234 if(getconfigint("expertmodus", NULL) == 0) 4235 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4236 else 4237 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 4238 ostrcatbig(&buf, _("no"), &maxlen, &pos); 4239 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4240 4241 if(getconfigint("expertmodus", NULL) == 10) 4242 ostrcatbig(&buf, "<option value=\"10\" selected>", &maxlen, &pos); 4243 else 4244 ostrcatbig(&buf, "<option value=\"10\">", &maxlen, &pos); 4245 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 4246 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4247 4248 if(getconfigint("expertmodus", NULL) == 11) 4249 ostrcatbig(&buf, "<option value=\"11\" selected>", &maxlen, &pos); 4250 else 4251 ostrcatbig(&buf, "<option value=\"11\">", &maxlen, &pos); 4252 ostrcatbig(&buf, _("expert (11)"), &maxlen, &pos); 4253 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4254 4255 /////////////////// 4256 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 4257 ostrcatbig(&buf, _("Show infobar on program change"), &maxlen, &pos); 4258 ostrcatbig(&buf, " </font></td><td><select name=\"infobarprogram\" border=\"0\">", &maxlen, &pos); 4259 4260 if(getconfigint("infobarprogram", NULL) == 0) 4261 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4262 else 4263 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 4264 ostrcatbig(&buf, _("no"), &maxlen, &pos); 4265 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4266 4267 if(getconfigint("infobarprogram", NULL) == 1) 4268 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4269 else 4270 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4271 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 4272 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4273 4274 /////////////////// 4275 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 4276 ostrcatbig(&buf, _("Use cross control for fast zapping and vol"), &maxlen, &pos); 4277 ostrcatbig(&buf, " </font></td><td><select name=\"crosscontrol\" border=\"0\">", &maxlen, &pos); 4278 4279 if(getconfigint("crosscontrol", NULL) == 0) 4280 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4281 else 4282 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 4283 ostrcatbig(&buf, _("no"), &maxlen, &pos); 4284 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4285 4286 if(getconfigint("crosscontrol", NULL) == 1) 4287 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4288 else 4289 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4290 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 4291 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4292 4293 if(getconfigint("crosscontrol", NULL) == 2) 4294 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 4295 else 4296 ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos); 4297 ostrcatbig(&buf, _("yes / vzap 1 sec"), &maxlen, &pos); 4298 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4299 4300 if(getconfigint("crosscontrol", NULL) == 3) 4301 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos); 4302 else 4303 ostrcatbig(&buf, "<option value=\"3\">", &maxlen, &pos); 4304 ostrcatbig(&buf, _("yes / vzap 2 sec"), &maxlen, &pos); 4305 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4306 4307 if(getconfigint("crosscontrol", NULL) == 9999) 4308 ostrcatbig(&buf, "<option value=\"9999\" selected>", &maxlen, &pos); 4309 else 4310 ostrcatbig(&buf, "<option value=\"9999\">", &maxlen, &pos); 4311 ostrcatbig(&buf, _("yes / vzap endless"), &maxlen, &pos); 4312 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4313 4314 /////////////////// 4315 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 4316 ostrcatbig(&buf, _("Deactivate Crypt Support on Media Playback"), &maxlen, &pos); 4317 ostrcatbig(&buf, " </font></td><td><select name=\"emucontrol\" border=\"0\">", &maxlen, &pos); 4318 4319 if(getconfigint("emucontrol", NULL) == 0) 4320 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4321 else 4322 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 4323 ostrcatbig(&buf, _("no"), &maxlen, &pos); 4324 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4325 4326 if(getconfigint("emucontrol", NULL) == 1) 4327 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4328 else 4329 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4330 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 4331 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4332 4333 /////////////////// 4334 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 4335 ostrcatbig(&buf, _("Deactivate MiniTV"), &maxlen, &pos); 4336 ostrcatbig(&buf, " </font></td><td><select name=\"choiceminitv\" border=\"0\">", &maxlen, &pos); 4337 4338 if(getconfigint("choiceminitv", NULL) == 0) 4339 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4340 else 4341 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 4342 ostrcatbig(&buf, _("no"), &maxlen, &pos); 4343 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4344 4345 if(getconfigint("choiceminitv", NULL) == 1) 4346 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4347 else 4348 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4349 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 4350 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4351 4352 /////////////////// 4353 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 4354 ostrcatbig(&buf, _("Activate CEC"), &maxlen, &pos); 4355 ostrcatbig(&buf, " </font></td><td><select name=\"usecec\" border=\"0\">", &maxlen, &pos); 4356 4357 if(getconfigint("usecec", NULL) == 0) 4358 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4359 else 4360 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 4361 ostrcatbig(&buf, _("no"), &maxlen, &pos); 4362 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4363 4364 if(getconfigint("usecec", NULL) == 1) 4365 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4366 else 4367 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4368 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 4369 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4370 4371 4372 /////////////////// 4373 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 4374 ostrcatbig(&buf, _("SATA Connector"), &maxlen, &pos); 4375 ostrcatbig(&buf, " </font></td><td><select name=\"sataswitch\" border=\"0\">", &maxlen, &pos); 4376 4377 if(getconfigint("sataswitch", NULL) == 0) 4378 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4379 else 4380 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 4381 ostrcatbig(&buf, _("extern"), &maxlen, &pos); 4382 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4383 4384 if(getconfigint("sataswitch", NULL) == 1) 4385 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4386 else 4387 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4388 ostrcatbig(&buf, _("intern"), &maxlen, &pos); 4389 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4390 4391 /////////////////// 4392 // ostrcatbig(&buf, "<tr><td><font class=\"label\">Volbartimeout: </font></td><td><select name=\"volbartimeout\" border=\"0\"><option value=\"1\" selected>1</option><option value=\"2\">2</option><option value=\"3\">3</option><option value=\"4\">4</option><option value=\"5\">5</option><option value=\"6\">6</option><option value=\"7\">7</option><option value=\"8\">8</option><option value=\"9\">9</option><option value=\"10\">10</option></select></td></tr>", &maxlen, &pos); 4393 max = 10; 4394 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 4395 ostrcatbig(&buf, _("Time to wait after seek for fill buffer"), &maxlen, &pos); 4396 ostrcatbig(&buf, " </font></td><td><select name=\"playerbufferseektime\" border=\"0\"> <option value=\"", &maxlen, &pos); 4397 for(i = 1; i <= max; i++) 4398 { 4399 ostrcatbig(&buf, "<option value=\"", &maxlen, &pos); 4400 ostrcatbig(&buf, oitoa(i), &maxlen, &pos); 4401 if(getconfigint("playerbufferseektime", NULL) == i) 4402 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 4403 else 4404 ostrcatbig(&buf, "\">", &maxlen, &pos); 4405 ostrcatbig(&buf, oitoa(i), &maxlen, &pos); 4406 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4407 } 4408 4409 4410 ostrcatbig(&buf, "</select></td></tr>", &maxlen, &pos); 4411 ostrcatbig(&buf, "</table><br><br><input class=button type=submit name=send value=\"Send\" onClick=\"return checkdaytime(begin.value, end.value)\"></input> <input class=button type=reset name=reset value=\"Reset\"></input></form></center></body></html>", &maxlen, &pos); 4412 4413 //ostrcatbig(&buf, param, &maxlen, &pos); 4414 return buf; 4415 } 4416 3347 4417 #endif
Note: See TracChangeset
for help on using the changeset viewer.