Changeset 38864


Ignore:
Timestamp:
09/18/16 09:26:54 (8 years ago)
Author:
Stephan
Message:

better text

Location:
titan/titan
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/adjust.h

    r38473 r38864  
    66        int rcret = 0;
    77        char* tmpstr = NULL;
    8        
     8
    99        struct skin* adjust = getscreen("adjust");
    1010        struct skin* listbox = getscreennode(adjust, "listbox");
     
    8989        else
    9090                fastzap->hidden = NO;
    91        
     91
    9292        addchoicebox(fastzap, "0", _("no"));
    9393        addchoicebox(fastzap, "2", _("medium"));
     
    118118        setchoiceboxselection(frontpoweraktion, getconfig("frontpoweraktion", NULL));
    119119
    120         addchoicebox(virtualzap, "0", _("deaktiv"));
     120        addchoicebox(virtualzap, "0", _("disable"));
    121121        addchoicebox(virtualzap, "1", _("1 sec"));
    122122        addchoicebox(virtualzap, "2", _("2 sec"));
    123123        addchoicebox(virtualzap, "9999", _("endless"));
    124124        setchoiceboxselection(virtualzap, getconfig("virtualzap", NULL));
    125        
     125
    126126        addchoicebox(fasttextrender, "0", _("no"));
    127127        addchoicebox(fasttextrender, "1", _("yes"));
    128128        setchoiceboxselection(fasttextrender, getconfig("fasttextrender", NULL));
    129129
    130         addchoicebox(recsplitsize, "0", _("deaktiv"));
     130        addchoicebox(recsplitsize, "0", _("disable"));
    131131        addchoicebox(recsplitsize, "1", _("1 GB"));
    132132        addchoicebox(recsplitsize, "2", _("2 GB"));
     
    149149        changeinput(skip79, "15\n20\n30\n45\n60\n90\n120\n180\n300\n600\n900\n1200");
    150150        setchoiceboxselection(skip79, getconfig("skip79", NULL));
    151        
     151
    152152        addchoicebox(playertype, "0", _("extern"));
    153153        addchoicebox(playertype, "1", _("intern"));
    154154        setchoiceboxselection(playertype, getconfig("playertype", NULL));
    155        
     155
    156156        addchoicebox(autochangechannelname, "0", _("no"));
    157157        addchoicebox(autochangechannelname, "1", _("yes"));
     
    163163        addchoicebox(def_rectimer_after, "3", _("power off"));
    164164        setchoiceboxselection(def_rectimer_after, getconfig("def_rectimer_after", NULL));
    165        
     165
    166166        addchoicebox(showchanneltimeline, "0", _("no"));
    167167        addchoicebox(showchanneltimeline, "1", _("yes"));
    168168        setchoiceboxselection(showchanneltimeline, getconfig("showchanneltimeline", NULL));
    169        
     169
    170170        addchoicebox(screenanim, "0", _("no"));
    171171        addchoicebox(screenanim, "1", _("anim. width"));
     
    182182#endif
    183183        setchoiceboxselection(screenanim, getconfig("screenanim", NULL));
    184        
     184
    185185        addchoicebox(screenanimspeed, "1", _("very fast"));
    186186        addchoicebox(screenanimspeed, "5", _("fast"));
     
    194194        setchoiceboxselection(channellistview, getconfig("channellistview", NULL));
    195195
    196         addchoicebox(showlastpos, "0", _("no"));       
     196        addchoicebox(showlastpos, "0", _("no"));
    197197        addchoicebox(showlastpos, "1", _("yes"));
    198198        setchoiceboxselection(showlastpos, getconfig("showlastpos", NULL));
    199199
    200         addchoicebox(recsync, "0", _("no"));   
     200        addchoicebox(recsync, "0", _("no"));
    201201        addchoicebox(recsync, "1", _("yes"));
    202202        setchoiceboxselection(recsync, getconfig("recsync", NULL));
     
    256256        else
    257257                changeinput(community_pass, "****");
    258                
     258
    259259        changemask(community_pass, "****");
    260260        if(getconfig("community_pass", NULL) == NULL)
     
    262262        else
    263263                changeinput(community_pass, "****");
    264        
     264
    265265
    266266// setdebuglevel
     
    268268        debuglevel->hidden = YES;
    269269#else
    270         tmpstr = ostrcat("10 - ", _("Minimal"), 0, 0); 
     270        tmpstr = ostrcat("10 - ", _("Minimal"), 0, 0);
    271271        addchoicebox(debuglevel, "10", tmpstr);
    272272        free(tmpstr), tmpstr = NULL;
    273        
    274         tmpstr = ostrcat("40 - ", _("MTD Operation/System Update"), 0, 0);     
     273
     274        tmpstr = ostrcat("40 - ", _("MTD Operation/System Update"), 0, 0);
    275275        addchoicebox(debuglevel, "40", tmpstr);
    276276        free(tmpstr), tmpstr = NULL;
    277        
    278         tmpstr = ostrcat("50 - ", _("MediaCenter"), 0, 0);     
     277
     278        tmpstr = ostrcat("50 - ", _("MediaCenter"), 0, 0);
    279279        addchoicebox(debuglevel, "50", tmpstr);
    280280        free(tmpstr), tmpstr = NULL;
    281        
    282         tmpstr = ostrcat("55 - ", _("Network Interface"), 0, 0);       
     281
     282        tmpstr = ostrcat("55 - ", _("Network Interface"), 0, 0);
    283283        addchoicebox(debuglevel, "55", tmpstr);
    284284        free(tmpstr), tmpstr = NULL;
    285        
    286         tmpstr = ostrcat("60 - ", _("Key Actions"), 0, 0);     
     285
     286        tmpstr = ostrcat("60 - ", _("Key Actions"), 0, 0);
    287287        addchoicebox(debuglevel, "60", tmpstr);
    288288        free(tmpstr), tmpstr = NULL;
    289        
    290         tmpstr = ostrcat("70 - ", _("Networkbrowser"), 0, 0);   
     289
     290        tmpstr = ostrcat("70 - ", _("Networkbrowser"), 0, 0);
    291291        addchoicebox(debuglevel, "70", tmpstr);
    292292        free(tmpstr), tmpstr = NULL;
    293        
    294         tmpstr = ostrcat("77 - ", _("Web Adjust"), 0, 0);       
     293
     294        tmpstr = ostrcat("77 - ", _("Web Adjust"), 0, 0);
    295295        addchoicebox(debuglevel, "77", tmpstr);
    296296        free(tmpstr), tmpstr = NULL;
    297        
    298         tmpstr = ostrcat("80 - ", _("Harddisk"), 0, 0); 
     297
     298        tmpstr = ostrcat("80 - ", _("Harddisk"), 0, 0);
    299299        addchoicebox(debuglevel, "80", tmpstr);
    300300        free(tmpstr), tmpstr = NULL;
    301        
    302         tmpstr = ostrcat("81 - ", _("MultiImage"), 0, 0);       
     301
     302        tmpstr = ostrcat("81 - ", _("MultiImage"), 0, 0);
    303303        addchoicebox(debuglevel, "81", tmpstr);
    304304        free(tmpstr), tmpstr = NULL;
    305        
    306         tmpstr = ostrcat("90 - ", _("Screensaver"), 0, 0);     
     305
     306        tmpstr = ostrcat("90 - ", _("Screensaver"), 0, 0);
    307307        addchoicebox(debuglevel, "90", tmpstr);
    308308        free(tmpstr), tmpstr = NULL;
    309        
    310         tmpstr = ostrcat("99 - ", _("Tithek/HTTP Header/Community"), 0, 0);     
     309
     310        tmpstr = ostrcat("99 - ", _("Tithek/HTTP Header/Community"), 0, 0);
    311311        addchoicebox(debuglevel, "99", tmpstr);
    312312        free(tmpstr), tmpstr = NULL;
    313        
    314         tmpstr = ostrcat("100 - ", _("Global"), 0, 0); 
     313
     314        tmpstr = ostrcat("100 - ", _("Global"), 0, 0);
    315315        addchoicebox(debuglevel, "100", tmpstr);
    316316        free(tmpstr), tmpstr = NULL;
    317        
    318         tmpstr = ostrcat("110 - ", _("Stringconvert"), 0, 0);   
     317
     318        tmpstr = ostrcat("110 - ", _("Stringconvert"), 0, 0);
    319319        addchoicebox(debuglevel, "110", tmpstr);
    320320        free(tmpstr), tmpstr = NULL;
    321        
    322         tmpstr = ostrcat("130 - ", _("TPK"), 0, 0);     
     321
     322        tmpstr = ostrcat("130 - ", _("TPK"), 0, 0);
    323323        addchoicebox(debuglevel, "130", tmpstr);
    324324        free(tmpstr), tmpstr = NULL;
    325        
    326         tmpstr = ostrcat("133 - ", _("MediaDB/IMDb/TMDb"), 0, 0);       
     325
     326        tmpstr = ostrcat("133 - ", _("MediaDB/IMDb/TMDb"), 0, 0);
    327327        addchoicebox(debuglevel, "133", tmpstr);
    328328        free(tmpstr), tmpstr = NULL;
    329        
    330         tmpstr = ostrcat("150 - ", _("ePlayer"), 0, 0); 
     329
     330        tmpstr = ostrcat("150 - ", _("ePlayer"), 0, 0);
    331331        addchoicebox(debuglevel, "150", tmpstr);
    332332        free(tmpstr), tmpstr = NULL;
    333        
    334         tmpstr = ostrcat("200 - ", _("DVB Devices"), 0, 0);     
     333
     334        tmpstr = ostrcat("200 - ", _("DVB Devices"), 0, 0);
    335335        addchoicebox(debuglevel, "200", tmpstr);
    336336        free(tmpstr), tmpstr = NULL;
    337        
    338         tmpstr = ostrcat("201 - ", _("CA Device"), 0, 0);       
     337
     338        tmpstr = ostrcat("201 - ", _("CA Device"), 0, 0);
    339339        addchoicebox(debuglevel, "201", tmpstr);
    340340        free(tmpstr), tmpstr = NULL;
    341        
    342         tmpstr = ostrcat("250 - ", _("HTTP Server/Stream/Record"), 0, 0);       
     341
     342        tmpstr = ostrcat("250 - ", _("HTTP Server/Stream/Record"), 0, 0);
    343343        addchoicebox(debuglevel, "250", tmpstr);
    344344        free(tmpstr), tmpstr = NULL;
    345        
    346         tmpstr = ostrcat("270 - ", _("Radiotext"), 0, 0);       
     345
     346        tmpstr = ostrcat("270 - ", _("Radiotext"), 0, 0);
    347347        addchoicebox(debuglevel, "270", tmpstr);
    348348        free(tmpstr), tmpstr = NULL;
    349        
    350         tmpstr = ostrcat("278 - ", _("ID3"), 0, 0);     
     349
     350        tmpstr = ostrcat("278 - ", _("ID3"), 0, 0);
    351351        addchoicebox(debuglevel, "278", tmpstr);
    352352        free(tmpstr), tmpstr = NULL;
    353        
    354         tmpstr = ostrcat("300 - ", _("Subtitle"), 0, 0);       
     353
     354        tmpstr = ostrcat("300 - ", _("Subtitle"), 0, 0);
    355355        addchoicebox(debuglevel, "300", tmpstr);
    356356        free(tmpstr), tmpstr = NULL;
    357        
    358         tmpstr = ostrcat("307 - ", _("Thumbnails"), 0, 0);     
     357
     358        tmpstr = ostrcat("307 - ", _("Thumbnails"), 0, 0);
    359359        addchoicebox(debuglevel, "307", tmpstr);
    360360        free(tmpstr), tmpstr = NULL;
    361        
    362         tmpstr = ostrcat("333 - ", _("DVD Player"), 0, 0);     
     361
     362        tmpstr = ostrcat("333 - ", _("DVD Player"), 0, 0);
    363363        addchoicebox(debuglevel, "333", tmpstr);
    364364        free(tmpstr), tmpstr = NULL;
    365 /*     
    366         tmpstr = ostrcat("369 - ", _("Facebook"), 0, 0);       
     365/*
     366        tmpstr = ostrcat("369 - ", _("Facebook"), 0, 0);
    367367        addchoicebox(debuglevel, "369", tmpstr);
    368368        free(tmpstr), tmpstr = NULL;
    369 */     
    370         tmpstr = ostrcat("400 - ", _("EPG Task"), 0, 0);       
     369*/
     370        tmpstr = ostrcat("400 - ", _("EPG Task"), 0, 0);
    371371        addchoicebox(debuglevel, "400", tmpstr);
    372372        free(tmpstr), tmpstr = NULL;
    373        
    374        
    375         tmpstr = ostrcat("401 - ", _("Old Entry"), 0, 0);       
     373
     374
     375        tmpstr = ostrcat("401 - ", _("Old Entry"), 0, 0);
    376376        addchoicebox(debuglevel, "401", tmpstr);
    377377        free(tmpstr), tmpstr = NULL;
    378        
    379         tmpstr = ostrcat("427 - ", _("Newsletter"), 0, 0);     
     378
     379        tmpstr = ostrcat("427 - ", _("Newsletter"), 0, 0);
    380380        addchoicebox(debuglevel, "427", tmpstr);
    381381        free(tmpstr), tmpstr = NULL;
    382        
    383         tmpstr = ostrcat("444 - ", _("Framebuffer"), 0, 0);     
     382
     383        tmpstr = ostrcat("444 - ", _("Framebuffer"), 0, 0);
    384384        addchoicebox(debuglevel, "444", tmpstr);
    385385        free(tmpstr), tmpstr = NULL;
    386        
    387         tmpstr = ostrcat("500 - ", _("Channel Scan"), 0, 0);   
     386
     387        tmpstr = ostrcat("500 - ", _("Channel Scan"), 0, 0);
    388388        addchoicebox(debuglevel, "500", tmpstr);
    389389        free(tmpstr), tmpstr = NULL;
    390        
    391         tmpstr = ostrcat("555 - ", _("Draw Screen"), 0, 0);     
     390
     391        tmpstr = ostrcat("555 - ", _("Draw Screen"), 0, 0);
    392392        addchoicebox(debuglevel, "555", tmpstr);
    393393        free(tmpstr), tmpstr = NULL;
    394        
    395         tmpstr = ostrcat("620 - ", _("CA"), 0, 0);     
     394
     395        tmpstr = ostrcat("620 - ", _("CA"), 0, 0);
    396396        addchoicebox(debuglevel, "620", tmpstr);
    397397        free(tmpstr), tmpstr = NULL;
    398        
    399         tmpstr = ostrcat("777 - ", _("MediaDB"), 0, 0); 
     398
     399        tmpstr = ostrcat("777 - ", _("MediaDB"), 0, 0);
    400400        addchoicebox(debuglevel, "777", tmpstr);
    401401        free(tmpstr), tmpstr = NULL;
    402 /*     
    403         tmpstr = ostrcat("788 - ", _("HbbTV"), 0, 0);   
     402/*
     403        tmpstr = ostrcat("788 - ", _("HbbTV"), 0, 0);
    404404        addchoicebox(debuglevel, "788", tmpstr);
    405405        free(tmpstr), tmpstr = NULL;
    406 */     
    407         tmpstr = ostrcat("900 - ", _("Mutex"), 0, 0);   
     406*/
     407        tmpstr = ostrcat("900 - ", _("Mutex"), 0, 0);
    408408        addchoicebox(debuglevel, "900", tmpstr);
    409409        free(tmpstr), tmpstr = NULL;
    410        
    411         tmpstr = ostrcat("913 - ", _("File Operation"), 0, 0); 
     410
     411        tmpstr = ostrcat("913 - ", _("File Operation"), 0, 0);
    412412        addchoicebox(debuglevel, "913", tmpstr);
    413413        free(tmpstr), tmpstr = NULL;
    414        
    415         tmpstr = ostrcat("975 - ", _("SMTP"), 0, 0);   
     414
     415        tmpstr = ostrcat("975 - ", _("SMTP"), 0, 0);
    416416        addchoicebox(debuglevel, "975", tmpstr);
    417417        free(tmpstr), tmpstr = NULL;
    418        
    419         tmpstr = ostrcat("4440 - ", _("PiP"), 0, 0);   
     418
     419        tmpstr = ostrcat("4440 - ", _("PiP"), 0, 0);
    420420        addchoicebox(debuglevel, "4440", tmpstr);
    421421        free(tmpstr), tmpstr = NULL;
    422        
     422
    423423        setchoiceboxselection(debuglevel, getconfig("debuglevel", NULL));
    424424#endif
     
    456456        else
    457457                sataswitch->hidden = YES;
    458        
     458
    459459        addchoicebox(playerbuffersize, "0", _("no"));
    460460        addchoicebox(playerbuffersize, "524288", "512KB");
     
    469469        addchoicebox(playerbuffersize, "5242880", "5MB");
    470470        setchoiceboxselection(playerbuffersize, getconfig("playerbuffersize", NULL));
    471        
     471
    472472        addchoicebox(playerbufferseektime, "0", "0");
    473473        addchoicebox(playerbufferseektime, "1", "1");
     
    499499                        addconfigscreen("infobartimeout", infobartimeout);
    500500                        addconfigscreen("infobarsleep", infobarsleep);
    501                         addconfigscreencheck("secondinfobar", secondinfobar, "0");             
     501                        addconfigscreencheck("secondinfobar", secondinfobar, "0");
    502502                        addconfigscreen("spinnerspeed", spinnerspeed);
    503503                        status.spinnerspeed = getconfigint("spinnerspeed", NULL);
     
    555555                        status.showhiddenfiles = getconfigint("showhiddenfiles", NULL);
    556556                        addconfigscreencheck("expertmodus", expertmodus, "0");
    557                         status.expertmodus = getconfigint("expertmodus", NULL);                                 
     557                        status.expertmodus = getconfigint("expertmodus", NULL);
    558558                        addconfigscreencheck("infobarprogram", infobarprogram, "0");
    559559                        status.infobarprogram = getconfigint("infobarprogram", NULL);
  • titan/titan/epgsettings.h

    r35751 r38864  
    8787                        clearscreen(scanlist);
    8888                        struct mainbouquet* mbouquet = screenmainbouquet();
    89                        
     89
    9090                        mainbouquet2epgscanlist(mbouquet);
    9191                        delmarkedscreennodes(scanlist, 1);
    9292                        createepgscanlist(scanlist, listbox);
    93                        
     93
    9494                        drawscreen(scanlist, 0, 0);
    9595                }
     
    146146        setchoiceboxselection(epgfreespace, getconfig("epgfreespace", NULL));
    147147
    148         addchoicebox(epglistmode, "0", _("deaktiv"));
     148        addchoicebox(epglistmode, "0", _("disable"));
    149149        addchoicebox(epglistmode, "1", _("scan"));
    150150        addchoicebox(epglistmode, "2", _("whitelist"));
     
    152152        setchoiceboxselection(epglistmode, getconfig("epg_listmode", NULL));
    153153
    154         addchoicebox(epgrefresh, "0", _("deaktiv"));
     154        addchoicebox(epgrefresh, "0", _("disable"));
    155155        addchoicebox(epgrefresh, "01:00", "01:00");
    156156        addchoicebox(epgrefresh, "02:00", "02:00");
     
    178178        addchoicebox(epgrefresh, "23:59", "24:00");
    179179        setchoiceboxselection(epgrefresh, getconfig("epg_refreshtime", NULL));
    180                
    181         addchoicebox(epgbutton, "0", _("Single EPG"));           
    182         addchoicebox(epgbutton, "1", _("Multi EPG"));           
     180
     181        addchoicebox(epgbutton, "0", _("Single EPG"));
     182        addchoicebox(epgbutton, "1", _("Multi EPG"));
    183183        setchoiceboxselection(epgbutton, getconfig("epgbutton", NULL));
    184184
    185185        changeinput(epgzoom, "1\n2\n3\n4\n5\n6\n7");
    186186        setchoiceboxselection(epgzoom, getconfig("gmultiepgzoom", NULL));
    187        
     187
    188188        addchoicebox(epgpicon, "0", _("no"));
    189189        addchoicebox(epgpicon, "1", _("yes"));
    190190        setchoiceboxselection(epgpicon, getconfig("epgpicon", NULL));
    191        
     191
    192192        addchoicebox(epgsave, "0", _("always"));
    193193        addchoicebox(epgsave, "1", _("only on power off / restart"));
     
    217217        addchoicebox(epg_afterevent, "1", _("poweroff"));
    218218        setchoiceboxselection(epg_afterevent, getconfig("epg_afterevent", NULL));
    219        
     219
    220220        addchoicebox(epg_primetime, "18:00", "18:00");
    221221        addchoicebox(epg_primetime, "18:30", "18:30");
     
    228228
    229229        b4->usesavebg = 1;
    230        
     230
    231231        drawscreen(epgsettings, 0, 0);
    232232        addscreenrc(epgsettings, listbox);
     
    242242                        b4->hidden = YES;
    243243                drawscreen(epgsettings, 0, 0);
    244                
     244
    245245                rcret = waitrc(epgsettings, 0, 0);
    246246                tmp = listbox->select;
     
    256256                        epg_afterevent->hidden = NO;
    257257                }
    258                        
     258
    259259                if(rcret == getrcconfigint("rcexit", NULL)) break;
    260260                if(rcret == getrcconfigint("rcok", NULL))
     
    284284                        else
    285285                                epgscancreatetimer();
    286                        
     286
    287287                        if(getconfig("epg_refreshtime", NULL) != NULL || getconfigint("epg_afterevent", NULL) != 0)
    288                         {       
     288                        {
    289289                                if(getconfigint("epg_listmode", NULL) == 1 || getconfigint("epg_listmode", NULL) == 3)
    290290                                {
    291291//                                      textbox(_("Message"), _("Deavtivate Refresh Time and After EPG in scan-mode"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 800, 200, 15, 0);
    292292                                        delconfig("epg_refreshtime");
    293                                         delconfig("epg_afterevent");           
     293                                        delconfig("epg_afterevent");
    294294                                }
    295295                        }
  • titan/titan/httpdfunc.h

    r37306 r38864  
    105105        }
    106106
    107         if(fmt == 0) 
     107        if(fmt == 0)
    108108        {
    109109                if(line == 0)
     
    120120        }
    121121
    122         if(fmt == 0) 
     122        if(fmt == 0)
    123123        {
    124124                ostrcatbig(buf, "<td width=100% valign=middle nowrap class=link><div class=timelineborder><div class=timelinebar style=\"width: ", maxlen, pos);
     
    143143        }
    144144
    145         if(fmt == 0) 
     145        if(fmt == 0)
    146146        {
    147147                ostrcatbig(buf, chnode->name, maxlen, pos);
     
    279279
    280280        //tv - radio
    281         if(fmt == 0) 
     281        if(fmt == 0)
    282282        {
    283283                if(chnode->servicetype == 0)
     
    285285                        ostrcatbig(buf, "</td><td width=100 align=right valign=middle nowrap><img style=\"margin-left: 5\" border=0 src=img/tv.png title=\"", maxlen, pos);
    286286                        ostrcatbig(buf, _("TV"), maxlen, pos);
    287                         ostrcatbig(buf, "\" width=16 height=16>", maxlen, pos);         
     287                        ostrcatbig(buf, "\" width=16 height=16>", maxlen, pos);
    288288                }
    289289                else
     
    521521        while(node != NULL)
    522522        {
    523                 if(fmt == 0) 
     523                if(fmt == 0)
    524524                {
    525525                        if(line == 0)
     
    701701                                ostrcatbig(&buf, _("Radio"), &maxlen, &pos);
    702702                        }
    703                                
     703
    704704                        ostrcatbig(&buf, "\" width=16 height=16>", &maxlen, &pos);
    705                        
     705
    706706                        ostrcatbig(&buf, "<a href=\"query?getgmultiepg&", &maxlen, &pos);
    707707                        ostrcatbig(&buf, node->name, &maxlen, &pos);
     
    710710                        ostrcatbig(&buf, _("GRAPHIC MULTI EPG - Bouquets"), &maxlen, &pos);
    711711                        ostrcatbig(&buf, "\" width=16 height=16></a>", &maxlen, &pos);
    712                
     712
    713713                        ostrcatbig(&buf, "<a href=\"query?getbouquetm3u&", &maxlen, &pos);
    714714                        ostrcatbig(&buf, node->name, &maxlen, &pos);
     
    716716                        ostrcatbig(&buf, "<img style=\"margin-left: 5\" border=0 src=img/bouquetstream.png title=\"", &maxlen, &pos);
    717717                        ostrcatbig(&buf, _("Playlist download"), &maxlen, &pos);
    718                         ostrcatbig(&buf, "\" width=16 height=16></a>", &maxlen, &pos);                 
    719                        
     718                        ostrcatbig(&buf, "\" width=16 height=16></a>", &maxlen, &pos);
     719
    720720                        ostrcatbig(&buf, "</td></tr>", &maxlen, &pos);
    721721                }
     
    762762        if(mute != status.mute)
    763763                screenmute(NULL, NULL, 0);
    764        
     764
    765765        return buf;
    766766}
     
    910910        struct sockaddr_in sin;
    911911        socklen_t len = sizeof(sin);
    912        
     912
    913913#ifdef MIPSEL
    914914        status.webencode = 0;
    915 #endif         
     915#endif
    916916
    917917        if(param == NULL) return NULL;
     
    10091009        struct channel* chnode = NULL;
    10101010        socklen_t len = sizeof(sin);
    1011        
     1011
    10121012        if(param == NULL) return NULL;
    10131013
     
    10271027                        if(ip == NULL) return NULL;
    10281028        }
    1029        
     1029
    10301030        streamport = getconfig("streamport", NULL);
    10311031
    10321032        buf = ostrcat(buf, "#EXTM3U\n", 1, 0);
    10331033        buf = ostrcat(buf, "#EXTVLCOPT--http-reconnect=true\n", 1, 0);
    1034        
     1034
    10351035        mbouquet = getmainbouquet(param);
    10361036        if(mbouquet != NULL)
     
    11341134                unsigned long pos = 0; // current position
    11351135                unsigned long len = 0; // stream length
    1136                
     1136
    11371137                if(status.play == 1)
    11381138                        st = 1;
    1139                
     1139
    11401140                if(active == 1)
    11411141                {
     
    11431143                        len = playergetlength();
    11441144                }
    1145                
     1145
    11461146                snprintf(buf, 30, "%d#%d#%lu#%lu", active, st, pos, len);
    1147                
     1147
    11481148                return ostrcat(buf, NULL, 0, 0);
    11491149        }
     
    11731173                                {
    11741174                                        struct tithek* (*startplugin)(char*);
    1175                
     1175
    11761176                                        startplugin = dlsym(tithekplugin->pluginhandle, "hoster");
    11771177                                        if(startplugin != NULL)
     
    11881188        }
    11891189        tmpbuf = ostrcat("not in play mode", NULL, 0, 0);
    1190    
     1190
    11911191        int count = 0;
    11921192        if(status.timeshift == 0 && status.play == 0 && (ostrcmp("play", param) == 0 || ostrcmp("play=", param) == 0))
     
    12211221                if(ostrcmp("pause", param) == 0 || ostrcmp("pause=", param) == 0)
    12221222                        writerc(getrcconfigint("rcpause", NULL));
    1223    
     1223
    12241224                if(ostrcmp("ff", param) == 0 || ostrcmp("ff=", param) == 0)
    12251225                        writerc(getrcconfigint("rcff", NULL));
    1226    
     1226
    12271227                if(ostrcmp("fr", param) == 0 || ostrcmp("fr=", param) == 0)
    12281228                        writerc(getrcconfigint("rcfr", NULL));
     
    12351235                        unsigned long len = 0;
    12361236                        free(tmpbuf); tmpbuf = NULL;
    1237    
     1237
    12381238                        len = playergetlength();
    12391239                        tmpbuf = ostrcat(buf, olutoa(len), 1, 1);
    12401240                }
    1241  
     1241
    12421242                if(ostrcmp("getpos", param) == 0 || ostrcmp("getpos=", param) == 0)
    12431243                {
    12441244                        unsigned long pos = 0;
    12451245                        free(tmpbuf); tmpbuf = NULL;
    1246    
     1246
    12471247                        pos = playergetpts() / 90000;
    12481248                        tmpbuf = ostrcat(buf, olutoa(pos), 1, 1);
    12491249                }
    1250  
     1250
    12511251                if(ostrcmp("getisplaying", param) == 0 || ostrcmp("getisplaying=", param) == 0)
    12521252                {
    12531253                        int playing = 0;
    12541254                        free(tmpbuf); tmpbuf = NULL;
    1255    
     1255
    12561256                        playing = playerisplaying();
    12571257                        tmpbuf = ostrcat(buf, oitoa(playing), 1, 1);
    12581258                }
    1259  
     1259
    12601260                if(ostrcmp("getplayercan", param) == 0 || ostrcmp("getplayercan=", param) == 0)
    12611261                {
     
    12751275        else
    12761276                buf = ostrcat(buf, tmpbuf, 1, 1);
    1277  
     1277
    12781278        return buf;
    12791279}
     
    13281328        else
    13291329                buf = ostrcat(buf, "Message Send", 1, 0);
    1330                
     1330
    13311331        return buf;
    13321332}
     
    14641464                buf = ostrcat(buf, epgnode->subtitle, 1, 0);
    14651465
    1466         if(fmt == 0) 
     1466        if(fmt == 0)
    14671467        {
    14681468                buf = ostrcat(buf, "<br><br></font></td></tr>", 1, 0);
     
    14941494        struct channel* chnode = NULL;
    14951495        struct tm *loctime = NULL;
    1496        
     1496
    14971497        if(param == NULL) return NULL;
    14981498
     
    15291529                ostrcatbig(&buf, "</h4></td></tr>", &maxlen, &pos);
    15301530                ostrcatbig(&buf, "<tr class=tabledesc><td width=70px align=center>Datum</td><td width=70px align=center>Uhrzeit</td><td align=left>Beschreibung</td><td width=50px align=center>Timer</td></tr>", &maxlen, &pos);
    1531         }       
    1532        
     1531        }
     1532
    15331533        while(epgnode != NULL)
    15341534        {
     
    15551555                        ostrcatbig(&buf, "</td><td nowrap class=coltime>", &maxlen, &pos);
    15561556                        ostrcatbig(&buf, buf1, &maxlen, &pos);
    1557                         free(loctime); loctime = NULL; 
    1558                        
     1557                        free(loctime); loctime = NULL;
     1558
    15591559                        ostrcatbig(&buf, "</td><td nowrap><a target=main class=link href=query?getepg&", &maxlen, &pos);
    15601560                        tmpstr = oitoa(chnode->serviceid);
     
    15871587                        ostrcatbig(&buf, "</a></td>", &maxlen, &pos);
    15881588                        ostrcatbig(&buf, buf2, &maxlen, &pos);
    1589                        
     1589
    15901590                        ostrcatbig(&buf, "<img border=0 width=16 height=16 src=img/timer.png alt=\"set timer\"/>", &maxlen, &pos);
    15911591                        ostrcatbig(&buf, "</a></td></tr>", &maxlen, &pos);
     
    16121612                        buf = ostrcat(buf, "\n", 1, 0);
    16131613                }
    1614        
     1614
    16151615                epgnode = epgnode->next;
    16161616                free(buf2); buf2 = NULL;
     
    17661766                                        ostrcatbig(&buf, epgnode->title, &maxlen, &pos);
    17671767                                        ostrcatbig(&buf, "</div></div></td>", &maxlen, &pos);
    1768                                        
     1768
    17691769                                        epgnode = epgnode->next;
    17701770                                }
     
    17941794                free(tmpnr); tmpnr = NULL;
    17951795        }
    1796        
     1796
    17971797        ostrcatbig(&buf, "</td></tr></table></center></body></html>", &maxlen, &pos);
    17981798        return buf;
     
    19311931                                        free(tmpstr); tmpstr = NULL;
    19321932                                        ostrcatbig(&buf, ">", &maxlen, &pos);
    1933        
     1933
    19341934                                        loctime = olocaltime(&epgnode->starttime);
    19351935                                        if(loctime != NULL)
     
    19431943                                        ostrcatbig(&buf, buf1, &maxlen, &pos);
    19441944                                        ostrcatbig(&buf, " ", &maxlen, &pos);
    1945        
     1945
    19461946                                        ostrcatbig(&buf, epgnode->title, &maxlen, &pos);
    19471947                                        if(chnode->name != NULL)
     
    21822182                                        if(checkbit(flag, 3) == 1)
    21832183                                        {
    2184                                                
    2185                                                 if(file_exist("/proc/stb/encoder") &&  getconfigint("web_trans_transcode", NULL) == 1)                                         
    2186                                                 {                                                                                                       
     2184
     2185                                                if(file_exist("/proc/stb/encoder") &&  getconfigint("web_trans_transcode", NULL) == 1)
     2186                                                {
    21872187                                                        ostrcatbig(&buf, "<a target=nothing href=\"query?gettranscodem3u&0,0,", &maxlen, &pos);
    21882188                                                        ostrcatbig(&buf, filelistpath->text, &maxlen, &pos);
     
    22102210                                                ostrcatbig(&buf, node->text, &maxlen, &pos);
    22112211                                                ostrcatbig(&buf, "\">", &maxlen, &pos);
    2212        
     2212
    22132213                                                ostrcatbig(&buf, "<img border=0 src=img/icon_restart.png width=16 height=16 alt=Download></a>", &maxlen, &pos);
    22142214                                        }
     
    24282428                        continue;
    24292429                }
    2430                 if(fmt == 0) 
     2430                if(fmt == 0)
    24312431                {
    24322432                        if(line == 0)
     
    24492449                                strftime(&buf1[18], MINMALLOC - 19, " %H:%M ", loctime);
    24502450                        free(loctime); loctime = NULL;
    2451        
     2451
    24522452                        ostrcatbig(&buf, "<font class=label1>", &maxlen, &pos);
    24532453                        ostrcatbig(&buf, buf1, &maxlen, &pos);
     
    25772577        struct tm* loctime = NULL;
    25782578        time_t akttime = time(NULL);
    2579        
     2579
    25802580        if(param != NULL)
    25812581        {
     
    25972597        }
    25982598
    2599                
     2599
    26002600        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);
    26012601        ostrcatbig(&buf, "<body class=body ><center>", &maxlen, &pos);
     
    26172617                ostrcatbig(&buf, epgnode->title, &maxlen, &pos);
    26182618        }
    2619         else   
     2619        else
    26202620                ostrcatbig(&buf, " ", &maxlen, &pos);
    26212621        ostrcatbig(&buf, "\" /></td></tr>", &maxlen, &pos);
     
    26482648        ostrcatbig(&buf, "\" /></td></tr>", &maxlen, &pos);
    26492649        free(buf1); buf1 = NULL;
    2650        
     2650
    26512651        if(epgnode != NULL)
    26522652                loctime =       olocaltime(&epgnode->endtime);
     
    26562656                strftime(buf2, MINMALLOC, "%H:%M %d-%m-%Y", loctime);
    26572657        free(loctime); loctime = NULL;
    2658        
     2658
    26592659        buf1 = ostrcat(buf2, NULL, 0, 0);
    26602660        ostrcatbig(&buf, "<td><font class=label>End:&nbsp;</font></td>", &maxlen, &pos);
     
    26752675                ostrcatbig(&buf, buf1, &maxlen, &pos);
    26762676                free(buf1); buf1 = NULL;
    2677                 ostrcatbig(&buf, "\" />", &maxlen, &pos); 
     2677                ostrcatbig(&buf, "\" />", &maxlen, &pos);
    26782678                ostrcatbig(&buf, "<input class=inputbox type=\"hidden\" name=\"tid\" value=\"", &maxlen, &pos);
    26792679                buf1 = ollutoa(chnode->transponderid);
     
    26892689        ostrcatbig(&buf, "\" /></td></tr>", &maxlen, &pos);
    26902690        free(buf1); buf1 = NULL;
    2691        
     2691
    26922692        ostrcatbig(&buf, "<td><font class=label>after event:&nbsp;</font></td>", &maxlen, &pos);
    26932693        ostrcatbig(&buf, "<td><select name=\"afterevent\" border=0><option selected>", &maxlen, &pos);
    26942694        ostrcatbig(&buf, "auto", &maxlen, &pos);
    26952695        ostrcatbig(&buf, "<option>auto<option>nothing<option>standby<option>off</select></td></tr>", &maxlen, &pos);
    2696        
     2696
    26972697        ostrcatbig(&buf, "</table><br><br><input class=button type=submit name=send value=\"Send\" onClick=\"return checkdaytime(begin.value, end.value)\"></input>&nbsp;<input class=button type=reset name=reset value=\"Reset\"></input></form></center></body></html>", &maxlen, &pos);
    26982698
     
    27062706        int maxlen = 0, pos = 0, channelfind = 0;
    27072707        struct channel *channel1 = NULL;
    2708        
     2708
    27092709        anode = ostrstr(param, "node=");
    27102710        if(anode != NULL)
     
    27282728        if(ext != NULL)
    27292729                ext = ext + 4;
    2730         afterevent = ostrstr(param, "afterevent="); 
     2730        afterevent = ostrstr(param, "afterevent=");
    27312731        if(afterevent != NULL)
    27322732                afterevent = afterevent + 11;
     
    27432743                        *string++ = '\0';
    27442744        }
    2745        
     2745
    27462746        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);
    27472747        ostrcatbig(&buf, "<body class=body ><center>", &maxlen, &pos);
    27482748        ostrcatbig(&buf, "<form name=F1 action=query method=get><br><br>", &maxlen, &pos);
    2749        
     2749
    27502750        if(anode != NULL)
    27512751        {
     
    27542754                ostrcatbig(&buf, "\" />", &maxlen, &pos);
    27552755        }
    2756        
     2756
    27572757        if(name != NULL)
    2758         {       
     2758        {
    27592759                ostrcatbig(&buf, "<input type=\"hidden\" name=\"name\" value=\"", &maxlen, &pos);
    27602760                ostrcatbig(&buf, name, &maxlen, &pos);
    27612761                ostrcatbig(&buf, "\" />", &maxlen, &pos);
    27622762        }
    2763        
     2763
    27642764        if(begin != NULL)
    27652765        {
     
    27682768                ostrcatbig(&buf, "\" />", &maxlen, &pos);
    27692769        }
    2770        
     2770
    27712771        if(end != NULL)
    27722772        {
    27732773                ostrcatbig(&buf, "<input type=\"hidden\" name=\"end\" value=\"", &maxlen, &pos);
    2774                 ostrcatbig(&buf, end, &maxlen, &pos);             
     2774                ostrcatbig(&buf, end, &maxlen, &pos);
    27752775                ostrcatbig(&buf, "\" />", &maxlen, &pos);
    27762776        }
    2777        
     2777
    27782778        if(type != NULL)
    27792779        {
     
    27822782                ostrcatbig(&buf, "\" />", &maxlen, &pos);
    27832783        }
    2784        
     2784
    27852785        if(ext != NULL)
    27862786        {
     
    27892789                ostrcatbig(&buf, "\" />", &maxlen, &pos);
    27902790        }
    2791        
     2791
    27922792        if(afterevent != NULL)
    27932793        {
     
    27962796                ostrcatbig(&buf, "\" />", &maxlen, &pos);
    27972797        }
    2798        
     2798
    27992799        if(repeat != NULL)
    28002800        {
     
    28032803                ostrcatbig(&buf, "\" />", &maxlen, &pos);
    28042804        }
    2805        
     2805
    28062806        ostrcatbig(&buf, "<table border=\"0\"><tr>", &maxlen, &pos);
    28072807        ostrcatbig(&buf, "<td><select name=sid size=10 border=0>", &maxlen, &pos);
    2808        
     2808
    28092809        /*
    2810         channel1 = channel;             
     2810        channel1 = channel;
    28112811        while(channel1 != NULL)
    28122812        {
     
    28172817                        else
    28182818                                ostrcatbig(&buf, "<option value=\"", &maxlen, &pos);
    2819                        
     2819
    28202820                        buf1 = oitoa(channel1->serviceid);
    28212821                        ostrcatbig(&buf, buf1, &maxlen, &pos);
     
    28262826                        free(buf1); buf1 = NULL;
    28272827                        ostrcatbig(&buf, "\">", &maxlen, &pos);
    2828                        
     2828
    28292829                        ostrcatbig(&buf, channel1->name, &maxlen, &pos);
    28302830                        ostrcatbig(&buf, " (", &maxlen, &pos);
    2831                        
     2831
    28322832                        //get satname from channel
    28332833                        if(channel1->transponder != NULL)
     
    28382838                                else
    28392839                                        ostrcatbig(&buf, _("unknown"), &maxlen, &pos);
    2840                                        
     2840
    28412841                                if(channel1->provider != NULL)
    2842                                         ostrcatbig(&buf, " - ", &maxlen, &pos);                 
     2842                                        ostrcatbig(&buf, " - ", &maxlen, &pos);
    28432843                        }
    2844                        
     2844
    28452845                        //get provider from channel
    28462846                        if(channel1->provider != NULL)
     
    28492849                                        ostrcatbig(&buf, channel1->provider->name, &maxlen, &pos);
    28502850                                else
    2851                                         ostrcatbig(&buf, _("unknown"), &maxlen, &pos);                 
     2851                                        ostrcatbig(&buf, _("unknown"), &maxlen, &pos);
    28522852                        }
    2853                        
    2854                         ostrcatbig(&buf, ")", &maxlen, &pos);   
    2855                        
     2853
     2854                        ostrcatbig(&buf, ")", &maxlen, &pos);
     2855
    28562856                        channelfind++;
    28572857                }
     
    28592859        }
    28602860        */
    2861        
     2861
    28622862        if(channelfind == 0)
    28632863        {
    2864                 channel1 = channel;             
     2864                channel1 = channel;
    28652865                while(channel1 != NULL)
    28662866                {
     
    28712871                                else
    28722872                                        ostrcatbig(&buf, "<option value=\"", &maxlen, &pos);
    2873                                
     2873
    28742874                                buf1 = oitoa(channel1->serviceid);
    28752875                                ostrcatbig(&buf, buf1, &maxlen, &pos);
     
    28802880                                free(buf1); buf1 = NULL;
    28812881                                ostrcatbig(&buf, "\">", &maxlen, &pos);
    2882                                
     2882
    28832883                                ostrcatbig(&buf, channel1->name, &maxlen, &pos);
    28842884                                ostrcatbig(&buf, " (", &maxlen, &pos);
    2885                                
     2885
    28862886                                //get satname from channel
    28872887                                if(channel1->transponder != NULL)
     
    28922892                                        else
    28932893                                                ostrcatbig(&buf, _("unknown"), &maxlen, &pos);
    2894                                                
     2894
    28952895                                        if(channel1->provider != NULL)
    2896                                                 ostrcatbig(&buf, " - ", &maxlen, &pos);                 
     2896                                                ostrcatbig(&buf, " - ", &maxlen, &pos);
    28972897                                }
    2898                                
     2898
    28992899                                //get provider from channel
    29002900                                if(channel1->provider != NULL)
     
    29032903                                                ostrcatbig(&buf, channel1->provider->name, &maxlen, &pos);
    29042904                                        else
    2905                                                 ostrcatbig(&buf, _("unknown"), &maxlen, &pos);                 
     2905                                                ostrcatbig(&buf, _("unknown"), &maxlen, &pos);
    29062906                                }
    2907                                
    2908                                 ostrcatbig(&buf, ")", &maxlen, &pos);   
    2909                                
     2907
     2908                                ostrcatbig(&buf, ")", &maxlen, &pos);
     2909
    29102910                                channelfind++;
    29112911                        }
     
    29132913                }
    29142914        }
    2915        
     2915
    29162916        ostrcatbig(&buf, "</td></tr></table><br><br></select><input class=button type=submit name=send value=\"Send\" onClick=\"return checkdaytime(begin.value, end.value)\"></input>&nbsp;<input class=button type=reset name=reset value=\"Reset\"></input></form></center></body></html>", &maxlen, &pos);
    29172917
     
    29192919        {
    29202920                free(buf); buf = NULL;
    2921                 buf = webrectimersend(param1, fmt);     
     2921                buf = webrectimersend(param1, fmt);
    29222922                free(param1); param1 = NULL;
    29232923        }
    29242924
    2925         return buf;             
     2925        return buf;
    29262926}
    29272927
     
    29622962        if(ext != NULL)
    29632963                ext = ext + 4;
    2964         afterevent = ostrstr(param, "afterevent="); 
     2964        afterevent = ostrstr(param, "afterevent=");
    29652965        if(afterevent != NULL)
    29662966                afterevent = afterevent + 11;
     
    29682968        if(repeat != NULL)
    29692969                repeat = repeat + 7;
    2970        
    2971         string = param; 
     2970
     2971        string = param;
    29722972        while(string != NULL)
    2973         {       
     2973        {
    29742974                string = strchr(string, '&');
    29752975                if(string != NULL)
    29762976                        *string++ = '\0';
    29772977        }
    2978        
     2978
    29792979        if((sid == NULL && tid != NULL) || (sid != NULL && tid == NULL))
    29802980        {
    2981                 buf = ostrcat(buf, "ERROR: sid and tid required or only channel", 1, 0);       
     2981                buf = ostrcat(buf, "ERROR: sid and tid required or only channel", 1, 0);
    29822982                return buf;
    29832983        }
    2984                
     2984
    29852985        if(channelname != NULL && sid == NULL)
    29862986        {
     
    29982998                if(channelfind == 0)
    29992999                {
    3000                         channel1 = channel;             
     3000                        channel1 = channel;
    30013001                        while(channel1 != NULL)
    30023002                        {
     
    30113011                if(channelfind == 0)
    30123012                {
    3013                         buf = ostrcat(buf, "ERROR: channel not found", 1, 0);   
     3013                        buf = ostrcat(buf, "ERROR: channel not found", 1, 0);
    30143014                        return buf;
    30153015                }
    30163016        }
    3017        
     3017
    30183018        newnode = 0;
    30193019        node = getrectimerbytimestamp(anode);
     
    30303030                }
    30313031        }
    3032        
     3032
    30333033        if(node != NULL)
    30343034        {
     
    30393039                        node->transponderid = channel1->transponderid;
    30403040                }
    3041        
     3041
    30423042                if(sid != NULL && tid != NULL)
    30433043                {
     
    30463046                        node->servicetype = 0;
    30473047                }
    3048        
     3048
    30493049                free(node->name); node->name = NULL;
    30503050                node->name = ostrcat(name, NULL, 0, 0);
    3051        
     3051
    30523052                if(ostrcmp(type, "record") == 0)
    30533053                        node->justplay = 0;
    30543054                else
    30553055                        node->justplay = 1;
    3056                        
     3056
    30573057                if(afterevent != NULL)
    30583058                {
     
    30693069                if(repeat != NULL)
    30703070                        node->repeate = atoi(repeat);
    3071        
     3071
    30723072                loctime = olocaltime(&node->begin);
    30733073                if(loctime != NULL && begin != NULL)
     
    31003100                if(newnode == 1)
    31013101                        node->disabled = 0;
    3102        
     3102
    31033103                status.writerectimer = 1;
    31043104                writerectimer(getconfig("rectimerfile", NULL), 0);
    3105                
     3105
    31063106                if(ext == NULL)
    31073107                        buf = webgetrectimer(NULL, 0, fmt);
     
    31273127        node = getrectimerbytimestamp(param);
    31283128        if(node == NULL) return NULL;
    3129                
     3129
    31303130        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);
    31313131        ostrcatbig(&buf, "<body class=body ><center>", &maxlen, &pos);
     
    31593159        else
    31603160                ostrcatbig(&buf, "repeate", &maxlen, &pos);
    3161         ostrcatbig(&buf, "<option>once<option>repeate</select></td></tr>", &maxlen, &pos);     
     3161        ostrcatbig(&buf, "<option>once<option>repeate</select></td></tr>", &maxlen, &pos);
    31623162        */
    3163        
     3163
    31643164        /*ostrcatbig(&buf, "<td><font class=label>Repeate type:&nbsp;</font></td>", &maxlen, &pos);
    31653165        ostrcatbig(&buf, "<td><select name=\"repeatetype\" border=0><option selected>", &maxlen, &pos);
     
    31723172        else
    31733173                ostrcatbig(&buf, "user defined", &maxlen, &pos);
    3174         ostrcatbig(&buf, "<option>daily<option>weekly<option>workdays<option>user defined</select></td></tr>", &maxlen, &pos); 
     3174        ostrcatbig(&buf, "<option>daily<option>weekly<option>workdays<option>user defined</select></td></tr>", &maxlen, &pos);
    31753175        */
    3176                
     3176
    31773177        buf2 = malloc(20);
    31783178        loctime = olocaltime(&node->begin);
     
    31873187        ostrcatbig(&buf, "\" /></td></tr>", &maxlen, &pos);
    31883188        free(buf1); buf1 = NULL;
    3189        
     3189
    31903190        loctime = olocaltime(&node->end);
    31913191        if(loctime != NULL && buf2 != NULL)
     
    32003200        free(buf1); buf1 = NULL;
    32013201        free(buf2); buf2 = NULL;
    3202        
     3202
    32033203        ostrcatbig(&buf, "<td><font class=label>after event:&nbsp;</font></td>", &maxlen, &pos);
    32043204        ostrcatbig(&buf, "<td><select name=\"afterevent\" border=0><option selected>", &maxlen, &pos);
     
    32143214                ostrcatbig(&buf, "auto", &maxlen, &pos);
    32153215        ostrcatbig(&buf, "<option>auto<option>nothing<option>standby<option>off</select></td></tr>", &maxlen, &pos);
    3216        
     3216
    32173217        ostrcatbig(&buf, "</table><br><br><input class=button type=submit name=send value=\"Send\" onClick=\"return checkdaytime(begin.value, end.value)\"></input>&nbsp;<input class=button type=reset name=reset value=\"Reset\"></input></form></center></body></html>", &maxlen, &pos);
    3218        
     3218
    32193219        //ostrcatbig(&buf, param, &maxlen, &pos);
    32203220        return buf;
     
    32263226        struct rectimer *node = NULL;
    32273227        int ext = 0;
    3228        
     3228
    32293229        timerid = ostrstr(param, "timerid=");
    32303230        if(timerid != NULL)
     
    32373237        if(ext == 1)
    32383238        {
    3239                 string = param; 
     3239                string = param;
    32403240                while(string != NULL)
    3241                 {       
     3241                {
    32423242                        string = strchr(string, '&');
    32433243                        if(string != NULL)
     
    32513251        if(node == NULL)
    32523252        {
    3253                 buf = ostrcat(buf, "ERROR: timer not found", 1, 0);     
     3253                buf = ostrcat(buf, "ERROR: timer not found", 1, 0);
    32543254                return buf;
    32553255        }
    3256        
     3256
    32573257        delrectimer(node, 1, 0);
    3258        
    3259         if(ext == 1) 
     3258
     3259        if(ext == 1)
    32603260                buf = ostrcat(buf, "ok -> timer deleted", 1, 0);
    32613261        else
    32623262                buf = webgetrectimer(NULL, 0, fmt);
    3263        
     3263
    32643264        return buf;
    32653265}
     
    32843284                {
    32853285                        FILE* datei = fopen("/tmp/textbox_standby", "a");
    3286                        
     3286
    32873287                        body = string_replace_all("\n", "\t", body, 1);
    32883288                        fprintf(datei, "%s\n%s\n%s\n%i\n%s\n%i\n%i\n%i\n%i\n%i\n%i\n%i\n%i\n%i\n", caption, body, _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), 0, 0, 0, 0, 600, 280, timeout, 0);
     
    32943294}
    32953295
    3296 void xmessage(char* filename) 
     3296void xmessage(char* filename)
    32973297{
    32983298        char* param=NULL, *param1 = NULL, *param2 = NULL, *param3 = NULL, *param4 = NULL;
     
    33443344        else
    33453345                body = ostrcat(body, " ", 1, 0);
    3346                
     3346
    33473347        if(param2 != NULL)
    33483348                timeout = ostrcat(timeout, param2, 1, 0);
    33493349        else
    33503350                timeout = ostrcat(timeout, "5", 1, 0);
    3351                
     3351
    33523352        if(param1 != NULL)
    33533353                caption = ostrcat(caption, param1, 1, 0);
    33543354        else
    33553355                caption = ostrcat(caption, "XMESSAGE", 1, 0);
    3356        
     3356
    33573357        caption = ostrcat(caption, "\t", 1, 0);
    33583358        caption = ostrcat(caption, timeout, 1, 1);
    3359                
     3359
    33603360        addtimer(&putxmessage, START, 1000, 1, (void*)caption, (void*)body, NULL);
    33613361        return;
     
    33733373{
    33743374        char* buf = NULL;
    3375        
     3375
    33763376        if(getconfig("rec_streampath", NULL) == NULL)
    33773377                buf = ostrcat(buf, "/var/media/hdd/movie", 1, 0);
     
    34303430                buf = ostrcat(buf, "</head><body class=body id=\"configinfo\">", 1, 0);
    34313431        }
    3432                                                        
     3432
    34333433        struct clist **clist = config;
    34343434
     
    34713471                buf = ostrcat(buf, "</body></html>", 1, 0);
    34723472        }
    3473        
     3473
    34743474        m_unlock(&status.clistmutex, 12);
    34753475        return buf;
     
    34823482        unsigned long long free = getfreespace(getconfig("rec_path", NULL));
    34833483        int proz = 0;
    3484        
     3484
    34853485        if(full > 0 && full >= free) proz = ((full - free) * 100) / full;
    34863486        if(proz < 0) proz = 0;
    34873487        if(proz > 100) proz = 100;
    3488                        
     3488
    34893489        buf = ostrcat(buf, getconfig("rec_path", NULL), 1, 0);
    34903490        buf = ostrcat(buf, "#", 1, 0);
     
    34933493        buf = ostrcat(buf, ollutoa(free), 1, 1);
    34943494        buf = ostrcat(buf, "#", 1, 0);
    3495         buf = ostrcat(buf, oitoa(proz), 1, 1); 
    3496         buf = ostrcat(buf, " %", 1, 0); 
     3495        buf = ostrcat(buf, oitoa(proz), 1, 1);
     3496        buf = ostrcat(buf, " %", 1, 0);
    34973497        buf = ostrcat(buf, "#", 1, 0);
    34983498
     
    35053505        char* imgversion = NULL;
    35063506
    3507         if(fmt == 0) 
     3507        if(fmt == 0)
    35083508        {
    35093509                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    35183518        buf = ostrcat(buf, OVERSION, 1, 0);
    35193519        buf = ostrcat(buf, "#", 1, 0);
    3520        
     3520
    35213521        if(isfile(getconfig("imagenamefile", NULL))     != 0)
    35223522                imgversion = readsys(getconfig("imagenamefile", NULL), 1);
    35233523        else
    35243524                imgversion = ostrcat("unknown", NULL, 0, 0);
    3525        
     3525
    35263526        buf = ostrcat(buf, imgversion, 1, 1);
    35273527        buf = ostrcat(buf, "#", 1, 0);
     
    35353535        else
    35363536                buf = ostrcat(buf, "1", 1, 0);
    3537                
     3537
    35383538  //transcode
    35393539  buf = ostrcat(buf, "#", 1, 0);
     
    35503550        {
    35513551                buf = ostrcat(buf, "</body></html>", 1, 0);
    3552         }       
    3553        
     3552        }
     3553
    35543554        return buf;
    35553555}
     
    36963696        struct splitstr* ret1 = NULL;
    36973697
    3698        
     3698
    36993699        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);
    37003700        ostrcatbig(&buf, "<body class=body ><center>", &maxlen, &pos);
     
    37173717        {
    37183718                ostrcatbig(&buf, "<option value=\"", &maxlen, &pos);
    3719                 ostrcatbig(&buf, oitoa(i), &maxlen, &pos);             
     3719                ostrcatbig(&buf, oitoa(i), &maxlen, &pos);
    37203720                if(getconfigint("volbartimeout", NULL) == i)
    3721                         ostrcatbig(&buf, "\" selected>", &maxlen, &pos);               
     3721                        ostrcatbig(&buf, "\" selected>", &maxlen, &pos);
    37223722                else
    37233723                        ostrcatbig(&buf, "\">", &maxlen, &pos);
     
    37703770        {
    37713771                ostrcatbig(&buf, "<option value=\"", &maxlen, &pos);
    3772                 ostrcatbig(&buf, oitoa(i), &maxlen, &pos);             
     3772                ostrcatbig(&buf, oitoa(i), &maxlen, &pos);
    37733773                if(getconfigint("infobarsleep", NULL) == i)
    3774                         ostrcatbig(&buf, "\" selected>", &maxlen, &pos);               
     3774                        ostrcatbig(&buf, "\" selected>", &maxlen, &pos);
    37753775                else
    37763776                        ostrcatbig(&buf, "\">", &maxlen, &pos);
     
    38023802                        tmpstr1 = ostrcat(ret1[i].part, NULL, 0, 0);
    38033803                        if(getconfigint("spinnerspeed", NULL) == atoi(tmpstr1))
    3804                                 ostrcatbig(&buf, "\" selected>", &maxlen, &pos);               
     3804                                ostrcatbig(&buf, "\" selected>", &maxlen, &pos);
    38053805                        else
    38063806                                ostrcatbig(&buf, "\">", &maxlen, &pos);
     
    38333833                        ostrcatbig(&buf, ret1[i].part, &maxlen, &pos);
    38343834                        tmpstr1 = ostrcat(ret1[i].part, NULL, 0, 0);
    3835                         if(getconfigint("spinnertime", NULL) == atoi(tmpstr1)) 
    3836                                 ostrcatbig(&buf, "\" selected>", &maxlen, &pos);               
     3835                        if(getconfigint("spinnertime", NULL) == atoi(tmpstr1))
     3836                                ostrcatbig(&buf, "\" selected>", &maxlen, &pos);
    38373837                        else
    38383838                                ostrcatbig(&buf, "\">", &maxlen, &pos);
     
    38633863                {
    38643864                        ostrcatbig(&buf, "<option value=\"", &maxlen, &pos);
    3865                         ostrcatbig(&buf, ret1[i].part, &maxlen, &pos);         
     3865                        ostrcatbig(&buf, ret1[i].part, &maxlen, &pos);
    38663866                        tmpstr1 = ostrcat(ret1[i].part, NULL, 0, 0);
    38673867                        if(getconfigint("hangtime", NULL) == atoi(tmpstr1))
    3868                                 ostrcatbig(&buf, "\" selected>", &maxlen, &pos);               
     3868                                ostrcatbig(&buf, "\" selected>", &maxlen, &pos);
    38693869                        else
    38703870                                ostrcatbig(&buf, "\">", &maxlen, &pos);
     
    38843884        ostrcatbig(&buf, _("Second Infobar"), &maxlen, &pos);
    38853885        ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"secondinfobar\" border=\"0\">", &maxlen, &pos);
    3886        
     3886
    38873887        if(getconfigint("secondinfobar", NULL) == 0)
    3888                 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     3888                ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    38893889        else
    38903890                ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
     
    38933893
    38943894        if(getconfigint("secondinfobar", NULL) == 1)
    3895                 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     3895                ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    38963896        else
    38973897                ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
     
    39003900
    39013901        if(getconfigint("secondinfobar", NULL) == 2)
    3902                 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos);               
     3902                ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos);
    39033903        else
    39043904                ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos);
     
    39073907
    39083908        if(getconfigint("secondinfobar", NULL) == 3)
    3909                 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos);               
     3909                ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos);
    39103910        else
    39113911                ostrcatbig(&buf, "<option value=\"3\">", &maxlen, &pos);
    39123912        ostrcatbig(&buf, _("Channel EPG"), &maxlen, &pos);
    39133913        ostrcatbig(&buf, "</option>", &maxlen, &pos);
    3914        
     3914
    39153915        ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    39163916        sendstr = ostrcat(sendstr, ", secondinfobar.value", 1 , 0);
     
    39223922                ostrcatbig(&buf, _("Don't clear TV on zap (only with fastzap)"), &maxlen, &pos);
    39233923                ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"nozapclear\" border=\"0\">", &maxlen, &pos);
    3924        
     3924
    39253925                if(getconfigint("nozapclear", NULL) == 0)
    3926                         ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     3926                        ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    39273927                else
    39283928                        ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
     
    39313931
    39323932                if(getconfigint("nozapclear", NULL) == 1)
    3933                         ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     3933                        ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    39343934                else
    39353935                        ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
    39363936                ostrcatbig(&buf, _("yes"), &maxlen, &pos);
    39373937                ostrcatbig(&buf, "</option>", &maxlen, &pos);
    3938        
     3938
    39393939                ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    39403940                sendstr = ostrcat(sendstr, ", nozapclear.value", 1 , 0);
     
    39453945        ostrcatbig(&buf, _("Fastzap"), &maxlen, &pos);
    39463946        ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"fastzap\" border=\"0\">", &maxlen, &pos);
    3947        
     3947
    39483948        if(getconfigint("fastzap", NULL) == 0)
    3949                 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     3949                ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    39503950        else
    39513951                ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
     
    39543954
    39553955        if(getconfigint("fastzap", NULL) == 1)
    3956                 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     3956                ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    39573957        else
    39583958                ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
     
    39613961
    39623962        if(getconfigint("fastzap", NULL) == 2)
    3963                 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos);               
     3963                ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos);
    39643964        else
    39653965                ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos);
    39663966        ostrcatbig(&buf, _("fast"), &maxlen, &pos);
    39673967        ostrcatbig(&buf, "</option>", &maxlen, &pos);
    3968        
     3968
    39693969        ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    39703970        sendstr = ostrcat(sendstr, ", fastzap.value", 1 , 0);
     
    39743974        ostrcatbig(&buf, _("Faststop"), &maxlen, &pos);
    39753975        ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"faststop\" border=\"0\">", &maxlen, &pos);
    3976        
     3976
    39773977        if(getconfigint("faststop", NULL) == 0)
    3978                 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     3978                ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    39793979        else
    39803980                ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
     
    39833983
    39843984        if(getconfigint("faststop", NULL) == 1)
    3985                 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     3985                ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    39863986        else
    39873987                ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
    39883988        ostrcatbig(&buf, _("yes"), &maxlen, &pos);
    39893989        ostrcatbig(&buf, "</option>", &maxlen, &pos);
    3990        
     3990
    39913991        ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    39923992        sendstr = ostrcat(sendstr, ", faststop.value", 1 , 0);
     
    39963996        ostrcatbig(&buf, _("Dirsort"), &maxlen, &pos);
    39973997        ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"dirsort\" border=\"0\">", &maxlen, &pos);
    3998        
     3998
    39993999        if(getconfigint("dirsort", NULL) == 0)
    4000                 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     4000                ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    40014001        else
    40024002                ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
     
    40054005
    40064006        if(getconfigint("dirsort", NULL) == 1)
    4007                 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     4007                ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    40084008        else
    40094009                ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
     
    40124012
    40134013        if(getconfigint("dirsort", NULL) == 2)
    4014                 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos);               
     4014                ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos);
    40154015        else
    40164016                ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos);
     
    40194019
    40204020        if(getconfigint("dirsort", NULL) == 3)
    4021                 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos);               
     4021                ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos);
    40224022        else
    40234023                ostrcatbig(&buf, "<option value=\"3\">", &maxlen, &pos);
     
    40264026
    40274027        if(getconfigint("dirsort", NULL) == 4)
    4028                 ostrcatbig(&buf, "<option value=\"4\" selected>", &maxlen, &pos);               
     4028                ostrcatbig(&buf, "<option value=\"4\" selected>", &maxlen, &pos);
    40294029        else
    40304030                ostrcatbig(&buf, "<option value=\"4\">", &maxlen, &pos);
    40314031        ostrcatbig(&buf, _("date"), &maxlen, &pos);
    4032         ostrcatbig(&buf, "</option>", &maxlen, &pos);   
     4032        ostrcatbig(&buf, "</option>", &maxlen, &pos);
    40334033
    40344034        if(getconfigint("dirsort", NULL) == 5)
    4035                 ostrcatbig(&buf, "<option value=\"5\" selected>", &maxlen, &pos);               
     4035                ostrcatbig(&buf, "<option value=\"5\" selected>", &maxlen, &pos);
    40364036        else
    40374037                ostrcatbig(&buf, "<option value=\"5\">", &maxlen, &pos);
    40384038        ostrcatbig(&buf, _("reverse date"), &maxlen, &pos);
    40394039        ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4040        
     4040
    40414041        ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    40424042        sendstr = ostrcat(sendstr, ", dirsort.value", 1 , 0);
     
    40464046        ostrcatbig(&buf, _("Remotecontrol Power Aktion"), &maxlen, &pos);
    40474047        ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"poweraktion\" border=\"0\">", &maxlen, &pos);
    4048        
     4048
    40494049        if(getconfigint("poweraktion", NULL) == 0)
    4050                 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     4050                ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    40514051        else
    40524052                ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
     
    40554055
    40564056        if(getconfigint("poweraktion", NULL) == 1)
    4057                 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     4057                ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    40584058        else
    40594059                ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
     
    40624062
    40634063        if(getconfigint("poweraktion", NULL) == 2)
    4064                 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos);               
     4064                ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos);
    40654065        else
    40664066                ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos);
     
    40694069
    40704070        if(getconfigint("poweraktion", NULL) == 3)
    4071                 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos);               
     4071                ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos);
    40724072        else
    40734073                ostrcatbig(&buf, "<option value=\"3\">", &maxlen, &pos);
     
    40764076
    40774077        if(getconfigint("poweraktion", NULL) == 4)
    4078                 ostrcatbig(&buf, "<option value=\"4\" selected>", &maxlen, &pos);               
     4078                ostrcatbig(&buf, "<option value=\"4\" selected>", &maxlen, &pos);
    40794079        else
    40804080                ostrcatbig(&buf, "<option value=\"4\">", &maxlen, &pos);
    40814081        ostrcatbig(&buf, _("GUI Restart"), &maxlen, &pos);
    4082         ostrcatbig(&buf, "</option>", &maxlen, &pos);   
    4083        
     4082        ostrcatbig(&buf, "</option>", &maxlen, &pos);
     4083
    40844084        ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    40854085        sendstr = ostrcat(sendstr, ", poweraktion.value", 1 , 0);
     
    40894089        ostrcatbig(&buf, _("Frontpanel Power Aktion"), &maxlen, &pos);
    40904090        ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"frontpoweraktion\" border=\"0\">", &maxlen, &pos);
    4091        
     4091
    40924092        if(getconfigint("frontpoweraktion", NULL) == 1)
    4093                 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     4093                ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    40944094        else
    40954095                ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
     
    40984098
    40994099        if(getconfigint("frontpoweraktion", NULL) == 2)
    4100                 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos);               
     4100                ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos);
    41014101        else
    41024102                ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos);
     
    41114111        ostrcatbig(&buf, _("Virtualzap Timeout"), &maxlen, &pos);
    41124112        ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"virtualzap\" border=\"0\">", &maxlen, &pos);
    4113        
     4113
    41144114        if(getconfigint("virtualzap", NULL) == 0)
    4115                 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     4115                ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    41164116        else
    41174117                ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
    4118         ostrcatbig(&buf, _("deaktiv"), &maxlen, &pos);
     4118        ostrcatbig(&buf, _("disable"), &maxlen, &pos);
    41194119        ostrcatbig(&buf, "</option>", &maxlen, &pos);
    41204120
    41214121        if(getconfigint("virtualzap", NULL) == 1)
    4122                 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     4122                ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    41234123        else
    41244124                ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
     
    41274127
    41284128        if(getconfigint("virtualzap", NULL) == 2)
    4129                 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos);               
     4129                ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos);
    41304130        else
    41314131                ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos);
     
    41344134
    41354135        if(getconfigint("virtualzap", NULL) == 3)
    4136                 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos);               
     4136                ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos);
    41374137        else
    41384138                ostrcatbig(&buf, "<option value=\"3\">", &maxlen, &pos);
    41394139        ostrcatbig(&buf, _("endless"), &maxlen, &pos);
    41404140        ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4141        
     4141
    41424142        ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    41434143        sendstr = ostrcat(sendstr, ", virtualzap.value", 1 , 0);
    4144        
     4144
    41454145///////////////////
    41464146        ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos);
    41474147        ostrcatbig(&buf, _("Fast Text Render"), &maxlen, &pos);
    41484148        ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"fasttextrender\" border=\"0\">", &maxlen, &pos);
    4149        
     4149
    41504150        if(getconfigint("fasttextrender", NULL) == 0)
    4151                 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     4151                ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    41524152        else
    41534153                ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
     
    41564156
    41574157        if(getconfigint("fasttextrender", NULL) == 1)
    4158                 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     4158                ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    41594159        else
    41604160                ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
    41614161        ostrcatbig(&buf, _("yes"), &maxlen, &pos);
    41624162        ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4163        
     4163
    41644164        ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    41654165        sendstr = ostrcat(sendstr, ", fasttextrender.value", 1 , 0);
     
    41714171                ostrcatbig(&buf, _("Record Split Size"), &maxlen, &pos);
    41724172                ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"recsplitsize\" border=\"0\">", &maxlen, &pos);
    4173                
     4173
    41744174                if(getconfigint("recsplitsize", NULL) == 0)
    4175                         ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     4175                        ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    41764176                else
    41774177                        ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
    4178                 ostrcatbig(&buf, _("deaktiv"), &maxlen, &pos);
     4178                ostrcatbig(&buf, _("disable"), &maxlen, &pos);
    41794179                ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4180        
     4180
    41814181                if(getconfigint("recsplitsize", NULL) == 1)
    4182                         ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     4182                        ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    41834183                else
    41844184                        ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
    41854185                ostrcatbig(&buf, _("1 GB"), &maxlen, &pos);
    41864186                ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4187        
     4187
    41884188                if(getconfigint("recsplitsize", NULL) == 2)
    4189                         ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos);               
     4189                        ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos);
    41904190                else
    41914191                        ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos);
    41924192                ostrcatbig(&buf, _("2 GB"), &maxlen, &pos);
    41934193                ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4194        
     4194
    41954195                if(getconfigint("recsplitsize", NULL) == 3)
    4196                         ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos);               
     4196                        ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos);
    41974197                else
    41984198                        ostrcatbig(&buf, "<option value=\"3\">", &maxlen, &pos);
    41994199                ostrcatbig(&buf, _("3 GB"), &maxlen, &pos);
    42004200                ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4201        
     4201
    42024202                if(getconfigint("recsplitsize", NULL) == 4)
    4203                         ostrcatbig(&buf, "<option value=\"4\" selected>", &maxlen, &pos);               
     4203                        ostrcatbig(&buf, "<option value=\"4\" selected>", &maxlen, &pos);
    42044204                else
    42054205                        ostrcatbig(&buf, "<option value=\"4\">", &maxlen, &pos);
    42064206                ostrcatbig(&buf, _("4 GB"), &maxlen, &pos);
    4207                 ostrcatbig(&buf, "</option>", &maxlen, &pos);   
    4208                
     4207                ostrcatbig(&buf, "</option>", &maxlen, &pos);
     4208
    42094209                ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    42104210                sendstr = ostrcat(sendstr, ", recsplitsize.value", 1 , 0);
     
    42124212///////////////////
    42134213                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);
    4214        
     4214
    42154215                ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos);
    42164216                ostrcatbig(&buf, _("Record Forerun (min)"), &maxlen, &pos);
    42174217                ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"recforerun\" border=\"0\">", &maxlen, &pos);
    4218        
     4218
    42194219                count = 0;
    42204220                ret1 = strsplit(tmpstr, "\n", &count);
    42214221                max = count - 1;
    4222        
     4222
    42234223                if(ret1 != NULL)
    42244224                {
     
    42264226                        {
    42274227                                ostrcatbig(&buf, "<option value=\"", &maxlen, &pos);
    4228                                 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos);         
     4228                                ostrcatbig(&buf, ret1[i].part, &maxlen, &pos);
    42294229                                tmpstr1 = ostrcat(ret1[i].part, NULL, 0, 0);
    42304230                                if(getconfigint("recforerun", NULL) == atoi(tmpstr1))
    4231                                         ostrcatbig(&buf, "\" selected>", &maxlen, &pos);               
     4231                                        ostrcatbig(&buf, "\" selected>", &maxlen, &pos);
    42324232                                else
    42334233                                        ostrcatbig(&buf, "\">", &maxlen, &pos);
     
    42444244///////////////////
    42454245                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);
    4246        
     4246
    42474247                ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos);
    42484248                ostrcatbig(&buf, _("Record Overrun (min)"), &maxlen, &pos);
    42494249                ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"recoverrun\" border=\"0\">", &maxlen, &pos);
    4250        
     4250
    42514251                count = 0;
    42524252                ret1 = strsplit(tmpstr, "\n", &count);
    42534253                max = count - 1;
    4254        
     4254
    42554255                if(ret1 != NULL)
    42564256                {
     
    42584258                        {
    42594259                                ostrcatbig(&buf, "<option value=\"", &maxlen, &pos);
    4260                                 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos);         
     4260                                ostrcatbig(&buf, ret1[i].part, &maxlen, &pos);
    42614261                                tmpstr1 = ostrcat(ret1[i].part, NULL, 0, 0);
    42624262                                if(getconfigint("recoverrun", NULL) == atoi(tmpstr1))
    4263                                         ostrcatbig(&buf, "\" selected>", &maxlen, &pos);               
     4263                                        ostrcatbig(&buf, "\" selected>", &maxlen, &pos);
    42644264                                else
    42654265                                        ostrcatbig(&buf, "\">", &maxlen, &pos);
     
    42904290                {
    42914291                        ostrcatbig(&buf, "<option value=\"", &maxlen, &pos);
    4292                         ostrcatbig(&buf, ret1[i].part, &maxlen, &pos);         
     4292                        ostrcatbig(&buf, ret1[i].part, &maxlen, &pos);
    42934293                        tmpstr1 = ostrcat(ret1[i].part, NULL, 0, 0);
    42944294                        if(getconfigint("skip13", NULL) == atoi(tmpstr1))
    4295                                 ostrcatbig(&buf, "\" selected>", &maxlen, &pos);               
     4295                                ostrcatbig(&buf, "\" selected>", &maxlen, &pos);
    42964296                        else
    42974297                                ostrcatbig(&buf, "\">", &maxlen, &pos);
     
    43224322                {
    43234323                        ostrcatbig(&buf, "<option value=\"", &maxlen, &pos);
    4324                         ostrcatbig(&buf, ret1[i].part, &maxlen, &pos);         
     4324                        ostrcatbig(&buf, ret1[i].part, &maxlen, &pos);
    43254325                        tmpstr1 = ostrcat(ret1[i].part, NULL, 0, 0);
    43264326                        if(getconfigint("skip46", NULL) == atoi(tmpstr1))
    4327                                 ostrcatbig(&buf, "\" selected>", &maxlen, &pos);               
     4327                                ostrcatbig(&buf, "\" selected>", &maxlen, &pos);
    43284328                        else
    43294329                                ostrcatbig(&buf, "\">", &maxlen, &pos);
     
    43374337        free(tmpstr), tmpstr = NULL;
    43384338        free(tmpstr1), tmpstr1 = NULL;
    4339        
     4339
    43404340///////////////////
    43414341        tmpstr = ostrcat("15\n20\n30\n45\n60\n90\n120\n180\n300\n600\n900\n1200", NULL, 0, 0);
     
    43544354                {
    43554355                        ostrcatbig(&buf, "<option value=\"", &maxlen, &pos);
    4356                         ostrcatbig(&buf, ret1[i].part, &maxlen, &pos);         
     4356                        ostrcatbig(&buf, ret1[i].part, &maxlen, &pos);
    43574357                        tmpstr1 = ostrcat(ret1[i].part, NULL, 0, 0);
    43584358                        if(getconfigint("skip79", NULL) == atoi(tmpstr1))
    4359                                 ostrcatbig(&buf, "\" selected>", &maxlen, &pos);               
     4359                                ostrcatbig(&buf, "\" selected>", &maxlen, &pos);
    43604360                        else
    43614361                                ostrcatbig(&buf, "\">", &maxlen, &pos);
     
    43694369        free(tmpstr), tmpstr = NULL;
    43704370        free(tmpstr1), tmpstr1 = NULL;
    4371        
     4371
    43724372///////////////////
    43734373        ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos);
    43744374        ostrcatbig(&buf, _("Player for .ts"), &maxlen, &pos);
    43754375        ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"playertype\" border=\"0\">", &maxlen, &pos);
    4376        
     4376
    43774377        if(getconfigint("playertype", NULL) == 0)
    4378                 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     4378                ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    43794379        else
    43804380                ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
     
    43834383
    43844384        if(getconfigint("faststop", NULL) == 1)
    4385                 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     4385                ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    43864386        else
    43874387                ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
    43884388        ostrcatbig(&buf, _("intern"), &maxlen, &pos);
    43894389        ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4390        
     4390
    43914391        ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    43924392        sendstr = ostrcat(sendstr, ", playertype.value", 1 , 0);
     
    43964396        ostrcatbig(&buf, _("Change Channelname auto."), &maxlen, &pos);
    43974397        ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"autochangechannelname\" border=\"0\">", &maxlen, &pos);
    4398        
     4398
    43994399        if(getconfigint("autochangechannelname", NULL) == 0)
    4400                 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     4400                ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    44014401        else
    44024402                ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
     
    44054405
    44064406        if(getconfigint("autochangechannelname", NULL) == 1)
    4407                 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     4407                ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    44084408        else
    44094409                ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
    44104410        ostrcatbig(&buf, _("yes"), &maxlen, &pos);
    44114411        ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4412        
     4412
    44134413        ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    44144414        sendstr = ostrcat(sendstr, ", autochangechannelname.value", 1 , 0);
     
    44204420                ostrcatbig(&buf, _("Set action after rec"), &maxlen, &pos);
    44214421                ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"def_rectimer_after\" border=\"0\">", &maxlen, &pos);
    4422                
     4422
    44234423                if(getconfigint("def_rectimer_after", NULL) == 0)
    4424                         ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     4424                        ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    44254425                else
    44264426                        ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
    44274427                ostrcatbig(&buf, _("auto"), &maxlen, &pos);
    44284428                ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4429        
     4429
    44304430                if(getconfigint("def_rectimer_after", NULL) == 1)
    4431                         ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     4431                        ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    44324432                else
    44334433                        ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
    44344434                ostrcatbig(&buf, _("nothing"), &maxlen, &pos);
    44354435                ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4436        
     4436
    44374437                if(getconfigint("def_rectimer_after", NULL) == 2)
    4438                         ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos);               
     4438                        ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos);
    44394439                else
    44404440                        ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos);
    44414441                ostrcatbig(&buf, _("standby"), &maxlen, &pos);
    44424442                ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4443        
     4443
    44444444                if(getconfigint("def_rectimer_after", NULL) == 3)
    4445                         ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos);               
     4445                        ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos);
    44464446                else
    44474447                        ostrcatbig(&buf, "<option value=\"3\">", &maxlen, &pos);
    44484448                ostrcatbig(&buf, _("power off"), &maxlen, &pos);
    44494449                ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4450                
     4450
    44514451                ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    44524452                sendstr = ostrcat(sendstr, ", def_rectimer_after.value", 1 , 0);
     
    44564456        ostrcatbig(&buf, _("Show Timeline in Channellist"), &maxlen, &pos);
    44574457        ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"showchanneltimeline\" border=\"0\">", &maxlen, &pos);
    4458        
     4458
    44594459        if(getconfigint("showchanneltimeline", NULL) == 0)
    4460                 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     4460                ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    44614461        else
    44624462                ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
     
    44654465
    44664466        if(getconfigint("showchanneltimeline", NULL) == 1)
    4467                 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     4467                ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    44684468        else
    44694469                ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
    44704470        ostrcatbig(&buf, _("yes"), &maxlen, &pos);
    44714471        ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4472        
     4472
    44734473        ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    44744474        sendstr = ostrcat(sendstr, ", showchanneltimeline.value", 1 , 0);
     
    44794479        ostrcatbig(&buf, _("Animated Screens"), &maxlen, &pos);
    44804480        ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"screenanim\" border=\"0\">", &maxlen, &pos);
    4481        
     4481
    44824482        if(getconfigint("screenanim", NULL) == 0)
    4483                 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     4483                ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    44844484        else
    44854485                ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
     
    44884488
    44894489        if(getconfigint("screenanim", NULL) == 1)
    4490                 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     4490                ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    44914491        else
    44924492                ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
     
    44954495
    44964496        if(getconfigint("screenanim", NULL) == 2)
    4497                 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos);               
     4497                ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos);
    44984498        else
    44994499                ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos);
     
    45024502
    45034503        if(getconfigint("screenanim", NULL) == 3)
    4504                 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos);               
     4504                ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos);
    45054505        else
    45064506                ostrcatbig(&buf, "<option value=\"3\">", &maxlen, &pos);
    45074507        ostrcatbig(&buf, _("anim. both"), &maxlen, &pos);
    45084508        ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4509        
     4509
    45104510        ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    45114511        sendstr = ostrcat(sendstr, ", screenanim.value", 1 , 0);
     
    45154515        ostrcatbig(&buf, _("Animated Speed"), &maxlen, &pos);
    45164516        ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"screenanimspeed\" border=\"0\">", &maxlen, &pos);
    4517        
     4517
    45184518        if(getconfigint("screenanimspeed", NULL) == 1)
    4519                 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     4519                ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    45204520        else
    45214521                ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
     
    45244524
    45254525        if(getconfigint("screenanimspeed", NULL) == 5)
    4526                 ostrcatbig(&buf, "<option value=\"5\" selected>", &maxlen, &pos);               
     4526                ostrcatbig(&buf, "<option value=\"5\" selected>", &maxlen, &pos);
    45274527        else
    45284528                ostrcatbig(&buf, "<option value=\"5\">", &maxlen, &pos);
     
    45314531
    45324532        if(getconfigint("screenanimspeed", NULL) == 10)
    4533                 ostrcatbig(&buf, "<option value=\"10\" selected>", &maxlen, &pos);             
     4533                ostrcatbig(&buf, "<option value=\"10\" selected>", &maxlen, &pos);
    45344534        else
    45354535                ostrcatbig(&buf, "<option value=\"10\">", &maxlen, &pos);
     
    45384538
    45394539        if(getconfigint("screenanimspeed", NULL) == 15)
    4540                 ostrcatbig(&buf, "<option value=\"15\" selected>", &maxlen, &pos);             
     4540                ostrcatbig(&buf, "<option value=\"15\" selected>", &maxlen, &pos);
    45414541        else
    45424542                ostrcatbig(&buf, "<option value=\"15\">", &maxlen, &pos);
     
    45454545
    45464546        if(getconfigint("screenanimspeed", NULL) == 20)
    4547                 ostrcatbig(&buf, "<option value=\"20\" selected>", &maxlen, &pos);             
     4547                ostrcatbig(&buf, "<option value=\"20\" selected>", &maxlen, &pos);
    45484548        else
    45494549                ostrcatbig(&buf, "<option value=\"20\">", &maxlen, &pos);
    45504550        ostrcatbig(&buf, _("very slow"), &maxlen, &pos);
    45514551        ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4552        
     4552
    45534553        ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    45544554        sendstr = ostrcat(sendstr, ", screenanimspeed.value", 1 , 0);
     
    45584558        ostrcatbig(&buf, _("Channellist view"), &maxlen, &pos);
    45594559        ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"channellistview\" border=\"0\">", &maxlen, &pos);
    4560        
     4560
    45614561        if(getconfigint("channellistview", NULL) == 0)
    4562                 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     4562                ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    45634563        else
    45644564                ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
     
    45674567
    45684568        if(getconfigint("channellistview", NULL) == 1)
    4569                 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     4569                ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    45704570        else
    45714571                ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
    45724572        ostrcatbig(&buf, _("deaktiv"), &maxlen, &pos);
    45734573        ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4574        
     4574
    45754575        ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    45764576        sendstr = ostrcat(sendstr, ", channellistview.value", 1 , 0);
     
    45804580        ostrcatbig(&buf, _("Show last pos Question"), &maxlen, &pos);
    45814581        ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"showlastpos\" border=\"0\">", &maxlen, &pos);
    4582        
     4582
    45834583        if(getconfigint("showlastpos", NULL) == 0)
    4584                 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     4584                ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    45854585        else
    45864586                ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
     
    45894589
    45904590        if(getconfigint("showlastpos", NULL) == 1)
    4591                 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     4591                ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    45924592        else
    45934593                ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
    45944594        ostrcatbig(&buf, _("yes"), &maxlen, &pos);
    45954595        ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4596        
     4596
    45974597        ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    45984598        sendstr = ostrcat(sendstr, ", showlastpos.value", 1 , 0);
     
    46044604                ostrcatbig(&buf, _("Resync Recording immediately"), &maxlen, &pos);
    46054605                ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"recsync\" border=\"0\">", &maxlen, &pos);
    4606                
     4606
    46074607                if(getconfigint("recsync", NULL) == 0)
    4608                         ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     4608                        ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    46094609                else
    46104610                        ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
    46114611                ostrcatbig(&buf, _("no"), &maxlen, &pos);
    46124612                ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4613        
     4613
    46144614                if(getconfigint("recsync", NULL) == 1)
    4615                         ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     4615                        ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    46164616                else
    46174617                        ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
    46184618                ostrcatbig(&buf, _("yes"), &maxlen, &pos);
    46194619                ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4620                
     4620
    46214621                ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    46224622                sendstr = ostrcat(sendstr, ", recsync.value", 1 , 0);
     
    46254625                ostrcatbig(&buf, _("Recording name"), &maxlen, &pos);
    46264626                ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"recordnamefmt\" border=\"0\">", &maxlen, &pos);
    4627                
     4627
    46284628                if(getconfigint("recordnamefmt", NULL) == 0)
    4629                         ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     4629                        ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    46304630                else
    46314631                        ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
    46324632                ostrcatbig(&buf, _("channel-movie"), &maxlen, &pos);
    46334633                ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4634        
     4634
    46354635                if(getconfigint("recordnamefmt", NULL) == 1)
    4636                         ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     4636                        ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    46374637                else
    46384638                        ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
    46394639                ostrcatbig(&buf, _("movie-channel"), &maxlen, &pos);
    46404640                ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4641                
     4641
    46424642                ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    46434643                sendstr = ostrcat(sendstr, ", recordnamefmt.value", 1 , 0);
     
    46474647        ostrcatbig(&buf, _("Newsletter"), &maxlen, &pos);
    46484648        ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"newsletter\" border=\"0\">", &maxlen, &pos);
    4649        
     4649
    46504650        if(getconfigint("newsletter", NULL) == 0)
    4651                 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     4651                ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    46524652        else
    46534653                ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
     
    46564656
    46574657        if(getconfigint("newsletter", NULL) == 1)
    4658                 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     4658                ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    46594659        else
    46604660                ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
    46614661        ostrcatbig(&buf, _("yes"), &maxlen, &pos);
    46624662        ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4663        
     4663
    46644664        ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    46654665        sendstr = ostrcat(sendstr, ", newsletter.value", 1 , 0);
     
    46694669        ostrcatbig(&buf, _("Show hidden files"), &maxlen, &pos);
    46704670        ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"showhiddenfiles\" border=\"0\">", &maxlen, &pos);
    4671        
     4671
    46724672        if(getconfigint("showhiddenfiles", NULL) == 0)
    4673                 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     4673                ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    46744674        else
    46754675                ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
     
    46784678
    46794679        if(getconfigint("showhiddenfiles", NULL) == 1)
    4680                 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     4680                ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    46814681        else
    46824682                ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
    46834683        ostrcatbig(&buf, _("yes"), &maxlen, &pos);
    46844684        ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4685        
     4685
    46864686        ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    46874687        sendstr = ostrcat(sendstr, ", showhiddenfiles.value", 1 , 0);
     
    46914691        ostrcatbig(&buf, _("Expert Modus"), &maxlen, &pos);
    46924692        ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"expertmodus\" border=\"0\">", &maxlen, &pos);
    4693        
     4693
    46944694        if(getconfigint("expertmodus", NULL) == 0)
    4695                 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     4695                ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    46964696        else
    46974697                ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
     
    47004700
    47014701        if(getconfigint("expertmodus", NULL) == 10)
    4702                 ostrcatbig(&buf, "<option value=\"10\" selected>", &maxlen, &pos);             
     4702                ostrcatbig(&buf, "<option value=\"10\" selected>", &maxlen, &pos);
    47034703        else
    47044704                ostrcatbig(&buf, "<option value=\"10\">", &maxlen, &pos);
     
    47074707
    47084708        if(getconfigint("expertmodus", NULL) == 11)
    4709                 ostrcatbig(&buf, "<option value=\"11\" selected>", &maxlen, &pos);             
     4709                ostrcatbig(&buf, "<option value=\"11\" selected>", &maxlen, &pos);
    47104710        else
    47114711                ostrcatbig(&buf, "<option value=\"11\">", &maxlen, &pos);
    47124712        ostrcatbig(&buf, _("expert (11)"), &maxlen, &pos);
    47134713        ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4714        
     4714
    47154715        ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    47164716        sendstr = ostrcat(sendstr, ", expertmodus.value", 1 , 0);
     
    47204720        ostrcatbig(&buf, _("Show infobar on program change"), &maxlen, &pos);
    47214721        ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"infobarprogram\" border=\"0\">", &maxlen, &pos);
    4722        
     4722
    47234723        if(getconfigint("infobarprogram", NULL) == 0)
    4724                 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     4724                ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    47254725        else
    47264726                ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
     
    47294729
    47304730        if(getconfigint("infobarprogram", NULL) == 1)
    4731                 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     4731                ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    47324732        else
    47334733                ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
    47344734        ostrcatbig(&buf, _("yes"), &maxlen, &pos);
    47354735        ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4736        
     4736
    47374737        ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    47384738        sendstr = ostrcat(sendstr, ", infobarprogram.value", 1 , 0);
     
    47424742        ostrcatbig(&buf, _("Use cross control for fast zapping and vol"), &maxlen, &pos);
    47434743        ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"crosscontrol\" border=\"0\">", &maxlen, &pos);
    4744        
     4744
    47454745        if(getconfigint("crosscontrol", NULL) == 0)
    4746                 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     4746                ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    47474747        else
    47484748                ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
     
    47514751
    47524752        if(getconfigint("crosscontrol", NULL) == 1)
    4753                 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     4753                ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    47544754        else
    47554755                ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
     
    47584758
    47594759        if(getconfigint("crosscontrol", NULL) == 2)
    4760                 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos);               
     4760                ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos);
    47614761        else
    47624762                ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos);
     
    47654765
    47664766        if(getconfigint("crosscontrol", NULL) == 3)
    4767                 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos);               
     4767                ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos);
    47684768        else
    47694769                ostrcatbig(&buf, "<option value=\"3\">", &maxlen, &pos);
     
    47724772
    47734773        if(getconfigint("crosscontrol", NULL) == 9999)
    4774                 ostrcatbig(&buf, "<option value=\"9999\" selected>", &maxlen, &pos);           
     4774                ostrcatbig(&buf, "<option value=\"9999\" selected>", &maxlen, &pos);
    47754775        else
    47764776                ostrcatbig(&buf, "<option value=\"9999\">", &maxlen, &pos);
    47774777        ostrcatbig(&buf, _("yes / vzap endless"), &maxlen, &pos);
    47784778        ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4779        
     4779
    47804780        ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    47814781        sendstr = ostrcat(sendstr, ", crosscontrol.value", 1 , 0);
    4782        
     4782
    47834783///////////////////
    47844784        if(status.security >= 1)
     
    47874787                ostrcatbig(&buf, _("Deactivate Crypt Support on Media Playback"), &maxlen, &pos);
    47884788                ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"emucontrol\" border=\"0\">", &maxlen, &pos);
    4789        
     4789
    47904790                if(getconfigint("emucontrol", NULL) == 0)
    4791                         ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     4791                        ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    47924792                else
    47934793                        ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
     
    47964796
    47974797                if(getconfigint("emucontrol", NULL) == 1)
    4798                         ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     4798                        ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    47994799                else
    48004800                        ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
    48014801                ostrcatbig(&buf, _("yes"), &maxlen, &pos);
    48024802                ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4803        
     4803
    48044804                ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    48054805                sendstr = ostrcat(sendstr, ", emucontrol.value", 1 , 0);
     
    48104810        ostrcatbig(&buf, _("Deactivate MiniTV"), &maxlen, &pos);
    48114811        ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"choiceminitv\" border=\"0\">", &maxlen, &pos);
    4812        
     4812
    48134813        if(getconfigint("choiceminitv", NULL) == 0)
    4814                 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     4814                ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    48154815        else
    48164816                ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
     
    48194819
    48204820        if(getconfigint("choiceminitv", NULL) == 1)
    4821                 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     4821                ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    48224822        else
    48234823                ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
    48244824        ostrcatbig(&buf, _("yes"), &maxlen, &pos);
    48254825        ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4826        
     4826
    48274827        ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    48284828        sendstr = ostrcat(sendstr, ", choiceminitv.value", 1 , 0);
     
    48344834                ostrcatbig(&buf, _("Activate CEC"), &maxlen, &pos);
    48354835                ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"usecec\" border=\"0\">", &maxlen, &pos);
    4836        
     4836
    48374837                if(getconfigint("usecec", NULL) == 0)
    4838                         ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     4838                        ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    48394839                else
    48404840                        ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
     
    48434843
    48444844                if(getconfigint("usecec", NULL) == 1)
    4845                         ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     4845                        ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    48464846                else
    48474847                        ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
    48484848                ostrcatbig(&buf, _("yes"), &maxlen, &pos);
    48494849                ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4850        
     4850
    48514851                ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    48524852                sendstr = ostrcat(sendstr, ", usecec.value", 1 , 0);
     
    48594859                ostrcatbig(&buf, _("SATA Connector"), &maxlen, &pos);
    48604860                ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"sataswitch\" border=\"0\">", &maxlen, &pos);
    4861        
     4861
    48624862                if(getconfigint("sataswitch", NULL) == 0)
    4863                         ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     4863                        ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    48644864                else
    48654865                        ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
     
    48684868
    48694869                if(getconfigint("sataswitch", NULL) == 1)
    4870                         ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     4870                        ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    48714871                else
    48724872                        ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
    48734873                ostrcatbig(&buf, _("intern"), &maxlen, &pos);
    48744874                ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4875        
     4875
    48764876                ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    48774877                sendstr = ostrcat(sendstr, ", sataswitch.value", 1 , 0);
     
    48874887        {
    48884888                ostrcatbig(&buf, "<option value=\"", &maxlen, &pos);
    4889                 ostrcatbig(&buf, oitoa(i), &maxlen, &pos);             
     4889                ostrcatbig(&buf, oitoa(i), &maxlen, &pos);
    48904890                if(getconfigint("playerbufferseektime", NULL) == i)
    4891                         ostrcatbig(&buf, "\" selected>", &maxlen, &pos);               
     4891                        ostrcatbig(&buf, "\" selected>", &maxlen, &pos);
    48924892                else
    48934893                        ostrcatbig(&buf, "\">", &maxlen, &pos);
    48944894                ostrcatbig(&buf, oitoa(i), &maxlen, &pos);
    48954895                ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4896         }       
     4896        }
    48974897        ostrcatbig(&buf, "</select></td></tr>", &maxlen, &pos);
    48984898        sendstr = ostrcat(sendstr, ", playerbufferseektime.value", 1 , 0);
     
    49004900///////////////////debuglevel
    49014901#ifdef BETA
    4902         char* tmpstr2 = NULL;   
    4903         struct splitstr* ret2 = NULL;   
     4902        char* tmpstr2 = NULL;
     4903        struct splitstr* ret2 = NULL;
    49044904        tmpstr = ostrcat("10\n40\n50\n55\n60\n70\n77\n80\n81\n90\n99\n100\n110\n130\n133\n150\n200\n201\n250\n270\n278\n300\n307\n333\n400\n401\n427\n444\n500\n555\n620\n777\n900\n913\n975\n4440", NULL, 0, 0);
    49054905        tmpstr2 = ostrcat(" - Minimal\n - MTD Operation/System Update\n - MediaCenter\n - Network Interface\n - Key Actions\n - Network Browser\n - Web Adjust\n - Harddisk\n - MultiImage\n - Screensaver\n - Tithek/HTTP Header/Community\n - Global\n - Stringconvert\n - TPK\n - MediaDB/IMDb/TMDb\n - ePlayer\n - DVB Devices\n - CA Device\n - HTTP Server/Stream/Record\n - Radiotext\n - ID3\n - Subtitle\n - Thumbnails\n - DVD Player\n - EPG Task\n - Old Entry\n - Newsletter\n - Framebuffer\n - Channel Scan\n - Draw Screen\n - CA\n - MediaDB\n - Mutex\n - File Operation\n - SMTP\n - PiP", NULL, 0, 0);
     
    49114911        count = 0;
    49124912        ret1 = strsplit(tmpstr, "\n", &count);
    4913         count = 0;     
     4913        count = 0;
    49144914        ret2 = strsplit(tmpstr2, "\n", &count);
    49154915        max = count - 1;
     
    49204920                {
    49214921                        ostrcatbig(&buf, "<option value=\"", &maxlen, &pos);
    4922                         ostrcatbig(&buf, ret1[i].part, &maxlen, &pos);         
     4922                        ostrcatbig(&buf, ret1[i].part, &maxlen, &pos);
    49234923                        tmpstr1 = ostrcat(ret1[i].part, NULL, 0, 0);
    49244924                        if(getconfigint("debuglevel", NULL) == atoi(tmpstr1))
    4925                                 ostrcatbig(&buf, "\" selected>", &maxlen, &pos);               
     4925                                ostrcatbig(&buf, "\" selected>", &maxlen, &pos);
    49264926                        else
    49274927                                ostrcatbig(&buf, "\">", &maxlen, &pos);
     
    49394939        free(tmpstr2), tmpstr2 = NULL;
    49404940#endif
    4941        
    4942 ///////////////////     
     4941
     4942///////////////////
    49434943#ifdef MIPSEL
    49444944        if(file_exist("/usr/bin/enigma2"))
     
    49474947                ostrcatbig(&buf, _("Dualboot Menu TitanNit / E2"), &maxlen, &pos);
    49484948                ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"dualboot\" border=\"0\">", &maxlen, &pos);
    4949        
     4949
    49504950        //              if(getconfigint("dualboot", NULL) == 0)
    49514951                if(!file_exist("/mnt/config/dualboot"))
    4952                         ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);               
     4952                        ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos);
    49534953                else
    49544954                        ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos);
    49554955                ostrcatbig(&buf, _("no"), &maxlen, &pos);
    49564956                ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4957        
     4957
    49584958        //              if(getconfigint("dualboot", NULL) == 1)
    49594959                if(file_exist("/mnt/config/dualboot"))
    4960                         ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     4960                        ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);
    49614961                else
    49624962                        ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
    49634963                ostrcatbig(&buf, _("yes"), &maxlen, &pos);
    49644964                ostrcatbig(&buf, "</option>", &maxlen, &pos);
    4965        
    4966                 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 
     4965
     4966                ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    49674967                sendstr = ostrcat(sendstr, ", dualboot.value", 1 , 0);
    49684968        }
    49694969#endif
    4970        
     4970
    49714971
    49724972//      ostrcatbig(&buf, "</table><br><br><input class=button type=submit name=send value=\"Send\" onClick=\"return checkdaytime(begin.value, end.value)\"></input>&nbsp;<input class=button type=reset name=reset value=\"Reset\"></input></form></center></body></html>", &maxlen, &pos);
     
    49764976        ostrcatbig(&buf, sendstr, &maxlen, &pos);
    49774977        ostrcatbig(&buf, "\"></input>&nbsp;<input class=button type=reset name=reset value=\"Reset\"></input></form></center></body></html>", &maxlen, &pos);
    4978        
    4979        
     4978
     4979
    49804980//writesys("/tmp/tmpstr", buf, 1);
    49814981        //ostrcatbig(&buf, param, &maxlen, &pos);
     
    49934993
    49944994        tmpstr = ostrcat(param, NULL, 0, 0);
    4995        
     4995
    49964996        count = 0;
    49974997        struct splitstr* ret1 = NULL;
    49984998        ret1 = strsplit(tmpstr, "&", &count);
    49994999        max = count - 1;
    5000        
     5000
    50015001        if(ret1 != NULL)
    50025002        {
     
    50415041        free(ret1), ret1 = NULL;
    50425042        free(tmpstr), tmpstr = NULL;
    5043        
     5043
    50445044        buf = webadjust(NULL, fmt);
    50455045        writeconfigtmp();
     
    50555055        char* buf = NULL;
    50565056        char* tmpstr = NULL;
    5057        
    5058         tmpstr = ostrcat(param, NULL, 0, 0); 
     5057
     5058        tmpstr = ostrcat(param, NULL, 0, 0);
    50595059        if(tmpstr != NULL) buf = ostrstr(tmpstr, searchparam);
    5060         if(buf != NULL) buf = buf + strlen(searchparam); 
     5060        if(buf != NULL) buf = buf + strlen(searchparam);
    50615061        free(tmpstr); tmpstr = NULL;
    50625062        buf = stringreplacecharonce(buf, '&', '\0');
     
    50745074        if(status.security == 0) return NULL;
    50755075
    5076 //      if(fmt == 0) 
     5076//      if(fmt == 0)
    50775077//      {
    50785078                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    51045104        if(param == NULL) return NULL;
    51055105
    5106 //      if(fmt == 0) 
     5106//      if(fmt == 0)
    51075107//      {
    51085108                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    51285128        tmpstr = ostrcat(tmpstr, "/", 1, 0);
    51295129        tmpstr = ostrcat(tmpstr, param, 1, 0);
    5130         tmpstr = ostrcat(tmpstr, ".txt", 1, 0); 
    5131        
     5130        tmpstr = ostrcat(tmpstr, ".txt", 1, 0);
     5131
    51325132        debug(10, "file: %s", tmpstr);
    51335133        tmpstr1 = readfiletomem(tmpstr, 1);
     
    51535153{
    51545154        char* buf = NULL, *tmpstr = NULL, *helppath = NULL, *lang = NULL, *cmd = NULL;
    5155        
    5156 //      if(fmt == 0) 
     5155
     5156//      if(fmt == 0)
    51575157//      {
    51585158                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    51785178        cmd = ostrcat(cmd, lang, 1, 1);
    51795179        cmd = ostrcat(cmd, "/", 1, 0);
    5180        
     5180
    51815181        debug(10, "cmd: %s", cmd);
    51825182        tmpstr = command(cmd);
    5183        
     5183
    51845184        int count, i, max;
    51855185        count = 0;
     
    51875187        ret1 = strsplit(tmpstr, "\n", &count);
    51885188        max = count - 1;
    5189        
     5189
    51905190        buf = ostrcat(buf, "<table cellpadding=5 cellspacing=5><tr><td nowrap>", 1, 0);
    5191  
     5191
    51925192        if(ret1 != NULL)
    51935193        {
     
    52015201                        buf = ostrcat(buf, "</br></br>", 1, 0);
    52025202                }
    5203         }               
     5203        }
    52045204
    52055205// segfault ??
     
    52225222        if(status.security == 0) return NULL;
    52235223
    5224 //      if(fmt == 0) 
     5224//      if(fmt == 0)
    52255225//      {
    52265226                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    52285228                buf = ostrcat(buf, "</head><body class=body id=\"help\"><center>", 1, 0);
    52295229//      }
    5230        
     5230
    52315231        debug(10, "file: %s", param);
    52325232        tmpstr = readfiletomem(param, 1);
     
    52345234        buf = ostrcat(buf, tmpstr, 1, 0);
    52355235
    5236         free(tmpstr), tmpstr = NULL;   
     5236        free(tmpstr), tmpstr = NULL;
    52375237        buf = string_replace_all("<br>", "<br>\n", buf, 1);
    52385238
     
    52515251
    52525252        mode = atoi(param);
    5253         if(fmt == 0) 
     5253        if(fmt == 0)
    52545254        {
    52555255                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    52865286        {
    52875287                buf = ostrcat(buf, "</center></body></html>", 1, 0);
    5288         }       
    5289        
    5290         return buf;
    5291 }       
     5288        }
     5289
     5290        return buf;
     5291}
    52925292
    52935293char* webgetsysinfos(char* param, int fmt)
     
    52975297
    52985298        mode = atoi(param);
    5299         if(fmt == 0) 
     5299        if(fmt == 0)
    53005300        {
    53015301                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    53385338        {
    53395339                buf = ostrcat(buf, "</center></body></html>", 1, 0);
    5340         }       
    5341        
    5342         return buf;
    5343 }       
     5340        }
     5341
     5342        return buf;
     5343}
    53445344
    53455345char* webgetlogs(char* param, int fmt)
     
    53495349
    53505350        mode = atoi(param);
    5351         if(fmt == 0) 
     5351        if(fmt == 0)
    53525352        {
    53535353                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    53845384        {
    53855385                buf = ostrcat(buf, "</center></body></html>", 1, 0);
    5386         }       
    5387        
    5388         return buf;
    5389 }       
     5386        }
     5387
     5388        return buf;
     5389}
    53905390
    53915391char* webgetabout(int fmt)
     
    53935393        char* buf = NULL, *tmpstr = NULL;
    53945394
    5395         if(fmt == 0) 
     5395        if(fmt == 0)
    53965396        {
    53975397                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    54165416        {
    54175417                buf = ostrcat(buf, "</center></body></html>", 1, 0);
    5418         }       
    5419        
     5418        }
     5419
    54205420        return buf;
    54215421}
     
    54255425        char* buf = NULL;
    54265426
    5427         if(fmt == 0) 
     5427        if(fmt == 0)
    54285428        {
    54295429                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    54545454                buf = ostrcat(buf, node->title, 1, 0);
    54555455                buf = ostrcat(buf, " - ", 1, 0);
    5456                 buf = ostrcat(buf, node->date, 1, 0);   
     5456                buf = ostrcat(buf, node->date, 1, 0);
    54575457                buf = ostrcat(buf, "</a>", 1, 0);
    54585458                buf = ostrcat(buf, "</br></br>", 1, 0);
     
    54715471        if(fmt == 0)
    54725472                buf = ostrcat(buf, "</td></tr></table></center></body></html>", 1, 0);
    5473        
     5473
    54745474        return buf;
    54755475}
     
    54795479        char* buf = NULL, *tmpstr = NULL, *tmpstr1 = NULL;
    54805480
    5481 //      if(fmt == 0) 
     5481//      if(fmt == 0)
    54825482//      {
    54835483                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    54955495        while(node != NULL)
    54965496        {
    5497                 if(ostrcmp(oitoa(node->nr), param) == 0)       
     5497                if(ostrcmp(oitoa(node->nr), param) == 0)
    54985498                {
    54995499                        tmpstr1 = ostrcat(node->title, " - ", 0, 0);
     
    55055505        }
    55065506
    5507 //      if(fmt == 0) 
     5507//      if(fmt == 0)
    55085508//      {
    55095509                buf = ostrcat(buf, "<br>", 1, 0);
     
    55285528//      if(fmt == 0)
    55295529                buf = ostrcat(buf, "</center></body></html>", 1, 0);
    5530        
     5530
    55315531        return buf;
    55325532}
     
    55365536        char* buf = NULL, *tmpstr = NULL;
    55375537
    5538         if(fmt == 0) 
     5538        if(fmt == 0)
    55395539        {
    55405540                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    55835583        if(fmt == 0)
    55845584                buf = ostrcat(buf, "</center></body></html>", 1, 0);
    5585        
     5585
    55865586        return buf;
    55875587}
     
    55915591        char* buf = NULL, *tmpstr = NULL;
    55925592
    5593 //      if(fmt == 0) 
     5593//      if(fmt == 0)
    55945594//      {
    55955595                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    56195619        }
    56205620
    5621 //      if(fmt == 0) 
     5621//      if(fmt == 0)
    56225622//      {
    56235623                buf = ostrcat(buf, "<br>", 1, 0);
     
    56425642//      if(fmt == 0)
    56435643                buf = ostrcat(buf, "</center></body></html>", 1, 0);
    5644        
     5644
    56455645        return buf;
    56465646}
     
    57105710
    57115711        buf = ostrcat(buf, "<table cellpadding=5 cellspacing=5><tr><td nowrap>", 1, 0);
    5712  
     5712
    57135713        if(ret1 != NULL)
    57145714        {
     
    57455745                                        if(!file_exist("/var/swap/logs"))
    57465746                                                 mkdir("/var/swap/logs", 777);
    5747                                
     5747
    57485748                                        if(file_exist("/etc/.beta") && file_exist("/var/swap/logs"))
    5749                                                 cmd = ostrcat(cmd, " > /var/swap/logs/update_debug.log 2>&1", 1, 0);           
     5749                                                cmd = ostrcat(cmd, " > /var/swap/logs/update_debug.log 2>&1", 1, 0);
    57505750                                }
    57515751                                else if(checkbox("ATEMIO510") != 1 && checkbox("UFS910") != 1 && checkbox("UFS922") != 1 && checkbox("ATEVIO700") != 1 && checkbox("ATEVIO7000") != 1 && checkbox("IPBOX91") != 1 && checkbox("IPBOX900") != 1 && checkbox("IPBOX910") != 1 && checkbox("IPBOX9000") != 1)
     
    57535753                                        if(!file_exist("/mnt/logs"))
    57545754                                                 mkdir("/mnt/logs", 777);
    5755                                
     5755
    57565756                                        if(file_exist("/etc/.beta") && file_exist("/mnt/logs"))
    57575757                                                cmd = ostrcat(cmd, " > /mnt/logs/update_debug.log 2>&1", 1, 0);
     
    58315831
    58325832        free(cmd), cmd = NULL;
    5833        
     5833
    58345834//      if(fmt == 0)
    58355835                buf = ostrcat(buf, "</center></body></html>", 1, 0);
     
    58445844        char* buf = NULL;
    58455845
    5846         if(fmt == 0) 
     5846        if(fmt == 0)
    58475847        {
    58485848                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    58655865
    58665866        if(node == NULL) buf = ostrcat(buf, _("No Tpk Sections Found."), 1, 0);
    5867        
     5867
    58685868        while(node != NULL)
    58695869        {
     
    58935893        {
    58945894                buf = ostrcat(buf, "</center></body></html>", 1, 0);
    5895         }       
     5895        }
    58965896
    58975897        tpkcleantmp(0);
    58985898        status.hangtime = getconfigint("hangtime", NULL);
    5899        
     5899
    59005900        return buf;
    59015901}
     
    59085908        char* buf = NULL;
    59095909
    5910 //      if(fmt == 0) 
     5910//      if(fmt == 0)
    59115911//      {
    59125912                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    59345934        tpk_installed = tpk;
    59355935        tpk = node;
    5936                
     5936
    59375937        while(node != NULL)
    59385938        {
     
    59485948                        node_installed = node_installed->next;
    59495949                }
    5950                
     5950
    59515951                //check if tpk is in section
    59525952                if(param != NULL && ostrcmp(node->section, param) != 0)
     
    59805980//      {
    59815981                buf = ostrcat(buf, "</center></body></html>", 1, 0);
    5982 //      }       
    5983        
     5982//      }
     5983
    59845984        return buf;
    59855985}
     
    60026002        while(node != NULL)
    60036003        {
    6004                 if(ostrcmp(node->filename, param) == 0) 
     6004                if(ostrcmp(node->filename, param) == 0)
    60056005                {
    60066006                        size = node->size;
     
    60136013        }
    60146014
    6015 //      if(fmt == 0) 
     6015//      if(fmt == 0)
    60166016//      {
    60176017                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    60426042                }
    60436043        }
    6044        
     6044
    60456045        if(path == NULL || path[0] == '*' || ostrstr(path, "var") != NULL)
    60466046        {
     
    60606060                }
    60616061        }
    6062        
     6062
    60636063        if(path == NULL || path[0] == '*' || ostrstr(path, "swap") != NULL)
    60646064        {
     
    61026102        tpkcleantmp(0);
    61036103        status.hangtime = getconfigint("hangtime", NULL);
    6104        
     6104
    61056105//      if(fmt == 0)
    61066106//      {
    61076107                buf = ostrcat(buf, "</center></body></html>", 1, 0);
    6108 //      }       
    6109        
     6108//      }
     6109
    61106110        return buf;
    61116111}
     
    62106210//      {
    62116211                buf = ostrcat(buf, "</center></body></html>", 1, 0);
    6212 //      }       
    6213        
     6212//      }
     6213
    62146214        return buf;
    62156215}
     
    62226222        char* buf = NULL, *tmpstr = NULL, *tmpstr1 = NULL, *tmpstr2 = NULL, *tmpstr3 = NULL;
    62236223
    6224         if(fmt == 0) 
     6224        if(fmt == 0)
    62256225        {
    62266226                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    62336233                else
    62346234                        buf = ostrcat(buf, _("TPK media (media)"), 1, 0);
    6235                
     6235
    62366236                buf = ostrcat(buf, "</h1>", 1, 0);
    62376237                buf = ostrcat(buf, "<br>", 1, 0);
     
    62476247                addhddall();
    62486248                node = hdd;
    6249        
     6249
    62506250                while(node != NULL)
    62516251                {
     
    62546254                                tmpstr1 = ostrcat("/autofs/", node->device, 0, 0);
    62556255                                tmpstr2 = gettpktmplist(tmpstr1);
    6256        
     6256
    62576257                                if(tmpstr2 != NULL)
    62586258                                {
    62596259                                        treffer = 1;
    62606260//                                      screenextensions(2, tmpstr1, NULL, 1);
    6261                                         tmpstr3 = ostrcat(tmpstr3, tmpstr1, 1, 0);                                     
     6261                                        tmpstr3 = ostrcat(tmpstr3, tmpstr1, 1, 0);
    62626262                                        tmpstr3 = ostrcat(tmpstr3, "\n", 1, 0);
    62636263                                }
    6264        
     6264
    62656265                                free(tmpstr1); tmpstr1 = NULL;
    62666266                                free(tmpstr2); tmpstr2 = NULL;
     
    62686268                        node = node->next;
    62696269                }
    6270        
    6271                 tmpstr = gettpktmplist(tmpstr3);       
     6270
     6271                tmpstr = gettpktmplist(tmpstr3);
    62726272                free(tmpstr3), tmpstr = NULL;
    62736273        }
    6274        
     6274
    62756275        if(mode == 0)
    62766276        {
     
    62896289
    62906290        buf = ostrcat(buf, "<table cellpadding=5 cellspacing=5><tr><td nowrap>", 1, 0);
    6291  
     6291
    62926292        if(ret1 != NULL)
    62936293        {
     
    63116311        {
    63126312                buf = ostrcat(buf, "</center></body></html>", 1, 0);
    6313         }       
    6314        
     6313        }
     6314
    63156315        return buf;
    63166316}
     
    63236323        int skip;
    63246324
    6325 //      if(fmt == 0) 
     6325//      if(fmt == 0)
    63266326//      {
    63276327                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    63496349        tpk_installed = tpk;
    63506350        tpk = node;
    6351        
     6351
    63526352        while(node != NULL)
    63536353        {
     
    63916391//      {
    63926392                buf = ostrcat(buf, "</center></body></html>", 1, 0);
    6393 //      }       
    6394        
     6393//      }
     6394
    63956395        return buf;
    63966396}
     
    64756475//      {
    64766476                buf = ostrcat(buf, "</center></body></html>", 1, 0);
    6477 //      }       
    6478        
     6477//      }
     6478
    64796479        return buf;
    64806480}
     
    64886488        status.hangtime = 99999;
    64896489
    6490         if(fmt == 0) 
     6490        if(fmt == 0)
    64916491        {
    64926492                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    65056505                buf = ostrcat(buf, "<br>", 1, 0);
    65066506        }
    6507                
     6507
    65086508        writesys("/tmp/.tpk_upgrade_start", "0", 0);
    65096509        if(tpkupdate(0) != 0)
     
    65446544        {
    65456545                buf = ostrcat(buf, "</center></body></html>", 1, 0);
    6546         }       
    6547        
     6546        }
     6547
    65486548        return buf;
    65496549}
     
    65536553        char* buf = NULL, *tmpstr = NULL;
    65546554
    6555         if(fmt == 0) 
     6555        if(fmt == 0)
    65566556        {
    65576557                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    65696569        tmpstr = readfiletomem("/tmp/Service.txt", 0);
    65706570        tmpstr = ostrcat(tmpstr, "\ncomming soon...\n", 1, 0);
    6571        
     6571
    65726572        tmpstr = string_replace_all("\n", "<br>\n", tmpstr, 1);
    65736573
     
    65776577        {
    65786578                buf = ostrcat(buf, "</center></body></html>", 1, 0);
    6579         }       
    6580        
     6579        }
     6580
    65816581        return buf;
    65826582}
    65836583
    65846584char* webgetbackup(int fmt)
    6585 {       
     6585{
    65866586        if(status.security == 0) return NULL;
    65876587
    65886588        char* buf = NULL, *tmpstr = NULL;
    65896589
    6590         if(fmt == 0) 
     6590        if(fmt == 0)
    65916591        {
    65926592                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    66026602
    66036603        tmpstr = create_backup(NULL, 0);
    6604        
     6604
    66056605        tmpstr = string_replace_all("\n", "<br>\n", tmpstr, 1);
    66066606        buf = ostrcat(buf, tmpstr, 1, 1);
     
    66146614        {
    66156615                buf = ostrcat(buf, "</center></body></html>", 1, 0);
    6616         }       
    6617        
     6616        }
     6617
    66186618        return buf;
    66196619}
     
    66256625        char* buf = NULL, *tmpstr = NULL;
    66266626
    6627         if(fmt == 0) 
     6627        if(fmt == 0)
    66286628        {
    66296629                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    66506650        {
    66516651                buf = ostrcat(buf, "</center></body></html>", 1, 0);
    6652         }       
     6652        }
    66536653        return buf;
    66546654}
     
    66606660        char* buf = NULL, *tmpstr = NULL;
    66616661
    6662         if(fmt == 0) 
     6662        if(fmt == 0)
    66636663        {
    66646664                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    66736673
    66746674        tmpstr = create_backuprestore();
    6675        
     6675
    66766676        tmpstr = string_replace_all("\n", "<br>\n", tmpstr, 1);
    66776677        buf = ostrcat(buf, tmpstr, 1, 1);
     
    66906690        {
    66916691                buf = ostrcat(buf, "</center></body></html>", 1, 0);
    6692         }       
    6693        
     6692        }
     6693
    66946694        return buf;
    66956695}
     
    67126712        }
    67136713
    6714 //      if(fmt == 0) 
     6714//      if(fmt == 0)
    67156715//      {
    67166716                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    67286728//      }
    67296729
    6730         buf = ostrcat(buf, tmpstr, 1, 1);       
     6730        buf = ostrcat(buf, tmpstr, 1, 1);
    67316731
    67326732        buf = string_replace_all("\n", "<br>\n", buf, 1);
     
    67356735//      {
    67366736                buf = ostrcat(buf, "</center></body></html>", 1, 0);
    6737 //      }       
    6738        
    6739         return buf;
    6740 }
    6741        
     6737//      }
     6738
     6739        return buf;
     6740}
     6741
    67426742char* webstartplugin(char* param, int fmt)
    67436743{
    67446744        void (*startplugin)(void);
    67456745        char* buf = NULL;
    6746        
     6746
    67476747        struct skin* pluginnode = getplugin(param);
    6748        
     6748
    67496749        if(pluginnode != NULL)
    67506750        {
     
    67626762        else
    67636763                buf = ostrcat(buf, "wrong plugin name", 1, 0);
    6764                
    6765         return buf;
    6766 }
    6767        
     6764
     6765        return buf;
     6766}
     6767
    67686768char* webgetrestoredefaultlist(int fmt)
    67696769{
     
    67726772        char* buf = NULL;
    67736773
    6774         if(fmt == 0) 
     6774        if(fmt == 0)
    67756775        {
    67766776                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    68046804        {
    68056805                buf = ostrcat(buf, "</center></body></html>", 1, 0);
    6806         }       
    6807        
     6806        }
     6807
    68086808        return buf;
    68096809}
     
    68166816        int mode = atoi(param);
    68176817
    6818 //      if(fmt == 0) 
     6818//      if(fmt == 0)
    68196819//      {
    68206820                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    68376837        {
    68386838                system("touch /var/etc/.erasemtd");
    6839                 system("touch /var/etc/.backupmtd");           
     6839                system("touch /var/etc/.backupmtd");
    68406840                buf = ostrcat(buf, _("Format MNT with Backup/Restore"), 1, 0);
    68416841                buf = ostrcat(buf, "<br>", 1, 0);
     
    68616861//      {
    68626862                buf = ostrcat(buf, "</center></body></html>", 1, 0);
    6863 //      }       
    6864        
     6863//      }
     6864
    68656865        return buf;
    68666866}
     
    68726872        char* buf = NULL;
    68736873
    6874         if(fmt == 0) 
     6874        if(fmt == 0)
    68756875        {
    68766876                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    68886888        buf = ostrcat(buf, "</a>", 1, 0);
    68896889        buf = ostrcat(buf, "</br></br>", 1, 0);
    6890        
     6890
    68916891        buf = ostrcat(buf, "<a class=linelink2 href=queryraw?getchannelsettings&2 target=main>", 1, 0);
    68926892        buf = ostrcat(buf, _("Restore Default Bouquets"), 1, 0);
     
    69136913        {
    69146914                buf = ostrcat(buf, "</center></body></html>", 1, 0);
    6915         }       
    6916        
     6915        }
     6916
    69176917        return buf;
    69186918}
     
    69256925        int mode = atoi(param);
    69266926
    6927 //      if(fmt == 0) 
     6927//      if(fmt == 0)
    69286928//      {
    69296929                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    69926992//      {
    69936993                buf = ostrcat(buf, "</center></body></html>", 1, 0);
    6994 //      }       
    6995        
     6994//      }
     6995
    69966996        return buf;
    69976997}
     
    70027002        if(status.security == 0) return NULL;
    70037003
    7004 //      if(fmt == 0) 
     7004//      if(fmt == 0)
    70057005//      {
    70067006                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    70167016
    70177017        buf = ostrcat(buf, "<br><br>", 1, 0);
    7018         buf = ostrcat(buf, "<input hidden class=inputbox name=getcommand>", 1, 0);     
     7018        buf = ostrcat(buf, "<input hidden class=inputbox name=getcommand>", 1, 0);
    70197019//      buf = ostrcat(buf, "<input hidden class=inputbox name=play>", 1, 0);
    70207020        buf = ostrcat(buf, "<input class=inputbox style='width:360px' name=\"cmd\" style=\"overflow:hidden;\">", 1, 0);
     
    70357035//      tmpstr = command(param);
    70367036        buf = ostrcat(buf, tmpstr, 1, 0);
    7037         free(tmpstr), tmpstr = NULL;   
     7037        free(tmpstr), tmpstr = NULL;
    70387038
    70397039        buf = string_replace_all("\n", "<br>", buf, 1);
     
    70567056        if(cmd == NULL) return NULL;
    70577057        htmldecode(cmd, cmd);
    7058         cmd = string_replace_all("+", " ", cmd, 1);     
    7059 
    7060 //      if(fmt == 0) 
     7058        cmd = string_replace_all("+", " ", cmd, 1);
     7059
     7060//      if(fmt == 0)
    70617061//      {
    70627062                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     
    70657065                buf = ostrcat(buf, "<br>", 1, 0);
    70667066                buf = ostrcat(buf, "<h1>", 1, 0);
    7067                 buf = ostrcat(buf, cmd, 1, 0); 
     7067                buf = ostrcat(buf, cmd, 1, 0);
    70687068                buf = ostrcat(buf, "</h1>", 1, 0);
    70697069//      }
     
    70767076
    70777077        buf = ostrcat(buf, tmpstr, 1, 0);
    7078         free(tmpstr), tmpstr = NULL;   
    7079         free(cmd), cmd = NULL; 
     7078        free(tmpstr), tmpstr = NULL;
     7079        free(cmd), cmd = NULL;
    70807080
    70817081        buf = string_replace_all("\n", "<br>", buf, 1);
  • titan/titan/network.h

    r34551 r38864  
    5555                                free(*ssid); *ssid = NULL;
    5656                                *ssid = ostrcat(tmpstr, NULL, 0, 0);
    57                         }                               
     57                        }
    5858                }
    5959                tmpstr = ostrstrcase(fileline, "psk=\"");
     
    6666                                free(*key); *key = NULL;
    6767                                *key = ostrcat(tmpstr, NULL, 0, 0);
    68                         }                               
     68                        }
    6969                }
    7070                tmpstr = ostrstrcase(fileline, "wep_key0=");
     
    7979                                free(*type); *type = NULL;
    8080                                *type = ostrcat("1", NULL, 0, 0);
    81                         }                               
     81                        }
    8282                }
    8383        }
     
    9191{
    9292        char* savesettings = NULL;
    93        
     93
    9494        char* tmpstr = "\nkey_mgmt=NONE\nscan_ssid=1";
    95        
     95
    9696        if(type == 1) //WEP
    9797                tmpstr = "\nkey_mgmt=NONE\nscan_ssid=1\nwep_tx_keyidx=0\nwep_key0=";
     
    105105        savesettings = ostrcat(savesettings, "\"", 1, 0);
    106106        savesettings = ostrcat(savesettings, tmpstr, 1, 0);
    107        
     107
    108108        if(type == 2 || type == 3)
    109109                savesettings = ostrcat(savesettings, "\"", 1, 0);
     
    112112        if(type == 2 || type == 3)
    113113                savesettings = ostrcat(savesettings, "\"", 1, 0);
    114        
     114
    115115        savesettings = ostrcat(savesettings, "\n}", 1, 0);
    116116
     
    204204                        {
    205205                                debug(55, "[NETWORK] save resolv.conf: %s\n", savedns);
    206                                
     206
    207207                                savedns = ostrcat(savedns, "\n", 1, 0);
    208208                                if(dnscount == 1)
     
    211211                                        savedns = ostrcat(savedns, "options timeout:2 attempts:1", 1, 0);
    212212
    213                                
     213
    214214                                FILE* fd1 = fopen("/mnt/network/resolv.conf", "w");
    215215                                if(fd1)
     
    244244        struct skin* lan = getscreennode(network, "lan");
    245245        char* tmpstr = NULL;
    246                
     246
    247247        drawscreen(network, 0, 0);
    248248        addscreenrc(network, lan);
     
    260260                        tmpstr = ostrcat(tmpstr, "ping -c1 -W1 ", 1, 0);
    261261                        tmpstr = ostrcat(tmpstr, fixip(status.gateway, 1), 1, 0);
    262                         if(system(tmpstr) == 0) 
     262                        if(system(tmpstr) == 0)
    263263                                changetext(lan, _("OK"));
    264264                        else
     
    268268                        tmpstr = ostrcat(tmpstr, "ping -c1 -W1 ", 1, 0);
    269269                        tmpstr = ostrcat(tmpstr, "www.google.de", 1, 0);
    270                         if(system(tmpstr) == 0) 
     270                        if(system(tmpstr) == 0)
    271271                                changetext(internet, _("OK"));
    272272                        else
     
    296296        else if(flag == 1)
    297297                tmpstr = ostrcat(_("Aktivate new network config ?"), NULL, 0, 0);
    298        
     298
    299299        if(flag == 2 || textbox(_("Network"), tmpstr, _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 0, 0) == 1)
    300300        {
     
    391391        addchoicebox(type, "0", _("static"));
    392392        addchoicebox(type, "2", _("off"));
    393        
     393
    394394        addchoicebox(wol, "0", _("disable"));
    395395        addchoicebox(wol, "1", _("enable"));
    396396        setchoiceboxselection(wol, getconfig("wol", NULL));
    397                
     397
    398398        if(ostrcmp(interface, "eth0") != 0 || file_exist("/proc/stb/fp/wol") == 0)
    399399                wol->hidden = YES;
     
    493493                                system("echo disable > /proc/stb/fp/wol");
    494494                }
    495                
     495
    496496                debug(55, "save settings");
    497497                debug(55, "type: %i", tmp_type);
     
    556556        int ret = 0;
    557557        char* hostname = NULL, *newhostname = NULL, *cmd = NULL;
    558        
     558
    559559        hostname = command("hostname");
    560560        hostname = strstrip(hostname);
    561561        newhostname = textinput(NULL, hostname);
    562562        newhostname = strstrip(newhostname);
    563        
     563
    564564        if(newhostname != NULL && strlen(newhostname) > 0)
    565565        {
     
    573573                }
    574574        }
    575        
     575
    576576        if(ret != 0)
    577                         textbox(_("Message"), _("Can't change hostname !"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 0, 0);                       
    578        
     577                        textbox(_("Message"), _("Can't change hostname !"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 0, 0);
     578
    579579        free(cmd); cmd = NULL;
    580580        free(hostname); hostname = NULL;
     
    610610                        tmpstr = ostrcat(inetworknode->device, " (", 0, 0);
    611611                        if(inetworknode->type == 2)
    612                                 tmpstr = ostrcat(tmpstr, _("deaktiv"), 1, 0);
     612                                tmpstr = ostrcat(tmpstr, _("disable"), 1, 0);
    613613                        else
    614614                                tmpstr = ostrcat(tmpstr, inetworknode->ip, 1, 0);
     
    747747                        {
    748748                                if(listbox->select != NULL)
    749                                 {       
     749                                {
    750750                                        ssid->linecount = 0;
    751751                                        ssid->pagecount = 0;
     
    796796                                                ret = wlanstart();
    797797                                                clearscreen(load);
    798                                                
     798
    799799                                                if(ret == 0)
    800800                                                {
    801801                                                        net = getinetworkfirstwlan();
    802                                                         if(net != NULL) 
     802                                                        if(net != NULL)
    803803                                                        {
    804804                                                                net->type = 1; //dhcp
    805805                                                                screennetwork_adapterext(0, net->device);
    806                                                         }       
     806                                                        }
    807807                                                }
    808808                                        }
     
    878878                        drawscreen(wlan, 0, 0);
    879879                }
    880                
     880
    881881                if(rcret == getrcconfigint("rcblue", NULL) && scan == 0)
    882882                {
     
    908908                        drawscreen(wlan, 0, 0);
    909909                }
    910                
     910
    911911                if(rcret == RCTIMEOUT)
    912912                        drawscreen(wlan, 0, 0);
Note: See TracChangeset for help on using the changeset viewer.