Changeset 41933
- Timestamp:
- 02/24/18 20:50:46 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/kinox.h
r41932 r41933 54 54 char* menu = NULL; 55 55 char* newurl = NULL; 56 char *cmd = NULL; 57 56 58 search = strstrip(search); 57 59 search = stringreplacechar(search, ' ', '+'); … … 72 74 // tmpstr = gethttps(newurl, NULL, NULL, NULL, NULL, NULL, 1); 73 75 // new start 74 char *cmd = NULL;75 76 cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", newurl, 0, 0); 76 77 debug(99, "cmd: %s", cmd); 77 78 tmpstr = command(cmd); 78 free(cmd), cmd = NULL;79 80 79 free(cmd), cmd = NULL; 81 80 // new end … … 121 120 newurl = ostrcat(newurl, path, 1, 0); 122 121 // tmpstr1 = gethttps(newurl, NULL, NULL, NULL, NULL, NULL, 1); 123 124 char *cmd = NULL; 122 // new start 125 123 cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", newurl, 0, 0); 126 124 debug(99, "cmd: %s", cmd); 127 125 tmpstr1 = command(cmd); 128 126 free(cmd), cmd = NULL; 129 127 // new end 130 128 free(newurl), newurl = NULL; 131 129 … … 290 288 // tmpstr = gethttp(ip, path, 80, NULL, NULL, 10000, NULL, 0); 291 289 // tmpstr = gethttps(link, NULL, NULL, NULL, NULL, NULL, 1); 290 // new start 292 291 cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", link, 0, 0); 293 292 debug(99, "cmd: %s", cmd); 294 293 tmpstr = command(cmd); 295 294 free(cmd), cmd = NULL; 296 295 // new end 297 296 titheklog(debuglevel, "/tmp/kinox2_tmpstr", NULL, NULL, NULL, tmpstr); 298 297 … … 440 439 // tmpstr1 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0); 441 440 // tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1); 441 // new start 442 442 cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", pathnew, 0, 0); 443 443 debug(99, "cmd: %s", cmd); 444 444 tmpstr1 = command(cmd); 445 445 free(cmd), cmd = NULL; 446 446 // new end 447 447 if(ostrstr(tmpstr1, "503 Service Temporarily Unavailable") != NULL) 448 448 { … … 450 450 // tmpstr1 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0); 451 451 // tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1); 452 // new start 452 453 cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", pathnew, 0, 0); 453 454 debug(99, "cmd: %s", cmd); 454 455 tmpstr1 = command(cmd); 455 456 free(cmd), cmd = NULL; 457 // new end 456 458 } 457 459 if(ostrstr(tmpstr1, "503 Service Temporarily Unavailable") != NULL) … … 460 462 // tmpstr1 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0); 461 463 // tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1); 464 // new start 462 465 cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", pathnew, 0, 0); 463 466 debug(99, "cmd: %s", cmd); 464 467 tmpstr1 = command(cmd); 465 468 free(cmd), cmd = NULL; 469 // new end 466 470 } 467 471 if(ostrstr(tmpstr1, "503 Service Temporarily Unavailable") != NULL) … … 470 474 // tmpstr1 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0); 471 475 // tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1); 476 // new start 472 477 cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", pathnew, 0, 0); 473 478 debug(99, "cmd: %s", cmd); 474 479 tmpstr1 = command(cmd); 475 480 free(cmd), cmd = NULL; 481 // new end 476 482 } 477 483 if(ostrstr(tmpstr1, "503 Service Temporarily Unavailable") != NULL) … … 480 486 // tmpstr1 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0); 481 487 // tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1); 488 // new start 482 489 cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", pathnew, 0, 0); 483 490 debug(99, "cmd: %s", cmd); 484 491 tmpstr1 = command(cmd); 485 492 free(cmd), cmd = NULL; 493 // new end 486 494 } 487 495 free(pathnew), pathnew = NULL; … … 836 844 // tmpstr = gethttp(ip, path, 80, NULL, NULL, 10000, NULL, 0); 837 845 // tmpstr = gethttps(link, NULL, NULL, NULL, NULL, NULL, 1); 846 // new start 838 847 cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", link, 0, 0); 839 848 debug(99, "cmd: %s", cmd); 840 849 tmpstr = command(cmd); 841 850 free(cmd), cmd = NULL; 851 // new end 842 852 843 853 debug(99, "tmpstr: %s", tmpstr); … … 866 876 newurl = ostrcat(newurl, pathnew, 1, 0); 867 877 // tmpstr = gethttps(newurl, NULL, NULL, NULL, NULL, NULL, 1); 868 878 // new start 869 879 cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", newurl, 0, 0); 870 880 debug(99, "cmd: %s", cmd); 871 881 tmpstr = command(cmd); 872 882 free(cmd), cmd = NULL; 873 883 // new end 874 884 free(newurl), newurl = NULL; 875 885 … … 975 985 // tmpstr1 = gethttp("kinox.to", pathnew, 80, NULL, NULL, 10000, NULL, 0); 976 986 // tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1); 987 // new start 977 988 cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", pathnew, 0, 0); 978 989 debug(99, "cmd: %s", cmd); 979 990 tmpstr1 = command(cmd); 980 991 free(cmd), cmd = NULL; 992 // new end 981 993 // debug(99, "tmpstr1 1: %s", tmpstr1); 982 994 … … 997 1009 free(tmpstr1), tmpstr1 = NULL; 998 1010 // tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1); 1011 // new start 999 1012 cmd = ostrcat("/tmp/localhoster/hoster.sh get http://", pathnew, 0, 0); 1000 1013 debug(99, "cmd: %s", cmd); 1001 1014 tmpstr1 = command(cmd); 1002 1015 free(cmd), cmd = NULL; 1003 1016 // new end 1004 1017 // debug(99, "iframe2.2 tmpstr1: %s", tmpstr1); 1005 1018 tmpstr1 = string_replace_all("\\", "", tmpstr1, 1);
Note: See TracChangeset
for help on using the changeset viewer.