#ifndef FLASHX_H #define FLASHX_H char* flashx(char* link) { debug(99, "link: %s", link); int debuglevel = getconfigint("debuglevel", NULL); char* tmphost = NULL, *tmppath = NULL, *tmpstr = NULL, *send = NULL, *streamlink = NULL, *ip = NULL; char* playurl = NULL, *tmpstr2 = NULL, *error = NULL; char* app = NULL, *playpath = NULL, *swfUrl = NULL, *pageUrl = NULL, *swfVfy = NULL; char* tmplink = NULL, *pos = NULL, *path = NULL; tmplink = ostrcat(link, NULL, 0, 0); if(ostrstr(tmplink, "/Out/?s=") != NULL) { tmplink = string_replace("/Out/?s=", "", tmplink, 1); debug(99, "remove out string: %s", tmplink); } if(tmplink == NULL || ostrncmp("http", tmplink, 4)) { textbox(_("Message"), _("Hoster Url not http:// or https://") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0); goto end; } tmphost = string_replace("http://", "", tmplink, 0); tmphost = string_replace("https://", "", tmphost, 1); free(tmplink) , tmplink = NULL; if(tmphost != NULL) pos = strchr(tmphost, '/'); if(pos != NULL) { pos[0] = '\0'; path = pos + 1; } tmppath = ostrcat("/embed-", path, 0, 0); // tmphost = string_replace("www.", "", tmphost, 0); char* tmpurl = ostrcat(tmphost, "/", 0, 0); tmpurl = ostrcat(tmpurl, tmppath, 1, 0); tmpstr = gethttps(tmpurl, NULL, NULL, NULL, NULL, NULL, 1); titheklog(debuglevel, "/tmp/flashx_tmpstr_get1", NULL, NULL, NULL, tmpstr); free(tmpurl), tmpurl = NULL; tmpstr = jsunpack(tmpstr); titheklog(debuglevel, "/tmp/flashx_tmpstr_get2_jsunpack", NULL, NULL, NULL, tmpstr); if(tmpstr == NULL || ostrstr(tmpstr, "