Changeset 38864
- Timestamp:
- 09/18/16 09:26:54 (7 years ago)
- Location:
- titan/titan
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/adjust.h
r38473 r38864 6 6 int rcret = 0; 7 7 char* tmpstr = NULL; 8 8 9 9 struct skin* adjust = getscreen("adjust"); 10 10 struct skin* listbox = getscreennode(adjust, "listbox"); … … 89 89 else 90 90 fastzap->hidden = NO; 91 91 92 92 addchoicebox(fastzap, "0", _("no")); 93 93 addchoicebox(fastzap, "2", _("medium")); … … 118 118 setchoiceboxselection(frontpoweraktion, getconfig("frontpoweraktion", NULL)); 119 119 120 addchoicebox(virtualzap, "0", _("d eaktiv"));120 addchoicebox(virtualzap, "0", _("disable")); 121 121 addchoicebox(virtualzap, "1", _("1 sec")); 122 122 addchoicebox(virtualzap, "2", _("2 sec")); 123 123 addchoicebox(virtualzap, "9999", _("endless")); 124 124 setchoiceboxselection(virtualzap, getconfig("virtualzap", NULL)); 125 125 126 126 addchoicebox(fasttextrender, "0", _("no")); 127 127 addchoicebox(fasttextrender, "1", _("yes")); 128 128 setchoiceboxselection(fasttextrender, getconfig("fasttextrender", NULL)); 129 129 130 addchoicebox(recsplitsize, "0", _("d eaktiv"));130 addchoicebox(recsplitsize, "0", _("disable")); 131 131 addchoicebox(recsplitsize, "1", _("1 GB")); 132 132 addchoicebox(recsplitsize, "2", _("2 GB")); … … 149 149 changeinput(skip79, "15\n20\n30\n45\n60\n90\n120\n180\n300\n600\n900\n1200"); 150 150 setchoiceboxselection(skip79, getconfig("skip79", NULL)); 151 151 152 152 addchoicebox(playertype, "0", _("extern")); 153 153 addchoicebox(playertype, "1", _("intern")); 154 154 setchoiceboxselection(playertype, getconfig("playertype", NULL)); 155 155 156 156 addchoicebox(autochangechannelname, "0", _("no")); 157 157 addchoicebox(autochangechannelname, "1", _("yes")); … … 163 163 addchoicebox(def_rectimer_after, "3", _("power off")); 164 164 setchoiceboxselection(def_rectimer_after, getconfig("def_rectimer_after", NULL)); 165 165 166 166 addchoicebox(showchanneltimeline, "0", _("no")); 167 167 addchoicebox(showchanneltimeline, "1", _("yes")); 168 168 setchoiceboxselection(showchanneltimeline, getconfig("showchanneltimeline", NULL)); 169 169 170 170 addchoicebox(screenanim, "0", _("no")); 171 171 addchoicebox(screenanim, "1", _("anim. width")); … … 182 182 #endif 183 183 setchoiceboxselection(screenanim, getconfig("screenanim", NULL)); 184 184 185 185 addchoicebox(screenanimspeed, "1", _("very fast")); 186 186 addchoicebox(screenanimspeed, "5", _("fast")); … … 194 194 setchoiceboxselection(channellistview, getconfig("channellistview", NULL)); 195 195 196 addchoicebox(showlastpos, "0", _("no")); 196 addchoicebox(showlastpos, "0", _("no")); 197 197 addchoicebox(showlastpos, "1", _("yes")); 198 198 setchoiceboxselection(showlastpos, getconfig("showlastpos", NULL)); 199 199 200 addchoicebox(recsync, "0", _("no")); 200 addchoicebox(recsync, "0", _("no")); 201 201 addchoicebox(recsync, "1", _("yes")); 202 202 setchoiceboxselection(recsync, getconfig("recsync", NULL)); … … 256 256 else 257 257 changeinput(community_pass, "****"); 258 258 259 259 changemask(community_pass, "****"); 260 260 if(getconfig("community_pass", NULL) == NULL) … … 262 262 else 263 263 changeinput(community_pass, "****"); 264 264 265 265 266 266 // setdebuglevel … … 268 268 debuglevel->hidden = YES; 269 269 #else 270 tmpstr = ostrcat("10 - ", _("Minimal"), 0, 0); 270 tmpstr = ostrcat("10 - ", _("Minimal"), 0, 0); 271 271 addchoicebox(debuglevel, "10", tmpstr); 272 272 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); 275 275 addchoicebox(debuglevel, "40", tmpstr); 276 276 free(tmpstr), tmpstr = NULL; 277 278 tmpstr = ostrcat("50 - ", _("MediaCenter"), 0, 0); 277 278 tmpstr = ostrcat("50 - ", _("MediaCenter"), 0, 0); 279 279 addchoicebox(debuglevel, "50", tmpstr); 280 280 free(tmpstr), tmpstr = NULL; 281 282 tmpstr = ostrcat("55 - ", _("Network Interface"), 0, 0); 281 282 tmpstr = ostrcat("55 - ", _("Network Interface"), 0, 0); 283 283 addchoicebox(debuglevel, "55", tmpstr); 284 284 free(tmpstr), tmpstr = NULL; 285 286 tmpstr = ostrcat("60 - ", _("Key Actions"), 0, 0); 285 286 tmpstr = ostrcat("60 - ", _("Key Actions"), 0, 0); 287 287 addchoicebox(debuglevel, "60", tmpstr); 288 288 free(tmpstr), tmpstr = NULL; 289 290 tmpstr = ostrcat("70 - ", _("Networkbrowser"), 0, 0); 289 290 tmpstr = ostrcat("70 - ", _("Networkbrowser"), 0, 0); 291 291 addchoicebox(debuglevel, "70", tmpstr); 292 292 free(tmpstr), tmpstr = NULL; 293 294 tmpstr = ostrcat("77 - ", _("Web Adjust"), 0, 0); 293 294 tmpstr = ostrcat("77 - ", _("Web Adjust"), 0, 0); 295 295 addchoicebox(debuglevel, "77", tmpstr); 296 296 free(tmpstr), tmpstr = NULL; 297 298 tmpstr = ostrcat("80 - ", _("Harddisk"), 0, 0); 297 298 tmpstr = ostrcat("80 - ", _("Harddisk"), 0, 0); 299 299 addchoicebox(debuglevel, "80", tmpstr); 300 300 free(tmpstr), tmpstr = NULL; 301 302 tmpstr = ostrcat("81 - ", _("MultiImage"), 0, 0); 301 302 tmpstr = ostrcat("81 - ", _("MultiImage"), 0, 0); 303 303 addchoicebox(debuglevel, "81", tmpstr); 304 304 free(tmpstr), tmpstr = NULL; 305 306 tmpstr = ostrcat("90 - ", _("Screensaver"), 0, 0); 305 306 tmpstr = ostrcat("90 - ", _("Screensaver"), 0, 0); 307 307 addchoicebox(debuglevel, "90", tmpstr); 308 308 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); 311 311 addchoicebox(debuglevel, "99", tmpstr); 312 312 free(tmpstr), tmpstr = NULL; 313 314 tmpstr = ostrcat("100 - ", _("Global"), 0, 0); 313 314 tmpstr = ostrcat("100 - ", _("Global"), 0, 0); 315 315 addchoicebox(debuglevel, "100", tmpstr); 316 316 free(tmpstr), tmpstr = NULL; 317 318 tmpstr = ostrcat("110 - ", _("Stringconvert"), 0, 0); 317 318 tmpstr = ostrcat("110 - ", _("Stringconvert"), 0, 0); 319 319 addchoicebox(debuglevel, "110", tmpstr); 320 320 free(tmpstr), tmpstr = NULL; 321 322 tmpstr = ostrcat("130 - ", _("TPK"), 0, 0); 321 322 tmpstr = ostrcat("130 - ", _("TPK"), 0, 0); 323 323 addchoicebox(debuglevel, "130", tmpstr); 324 324 free(tmpstr), tmpstr = NULL; 325 326 tmpstr = ostrcat("133 - ", _("MediaDB/IMDb/TMDb"), 0, 0); 325 326 tmpstr = ostrcat("133 - ", _("MediaDB/IMDb/TMDb"), 0, 0); 327 327 addchoicebox(debuglevel, "133", tmpstr); 328 328 free(tmpstr), tmpstr = NULL; 329 330 tmpstr = ostrcat("150 - ", _("ePlayer"), 0, 0); 329 330 tmpstr = ostrcat("150 - ", _("ePlayer"), 0, 0); 331 331 addchoicebox(debuglevel, "150", tmpstr); 332 332 free(tmpstr), tmpstr = NULL; 333 334 tmpstr = ostrcat("200 - ", _("DVB Devices"), 0, 0); 333 334 tmpstr = ostrcat("200 - ", _("DVB Devices"), 0, 0); 335 335 addchoicebox(debuglevel, "200", tmpstr); 336 336 free(tmpstr), tmpstr = NULL; 337 338 tmpstr = ostrcat("201 - ", _("CA Device"), 0, 0); 337 338 tmpstr = ostrcat("201 - ", _("CA Device"), 0, 0); 339 339 addchoicebox(debuglevel, "201", tmpstr); 340 340 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); 343 343 addchoicebox(debuglevel, "250", tmpstr); 344 344 free(tmpstr), tmpstr = NULL; 345 346 tmpstr = ostrcat("270 - ", _("Radiotext"), 0, 0); 345 346 tmpstr = ostrcat("270 - ", _("Radiotext"), 0, 0); 347 347 addchoicebox(debuglevel, "270", tmpstr); 348 348 free(tmpstr), tmpstr = NULL; 349 350 tmpstr = ostrcat("278 - ", _("ID3"), 0, 0); 349 350 tmpstr = ostrcat("278 - ", _("ID3"), 0, 0); 351 351 addchoicebox(debuglevel, "278", tmpstr); 352 352 free(tmpstr), tmpstr = NULL; 353 354 tmpstr = ostrcat("300 - ", _("Subtitle"), 0, 0); 353 354 tmpstr = ostrcat("300 - ", _("Subtitle"), 0, 0); 355 355 addchoicebox(debuglevel, "300", tmpstr); 356 356 free(tmpstr), tmpstr = NULL; 357 358 tmpstr = ostrcat("307 - ", _("Thumbnails"), 0, 0); 357 358 tmpstr = ostrcat("307 - ", _("Thumbnails"), 0, 0); 359 359 addchoicebox(debuglevel, "307", tmpstr); 360 360 free(tmpstr), tmpstr = NULL; 361 362 tmpstr = ostrcat("333 - ", _("DVD Player"), 0, 0); 361 362 tmpstr = ostrcat("333 - ", _("DVD Player"), 0, 0); 363 363 addchoicebox(debuglevel, "333", tmpstr); 364 364 free(tmpstr), tmpstr = NULL; 365 /* 366 tmpstr = ostrcat("369 - ", _("Facebook"), 0, 0); 365 /* 366 tmpstr = ostrcat("369 - ", _("Facebook"), 0, 0); 367 367 addchoicebox(debuglevel, "369", tmpstr); 368 368 free(tmpstr), tmpstr = NULL; 369 */ 370 tmpstr = ostrcat("400 - ", _("EPG Task"), 0, 0); 369 */ 370 tmpstr = ostrcat("400 - ", _("EPG Task"), 0, 0); 371 371 addchoicebox(debuglevel, "400", tmpstr); 372 372 free(tmpstr), tmpstr = NULL; 373 374 375 tmpstr = ostrcat("401 - ", _("Old Entry"), 0, 0); 373 374 375 tmpstr = ostrcat("401 - ", _("Old Entry"), 0, 0); 376 376 addchoicebox(debuglevel, "401", tmpstr); 377 377 free(tmpstr), tmpstr = NULL; 378 379 tmpstr = ostrcat("427 - ", _("Newsletter"), 0, 0); 378 379 tmpstr = ostrcat("427 - ", _("Newsletter"), 0, 0); 380 380 addchoicebox(debuglevel, "427", tmpstr); 381 381 free(tmpstr), tmpstr = NULL; 382 383 tmpstr = ostrcat("444 - ", _("Framebuffer"), 0, 0); 382 383 tmpstr = ostrcat("444 - ", _("Framebuffer"), 0, 0); 384 384 addchoicebox(debuglevel, "444", tmpstr); 385 385 free(tmpstr), tmpstr = NULL; 386 387 tmpstr = ostrcat("500 - ", _("Channel Scan"), 0, 0); 386 387 tmpstr = ostrcat("500 - ", _("Channel Scan"), 0, 0); 388 388 addchoicebox(debuglevel, "500", tmpstr); 389 389 free(tmpstr), tmpstr = NULL; 390 391 tmpstr = ostrcat("555 - ", _("Draw Screen"), 0, 0); 390 391 tmpstr = ostrcat("555 - ", _("Draw Screen"), 0, 0); 392 392 addchoicebox(debuglevel, "555", tmpstr); 393 393 free(tmpstr), tmpstr = NULL; 394 395 tmpstr = ostrcat("620 - ", _("CA"), 0, 0); 394 395 tmpstr = ostrcat("620 - ", _("CA"), 0, 0); 396 396 addchoicebox(debuglevel, "620", tmpstr); 397 397 free(tmpstr), tmpstr = NULL; 398 399 tmpstr = ostrcat("777 - ", _("MediaDB"), 0, 0); 398 399 tmpstr = ostrcat("777 - ", _("MediaDB"), 0, 0); 400 400 addchoicebox(debuglevel, "777", tmpstr); 401 401 free(tmpstr), tmpstr = NULL; 402 /* 403 tmpstr = ostrcat("788 - ", _("HbbTV"), 0, 0); 402 /* 403 tmpstr = ostrcat("788 - ", _("HbbTV"), 0, 0); 404 404 addchoicebox(debuglevel, "788", tmpstr); 405 405 free(tmpstr), tmpstr = NULL; 406 */ 407 tmpstr = ostrcat("900 - ", _("Mutex"), 0, 0); 406 */ 407 tmpstr = ostrcat("900 - ", _("Mutex"), 0, 0); 408 408 addchoicebox(debuglevel, "900", tmpstr); 409 409 free(tmpstr), tmpstr = NULL; 410 411 tmpstr = ostrcat("913 - ", _("File Operation"), 0, 0); 410 411 tmpstr = ostrcat("913 - ", _("File Operation"), 0, 0); 412 412 addchoicebox(debuglevel, "913", tmpstr); 413 413 free(tmpstr), tmpstr = NULL; 414 415 tmpstr = ostrcat("975 - ", _("SMTP"), 0, 0); 414 415 tmpstr = ostrcat("975 - ", _("SMTP"), 0, 0); 416 416 addchoicebox(debuglevel, "975", tmpstr); 417 417 free(tmpstr), tmpstr = NULL; 418 419 tmpstr = ostrcat("4440 - ", _("PiP"), 0, 0); 418 419 tmpstr = ostrcat("4440 - ", _("PiP"), 0, 0); 420 420 addchoicebox(debuglevel, "4440", tmpstr); 421 421 free(tmpstr), tmpstr = NULL; 422 422 423 423 setchoiceboxselection(debuglevel, getconfig("debuglevel", NULL)); 424 424 #endif … … 456 456 else 457 457 sataswitch->hidden = YES; 458 458 459 459 addchoicebox(playerbuffersize, "0", _("no")); 460 460 addchoicebox(playerbuffersize, "524288", "512KB"); … … 469 469 addchoicebox(playerbuffersize, "5242880", "5MB"); 470 470 setchoiceboxselection(playerbuffersize, getconfig("playerbuffersize", NULL)); 471 471 472 472 addchoicebox(playerbufferseektime, "0", "0"); 473 473 addchoicebox(playerbufferseektime, "1", "1"); … … 499 499 addconfigscreen("infobartimeout", infobartimeout); 500 500 addconfigscreen("infobarsleep", infobarsleep); 501 addconfigscreencheck("secondinfobar", secondinfobar, "0"); 501 addconfigscreencheck("secondinfobar", secondinfobar, "0"); 502 502 addconfigscreen("spinnerspeed", spinnerspeed); 503 503 status.spinnerspeed = getconfigint("spinnerspeed", NULL); … … 555 555 status.showhiddenfiles = getconfigint("showhiddenfiles", NULL); 556 556 addconfigscreencheck("expertmodus", expertmodus, "0"); 557 status.expertmodus = getconfigint("expertmodus", NULL); 557 status.expertmodus = getconfigint("expertmodus", NULL); 558 558 addconfigscreencheck("infobarprogram", infobarprogram, "0"); 559 559 status.infobarprogram = getconfigint("infobarprogram", NULL); -
titan/titan/epgsettings.h
r35751 r38864 87 87 clearscreen(scanlist); 88 88 struct mainbouquet* mbouquet = screenmainbouquet(); 89 89 90 90 mainbouquet2epgscanlist(mbouquet); 91 91 delmarkedscreennodes(scanlist, 1); 92 92 createepgscanlist(scanlist, listbox); 93 93 94 94 drawscreen(scanlist, 0, 0); 95 95 } … … 146 146 setchoiceboxselection(epgfreespace, getconfig("epgfreespace", NULL)); 147 147 148 addchoicebox(epglistmode, "0", _("d eaktiv"));148 addchoicebox(epglistmode, "0", _("disable")); 149 149 addchoicebox(epglistmode, "1", _("scan")); 150 150 addchoicebox(epglistmode, "2", _("whitelist")); … … 152 152 setchoiceboxselection(epglistmode, getconfig("epg_listmode", NULL)); 153 153 154 addchoicebox(epgrefresh, "0", _("d eaktiv"));154 addchoicebox(epgrefresh, "0", _("disable")); 155 155 addchoicebox(epgrefresh, "01:00", "01:00"); 156 156 addchoicebox(epgrefresh, "02:00", "02:00"); … … 178 178 addchoicebox(epgrefresh, "23:59", "24:00"); 179 179 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")); 183 183 setchoiceboxselection(epgbutton, getconfig("epgbutton", NULL)); 184 184 185 185 changeinput(epgzoom, "1\n2\n3\n4\n5\n6\n7"); 186 186 setchoiceboxselection(epgzoom, getconfig("gmultiepgzoom", NULL)); 187 187 188 188 addchoicebox(epgpicon, "0", _("no")); 189 189 addchoicebox(epgpicon, "1", _("yes")); 190 190 setchoiceboxselection(epgpicon, getconfig("epgpicon", NULL)); 191 191 192 192 addchoicebox(epgsave, "0", _("always")); 193 193 addchoicebox(epgsave, "1", _("only on power off / restart")); … … 217 217 addchoicebox(epg_afterevent, "1", _("poweroff")); 218 218 setchoiceboxselection(epg_afterevent, getconfig("epg_afterevent", NULL)); 219 219 220 220 addchoicebox(epg_primetime, "18:00", "18:00"); 221 221 addchoicebox(epg_primetime, "18:30", "18:30"); … … 228 228 229 229 b4->usesavebg = 1; 230 230 231 231 drawscreen(epgsettings, 0, 0); 232 232 addscreenrc(epgsettings, listbox); … … 242 242 b4->hidden = YES; 243 243 drawscreen(epgsettings, 0, 0); 244 244 245 245 rcret = waitrc(epgsettings, 0, 0); 246 246 tmp = listbox->select; … … 256 256 epg_afterevent->hidden = NO; 257 257 } 258 258 259 259 if(rcret == getrcconfigint("rcexit", NULL)) break; 260 260 if(rcret == getrcconfigint("rcok", NULL)) … … 284 284 else 285 285 epgscancreatetimer(); 286 286 287 287 if(getconfig("epg_refreshtime", NULL) != NULL || getconfigint("epg_afterevent", NULL) != 0) 288 { 288 { 289 289 if(getconfigint("epg_listmode", NULL) == 1 || getconfigint("epg_listmode", NULL) == 3) 290 290 { 291 291 // 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); 292 292 delconfig("epg_refreshtime"); 293 delconfig("epg_afterevent"); 293 delconfig("epg_afterevent"); 294 294 } 295 295 } -
titan/titan/httpdfunc.h
r37306 r38864 105 105 } 106 106 107 if(fmt == 0) 107 if(fmt == 0) 108 108 { 109 109 if(line == 0) … … 120 120 } 121 121 122 if(fmt == 0) 122 if(fmt == 0) 123 123 { 124 124 ostrcatbig(buf, "<td width=100% valign=middle nowrap class=link><div class=timelineborder><div class=timelinebar style=\"width: ", maxlen, pos); … … 143 143 } 144 144 145 if(fmt == 0) 145 if(fmt == 0) 146 146 { 147 147 ostrcatbig(buf, chnode->name, maxlen, pos); … … 279 279 280 280 //tv - radio 281 if(fmt == 0) 281 if(fmt == 0) 282 282 { 283 283 if(chnode->servicetype == 0) … … 285 285 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); 286 286 ostrcatbig(buf, _("TV"), maxlen, pos); 287 ostrcatbig(buf, "\" width=16 height=16>", maxlen, pos); 287 ostrcatbig(buf, "\" width=16 height=16>", maxlen, pos); 288 288 } 289 289 else … … 521 521 while(node != NULL) 522 522 { 523 if(fmt == 0) 523 if(fmt == 0) 524 524 { 525 525 if(line == 0) … … 701 701 ostrcatbig(&buf, _("Radio"), &maxlen, &pos); 702 702 } 703 703 704 704 ostrcatbig(&buf, "\" width=16 height=16>", &maxlen, &pos); 705 705 706 706 ostrcatbig(&buf, "<a href=\"query?getgmultiepg&", &maxlen, &pos); 707 707 ostrcatbig(&buf, node->name, &maxlen, &pos); … … 710 710 ostrcatbig(&buf, _("GRAPHIC MULTI EPG - Bouquets"), &maxlen, &pos); 711 711 ostrcatbig(&buf, "\" width=16 height=16></a>", &maxlen, &pos); 712 712 713 713 ostrcatbig(&buf, "<a href=\"query?getbouquetm3u&", &maxlen, &pos); 714 714 ostrcatbig(&buf, node->name, &maxlen, &pos); … … 716 716 ostrcatbig(&buf, "<img style=\"margin-left: 5\" border=0 src=img/bouquetstream.png title=\"", &maxlen, &pos); 717 717 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 720 720 ostrcatbig(&buf, "</td></tr>", &maxlen, &pos); 721 721 } … … 762 762 if(mute != status.mute) 763 763 screenmute(NULL, NULL, 0); 764 764 765 765 return buf; 766 766 } … … 910 910 struct sockaddr_in sin; 911 911 socklen_t len = sizeof(sin); 912 912 913 913 #ifdef MIPSEL 914 914 status.webencode = 0; 915 #endif 915 #endif 916 916 917 917 if(param == NULL) return NULL; … … 1009 1009 struct channel* chnode = NULL; 1010 1010 socklen_t len = sizeof(sin); 1011 1011 1012 1012 if(param == NULL) return NULL; 1013 1013 … … 1027 1027 if(ip == NULL) return NULL; 1028 1028 } 1029 1029 1030 1030 streamport = getconfig("streamport", NULL); 1031 1031 1032 1032 buf = ostrcat(buf, "#EXTM3U\n", 1, 0); 1033 1033 buf = ostrcat(buf, "#EXTVLCOPT--http-reconnect=true\n", 1, 0); 1034 1034 1035 1035 mbouquet = getmainbouquet(param); 1036 1036 if(mbouquet != NULL) … … 1134 1134 unsigned long pos = 0; // current position 1135 1135 unsigned long len = 0; // stream length 1136 1136 1137 1137 if(status.play == 1) 1138 1138 st = 1; 1139 1139 1140 1140 if(active == 1) 1141 1141 { … … 1143 1143 len = playergetlength(); 1144 1144 } 1145 1145 1146 1146 snprintf(buf, 30, "%d#%d#%lu#%lu", active, st, pos, len); 1147 1147 1148 1148 return ostrcat(buf, NULL, 0, 0); 1149 1149 } … … 1173 1173 { 1174 1174 struct tithek* (*startplugin)(char*); 1175 1175 1176 1176 startplugin = dlsym(tithekplugin->pluginhandle, "hoster"); 1177 1177 if(startplugin != NULL) … … 1188 1188 } 1189 1189 tmpbuf = ostrcat("not in play mode", NULL, 0, 0); 1190 1190 1191 1191 int count = 0; 1192 1192 if(status.timeshift == 0 && status.play == 0 && (ostrcmp("play", param) == 0 || ostrcmp("play=", param) == 0)) … … 1221 1221 if(ostrcmp("pause", param) == 0 || ostrcmp("pause=", param) == 0) 1222 1222 writerc(getrcconfigint("rcpause", NULL)); 1223 1223 1224 1224 if(ostrcmp("ff", param) == 0 || ostrcmp("ff=", param) == 0) 1225 1225 writerc(getrcconfigint("rcff", NULL)); 1226 1226 1227 1227 if(ostrcmp("fr", param) == 0 || ostrcmp("fr=", param) == 0) 1228 1228 writerc(getrcconfigint("rcfr", NULL)); … … 1235 1235 unsigned long len = 0; 1236 1236 free(tmpbuf); tmpbuf = NULL; 1237 1237 1238 1238 len = playergetlength(); 1239 1239 tmpbuf = ostrcat(buf, olutoa(len), 1, 1); 1240 1240 } 1241 1241 1242 1242 if(ostrcmp("getpos", param) == 0 || ostrcmp("getpos=", param) == 0) 1243 1243 { 1244 1244 unsigned long pos = 0; 1245 1245 free(tmpbuf); tmpbuf = NULL; 1246 1246 1247 1247 pos = playergetpts() / 90000; 1248 1248 tmpbuf = ostrcat(buf, olutoa(pos), 1, 1); 1249 1249 } 1250 1250 1251 1251 if(ostrcmp("getisplaying", param) == 0 || ostrcmp("getisplaying=", param) == 0) 1252 1252 { 1253 1253 int playing = 0; 1254 1254 free(tmpbuf); tmpbuf = NULL; 1255 1255 1256 1256 playing = playerisplaying(); 1257 1257 tmpbuf = ostrcat(buf, oitoa(playing), 1, 1); 1258 1258 } 1259 1259 1260 1260 if(ostrcmp("getplayercan", param) == 0 || ostrcmp("getplayercan=", param) == 0) 1261 1261 { … … 1275 1275 else 1276 1276 buf = ostrcat(buf, tmpbuf, 1, 1); 1277 1277 1278 1278 return buf; 1279 1279 } … … 1328 1328 else 1329 1329 buf = ostrcat(buf, "Message Send", 1, 0); 1330 1330 1331 1331 return buf; 1332 1332 } … … 1464 1464 buf = ostrcat(buf, epgnode->subtitle, 1, 0); 1465 1465 1466 if(fmt == 0) 1466 if(fmt == 0) 1467 1467 { 1468 1468 buf = ostrcat(buf, "<br><br></font></td></tr>", 1, 0); … … 1494 1494 struct channel* chnode = NULL; 1495 1495 struct tm *loctime = NULL; 1496 1496 1497 1497 if(param == NULL) return NULL; 1498 1498 … … 1529 1529 ostrcatbig(&buf, "</h4></td></tr>", &maxlen, &pos); 1530 1530 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 1533 1533 while(epgnode != NULL) 1534 1534 { … … 1555 1555 ostrcatbig(&buf, "</td><td nowrap class=coltime>", &maxlen, &pos); 1556 1556 ostrcatbig(&buf, buf1, &maxlen, &pos); 1557 free(loctime); loctime = NULL; 1558 1557 free(loctime); loctime = NULL; 1558 1559 1559 ostrcatbig(&buf, "</td><td nowrap><a target=main class=link href=query?getepg&", &maxlen, &pos); 1560 1560 tmpstr = oitoa(chnode->serviceid); … … 1587 1587 ostrcatbig(&buf, "</a></td>", &maxlen, &pos); 1588 1588 ostrcatbig(&buf, buf2, &maxlen, &pos); 1589 1589 1590 1590 ostrcatbig(&buf, "<img border=0 width=16 height=16 src=img/timer.png alt=\"set timer\"/>", &maxlen, &pos); 1591 1591 ostrcatbig(&buf, "</a></td></tr>", &maxlen, &pos); … … 1612 1612 buf = ostrcat(buf, "\n", 1, 0); 1613 1613 } 1614 1614 1615 1615 epgnode = epgnode->next; 1616 1616 free(buf2); buf2 = NULL; … … 1766 1766 ostrcatbig(&buf, epgnode->title, &maxlen, &pos); 1767 1767 ostrcatbig(&buf, "</div></div></td>", &maxlen, &pos); 1768 1768 1769 1769 epgnode = epgnode->next; 1770 1770 } … … 1794 1794 free(tmpnr); tmpnr = NULL; 1795 1795 } 1796 1796 1797 1797 ostrcatbig(&buf, "</td></tr></table></center></body></html>", &maxlen, &pos); 1798 1798 return buf; … … 1931 1931 free(tmpstr); tmpstr = NULL; 1932 1932 ostrcatbig(&buf, ">", &maxlen, &pos); 1933 1933 1934 1934 loctime = olocaltime(&epgnode->starttime); 1935 1935 if(loctime != NULL) … … 1943 1943 ostrcatbig(&buf, buf1, &maxlen, &pos); 1944 1944 ostrcatbig(&buf, " ", &maxlen, &pos); 1945 1945 1946 1946 ostrcatbig(&buf, epgnode->title, &maxlen, &pos); 1947 1947 if(chnode->name != NULL) … … 2182 2182 if(checkbit(flag, 3) == 1) 2183 2183 { 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 { 2187 2187 ostrcatbig(&buf, "<a target=nothing href=\"query?gettranscodem3u&0,0,", &maxlen, &pos); 2188 2188 ostrcatbig(&buf, filelistpath->text, &maxlen, &pos); … … 2210 2210 ostrcatbig(&buf, node->text, &maxlen, &pos); 2211 2211 ostrcatbig(&buf, "\">", &maxlen, &pos); 2212 2212 2213 2213 ostrcatbig(&buf, "<img border=0 src=img/icon_restart.png width=16 height=16 alt=Download></a>", &maxlen, &pos); 2214 2214 } … … 2428 2428 continue; 2429 2429 } 2430 if(fmt == 0) 2430 if(fmt == 0) 2431 2431 { 2432 2432 if(line == 0) … … 2449 2449 strftime(&buf1[18], MINMALLOC - 19, " %H:%M ", loctime); 2450 2450 free(loctime); loctime = NULL; 2451 2451 2452 2452 ostrcatbig(&buf, "<font class=label1>", &maxlen, &pos); 2453 2453 ostrcatbig(&buf, buf1, &maxlen, &pos); … … 2577 2577 struct tm* loctime = NULL; 2578 2578 time_t akttime = time(NULL); 2579 2579 2580 2580 if(param != NULL) 2581 2581 { … … 2597 2597 } 2598 2598 2599 2599 2600 2600 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); 2601 2601 ostrcatbig(&buf, "<body class=body ><center>", &maxlen, &pos); … … 2617 2617 ostrcatbig(&buf, epgnode->title, &maxlen, &pos); 2618 2618 } 2619 else 2619 else 2620 2620 ostrcatbig(&buf, " ", &maxlen, &pos); 2621 2621 ostrcatbig(&buf, "\" /></td></tr>", &maxlen, &pos); … … 2648 2648 ostrcatbig(&buf, "\" /></td></tr>", &maxlen, &pos); 2649 2649 free(buf1); buf1 = NULL; 2650 2650 2651 2651 if(epgnode != NULL) 2652 2652 loctime = olocaltime(&epgnode->endtime); … … 2656 2656 strftime(buf2, MINMALLOC, "%H:%M %d-%m-%Y", loctime); 2657 2657 free(loctime); loctime = NULL; 2658 2658 2659 2659 buf1 = ostrcat(buf2, NULL, 0, 0); 2660 2660 ostrcatbig(&buf, "<td><font class=label>End: </font></td>", &maxlen, &pos); … … 2675 2675 ostrcatbig(&buf, buf1, &maxlen, &pos); 2676 2676 free(buf1); buf1 = NULL; 2677 ostrcatbig(&buf, "\" />", &maxlen, &pos); 2677 ostrcatbig(&buf, "\" />", &maxlen, &pos); 2678 2678 ostrcatbig(&buf, "<input class=inputbox type=\"hidden\" name=\"tid\" value=\"", &maxlen, &pos); 2679 2679 buf1 = ollutoa(chnode->transponderid); … … 2689 2689 ostrcatbig(&buf, "\" /></td></tr>", &maxlen, &pos); 2690 2690 free(buf1); buf1 = NULL; 2691 2691 2692 2692 ostrcatbig(&buf, "<td><font class=label>after event: </font></td>", &maxlen, &pos); 2693 2693 ostrcatbig(&buf, "<td><select name=\"afterevent\" border=0><option selected>", &maxlen, &pos); 2694 2694 ostrcatbig(&buf, "auto", &maxlen, &pos); 2695 2695 ostrcatbig(&buf, "<option>auto<option>nothing<option>standby<option>off</select></td></tr>", &maxlen, &pos); 2696 2696 2697 2697 ostrcatbig(&buf, "</table><br><br><input class=button type=submit name=send value=\"Send\" onClick=\"return checkdaytime(begin.value, end.value)\"></input> <input class=button type=reset name=reset value=\"Reset\"></input></form></center></body></html>", &maxlen, &pos); 2698 2698 … … 2706 2706 int maxlen = 0, pos = 0, channelfind = 0; 2707 2707 struct channel *channel1 = NULL; 2708 2708 2709 2709 anode = ostrstr(param, "node="); 2710 2710 if(anode != NULL) … … 2728 2728 if(ext != NULL) 2729 2729 ext = ext + 4; 2730 afterevent = ostrstr(param, "afterevent="); 2730 afterevent = ostrstr(param, "afterevent="); 2731 2731 if(afterevent != NULL) 2732 2732 afterevent = afterevent + 11; … … 2743 2743 *string++ = '\0'; 2744 2744 } 2745 2745 2746 2746 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); 2747 2747 ostrcatbig(&buf, "<body class=body ><center>", &maxlen, &pos); 2748 2748 ostrcatbig(&buf, "<form name=F1 action=query method=get><br><br>", &maxlen, &pos); 2749 2749 2750 2750 if(anode != NULL) 2751 2751 { … … 2754 2754 ostrcatbig(&buf, "\" />", &maxlen, &pos); 2755 2755 } 2756 2756 2757 2757 if(name != NULL) 2758 { 2758 { 2759 2759 ostrcatbig(&buf, "<input type=\"hidden\" name=\"name\" value=\"", &maxlen, &pos); 2760 2760 ostrcatbig(&buf, name, &maxlen, &pos); 2761 2761 ostrcatbig(&buf, "\" />", &maxlen, &pos); 2762 2762 } 2763 2763 2764 2764 if(begin != NULL) 2765 2765 { … … 2768 2768 ostrcatbig(&buf, "\" />", &maxlen, &pos); 2769 2769 } 2770 2770 2771 2771 if(end != NULL) 2772 2772 { 2773 2773 ostrcatbig(&buf, "<input type=\"hidden\" name=\"end\" value=\"", &maxlen, &pos); 2774 ostrcatbig(&buf, end, &maxlen, &pos); 2774 ostrcatbig(&buf, end, &maxlen, &pos); 2775 2775 ostrcatbig(&buf, "\" />", &maxlen, &pos); 2776 2776 } 2777 2777 2778 2778 if(type != NULL) 2779 2779 { … … 2782 2782 ostrcatbig(&buf, "\" />", &maxlen, &pos); 2783 2783 } 2784 2784 2785 2785 if(ext != NULL) 2786 2786 { … … 2789 2789 ostrcatbig(&buf, "\" />", &maxlen, &pos); 2790 2790 } 2791 2791 2792 2792 if(afterevent != NULL) 2793 2793 { … … 2796 2796 ostrcatbig(&buf, "\" />", &maxlen, &pos); 2797 2797 } 2798 2798 2799 2799 if(repeat != NULL) 2800 2800 { … … 2803 2803 ostrcatbig(&buf, "\" />", &maxlen, &pos); 2804 2804 } 2805 2805 2806 2806 ostrcatbig(&buf, "<table border=\"0\"><tr>", &maxlen, &pos); 2807 2807 ostrcatbig(&buf, "<td><select name=sid size=10 border=0>", &maxlen, &pos); 2808 2808 2809 2809 /* 2810 channel1 = channel; 2810 channel1 = channel; 2811 2811 while(channel1 != NULL) 2812 2812 { … … 2817 2817 else 2818 2818 ostrcatbig(&buf, "<option value=\"", &maxlen, &pos); 2819 2819 2820 2820 buf1 = oitoa(channel1->serviceid); 2821 2821 ostrcatbig(&buf, buf1, &maxlen, &pos); … … 2826 2826 free(buf1); buf1 = NULL; 2827 2827 ostrcatbig(&buf, "\">", &maxlen, &pos); 2828 2828 2829 2829 ostrcatbig(&buf, channel1->name, &maxlen, &pos); 2830 2830 ostrcatbig(&buf, " (", &maxlen, &pos); 2831 2831 2832 2832 //get satname from channel 2833 2833 if(channel1->transponder != NULL) … … 2838 2838 else 2839 2839 ostrcatbig(&buf, _("unknown"), &maxlen, &pos); 2840 2840 2841 2841 if(channel1->provider != NULL) 2842 ostrcatbig(&buf, " - ", &maxlen, &pos); 2842 ostrcatbig(&buf, " - ", &maxlen, &pos); 2843 2843 } 2844 2844 2845 2845 //get provider from channel 2846 2846 if(channel1->provider != NULL) … … 2849 2849 ostrcatbig(&buf, channel1->provider->name, &maxlen, &pos); 2850 2850 else 2851 ostrcatbig(&buf, _("unknown"), &maxlen, &pos); 2851 ostrcatbig(&buf, _("unknown"), &maxlen, &pos); 2852 2852 } 2853 2854 ostrcatbig(&buf, ")", &maxlen, &pos); 2855 2853 2854 ostrcatbig(&buf, ")", &maxlen, &pos); 2855 2856 2856 channelfind++; 2857 2857 } … … 2859 2859 } 2860 2860 */ 2861 2861 2862 2862 if(channelfind == 0) 2863 2863 { 2864 channel1 = channel; 2864 channel1 = channel; 2865 2865 while(channel1 != NULL) 2866 2866 { … … 2871 2871 else 2872 2872 ostrcatbig(&buf, "<option value=\"", &maxlen, &pos); 2873 2873 2874 2874 buf1 = oitoa(channel1->serviceid); 2875 2875 ostrcatbig(&buf, buf1, &maxlen, &pos); … … 2880 2880 free(buf1); buf1 = NULL; 2881 2881 ostrcatbig(&buf, "\">", &maxlen, &pos); 2882 2882 2883 2883 ostrcatbig(&buf, channel1->name, &maxlen, &pos); 2884 2884 ostrcatbig(&buf, " (", &maxlen, &pos); 2885 2885 2886 2886 //get satname from channel 2887 2887 if(channel1->transponder != NULL) … … 2892 2892 else 2893 2893 ostrcatbig(&buf, _("unknown"), &maxlen, &pos); 2894 2894 2895 2895 if(channel1->provider != NULL) 2896 ostrcatbig(&buf, " - ", &maxlen, &pos); 2896 ostrcatbig(&buf, " - ", &maxlen, &pos); 2897 2897 } 2898 2898 2899 2899 //get provider from channel 2900 2900 if(channel1->provider != NULL) … … 2903 2903 ostrcatbig(&buf, channel1->provider->name, &maxlen, &pos); 2904 2904 else 2905 ostrcatbig(&buf, _("unknown"), &maxlen, &pos); 2905 ostrcatbig(&buf, _("unknown"), &maxlen, &pos); 2906 2906 } 2907 2908 ostrcatbig(&buf, ")", &maxlen, &pos); 2909 2907 2908 ostrcatbig(&buf, ")", &maxlen, &pos); 2909 2910 2910 channelfind++; 2911 2911 } … … 2913 2913 } 2914 2914 } 2915 2915 2916 2916 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> <input class=button type=reset name=reset value=\"Reset\"></input></form></center></body></html>", &maxlen, &pos); 2917 2917 … … 2919 2919 { 2920 2920 free(buf); buf = NULL; 2921 buf = webrectimersend(param1, fmt); 2921 buf = webrectimersend(param1, fmt); 2922 2922 free(param1); param1 = NULL; 2923 2923 } 2924 2924 2925 return buf; 2925 return buf; 2926 2926 } 2927 2927 … … 2962 2962 if(ext != NULL) 2963 2963 ext = ext + 4; 2964 afterevent = ostrstr(param, "afterevent="); 2964 afterevent = ostrstr(param, "afterevent="); 2965 2965 if(afterevent != NULL) 2966 2966 afterevent = afterevent + 11; … … 2968 2968 if(repeat != NULL) 2969 2969 repeat = repeat + 7; 2970 2971 string = param; 2970 2971 string = param; 2972 2972 while(string != NULL) 2973 { 2973 { 2974 2974 string = strchr(string, '&'); 2975 2975 if(string != NULL) 2976 2976 *string++ = '\0'; 2977 2977 } 2978 2978 2979 2979 if((sid == NULL && tid != NULL) || (sid != NULL && tid == NULL)) 2980 2980 { 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); 2982 2982 return buf; 2983 2983 } 2984 2984 2985 2985 if(channelname != NULL && sid == NULL) 2986 2986 { … … 2998 2998 if(channelfind == 0) 2999 2999 { 3000 channel1 = channel; 3000 channel1 = channel; 3001 3001 while(channel1 != NULL) 3002 3002 { … … 3011 3011 if(channelfind == 0) 3012 3012 { 3013 buf = ostrcat(buf, "ERROR: channel not found", 1, 0); 3013 buf = ostrcat(buf, "ERROR: channel not found", 1, 0); 3014 3014 return buf; 3015 3015 } 3016 3016 } 3017 3017 3018 3018 newnode = 0; 3019 3019 node = getrectimerbytimestamp(anode); … … 3030 3030 } 3031 3031 } 3032 3032 3033 3033 if(node != NULL) 3034 3034 { … … 3039 3039 node->transponderid = channel1->transponderid; 3040 3040 } 3041 3041 3042 3042 if(sid != NULL && tid != NULL) 3043 3043 { … … 3046 3046 node->servicetype = 0; 3047 3047 } 3048 3048 3049 3049 free(node->name); node->name = NULL; 3050 3050 node->name = ostrcat(name, NULL, 0, 0); 3051 3051 3052 3052 if(ostrcmp(type, "record") == 0) 3053 3053 node->justplay = 0; 3054 3054 else 3055 3055 node->justplay = 1; 3056 3056 3057 3057 if(afterevent != NULL) 3058 3058 { … … 3069 3069 if(repeat != NULL) 3070 3070 node->repeate = atoi(repeat); 3071 3071 3072 3072 loctime = olocaltime(&node->begin); 3073 3073 if(loctime != NULL && begin != NULL) … … 3100 3100 if(newnode == 1) 3101 3101 node->disabled = 0; 3102 3102 3103 3103 status.writerectimer = 1; 3104 3104 writerectimer(getconfig("rectimerfile", NULL), 0); 3105 3105 3106 3106 if(ext == NULL) 3107 3107 buf = webgetrectimer(NULL, 0, fmt); … … 3127 3127 node = getrectimerbytimestamp(param); 3128 3128 if(node == NULL) return NULL; 3129 3129 3130 3130 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); 3131 3131 ostrcatbig(&buf, "<body class=body ><center>", &maxlen, &pos); … … 3159 3159 else 3160 3160 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); 3162 3162 */ 3163 3163 3164 3164 /*ostrcatbig(&buf, "<td><font class=label>Repeate type: </font></td>", &maxlen, &pos); 3165 3165 ostrcatbig(&buf, "<td><select name=\"repeatetype\" border=0><option selected>", &maxlen, &pos); … … 3172 3172 else 3173 3173 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); 3175 3175 */ 3176 3176 3177 3177 buf2 = malloc(20); 3178 3178 loctime = olocaltime(&node->begin); … … 3187 3187 ostrcatbig(&buf, "\" /></td></tr>", &maxlen, &pos); 3188 3188 free(buf1); buf1 = NULL; 3189 3189 3190 3190 loctime = olocaltime(&node->end); 3191 3191 if(loctime != NULL && buf2 != NULL) … … 3200 3200 free(buf1); buf1 = NULL; 3201 3201 free(buf2); buf2 = NULL; 3202 3202 3203 3203 ostrcatbig(&buf, "<td><font class=label>after event: </font></td>", &maxlen, &pos); 3204 3204 ostrcatbig(&buf, "<td><select name=\"afterevent\" border=0><option selected>", &maxlen, &pos); … … 3214 3214 ostrcatbig(&buf, "auto", &maxlen, &pos); 3215 3215 ostrcatbig(&buf, "<option>auto<option>nothing<option>standby<option>off</select></td></tr>", &maxlen, &pos); 3216 3216 3217 3217 ostrcatbig(&buf, "</table><br><br><input class=button type=submit name=send value=\"Send\" onClick=\"return checkdaytime(begin.value, end.value)\"></input> <input class=button type=reset name=reset value=\"Reset\"></input></form></center></body></html>", &maxlen, &pos); 3218 3218 3219 3219 //ostrcatbig(&buf, param, &maxlen, &pos); 3220 3220 return buf; … … 3226 3226 struct rectimer *node = NULL; 3227 3227 int ext = 0; 3228 3228 3229 3229 timerid = ostrstr(param, "timerid="); 3230 3230 if(timerid != NULL) … … 3237 3237 if(ext == 1) 3238 3238 { 3239 string = param; 3239 string = param; 3240 3240 while(string != NULL) 3241 { 3241 { 3242 3242 string = strchr(string, '&'); 3243 3243 if(string != NULL) … … 3251 3251 if(node == NULL) 3252 3252 { 3253 buf = ostrcat(buf, "ERROR: timer not found", 1, 0); 3253 buf = ostrcat(buf, "ERROR: timer not found", 1, 0); 3254 3254 return buf; 3255 3255 } 3256 3256 3257 3257 delrectimer(node, 1, 0); 3258 3259 if(ext == 1) 3258 3259 if(ext == 1) 3260 3260 buf = ostrcat(buf, "ok -> timer deleted", 1, 0); 3261 3261 else 3262 3262 buf = webgetrectimer(NULL, 0, fmt); 3263 3263 3264 3264 return buf; 3265 3265 } … … 3284 3284 { 3285 3285 FILE* datei = fopen("/tmp/textbox_standby", "a"); 3286 3286 3287 3287 body = string_replace_all("\n", "\t", body, 1); 3288 3288 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); … … 3294 3294 } 3295 3295 3296 void xmessage(char* filename) 3296 void xmessage(char* filename) 3297 3297 { 3298 3298 char* param=NULL, *param1 = NULL, *param2 = NULL, *param3 = NULL, *param4 = NULL; … … 3344 3344 else 3345 3345 body = ostrcat(body, " ", 1, 0); 3346 3346 3347 3347 if(param2 != NULL) 3348 3348 timeout = ostrcat(timeout, param2, 1, 0); 3349 3349 else 3350 3350 timeout = ostrcat(timeout, "5", 1, 0); 3351 3351 3352 3352 if(param1 != NULL) 3353 3353 caption = ostrcat(caption, param1, 1, 0); 3354 3354 else 3355 3355 caption = ostrcat(caption, "XMESSAGE", 1, 0); 3356 3356 3357 3357 caption = ostrcat(caption, "\t", 1, 0); 3358 3358 caption = ostrcat(caption, timeout, 1, 1); 3359 3359 3360 3360 addtimer(&putxmessage, START, 1000, 1, (void*)caption, (void*)body, NULL); 3361 3361 return; … … 3373 3373 { 3374 3374 char* buf = NULL; 3375 3375 3376 3376 if(getconfig("rec_streampath", NULL) == NULL) 3377 3377 buf = ostrcat(buf, "/var/media/hdd/movie", 1, 0); … … 3430 3430 buf = ostrcat(buf, "</head><body class=body id=\"configinfo\">", 1, 0); 3431 3431 } 3432 3432 3433 3433 struct clist **clist = config; 3434 3434 … … 3471 3471 buf = ostrcat(buf, "</body></html>", 1, 0); 3472 3472 } 3473 3473 3474 3474 m_unlock(&status.clistmutex, 12); 3475 3475 return buf; … … 3482 3482 unsigned long long free = getfreespace(getconfig("rec_path", NULL)); 3483 3483 int proz = 0; 3484 3484 3485 3485 if(full > 0 && full >= free) proz = ((full - free) * 100) / full; 3486 3486 if(proz < 0) proz = 0; 3487 3487 if(proz > 100) proz = 100; 3488 3488 3489 3489 buf = ostrcat(buf, getconfig("rec_path", NULL), 1, 0); 3490 3490 buf = ostrcat(buf, "#", 1, 0); … … 3493 3493 buf = ostrcat(buf, ollutoa(free), 1, 1); 3494 3494 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); 3497 3497 buf = ostrcat(buf, "#", 1, 0); 3498 3498 … … 3505 3505 char* imgversion = NULL; 3506 3506 3507 if(fmt == 0) 3507 if(fmt == 0) 3508 3508 { 3509 3509 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 3518 3518 buf = ostrcat(buf, OVERSION, 1, 0); 3519 3519 buf = ostrcat(buf, "#", 1, 0); 3520 3520 3521 3521 if(isfile(getconfig("imagenamefile", NULL)) != 0) 3522 3522 imgversion = readsys(getconfig("imagenamefile", NULL), 1); 3523 3523 else 3524 3524 imgversion = ostrcat("unknown", NULL, 0, 0); 3525 3525 3526 3526 buf = ostrcat(buf, imgversion, 1, 1); 3527 3527 buf = ostrcat(buf, "#", 1, 0); … … 3535 3535 else 3536 3536 buf = ostrcat(buf, "1", 1, 0); 3537 3537 3538 3538 //transcode 3539 3539 buf = ostrcat(buf, "#", 1, 0); … … 3550 3550 { 3551 3551 buf = ostrcat(buf, "</body></html>", 1, 0); 3552 } 3553 3552 } 3553 3554 3554 return buf; 3555 3555 } … … 3696 3696 struct splitstr* ret1 = NULL; 3697 3697 3698 3698 3699 3699 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); 3700 3700 ostrcatbig(&buf, "<body class=body ><center>", &maxlen, &pos); … … 3717 3717 { 3718 3718 ostrcatbig(&buf, "<option value=\"", &maxlen, &pos); 3719 ostrcatbig(&buf, oitoa(i), &maxlen, &pos); 3719 ostrcatbig(&buf, oitoa(i), &maxlen, &pos); 3720 3720 if(getconfigint("volbartimeout", NULL) == i) 3721 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 3721 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 3722 3722 else 3723 3723 ostrcatbig(&buf, "\">", &maxlen, &pos); … … 3770 3770 { 3771 3771 ostrcatbig(&buf, "<option value=\"", &maxlen, &pos); 3772 ostrcatbig(&buf, oitoa(i), &maxlen, &pos); 3772 ostrcatbig(&buf, oitoa(i), &maxlen, &pos); 3773 3773 if(getconfigint("infobarsleep", NULL) == i) 3774 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 3774 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 3775 3775 else 3776 3776 ostrcatbig(&buf, "\">", &maxlen, &pos); … … 3802 3802 tmpstr1 = ostrcat(ret1[i].part, NULL, 0, 0); 3803 3803 if(getconfigint("spinnerspeed", NULL) == atoi(tmpstr1)) 3804 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 3804 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 3805 3805 else 3806 3806 ostrcatbig(&buf, "\">", &maxlen, &pos); … … 3833 3833 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 3834 3834 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); 3837 3837 else 3838 3838 ostrcatbig(&buf, "\">", &maxlen, &pos); … … 3863 3863 { 3864 3864 ostrcatbig(&buf, "<option value=\"", &maxlen, &pos); 3865 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 3865 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 3866 3866 tmpstr1 = ostrcat(ret1[i].part, NULL, 0, 0); 3867 3867 if(getconfigint("hangtime", NULL) == atoi(tmpstr1)) 3868 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 3868 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 3869 3869 else 3870 3870 ostrcatbig(&buf, "\">", &maxlen, &pos); … … 3884 3884 ostrcatbig(&buf, _("Second Infobar"), &maxlen, &pos); 3885 3885 ostrcatbig(&buf, " </font></td><td><select name=\"secondinfobar\" border=\"0\">", &maxlen, &pos); 3886 3886 3887 3887 if(getconfigint("secondinfobar", NULL) == 0) 3888 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 3888 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 3889 3889 else 3890 3890 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); … … 3893 3893 3894 3894 if(getconfigint("secondinfobar", NULL) == 1) 3895 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 3895 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 3896 3896 else 3897 3897 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); … … 3900 3900 3901 3901 if(getconfigint("secondinfobar", NULL) == 2) 3902 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 3902 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 3903 3903 else 3904 3904 ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos); … … 3907 3907 3908 3908 if(getconfigint("secondinfobar", NULL) == 3) 3909 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos); 3909 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos); 3910 3910 else 3911 3911 ostrcatbig(&buf, "<option value=\"3\">", &maxlen, &pos); 3912 3912 ostrcatbig(&buf, _("Channel EPG"), &maxlen, &pos); 3913 3913 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3914 3914 3915 3915 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 3916 3916 sendstr = ostrcat(sendstr, ", secondinfobar.value", 1 , 0); … … 3922 3922 ostrcatbig(&buf, _("Don't clear TV on zap (only with fastzap)"), &maxlen, &pos); 3923 3923 ostrcatbig(&buf, " </font></td><td><select name=\"nozapclear\" border=\"0\">", &maxlen, &pos); 3924 3924 3925 3925 if(getconfigint("nozapclear", NULL) == 0) 3926 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 3926 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 3927 3927 else 3928 3928 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); … … 3931 3931 3932 3932 if(getconfigint("nozapclear", NULL) == 1) 3933 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 3933 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 3934 3934 else 3935 3935 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 3936 3936 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 3937 3937 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3938 3938 3939 3939 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 3940 3940 sendstr = ostrcat(sendstr, ", nozapclear.value", 1 , 0); … … 3945 3945 ostrcatbig(&buf, _("Fastzap"), &maxlen, &pos); 3946 3946 ostrcatbig(&buf, " </font></td><td><select name=\"fastzap\" border=\"0\">", &maxlen, &pos); 3947 3947 3948 3948 if(getconfigint("fastzap", NULL) == 0) 3949 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 3949 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 3950 3950 else 3951 3951 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); … … 3954 3954 3955 3955 if(getconfigint("fastzap", NULL) == 1) 3956 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 3956 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 3957 3957 else 3958 3958 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); … … 3961 3961 3962 3962 if(getconfigint("fastzap", NULL) == 2) 3963 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 3963 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 3964 3964 else 3965 3965 ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos); 3966 3966 ostrcatbig(&buf, _("fast"), &maxlen, &pos); 3967 3967 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3968 3968 3969 3969 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 3970 3970 sendstr = ostrcat(sendstr, ", fastzap.value", 1 , 0); … … 3974 3974 ostrcatbig(&buf, _("Faststop"), &maxlen, &pos); 3975 3975 ostrcatbig(&buf, " </font></td><td><select name=\"faststop\" border=\"0\">", &maxlen, &pos); 3976 3976 3977 3977 if(getconfigint("faststop", NULL) == 0) 3978 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 3978 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 3979 3979 else 3980 3980 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); … … 3983 3983 3984 3984 if(getconfigint("faststop", NULL) == 1) 3985 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 3985 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 3986 3986 else 3987 3987 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 3988 3988 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 3989 3989 ostrcatbig(&buf, "</option>", &maxlen, &pos); 3990 3990 3991 3991 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 3992 3992 sendstr = ostrcat(sendstr, ", faststop.value", 1 , 0); … … 3996 3996 ostrcatbig(&buf, _("Dirsort"), &maxlen, &pos); 3997 3997 ostrcatbig(&buf, " </font></td><td><select name=\"dirsort\" border=\"0\">", &maxlen, &pos); 3998 3998 3999 3999 if(getconfigint("dirsort", NULL) == 0) 4000 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4000 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4001 4001 else 4002 4002 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); … … 4005 4005 4006 4006 if(getconfigint("dirsort", NULL) == 1) 4007 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4007 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4008 4008 else 4009 4009 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); … … 4012 4012 4013 4013 if(getconfigint("dirsort", NULL) == 2) 4014 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 4014 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 4015 4015 else 4016 4016 ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos); … … 4019 4019 4020 4020 if(getconfigint("dirsort", NULL) == 3) 4021 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos); 4021 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos); 4022 4022 else 4023 4023 ostrcatbig(&buf, "<option value=\"3\">", &maxlen, &pos); … … 4026 4026 4027 4027 if(getconfigint("dirsort", NULL) == 4) 4028 ostrcatbig(&buf, "<option value=\"4\" selected>", &maxlen, &pos); 4028 ostrcatbig(&buf, "<option value=\"4\" selected>", &maxlen, &pos); 4029 4029 else 4030 4030 ostrcatbig(&buf, "<option value=\"4\">", &maxlen, &pos); 4031 4031 ostrcatbig(&buf, _("date"), &maxlen, &pos); 4032 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4032 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4033 4033 4034 4034 if(getconfigint("dirsort", NULL) == 5) 4035 ostrcatbig(&buf, "<option value=\"5\" selected>", &maxlen, &pos); 4035 ostrcatbig(&buf, "<option value=\"5\" selected>", &maxlen, &pos); 4036 4036 else 4037 4037 ostrcatbig(&buf, "<option value=\"5\">", &maxlen, &pos); 4038 4038 ostrcatbig(&buf, _("reverse date"), &maxlen, &pos); 4039 4039 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4040 4040 4041 4041 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4042 4042 sendstr = ostrcat(sendstr, ", dirsort.value", 1 , 0); … … 4046 4046 ostrcatbig(&buf, _("Remotecontrol Power Aktion"), &maxlen, &pos); 4047 4047 ostrcatbig(&buf, " </font></td><td><select name=\"poweraktion\" border=\"0\">", &maxlen, &pos); 4048 4048 4049 4049 if(getconfigint("poweraktion", NULL) == 0) 4050 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4050 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4051 4051 else 4052 4052 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); … … 4055 4055 4056 4056 if(getconfigint("poweraktion", NULL) == 1) 4057 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4057 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4058 4058 else 4059 4059 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); … … 4062 4062 4063 4063 if(getconfigint("poweraktion", NULL) == 2) 4064 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 4064 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 4065 4065 else 4066 4066 ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos); … … 4069 4069 4070 4070 if(getconfigint("poweraktion", NULL) == 3) 4071 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos); 4071 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos); 4072 4072 else 4073 4073 ostrcatbig(&buf, "<option value=\"3\">", &maxlen, &pos); … … 4076 4076 4077 4077 if(getconfigint("poweraktion", NULL) == 4) 4078 ostrcatbig(&buf, "<option value=\"4\" selected>", &maxlen, &pos); 4078 ostrcatbig(&buf, "<option value=\"4\" selected>", &maxlen, &pos); 4079 4079 else 4080 4080 ostrcatbig(&buf, "<option value=\"4\">", &maxlen, &pos); 4081 4081 ostrcatbig(&buf, _("GUI Restart"), &maxlen, &pos); 4082 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4083 4082 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4083 4084 4084 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4085 4085 sendstr = ostrcat(sendstr, ", poweraktion.value", 1 , 0); … … 4089 4089 ostrcatbig(&buf, _("Frontpanel Power Aktion"), &maxlen, &pos); 4090 4090 ostrcatbig(&buf, " </font></td><td><select name=\"frontpoweraktion\" border=\"0\">", &maxlen, &pos); 4091 4091 4092 4092 if(getconfigint("frontpoweraktion", NULL) == 1) 4093 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4093 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4094 4094 else 4095 4095 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); … … 4098 4098 4099 4099 if(getconfigint("frontpoweraktion", NULL) == 2) 4100 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 4100 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 4101 4101 else 4102 4102 ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos); … … 4111 4111 ostrcatbig(&buf, _("Virtualzap Timeout"), &maxlen, &pos); 4112 4112 ostrcatbig(&buf, " </font></td><td><select name=\"virtualzap\" border=\"0\">", &maxlen, &pos); 4113 4113 4114 4114 if(getconfigint("virtualzap", NULL) == 0) 4115 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4115 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4116 4116 else 4117 4117 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 4118 ostrcatbig(&buf, _("d eaktiv"), &maxlen, &pos);4118 ostrcatbig(&buf, _("disable"), &maxlen, &pos); 4119 4119 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4120 4120 4121 4121 if(getconfigint("virtualzap", NULL) == 1) 4122 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4122 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4123 4123 else 4124 4124 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); … … 4127 4127 4128 4128 if(getconfigint("virtualzap", NULL) == 2) 4129 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 4129 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 4130 4130 else 4131 4131 ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos); … … 4134 4134 4135 4135 if(getconfigint("virtualzap", NULL) == 3) 4136 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos); 4136 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos); 4137 4137 else 4138 4138 ostrcatbig(&buf, "<option value=\"3\">", &maxlen, &pos); 4139 4139 ostrcatbig(&buf, _("endless"), &maxlen, &pos); 4140 4140 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4141 4141 4142 4142 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4143 4143 sendstr = ostrcat(sendstr, ", virtualzap.value", 1 , 0); 4144 4144 4145 4145 /////////////////// 4146 4146 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 4147 4147 ostrcatbig(&buf, _("Fast Text Render"), &maxlen, &pos); 4148 4148 ostrcatbig(&buf, " </font></td><td><select name=\"fasttextrender\" border=\"0\">", &maxlen, &pos); 4149 4149 4150 4150 if(getconfigint("fasttextrender", NULL) == 0) 4151 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4151 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4152 4152 else 4153 4153 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); … … 4156 4156 4157 4157 if(getconfigint("fasttextrender", NULL) == 1) 4158 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4158 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4159 4159 else 4160 4160 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4161 4161 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 4162 4162 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4163 4163 4164 4164 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4165 4165 sendstr = ostrcat(sendstr, ", fasttextrender.value", 1 , 0); … … 4171 4171 ostrcatbig(&buf, _("Record Split Size"), &maxlen, &pos); 4172 4172 ostrcatbig(&buf, " </font></td><td><select name=\"recsplitsize\" border=\"0\">", &maxlen, &pos); 4173 4173 4174 4174 if(getconfigint("recsplitsize", NULL) == 0) 4175 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4175 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4176 4176 else 4177 4177 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 4178 ostrcatbig(&buf, _("d eaktiv"), &maxlen, &pos);4178 ostrcatbig(&buf, _("disable"), &maxlen, &pos); 4179 4179 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4180 4180 4181 4181 if(getconfigint("recsplitsize", NULL) == 1) 4182 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4182 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4183 4183 else 4184 4184 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4185 4185 ostrcatbig(&buf, _("1 GB"), &maxlen, &pos); 4186 4186 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4187 4187 4188 4188 if(getconfigint("recsplitsize", NULL) == 2) 4189 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 4189 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 4190 4190 else 4191 4191 ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos); 4192 4192 ostrcatbig(&buf, _("2 GB"), &maxlen, &pos); 4193 4193 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4194 4194 4195 4195 if(getconfigint("recsplitsize", NULL) == 3) 4196 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos); 4196 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos); 4197 4197 else 4198 4198 ostrcatbig(&buf, "<option value=\"3\">", &maxlen, &pos); 4199 4199 ostrcatbig(&buf, _("3 GB"), &maxlen, &pos); 4200 4200 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4201 4201 4202 4202 if(getconfigint("recsplitsize", NULL) == 4) 4203 ostrcatbig(&buf, "<option value=\"4\" selected>", &maxlen, &pos); 4203 ostrcatbig(&buf, "<option value=\"4\" selected>", &maxlen, &pos); 4204 4204 else 4205 4205 ostrcatbig(&buf, "<option value=\"4\">", &maxlen, &pos); 4206 4206 ostrcatbig(&buf, _("4 GB"), &maxlen, &pos); 4207 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4208 4207 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4208 4209 4209 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4210 4210 sendstr = ostrcat(sendstr, ", recsplitsize.value", 1 , 0); … … 4212 4212 /////////////////// 4213 4213 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 4215 4215 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 4216 4216 ostrcatbig(&buf, _("Record Forerun (min)"), &maxlen, &pos); 4217 4217 ostrcatbig(&buf, " </font></td><td><select name=\"recforerun\" border=\"0\">", &maxlen, &pos); 4218 4218 4219 4219 count = 0; 4220 4220 ret1 = strsplit(tmpstr, "\n", &count); 4221 4221 max = count - 1; 4222 4222 4223 4223 if(ret1 != NULL) 4224 4224 { … … 4226 4226 { 4227 4227 ostrcatbig(&buf, "<option value=\"", &maxlen, &pos); 4228 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 4228 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 4229 4229 tmpstr1 = ostrcat(ret1[i].part, NULL, 0, 0); 4230 4230 if(getconfigint("recforerun", NULL) == atoi(tmpstr1)) 4231 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 4231 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 4232 4232 else 4233 4233 ostrcatbig(&buf, "\">", &maxlen, &pos); … … 4244 4244 /////////////////// 4245 4245 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 4247 4247 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 4248 4248 ostrcatbig(&buf, _("Record Overrun (min)"), &maxlen, &pos); 4249 4249 ostrcatbig(&buf, " </font></td><td><select name=\"recoverrun\" border=\"0\">", &maxlen, &pos); 4250 4250 4251 4251 count = 0; 4252 4252 ret1 = strsplit(tmpstr, "\n", &count); 4253 4253 max = count - 1; 4254 4254 4255 4255 if(ret1 != NULL) 4256 4256 { … … 4258 4258 { 4259 4259 ostrcatbig(&buf, "<option value=\"", &maxlen, &pos); 4260 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 4260 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 4261 4261 tmpstr1 = ostrcat(ret1[i].part, NULL, 0, 0); 4262 4262 if(getconfigint("recoverrun", NULL) == atoi(tmpstr1)) 4263 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 4263 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 4264 4264 else 4265 4265 ostrcatbig(&buf, "\">", &maxlen, &pos); … … 4290 4290 { 4291 4291 ostrcatbig(&buf, "<option value=\"", &maxlen, &pos); 4292 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 4292 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 4293 4293 tmpstr1 = ostrcat(ret1[i].part, NULL, 0, 0); 4294 4294 if(getconfigint("skip13", NULL) == atoi(tmpstr1)) 4295 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 4295 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 4296 4296 else 4297 4297 ostrcatbig(&buf, "\">", &maxlen, &pos); … … 4322 4322 { 4323 4323 ostrcatbig(&buf, "<option value=\"", &maxlen, &pos); 4324 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 4324 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 4325 4325 tmpstr1 = ostrcat(ret1[i].part, NULL, 0, 0); 4326 4326 if(getconfigint("skip46", NULL) == atoi(tmpstr1)) 4327 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 4327 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 4328 4328 else 4329 4329 ostrcatbig(&buf, "\">", &maxlen, &pos); … … 4337 4337 free(tmpstr), tmpstr = NULL; 4338 4338 free(tmpstr1), tmpstr1 = NULL; 4339 4339 4340 4340 /////////////////// 4341 4341 tmpstr = ostrcat("15\n20\n30\n45\n60\n90\n120\n180\n300\n600\n900\n1200", NULL, 0, 0); … … 4354 4354 { 4355 4355 ostrcatbig(&buf, "<option value=\"", &maxlen, &pos); 4356 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 4356 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 4357 4357 tmpstr1 = ostrcat(ret1[i].part, NULL, 0, 0); 4358 4358 if(getconfigint("skip79", NULL) == atoi(tmpstr1)) 4359 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 4359 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 4360 4360 else 4361 4361 ostrcatbig(&buf, "\">", &maxlen, &pos); … … 4369 4369 free(tmpstr), tmpstr = NULL; 4370 4370 free(tmpstr1), tmpstr1 = NULL; 4371 4371 4372 4372 /////////////////// 4373 4373 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); 4374 4374 ostrcatbig(&buf, _("Player for .ts"), &maxlen, &pos); 4375 4375 ostrcatbig(&buf, " </font></td><td><select name=\"playertype\" border=\"0\">", &maxlen, &pos); 4376 4376 4377 4377 if(getconfigint("playertype", NULL) == 0) 4378 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4378 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4379 4379 else 4380 4380 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); … … 4383 4383 4384 4384 if(getconfigint("faststop", NULL) == 1) 4385 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4385 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4386 4386 else 4387 4387 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4388 4388 ostrcatbig(&buf, _("intern"), &maxlen, &pos); 4389 4389 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4390 4390 4391 4391 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4392 4392 sendstr = ostrcat(sendstr, ", playertype.value", 1 , 0); … … 4396 4396 ostrcatbig(&buf, _("Change Channelname auto."), &maxlen, &pos); 4397 4397 ostrcatbig(&buf, " </font></td><td><select name=\"autochangechannelname\" border=\"0\">", &maxlen, &pos); 4398 4398 4399 4399 if(getconfigint("autochangechannelname", NULL) == 0) 4400 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4400 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4401 4401 else 4402 4402 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); … … 4405 4405 4406 4406 if(getconfigint("autochangechannelname", NULL) == 1) 4407 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4407 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4408 4408 else 4409 4409 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4410 4410 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 4411 4411 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4412 4412 4413 4413 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4414 4414 sendstr = ostrcat(sendstr, ", autochangechannelname.value", 1 , 0); … … 4420 4420 ostrcatbig(&buf, _("Set action after rec"), &maxlen, &pos); 4421 4421 ostrcatbig(&buf, " </font></td><td><select name=\"def_rectimer_after\" border=\"0\">", &maxlen, &pos); 4422 4422 4423 4423 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); 4425 4425 else 4426 4426 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 4427 4427 ostrcatbig(&buf, _("auto"), &maxlen, &pos); 4428 4428 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4429 4429 4430 4430 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); 4432 4432 else 4433 4433 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4434 4434 ostrcatbig(&buf, _("nothing"), &maxlen, &pos); 4435 4435 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4436 4436 4437 4437 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); 4439 4439 else 4440 4440 ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos); 4441 4441 ostrcatbig(&buf, _("standby"), &maxlen, &pos); 4442 4442 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4443 4443 4444 4444 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); 4446 4446 else 4447 4447 ostrcatbig(&buf, "<option value=\"3\">", &maxlen, &pos); 4448 4448 ostrcatbig(&buf, _("power off"), &maxlen, &pos); 4449 4449 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4450 4450 4451 4451 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4452 4452 sendstr = ostrcat(sendstr, ", def_rectimer_after.value", 1 , 0); … … 4456 4456 ostrcatbig(&buf, _("Show Timeline in Channellist"), &maxlen, &pos); 4457 4457 ostrcatbig(&buf, " </font></td><td><select name=\"showchanneltimeline\" border=\"0\">", &maxlen, &pos); 4458 4458 4459 4459 if(getconfigint("showchanneltimeline", NULL) == 0) 4460 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4460 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4461 4461 else 4462 4462 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); … … 4465 4465 4466 4466 if(getconfigint("showchanneltimeline", NULL) == 1) 4467 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4467 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4468 4468 else 4469 4469 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4470 4470 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 4471 4471 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4472 4472 4473 4473 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4474 4474 sendstr = ostrcat(sendstr, ", showchanneltimeline.value", 1 , 0); … … 4479 4479 ostrcatbig(&buf, _("Animated Screens"), &maxlen, &pos); 4480 4480 ostrcatbig(&buf, " </font></td><td><select name=\"screenanim\" border=\"0\">", &maxlen, &pos); 4481 4481 4482 4482 if(getconfigint("screenanim", NULL) == 0) 4483 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4483 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4484 4484 else 4485 4485 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); … … 4488 4488 4489 4489 if(getconfigint("screenanim", NULL) == 1) 4490 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4490 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4491 4491 else 4492 4492 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); … … 4495 4495 4496 4496 if(getconfigint("screenanim", NULL) == 2) 4497 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 4497 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 4498 4498 else 4499 4499 ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos); … … 4502 4502 4503 4503 if(getconfigint("screenanim", NULL) == 3) 4504 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos); 4504 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos); 4505 4505 else 4506 4506 ostrcatbig(&buf, "<option value=\"3\">", &maxlen, &pos); 4507 4507 ostrcatbig(&buf, _("anim. both"), &maxlen, &pos); 4508 4508 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4509 4509 4510 4510 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4511 4511 sendstr = ostrcat(sendstr, ", screenanim.value", 1 , 0); … … 4515 4515 ostrcatbig(&buf, _("Animated Speed"), &maxlen, &pos); 4516 4516 ostrcatbig(&buf, " </font></td><td><select name=\"screenanimspeed\" border=\"0\">", &maxlen, &pos); 4517 4517 4518 4518 if(getconfigint("screenanimspeed", NULL) == 1) 4519 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4519 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4520 4520 else 4521 4521 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); … … 4524 4524 4525 4525 if(getconfigint("screenanimspeed", NULL) == 5) 4526 ostrcatbig(&buf, "<option value=\"5\" selected>", &maxlen, &pos); 4526 ostrcatbig(&buf, "<option value=\"5\" selected>", &maxlen, &pos); 4527 4527 else 4528 4528 ostrcatbig(&buf, "<option value=\"5\">", &maxlen, &pos); … … 4531 4531 4532 4532 if(getconfigint("screenanimspeed", NULL) == 10) 4533 ostrcatbig(&buf, "<option value=\"10\" selected>", &maxlen, &pos); 4533 ostrcatbig(&buf, "<option value=\"10\" selected>", &maxlen, &pos); 4534 4534 else 4535 4535 ostrcatbig(&buf, "<option value=\"10\">", &maxlen, &pos); … … 4538 4538 4539 4539 if(getconfigint("screenanimspeed", NULL) == 15) 4540 ostrcatbig(&buf, "<option value=\"15\" selected>", &maxlen, &pos); 4540 ostrcatbig(&buf, "<option value=\"15\" selected>", &maxlen, &pos); 4541 4541 else 4542 4542 ostrcatbig(&buf, "<option value=\"15\">", &maxlen, &pos); … … 4545 4545 4546 4546 if(getconfigint("screenanimspeed", NULL) == 20) 4547 ostrcatbig(&buf, "<option value=\"20\" selected>", &maxlen, &pos); 4547 ostrcatbig(&buf, "<option value=\"20\" selected>", &maxlen, &pos); 4548 4548 else 4549 4549 ostrcatbig(&buf, "<option value=\"20\">", &maxlen, &pos); 4550 4550 ostrcatbig(&buf, _("very slow"), &maxlen, &pos); 4551 4551 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4552 4552 4553 4553 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4554 4554 sendstr = ostrcat(sendstr, ", screenanimspeed.value", 1 , 0); … … 4558 4558 ostrcatbig(&buf, _("Channellist view"), &maxlen, &pos); 4559 4559 ostrcatbig(&buf, " </font></td><td><select name=\"channellistview\" border=\"0\">", &maxlen, &pos); 4560 4560 4561 4561 if(getconfigint("channellistview", NULL) == 0) 4562 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4562 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4563 4563 else 4564 4564 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); … … 4567 4567 4568 4568 if(getconfigint("channellistview", NULL) == 1) 4569 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4569 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4570 4570 else 4571 4571 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4572 4572 ostrcatbig(&buf, _("deaktiv"), &maxlen, &pos); 4573 4573 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4574 4574 4575 4575 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4576 4576 sendstr = ostrcat(sendstr, ", channellistview.value", 1 , 0); … … 4580 4580 ostrcatbig(&buf, _("Show last pos Question"), &maxlen, &pos); 4581 4581 ostrcatbig(&buf, " </font></td><td><select name=\"showlastpos\" border=\"0\">", &maxlen, &pos); 4582 4582 4583 4583 if(getconfigint("showlastpos", NULL) == 0) 4584 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4584 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4585 4585 else 4586 4586 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); … … 4589 4589 4590 4590 if(getconfigint("showlastpos", NULL) == 1) 4591 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4591 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4592 4592 else 4593 4593 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4594 4594 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 4595 4595 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4596 4596 4597 4597 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4598 4598 sendstr = ostrcat(sendstr, ", showlastpos.value", 1 , 0); … … 4604 4604 ostrcatbig(&buf, _("Resync Recording immediately"), &maxlen, &pos); 4605 4605 ostrcatbig(&buf, " </font></td><td><select name=\"recsync\" border=\"0\">", &maxlen, &pos); 4606 4606 4607 4607 if(getconfigint("recsync", NULL) == 0) 4608 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4608 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4609 4609 else 4610 4610 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 4611 4611 ostrcatbig(&buf, _("no"), &maxlen, &pos); 4612 4612 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4613 4613 4614 4614 if(getconfigint("recsync", NULL) == 1) 4615 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4615 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4616 4616 else 4617 4617 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4618 4618 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 4619 4619 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4620 4620 4621 4621 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4622 4622 sendstr = ostrcat(sendstr, ", recsync.value", 1 , 0); … … 4625 4625 ostrcatbig(&buf, _("Recording name"), &maxlen, &pos); 4626 4626 ostrcatbig(&buf, " </font></td><td><select name=\"recordnamefmt\" border=\"0\">", &maxlen, &pos); 4627 4627 4628 4628 if(getconfigint("recordnamefmt", NULL) == 0) 4629 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4629 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4630 4630 else 4631 4631 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 4632 4632 ostrcatbig(&buf, _("channel-movie"), &maxlen, &pos); 4633 4633 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4634 4634 4635 4635 if(getconfigint("recordnamefmt", NULL) == 1) 4636 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4636 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4637 4637 else 4638 4638 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4639 4639 ostrcatbig(&buf, _("movie-channel"), &maxlen, &pos); 4640 4640 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4641 4641 4642 4642 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4643 4643 sendstr = ostrcat(sendstr, ", recordnamefmt.value", 1 , 0); … … 4647 4647 ostrcatbig(&buf, _("Newsletter"), &maxlen, &pos); 4648 4648 ostrcatbig(&buf, " </font></td><td><select name=\"newsletter\" border=\"0\">", &maxlen, &pos); 4649 4649 4650 4650 if(getconfigint("newsletter", NULL) == 0) 4651 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4651 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4652 4652 else 4653 4653 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); … … 4656 4656 4657 4657 if(getconfigint("newsletter", NULL) == 1) 4658 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4658 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4659 4659 else 4660 4660 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4661 4661 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 4662 4662 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4663 4663 4664 4664 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4665 4665 sendstr = ostrcat(sendstr, ", newsletter.value", 1 , 0); … … 4669 4669 ostrcatbig(&buf, _("Show hidden files"), &maxlen, &pos); 4670 4670 ostrcatbig(&buf, " </font></td><td><select name=\"showhiddenfiles\" border=\"0\">", &maxlen, &pos); 4671 4671 4672 4672 if(getconfigint("showhiddenfiles", NULL) == 0) 4673 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4673 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4674 4674 else 4675 4675 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); … … 4678 4678 4679 4679 if(getconfigint("showhiddenfiles", NULL) == 1) 4680 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4680 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4681 4681 else 4682 4682 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4683 4683 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 4684 4684 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4685 4685 4686 4686 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4687 4687 sendstr = ostrcat(sendstr, ", showhiddenfiles.value", 1 , 0); … … 4691 4691 ostrcatbig(&buf, _("Expert Modus"), &maxlen, &pos); 4692 4692 ostrcatbig(&buf, " </font></td><td><select name=\"expertmodus\" border=\"0\">", &maxlen, &pos); 4693 4693 4694 4694 if(getconfigint("expertmodus", NULL) == 0) 4695 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4695 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4696 4696 else 4697 4697 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); … … 4700 4700 4701 4701 if(getconfigint("expertmodus", NULL) == 10) 4702 ostrcatbig(&buf, "<option value=\"10\" selected>", &maxlen, &pos); 4702 ostrcatbig(&buf, "<option value=\"10\" selected>", &maxlen, &pos); 4703 4703 else 4704 4704 ostrcatbig(&buf, "<option value=\"10\">", &maxlen, &pos); … … 4707 4707 4708 4708 if(getconfigint("expertmodus", NULL) == 11) 4709 ostrcatbig(&buf, "<option value=\"11\" selected>", &maxlen, &pos); 4709 ostrcatbig(&buf, "<option value=\"11\" selected>", &maxlen, &pos); 4710 4710 else 4711 4711 ostrcatbig(&buf, "<option value=\"11\">", &maxlen, &pos); 4712 4712 ostrcatbig(&buf, _("expert (11)"), &maxlen, &pos); 4713 4713 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4714 4714 4715 4715 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4716 4716 sendstr = ostrcat(sendstr, ", expertmodus.value", 1 , 0); … … 4720 4720 ostrcatbig(&buf, _("Show infobar on program change"), &maxlen, &pos); 4721 4721 ostrcatbig(&buf, " </font></td><td><select name=\"infobarprogram\" border=\"0\">", &maxlen, &pos); 4722 4722 4723 4723 if(getconfigint("infobarprogram", NULL) == 0) 4724 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4724 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4725 4725 else 4726 4726 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); … … 4729 4729 4730 4730 if(getconfigint("infobarprogram", NULL) == 1) 4731 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4731 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4732 4732 else 4733 4733 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4734 4734 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 4735 4735 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4736 4736 4737 4737 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4738 4738 sendstr = ostrcat(sendstr, ", infobarprogram.value", 1 , 0); … … 4742 4742 ostrcatbig(&buf, _("Use cross control for fast zapping and vol"), &maxlen, &pos); 4743 4743 ostrcatbig(&buf, " </font></td><td><select name=\"crosscontrol\" border=\"0\">", &maxlen, &pos); 4744 4744 4745 4745 if(getconfigint("crosscontrol", NULL) == 0) 4746 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4746 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4747 4747 else 4748 4748 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); … … 4751 4751 4752 4752 if(getconfigint("crosscontrol", NULL) == 1) 4753 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4753 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4754 4754 else 4755 4755 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); … … 4758 4758 4759 4759 if(getconfigint("crosscontrol", NULL) == 2) 4760 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 4760 ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos); 4761 4761 else 4762 4762 ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos); … … 4765 4765 4766 4766 if(getconfigint("crosscontrol", NULL) == 3) 4767 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos); 4767 ostrcatbig(&buf, "<option value=\"3\" selected>", &maxlen, &pos); 4768 4768 else 4769 4769 ostrcatbig(&buf, "<option value=\"3\">", &maxlen, &pos); … … 4772 4772 4773 4773 if(getconfigint("crosscontrol", NULL) == 9999) 4774 ostrcatbig(&buf, "<option value=\"9999\" selected>", &maxlen, &pos); 4774 ostrcatbig(&buf, "<option value=\"9999\" selected>", &maxlen, &pos); 4775 4775 else 4776 4776 ostrcatbig(&buf, "<option value=\"9999\">", &maxlen, &pos); 4777 4777 ostrcatbig(&buf, _("yes / vzap endless"), &maxlen, &pos); 4778 4778 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4779 4779 4780 4780 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4781 4781 sendstr = ostrcat(sendstr, ", crosscontrol.value", 1 , 0); 4782 4782 4783 4783 /////////////////// 4784 4784 if(status.security >= 1) … … 4787 4787 ostrcatbig(&buf, _("Deactivate Crypt Support on Media Playback"), &maxlen, &pos); 4788 4788 ostrcatbig(&buf, " </font></td><td><select name=\"emucontrol\" border=\"0\">", &maxlen, &pos); 4789 4789 4790 4790 if(getconfigint("emucontrol", NULL) == 0) 4791 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4791 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4792 4792 else 4793 4793 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); … … 4796 4796 4797 4797 if(getconfigint("emucontrol", NULL) == 1) 4798 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4798 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4799 4799 else 4800 4800 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4801 4801 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 4802 4802 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4803 4803 4804 4804 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4805 4805 sendstr = ostrcat(sendstr, ", emucontrol.value", 1 , 0); … … 4810 4810 ostrcatbig(&buf, _("Deactivate MiniTV"), &maxlen, &pos); 4811 4811 ostrcatbig(&buf, " </font></td><td><select name=\"choiceminitv\" border=\"0\">", &maxlen, &pos); 4812 4812 4813 4813 if(getconfigint("choiceminitv", NULL) == 0) 4814 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4814 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4815 4815 else 4816 4816 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); … … 4819 4819 4820 4820 if(getconfigint("choiceminitv", NULL) == 1) 4821 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4821 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4822 4822 else 4823 4823 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4824 4824 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 4825 4825 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4826 4826 4827 4827 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4828 4828 sendstr = ostrcat(sendstr, ", choiceminitv.value", 1 , 0); … … 4834 4834 ostrcatbig(&buf, _("Activate CEC"), &maxlen, &pos); 4835 4835 ostrcatbig(&buf, " </font></td><td><select name=\"usecec\" border=\"0\">", &maxlen, &pos); 4836 4836 4837 4837 if(getconfigint("usecec", NULL) == 0) 4838 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4838 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4839 4839 else 4840 4840 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); … … 4843 4843 4844 4844 if(getconfigint("usecec", NULL) == 1) 4845 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4845 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4846 4846 else 4847 4847 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4848 4848 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 4849 4849 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4850 4850 4851 4851 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4852 4852 sendstr = ostrcat(sendstr, ", usecec.value", 1 , 0); … … 4859 4859 ostrcatbig(&buf, _("SATA Connector"), &maxlen, &pos); 4860 4860 ostrcatbig(&buf, " </font></td><td><select name=\"sataswitch\" border=\"0\">", &maxlen, &pos); 4861 4861 4862 4862 if(getconfigint("sataswitch", NULL) == 0) 4863 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4863 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4864 4864 else 4865 4865 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); … … 4868 4868 4869 4869 if(getconfigint("sataswitch", NULL) == 1) 4870 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4870 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4871 4871 else 4872 4872 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4873 4873 ostrcatbig(&buf, _("intern"), &maxlen, &pos); 4874 4874 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4875 4875 4876 4876 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4877 4877 sendstr = ostrcat(sendstr, ", sataswitch.value", 1 , 0); … … 4887 4887 { 4888 4888 ostrcatbig(&buf, "<option value=\"", &maxlen, &pos); 4889 ostrcatbig(&buf, oitoa(i), &maxlen, &pos); 4889 ostrcatbig(&buf, oitoa(i), &maxlen, &pos); 4890 4890 if(getconfigint("playerbufferseektime", NULL) == i) 4891 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 4891 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 4892 4892 else 4893 4893 ostrcatbig(&buf, "\">", &maxlen, &pos); 4894 4894 ostrcatbig(&buf, oitoa(i), &maxlen, &pos); 4895 4895 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4896 } 4896 } 4897 4897 ostrcatbig(&buf, "</select></td></tr>", &maxlen, &pos); 4898 4898 sendstr = ostrcat(sendstr, ", playerbufferseektime.value", 1 , 0); … … 4900 4900 ///////////////////debuglevel 4901 4901 #ifdef BETA 4902 char* tmpstr2 = NULL; 4903 struct splitstr* ret2 = NULL; 4902 char* tmpstr2 = NULL; 4903 struct splitstr* ret2 = NULL; 4904 4904 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); 4905 4905 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); … … 4911 4911 count = 0; 4912 4912 ret1 = strsplit(tmpstr, "\n", &count); 4913 count = 0; 4913 count = 0; 4914 4914 ret2 = strsplit(tmpstr2, "\n", &count); 4915 4915 max = count - 1; … … 4920 4920 { 4921 4921 ostrcatbig(&buf, "<option value=\"", &maxlen, &pos); 4922 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 4922 ostrcatbig(&buf, ret1[i].part, &maxlen, &pos); 4923 4923 tmpstr1 = ostrcat(ret1[i].part, NULL, 0, 0); 4924 4924 if(getconfigint("debuglevel", NULL) == atoi(tmpstr1)) 4925 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 4925 ostrcatbig(&buf, "\" selected>", &maxlen, &pos); 4926 4926 else 4927 4927 ostrcatbig(&buf, "\">", &maxlen, &pos); … … 4939 4939 free(tmpstr2), tmpstr2 = NULL; 4940 4940 #endif 4941 4942 /////////////////// 4941 4942 /////////////////// 4943 4943 #ifdef MIPSEL 4944 4944 if(file_exist("/usr/bin/enigma2")) … … 4947 4947 ostrcatbig(&buf, _("Dualboot Menu TitanNit / E2"), &maxlen, &pos); 4948 4948 ostrcatbig(&buf, " </font></td><td><select name=\"dualboot\" border=\"0\">", &maxlen, &pos); 4949 4949 4950 4950 // if(getconfigint("dualboot", NULL) == 0) 4951 4951 if(!file_exist("/mnt/config/dualboot")) 4952 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4952 ostrcatbig(&buf, "<option value=\"0\" selected>", &maxlen, &pos); 4953 4953 else 4954 4954 ostrcatbig(&buf, "<option value=\"0\">", &maxlen, &pos); 4955 4955 ostrcatbig(&buf, _("no"), &maxlen, &pos); 4956 4956 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4957 4957 4958 4958 // if(getconfigint("dualboot", NULL) == 1) 4959 4959 if(file_exist("/mnt/config/dualboot")) 4960 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4960 ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos); 4961 4961 else 4962 4962 ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos); 4963 4963 ostrcatbig(&buf, _("yes"), &maxlen, &pos); 4964 4964 ostrcatbig(&buf, "</option>", &maxlen, &pos); 4965 4966 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4965 4966 ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos); 4967 4967 sendstr = ostrcat(sendstr, ", dualboot.value", 1 , 0); 4968 4968 } 4969 4969 #endif 4970 4970 4971 4971 4972 4972 // ostrcatbig(&buf, "</table><br><br><input class=button type=submit name=send value=\"Send\" onClick=\"return checkdaytime(begin.value, end.value)\"></input> <input class=button type=reset name=reset value=\"Reset\"></input></form></center></body></html>", &maxlen, &pos); … … 4976 4976 ostrcatbig(&buf, sendstr, &maxlen, &pos); 4977 4977 ostrcatbig(&buf, "\"></input> <input class=button type=reset name=reset value=\"Reset\"></input></form></center></body></html>", &maxlen, &pos); 4978 4979 4978 4979 4980 4980 //writesys("/tmp/tmpstr", buf, 1); 4981 4981 //ostrcatbig(&buf, param, &maxlen, &pos); … … 4993 4993 4994 4994 tmpstr = ostrcat(param, NULL, 0, 0); 4995 4995 4996 4996 count = 0; 4997 4997 struct splitstr* ret1 = NULL; 4998 4998 ret1 = strsplit(tmpstr, "&", &count); 4999 4999 max = count - 1; 5000 5000 5001 5001 if(ret1 != NULL) 5002 5002 { … … 5041 5041 free(ret1), ret1 = NULL; 5042 5042 free(tmpstr), tmpstr = NULL; 5043 5043 5044 5044 buf = webadjust(NULL, fmt); 5045 5045 writeconfigtmp(); … … 5055 5055 char* buf = NULL; 5056 5056 char* tmpstr = NULL; 5057 5058 tmpstr = ostrcat(param, NULL, 0, 0); 5057 5058 tmpstr = ostrcat(param, NULL, 0, 0); 5059 5059 if(tmpstr != NULL) buf = ostrstr(tmpstr, searchparam); 5060 if(buf != NULL) buf = buf + strlen(searchparam); 5060 if(buf != NULL) buf = buf + strlen(searchparam); 5061 5061 free(tmpstr); tmpstr = NULL; 5062 5062 buf = stringreplacecharonce(buf, '&', '\0'); … … 5074 5074 if(status.security == 0) return NULL; 5075 5075 5076 // if(fmt == 0) 5076 // if(fmt == 0) 5077 5077 // { 5078 5078 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 5104 5104 if(param == NULL) return NULL; 5105 5105 5106 // if(fmt == 0) 5106 // if(fmt == 0) 5107 5107 // { 5108 5108 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 5128 5128 tmpstr = ostrcat(tmpstr, "/", 1, 0); 5129 5129 tmpstr = ostrcat(tmpstr, param, 1, 0); 5130 tmpstr = ostrcat(tmpstr, ".txt", 1, 0); 5131 5130 tmpstr = ostrcat(tmpstr, ".txt", 1, 0); 5131 5132 5132 debug(10, "file: %s", tmpstr); 5133 5133 tmpstr1 = readfiletomem(tmpstr, 1); … … 5153 5153 { 5154 5154 char* buf = NULL, *tmpstr = NULL, *helppath = NULL, *lang = NULL, *cmd = NULL; 5155 5156 // if(fmt == 0) 5155 5156 // if(fmt == 0) 5157 5157 // { 5158 5158 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 5178 5178 cmd = ostrcat(cmd, lang, 1, 1); 5179 5179 cmd = ostrcat(cmd, "/", 1, 0); 5180 5180 5181 5181 debug(10, "cmd: %s", cmd); 5182 5182 tmpstr = command(cmd); 5183 5183 5184 5184 int count, i, max; 5185 5185 count = 0; … … 5187 5187 ret1 = strsplit(tmpstr, "\n", &count); 5188 5188 max = count - 1; 5189 5189 5190 5190 buf = ostrcat(buf, "<table cellpadding=5 cellspacing=5><tr><td nowrap>", 1, 0); 5191 5191 5192 5192 if(ret1 != NULL) 5193 5193 { … … 5201 5201 buf = ostrcat(buf, "</br></br>", 1, 0); 5202 5202 } 5203 } 5203 } 5204 5204 5205 5205 // segfault ?? … … 5222 5222 if(status.security == 0) return NULL; 5223 5223 5224 // if(fmt == 0) 5224 // if(fmt == 0) 5225 5225 // { 5226 5226 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 5228 5228 buf = ostrcat(buf, "</head><body class=body id=\"help\"><center>", 1, 0); 5229 5229 // } 5230 5230 5231 5231 debug(10, "file: %s", param); 5232 5232 tmpstr = readfiletomem(param, 1); … … 5234 5234 buf = ostrcat(buf, tmpstr, 1, 0); 5235 5235 5236 free(tmpstr), tmpstr = NULL; 5236 free(tmpstr), tmpstr = NULL; 5237 5237 buf = string_replace_all("<br>", "<br>\n", buf, 1); 5238 5238 … … 5251 5251 5252 5252 mode = atoi(param); 5253 if(fmt == 0) 5253 if(fmt == 0) 5254 5254 { 5255 5255 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 5286 5286 { 5287 5287 buf = ostrcat(buf, "</center></body></html>", 1, 0); 5288 } 5289 5290 return buf; 5291 } 5288 } 5289 5290 return buf; 5291 } 5292 5292 5293 5293 char* webgetsysinfos(char* param, int fmt) … … 5297 5297 5298 5298 mode = atoi(param); 5299 if(fmt == 0) 5299 if(fmt == 0) 5300 5300 { 5301 5301 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 5338 5338 { 5339 5339 buf = ostrcat(buf, "</center></body></html>", 1, 0); 5340 } 5341 5342 return buf; 5343 } 5340 } 5341 5342 return buf; 5343 } 5344 5344 5345 5345 char* webgetlogs(char* param, int fmt) … … 5349 5349 5350 5350 mode = atoi(param); 5351 if(fmt == 0) 5351 if(fmt == 0) 5352 5352 { 5353 5353 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 5384 5384 { 5385 5385 buf = ostrcat(buf, "</center></body></html>", 1, 0); 5386 } 5387 5388 return buf; 5389 } 5386 } 5387 5388 return buf; 5389 } 5390 5390 5391 5391 char* webgetabout(int fmt) … … 5393 5393 char* buf = NULL, *tmpstr = NULL; 5394 5394 5395 if(fmt == 0) 5395 if(fmt == 0) 5396 5396 { 5397 5397 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 5416 5416 { 5417 5417 buf = ostrcat(buf, "</center></body></html>", 1, 0); 5418 } 5419 5418 } 5419 5420 5420 return buf; 5421 5421 } … … 5425 5425 char* buf = NULL; 5426 5426 5427 if(fmt == 0) 5427 if(fmt == 0) 5428 5428 { 5429 5429 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 5454 5454 buf = ostrcat(buf, node->title, 1, 0); 5455 5455 buf = ostrcat(buf, " - ", 1, 0); 5456 buf = ostrcat(buf, node->date, 1, 0); 5456 buf = ostrcat(buf, node->date, 1, 0); 5457 5457 buf = ostrcat(buf, "</a>", 1, 0); 5458 5458 buf = ostrcat(buf, "</br></br>", 1, 0); … … 5471 5471 if(fmt == 0) 5472 5472 buf = ostrcat(buf, "</td></tr></table></center></body></html>", 1, 0); 5473 5473 5474 5474 return buf; 5475 5475 } … … 5479 5479 char* buf = NULL, *tmpstr = NULL, *tmpstr1 = NULL; 5480 5480 5481 // if(fmt == 0) 5481 // if(fmt == 0) 5482 5482 // { 5483 5483 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 5495 5495 while(node != NULL) 5496 5496 { 5497 if(ostrcmp(oitoa(node->nr), param) == 0) 5497 if(ostrcmp(oitoa(node->nr), param) == 0) 5498 5498 { 5499 5499 tmpstr1 = ostrcat(node->title, " - ", 0, 0); … … 5505 5505 } 5506 5506 5507 // if(fmt == 0) 5507 // if(fmt == 0) 5508 5508 // { 5509 5509 buf = ostrcat(buf, "<br>", 1, 0); … … 5528 5528 // if(fmt == 0) 5529 5529 buf = ostrcat(buf, "</center></body></html>", 1, 0); 5530 5530 5531 5531 return buf; 5532 5532 } … … 5536 5536 char* buf = NULL, *tmpstr = NULL; 5537 5537 5538 if(fmt == 0) 5538 if(fmt == 0) 5539 5539 { 5540 5540 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 5583 5583 if(fmt == 0) 5584 5584 buf = ostrcat(buf, "</center></body></html>", 1, 0); 5585 5585 5586 5586 return buf; 5587 5587 } … … 5591 5591 char* buf = NULL, *tmpstr = NULL; 5592 5592 5593 // if(fmt == 0) 5593 // if(fmt == 0) 5594 5594 // { 5595 5595 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 5619 5619 } 5620 5620 5621 // if(fmt == 0) 5621 // if(fmt == 0) 5622 5622 // { 5623 5623 buf = ostrcat(buf, "<br>", 1, 0); … … 5642 5642 // if(fmt == 0) 5643 5643 buf = ostrcat(buf, "</center></body></html>", 1, 0); 5644 5644 5645 5645 return buf; 5646 5646 } … … 5710 5710 5711 5711 buf = ostrcat(buf, "<table cellpadding=5 cellspacing=5><tr><td nowrap>", 1, 0); 5712 5712 5713 5713 if(ret1 != NULL) 5714 5714 { … … 5745 5745 if(!file_exist("/var/swap/logs")) 5746 5746 mkdir("/var/swap/logs", 777); 5747 5747 5748 5748 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); 5750 5750 } 5751 5751 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) … … 5753 5753 if(!file_exist("/mnt/logs")) 5754 5754 mkdir("/mnt/logs", 777); 5755 5755 5756 5756 if(file_exist("/etc/.beta") && file_exist("/mnt/logs")) 5757 5757 cmd = ostrcat(cmd, " > /mnt/logs/update_debug.log 2>&1", 1, 0); … … 5831 5831 5832 5832 free(cmd), cmd = NULL; 5833 5833 5834 5834 // if(fmt == 0) 5835 5835 buf = ostrcat(buf, "</center></body></html>", 1, 0); … … 5844 5844 char* buf = NULL; 5845 5845 5846 if(fmt == 0) 5846 if(fmt == 0) 5847 5847 { 5848 5848 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 5865 5865 5866 5866 if(node == NULL) buf = ostrcat(buf, _("No Tpk Sections Found."), 1, 0); 5867 5867 5868 5868 while(node != NULL) 5869 5869 { … … 5893 5893 { 5894 5894 buf = ostrcat(buf, "</center></body></html>", 1, 0); 5895 } 5895 } 5896 5896 5897 5897 tpkcleantmp(0); 5898 5898 status.hangtime = getconfigint("hangtime", NULL); 5899 5899 5900 5900 return buf; 5901 5901 } … … 5908 5908 char* buf = NULL; 5909 5909 5910 // if(fmt == 0) 5910 // if(fmt == 0) 5911 5911 // { 5912 5912 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 5934 5934 tpk_installed = tpk; 5935 5935 tpk = node; 5936 5936 5937 5937 while(node != NULL) 5938 5938 { … … 5948 5948 node_installed = node_installed->next; 5949 5949 } 5950 5950 5951 5951 //check if tpk is in section 5952 5952 if(param != NULL && ostrcmp(node->section, param) != 0) … … 5980 5980 // { 5981 5981 buf = ostrcat(buf, "</center></body></html>", 1, 0); 5982 // } 5983 5982 // } 5983 5984 5984 return buf; 5985 5985 } … … 6002 6002 while(node != NULL) 6003 6003 { 6004 if(ostrcmp(node->filename, param) == 0) 6004 if(ostrcmp(node->filename, param) == 0) 6005 6005 { 6006 6006 size = node->size; … … 6013 6013 } 6014 6014 6015 // if(fmt == 0) 6015 // if(fmt == 0) 6016 6016 // { 6017 6017 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 6042 6042 } 6043 6043 } 6044 6044 6045 6045 if(path == NULL || path[0] == '*' || ostrstr(path, "var") != NULL) 6046 6046 { … … 6060 6060 } 6061 6061 } 6062 6062 6063 6063 if(path == NULL || path[0] == '*' || ostrstr(path, "swap") != NULL) 6064 6064 { … … 6102 6102 tpkcleantmp(0); 6103 6103 status.hangtime = getconfigint("hangtime", NULL); 6104 6104 6105 6105 // if(fmt == 0) 6106 6106 // { 6107 6107 buf = ostrcat(buf, "</center></body></html>", 1, 0); 6108 // } 6109 6108 // } 6109 6110 6110 return buf; 6111 6111 } … … 6210 6210 // { 6211 6211 buf = ostrcat(buf, "</center></body></html>", 1, 0); 6212 // } 6213 6212 // } 6213 6214 6214 return buf; 6215 6215 } … … 6222 6222 char* buf = NULL, *tmpstr = NULL, *tmpstr1 = NULL, *tmpstr2 = NULL, *tmpstr3 = NULL; 6223 6223 6224 if(fmt == 0) 6224 if(fmt == 0) 6225 6225 { 6226 6226 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 6233 6233 else 6234 6234 buf = ostrcat(buf, _("TPK media (media)"), 1, 0); 6235 6235 6236 6236 buf = ostrcat(buf, "</h1>", 1, 0); 6237 6237 buf = ostrcat(buf, "<br>", 1, 0); … … 6247 6247 addhddall(); 6248 6248 node = hdd; 6249 6249 6250 6250 while(node != NULL) 6251 6251 { … … 6254 6254 tmpstr1 = ostrcat("/autofs/", node->device, 0, 0); 6255 6255 tmpstr2 = gettpktmplist(tmpstr1); 6256 6256 6257 6257 if(tmpstr2 != NULL) 6258 6258 { 6259 6259 treffer = 1; 6260 6260 // screenextensions(2, tmpstr1, NULL, 1); 6261 tmpstr3 = ostrcat(tmpstr3, tmpstr1, 1, 0); 6261 tmpstr3 = ostrcat(tmpstr3, tmpstr1, 1, 0); 6262 6262 tmpstr3 = ostrcat(tmpstr3, "\n", 1, 0); 6263 6263 } 6264 6264 6265 6265 free(tmpstr1); tmpstr1 = NULL; 6266 6266 free(tmpstr2); tmpstr2 = NULL; … … 6268 6268 node = node->next; 6269 6269 } 6270 6271 tmpstr = gettpktmplist(tmpstr3); 6270 6271 tmpstr = gettpktmplist(tmpstr3); 6272 6272 free(tmpstr3), tmpstr = NULL; 6273 6273 } 6274 6274 6275 6275 if(mode == 0) 6276 6276 { … … 6289 6289 6290 6290 buf = ostrcat(buf, "<table cellpadding=5 cellspacing=5><tr><td nowrap>", 1, 0); 6291 6291 6292 6292 if(ret1 != NULL) 6293 6293 { … … 6311 6311 { 6312 6312 buf = ostrcat(buf, "</center></body></html>", 1, 0); 6313 } 6314 6313 } 6314 6315 6315 return buf; 6316 6316 } … … 6323 6323 int skip; 6324 6324 6325 // if(fmt == 0) 6325 // if(fmt == 0) 6326 6326 // { 6327 6327 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 6349 6349 tpk_installed = tpk; 6350 6350 tpk = node; 6351 6351 6352 6352 while(node != NULL) 6353 6353 { … … 6391 6391 // { 6392 6392 buf = ostrcat(buf, "</center></body></html>", 1, 0); 6393 // } 6394 6393 // } 6394 6395 6395 return buf; 6396 6396 } … … 6475 6475 // { 6476 6476 buf = ostrcat(buf, "</center></body></html>", 1, 0); 6477 // } 6478 6477 // } 6478 6479 6479 return buf; 6480 6480 } … … 6488 6488 status.hangtime = 99999; 6489 6489 6490 if(fmt == 0) 6490 if(fmt == 0) 6491 6491 { 6492 6492 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 6505 6505 buf = ostrcat(buf, "<br>", 1, 0); 6506 6506 } 6507 6507 6508 6508 writesys("/tmp/.tpk_upgrade_start", "0", 0); 6509 6509 if(tpkupdate(0) != 0) … … 6544 6544 { 6545 6545 buf = ostrcat(buf, "</center></body></html>", 1, 0); 6546 } 6547 6546 } 6547 6548 6548 return buf; 6549 6549 } … … 6553 6553 char* buf = NULL, *tmpstr = NULL; 6554 6554 6555 if(fmt == 0) 6555 if(fmt == 0) 6556 6556 { 6557 6557 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 6569 6569 tmpstr = readfiletomem("/tmp/Service.txt", 0); 6570 6570 tmpstr = ostrcat(tmpstr, "\ncomming soon...\n", 1, 0); 6571 6571 6572 6572 tmpstr = string_replace_all("\n", "<br>\n", tmpstr, 1); 6573 6573 … … 6577 6577 { 6578 6578 buf = ostrcat(buf, "</center></body></html>", 1, 0); 6579 } 6580 6579 } 6580 6581 6581 return buf; 6582 6582 } 6583 6583 6584 6584 char* webgetbackup(int fmt) 6585 { 6585 { 6586 6586 if(status.security == 0) return NULL; 6587 6587 6588 6588 char* buf = NULL, *tmpstr = NULL; 6589 6589 6590 if(fmt == 0) 6590 if(fmt == 0) 6591 6591 { 6592 6592 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 6602 6602 6603 6603 tmpstr = create_backup(NULL, 0); 6604 6604 6605 6605 tmpstr = string_replace_all("\n", "<br>\n", tmpstr, 1); 6606 6606 buf = ostrcat(buf, tmpstr, 1, 1); … … 6614 6614 { 6615 6615 buf = ostrcat(buf, "</center></body></html>", 1, 0); 6616 } 6617 6616 } 6617 6618 6618 return buf; 6619 6619 } … … 6625 6625 char* buf = NULL, *tmpstr = NULL; 6626 6626 6627 if(fmt == 0) 6627 if(fmt == 0) 6628 6628 { 6629 6629 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 6650 6650 { 6651 6651 buf = ostrcat(buf, "</center></body></html>", 1, 0); 6652 } 6652 } 6653 6653 return buf; 6654 6654 } … … 6660 6660 char* buf = NULL, *tmpstr = NULL; 6661 6661 6662 if(fmt == 0) 6662 if(fmt == 0) 6663 6663 { 6664 6664 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 6673 6673 6674 6674 tmpstr = create_backuprestore(); 6675 6675 6676 6676 tmpstr = string_replace_all("\n", "<br>\n", tmpstr, 1); 6677 6677 buf = ostrcat(buf, tmpstr, 1, 1); … … 6690 6690 { 6691 6691 buf = ostrcat(buf, "</center></body></html>", 1, 0); 6692 } 6693 6692 } 6693 6694 6694 return buf; 6695 6695 } … … 6712 6712 } 6713 6713 6714 // if(fmt == 0) 6714 // if(fmt == 0) 6715 6715 // { 6716 6716 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 6728 6728 // } 6729 6729 6730 buf = ostrcat(buf, tmpstr, 1, 1); 6730 buf = ostrcat(buf, tmpstr, 1, 1); 6731 6731 6732 6732 buf = string_replace_all("\n", "<br>\n", buf, 1); … … 6735 6735 // { 6736 6736 buf = ostrcat(buf, "</center></body></html>", 1, 0); 6737 // } 6738 6739 return buf; 6740 } 6741 6737 // } 6738 6739 return buf; 6740 } 6741 6742 6742 char* webstartplugin(char* param, int fmt) 6743 6743 { 6744 6744 void (*startplugin)(void); 6745 6745 char* buf = NULL; 6746 6746 6747 6747 struct skin* pluginnode = getplugin(param); 6748 6748 6749 6749 if(pluginnode != NULL) 6750 6750 { … … 6762 6762 else 6763 6763 buf = ostrcat(buf, "wrong plugin name", 1, 0); 6764 6765 return buf; 6766 } 6767 6764 6765 return buf; 6766 } 6767 6768 6768 char* webgetrestoredefaultlist(int fmt) 6769 6769 { … … 6772 6772 char* buf = NULL; 6773 6773 6774 if(fmt == 0) 6774 if(fmt == 0) 6775 6775 { 6776 6776 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 6804 6804 { 6805 6805 buf = ostrcat(buf, "</center></body></html>", 1, 0); 6806 } 6807 6806 } 6807 6808 6808 return buf; 6809 6809 } … … 6816 6816 int mode = atoi(param); 6817 6817 6818 // if(fmt == 0) 6818 // if(fmt == 0) 6819 6819 // { 6820 6820 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 6837 6837 { 6838 6838 system("touch /var/etc/.erasemtd"); 6839 system("touch /var/etc/.backupmtd"); 6839 system("touch /var/etc/.backupmtd"); 6840 6840 buf = ostrcat(buf, _("Format MNT with Backup/Restore"), 1, 0); 6841 6841 buf = ostrcat(buf, "<br>", 1, 0); … … 6861 6861 // { 6862 6862 buf = ostrcat(buf, "</center></body></html>", 1, 0); 6863 // } 6864 6863 // } 6864 6865 6865 return buf; 6866 6866 } … … 6872 6872 char* buf = NULL; 6873 6873 6874 if(fmt == 0) 6874 if(fmt == 0) 6875 6875 { 6876 6876 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 6888 6888 buf = ostrcat(buf, "</a>", 1, 0); 6889 6889 buf = ostrcat(buf, "</br></br>", 1, 0); 6890 6890 6891 6891 buf = ostrcat(buf, "<a class=linelink2 href=queryraw?getchannelsettings&2 target=main>", 1, 0); 6892 6892 buf = ostrcat(buf, _("Restore Default Bouquets"), 1, 0); … … 6913 6913 { 6914 6914 buf = ostrcat(buf, "</center></body></html>", 1, 0); 6915 } 6916 6915 } 6916 6917 6917 return buf; 6918 6918 } … … 6925 6925 int mode = atoi(param); 6926 6926 6927 // if(fmt == 0) 6927 // if(fmt == 0) 6928 6928 // { 6929 6929 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 6992 6992 // { 6993 6993 buf = ostrcat(buf, "</center></body></html>", 1, 0); 6994 // } 6995 6994 // } 6995 6996 6996 return buf; 6997 6997 } … … 7002 7002 if(status.security == 0) return NULL; 7003 7003 7004 // if(fmt == 0) 7004 // if(fmt == 0) 7005 7005 // { 7006 7006 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 7016 7016 7017 7017 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); 7019 7019 // buf = ostrcat(buf, "<input hidden class=inputbox name=play>", 1, 0); 7020 7020 buf = ostrcat(buf, "<input class=inputbox style='width:360px' name=\"cmd\" style=\"overflow:hidden;\">", 1, 0); … … 7035 7035 // tmpstr = command(param); 7036 7036 buf = ostrcat(buf, tmpstr, 1, 0); 7037 free(tmpstr), tmpstr = NULL; 7037 free(tmpstr), tmpstr = NULL; 7038 7038 7039 7039 buf = string_replace_all("\n", "<br>", buf, 1); … … 7056 7056 if(cmd == NULL) return NULL; 7057 7057 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) 7061 7061 // { 7062 7062 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0); … … 7065 7065 buf = ostrcat(buf, "<br>", 1, 0); 7066 7066 buf = ostrcat(buf, "<h1>", 1, 0); 7067 buf = ostrcat(buf, cmd, 1, 0); 7067 buf = ostrcat(buf, cmd, 1, 0); 7068 7068 buf = ostrcat(buf, "</h1>", 1, 0); 7069 7069 // } … … 7076 7076 7077 7077 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; 7080 7080 7081 7081 buf = string_replace_all("\n", "<br>", buf, 1); -
titan/titan/network.h
r34551 r38864 55 55 free(*ssid); *ssid = NULL; 56 56 *ssid = ostrcat(tmpstr, NULL, 0, 0); 57 } 57 } 58 58 } 59 59 tmpstr = ostrstrcase(fileline, "psk=\""); … … 66 66 free(*key); *key = NULL; 67 67 *key = ostrcat(tmpstr, NULL, 0, 0); 68 } 68 } 69 69 } 70 70 tmpstr = ostrstrcase(fileline, "wep_key0="); … … 79 79 free(*type); *type = NULL; 80 80 *type = ostrcat("1", NULL, 0, 0); 81 } 81 } 82 82 } 83 83 } … … 91 91 { 92 92 char* savesettings = NULL; 93 93 94 94 char* tmpstr = "\nkey_mgmt=NONE\nscan_ssid=1"; 95 95 96 96 if(type == 1) //WEP 97 97 tmpstr = "\nkey_mgmt=NONE\nscan_ssid=1\nwep_tx_keyidx=0\nwep_key0="; … … 105 105 savesettings = ostrcat(savesettings, "\"", 1, 0); 106 106 savesettings = ostrcat(savesettings, tmpstr, 1, 0); 107 107 108 108 if(type == 2 || type == 3) 109 109 savesettings = ostrcat(savesettings, "\"", 1, 0); … … 112 112 if(type == 2 || type == 3) 113 113 savesettings = ostrcat(savesettings, "\"", 1, 0); 114 114 115 115 savesettings = ostrcat(savesettings, "\n}", 1, 0); 116 116 … … 204 204 { 205 205 debug(55, "[NETWORK] save resolv.conf: %s\n", savedns); 206 206 207 207 savedns = ostrcat(savedns, "\n", 1, 0); 208 208 if(dnscount == 1) … … 211 211 savedns = ostrcat(savedns, "options timeout:2 attempts:1", 1, 0); 212 212 213 213 214 214 FILE* fd1 = fopen("/mnt/network/resolv.conf", "w"); 215 215 if(fd1) … … 244 244 struct skin* lan = getscreennode(network, "lan"); 245 245 char* tmpstr = NULL; 246 246 247 247 drawscreen(network, 0, 0); 248 248 addscreenrc(network, lan); … … 260 260 tmpstr = ostrcat(tmpstr, "ping -c1 -W1 ", 1, 0); 261 261 tmpstr = ostrcat(tmpstr, fixip(status.gateway, 1), 1, 0); 262 if(system(tmpstr) == 0) 262 if(system(tmpstr) == 0) 263 263 changetext(lan, _("OK")); 264 264 else … … 268 268 tmpstr = ostrcat(tmpstr, "ping -c1 -W1 ", 1, 0); 269 269 tmpstr = ostrcat(tmpstr, "www.google.de", 1, 0); 270 if(system(tmpstr) == 0) 270 if(system(tmpstr) == 0) 271 271 changetext(internet, _("OK")); 272 272 else … … 296 296 else if(flag == 1) 297 297 tmpstr = ostrcat(_("Aktivate new network config ?"), NULL, 0, 0); 298 298 299 299 if(flag == 2 || textbox(_("Network"), tmpstr, _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 0, 0) == 1) 300 300 { … … 391 391 addchoicebox(type, "0", _("static")); 392 392 addchoicebox(type, "2", _("off")); 393 393 394 394 addchoicebox(wol, "0", _("disable")); 395 395 addchoicebox(wol, "1", _("enable")); 396 396 setchoiceboxselection(wol, getconfig("wol", NULL)); 397 397 398 398 if(ostrcmp(interface, "eth0") != 0 || file_exist("/proc/stb/fp/wol") == 0) 399 399 wol->hidden = YES; … … 493 493 system("echo disable > /proc/stb/fp/wol"); 494 494 } 495 495 496 496 debug(55, "save settings"); 497 497 debug(55, "type: %i", tmp_type); … … 556 556 int ret = 0; 557 557 char* hostname = NULL, *newhostname = NULL, *cmd = NULL; 558 558 559 559 hostname = command("hostname"); 560 560 hostname = strstrip(hostname); 561 561 newhostname = textinput(NULL, hostname); 562 562 newhostname = strstrip(newhostname); 563 563 564 564 if(newhostname != NULL && strlen(newhostname) > 0) 565 565 { … … 573 573 } 574 574 } 575 575 576 576 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 579 579 free(cmd); cmd = NULL; 580 580 free(hostname); hostname = NULL; … … 610 610 tmpstr = ostrcat(inetworknode->device, " (", 0, 0); 611 611 if(inetworknode->type == 2) 612 tmpstr = ostrcat(tmpstr, _("d eaktiv"), 1, 0);612 tmpstr = ostrcat(tmpstr, _("disable"), 1, 0); 613 613 else 614 614 tmpstr = ostrcat(tmpstr, inetworknode->ip, 1, 0); … … 747 747 { 748 748 if(listbox->select != NULL) 749 { 749 { 750 750 ssid->linecount = 0; 751 751 ssid->pagecount = 0; … … 796 796 ret = wlanstart(); 797 797 clearscreen(load); 798 798 799 799 if(ret == 0) 800 800 { 801 801 net = getinetworkfirstwlan(); 802 if(net != NULL) 802 if(net != NULL) 803 803 { 804 804 net->type = 1; //dhcp 805 805 screennetwork_adapterext(0, net->device); 806 } 806 } 807 807 } 808 808 } … … 878 878 drawscreen(wlan, 0, 0); 879 879 } 880 880 881 881 if(rcret == getrcconfigint("rcblue", NULL) && scan == 0) 882 882 { … … 908 908 drawscreen(wlan, 0, 0); 909 909 } 910 910 911 911 if(rcret == RCTIMEOUT) 912 912 drawscreen(wlan, 0, 0);
Note: See TracChangeset
for help on using the changeset viewer.