Changeset 36966 for titan/plugins/tithek/tithek.h
- Timestamp:
- 01/27/16 23:34:04 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/tithek.h
r36961 r36966 445 445 446 446 // if(cmpfilenameext(filename, ".sh") == 0) 447 if(ostrstr(filename, ".sh ") != NULL && ostrstr(filename, ".sh init") == NULL && ostrstr(filename, ".sh video") == NULL)447 if(ostrstr(filename, ".sh ") != NULL && ostrstr(filename, ".sh init") == NULL) 448 448 { 449 449 printf("[tithek] cmd: %s\n", filename); … … 454 454 debug(10, "file: %s", file); 455 455 } 456 else if(ostrstr(filename, ".sh video") != NULL)457 {458 printf("[tithek] video..... cmd: %s\n", filename);459 debug(10, "cmd: %s", filename);460 file = command(filename);461 file = string_newline(file);462 printf("[tithek] file: %s\n", file);463 debug(10, "file: %s", file);464 }465 456 else 466 457 file = ostrcat(filename, NULL, 0, 0); … … 483 474 continue; 484 475 485 if(ostrstr(filename, ".sh hoster") != NULL) 486 { 487 printf("[tithek] hoster fileline: %s\n", fileline); 488 tmpstr = command(fileline); 489 printf("[tithek] hoster tmpstr: %s\n", tmpstr); 490 491 len = strlen(tmpstr) - 1; 492 if(tmpstr[len] == '\n') 493 tmpstr[len] = '\0'; 494 if(tmpstr[len - 1] == '\r') 495 tmpstr[len - 1] = '\0'; 496 } 497 else 498 { 499 len = strlen(fileline) - 1; 500 if(fileline[len] == '\n') 501 fileline[len] = '\0'; 502 if(fileline[len - 1] == '\r') 503 fileline[len - 1] = '\0'; 504 } 476 len = strlen(fileline) - 1; 477 if(fileline[len] == '\n') 478 fileline[len] = '\0'; 479 if(fileline[len - 1] == '\r') 480 fileline[len - 1] = '\0'; 481 505 482 linecount++; 506 483 507 484 if(last == NULL) last = tmplast; 508 if(ostrstr(filename, ".sh hoster") != NULL) 509 last = addtithek(tmpstr, len + 2, linecount, last, pay); 510 else 511 last = addtithek(fileline, len + 2, linecount, last, pay); 485 last = addtithek(fileline, len + 2, linecount, last, pay); 512 486 if(last != NULL) tmplast = last; 513 487 free(tmpstr), tmpstr = NULL; … … 1381 1355 tmpstr = ostrcat(((struct tithek*)listbox->select->handle)->link, NULL, 0, 0); 1382 1356 tmpstr2 = ostrcat(((struct tithek*)listbox->select->handle)->title, NULL, 0, 0); 1383 1357 1384 1358 if(((struct tithek*)listbox->select->handle)->flag == 2) 1385 1359 { 1386 1360 if(tmpstr != NULL) tmpstr1 = ostrcat(tmpstr, NULL, 0, 0); 1387 } 1361 } 1388 1362 else if(((struct tithek*)listbox->select->handle)->flag == 3) 1389 1363 { … … 1474 1448 { 1475 1449 if(tmpstr != NULL) tmpstr1 = nbaondemand(tmpstr); 1450 } 1451 else if(((struct tithek*)listbox->select->handle)->flag == 111) 1452 { 1453 if(tmpstr != NULL) tmpstr1 = localparser_hoster(tmpstr); 1476 1454 } 1477 1455 … … 2076 2054 clearscreen(grid); 2077 2055 2078 if(((struct tithek*)listbox->select->handle)->flag == 2 || ((struct tithek*)listbox->select->handle)->flag == 3 || ((struct tithek*)listbox->select->handle)->flag == 4 || ((struct tithek*)listbox->select->handle)->flag == 5 || ((struct tithek*)listbox->select->handle)->flag == 6 || ((struct tithek*)listbox->select->handle)->flag == 12 || ((struct tithek*)listbox->select->handle)->flag == 14 || ((struct tithek*)listbox->select->handle)->flag == 15 || ((struct tithek*)listbox->select->handle)->flag == 20 || ((struct tithek*)listbox->select->handle)->flag == 38 || ((struct tithek*)listbox->select->handle)->flag == 42 || ((struct tithek*)listbox->select->handle)->flag == 45 || ((struct tithek*)listbox->select->handle)->flag == 46 || ((struct tithek*)listbox->select->handle)->flag == 64 || ((struct tithek*)listbox->select->handle)->flag == 50 || ((struct tithek*)listbox->select->handle)->flag == 41 || ((struct tithek*)listbox->select->handle)->flag == 43 || ((struct tithek*)listbox->select->handle)->flag == 75 || ((struct tithek*)listbox->select->handle)->flag == 91 || ((struct tithek*)listbox->select->handle)->flag == 92 || ((struct tithek*)listbox->select->handle)->flag == 93 || ((struct tithek*)listbox->select->handle)->flag == 94 || ((struct tithek*)listbox->select->handle)->flag == 98 )2056 if(((struct tithek*)listbox->select->handle)->flag == 2 || ((struct tithek*)listbox->select->handle)->flag == 3 || ((struct tithek*)listbox->select->handle)->flag == 4 || ((struct tithek*)listbox->select->handle)->flag == 5 || ((struct tithek*)listbox->select->handle)->flag == 6 || ((struct tithek*)listbox->select->handle)->flag == 12 || ((struct tithek*)listbox->select->handle)->flag == 14 || ((struct tithek*)listbox->select->handle)->flag == 15 || ((struct tithek*)listbox->select->handle)->flag == 20 || ((struct tithek*)listbox->select->handle)->flag == 38 || ((struct tithek*)listbox->select->handle)->flag == 42 || ((struct tithek*)listbox->select->handle)->flag == 45 || ((struct tithek*)listbox->select->handle)->flag == 46 || ((struct tithek*)listbox->select->handle)->flag == 64 || ((struct tithek*)listbox->select->handle)->flag == 50 || ((struct tithek*)listbox->select->handle)->flag == 41 || ((struct tithek*)listbox->select->handle)->flag == 43 || ((struct tithek*)listbox->select->handle)->flag == 75 || ((struct tithek*)listbox->select->handle)->flag == 91 || ((struct tithek*)listbox->select->handle)->flag == 92 || ((struct tithek*)listbox->select->handle)->flag == 93 || ((struct tithek*)listbox->select->handle)->flag == 94 || ((struct tithek*)listbox->select->handle)->flag == 98 || ((struct tithek*)listbox->select->handle)->flag == 111) 2079 2057 { 2080 2058 submenu(listbox, load, title); … … 2346 2324 continue; 2347 2325 } 2326 else if((((struct tithek*)listbox->select->handle)->flag == 112)) 2327 { 2328 // if(localparser_search(grid, listbox, countlabel, load, ((struct tithek*)listbox->select->handle)->link, ((struct tithek*)listbox->select->handle)->title) == 0) 2329 // if(screenlistbox(grid, listbox, countlabel, title, titheklink, &pagecount, &tithekexit, &oaktpage, &oaktline, &ogridcol, 0, 0) == 0) break; 2330 if(localparser_search(grid, listbox, countlabel, load, ((struct tithek*)listbox->select->handle)->link, ((struct tithek*)listbox->select->handle)->title, NULL, 0) == 0) 2331 if(screenlistbox(grid, listbox, countlabel, title, titheklink, &pagecount, &tithekexit, &oaktpage, &oaktline, &ogridcol, 0, 0) == 0) break; 2332 } 2348 2333 else if((((struct tithek*)listbox->select->handle)->flag == 3)) 2349 2334 {
Note: See TracChangeset
for help on using the changeset viewer.