Ignore:
Timestamp:
01/01/17 14:17:04 (7 years ago)
Author:
gost
Message:

test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/tithek/tithek.h

    r39567 r39576  
    11561156}
    11571157
    1158 int showinfo(struct skin* listbox, char* title, char* link, char* pic, char* localname, char* menutitle, int flag)
    1159 {
    1160         int ret = 1;
    1161         char* tmpstr = NULL;
    1162         tmpstr = ostrcat(tmpstr, title, 1, 0);
    1163         tmpstr = ostrcat(tmpstr, "#", 1, 0);
    1164         tmpstr = ostrcat(tmpstr, link, 1, 0);
    1165         tmpstr = ostrcat(tmpstr, "#", 1, 0);
    1166         tmpstr = ostrcat(tmpstr, pic, 1, 0);
    1167         tmpstr = ostrcat(tmpstr, "#", 1, 0);
    1168         tmpstr = ostrcat(tmpstr, localname, 1, 0);
    1169         tmpstr = ostrcat(tmpstr, "#", 1, 0);
    1170         tmpstr = ostrcat(tmpstr, menutitle, 1, 0);
    1171         tmpstr = ostrcat(tmpstr, "#", 1, 0);
    1172         tmpstr = ostrcat(tmpstr, oitoa(flag), 1, 1);
    1173         // tithek security
    1174 //      tmpstr = string_replace_all("http://atemio.dyndns.tv/", "http://imageshack.us/md/up/grd/", tmpstr, 1);
    1175         tmpstr = ostrcat(tmpstr, "\n", 1, 0);
    1176        
    1177         char* savefile = ostrcat("/tmp/tithek/infomenu.list", NULL, 0, 0);
    1178 
    1179         writesys(savefile, tmpstr, 0);
    1180         free(tmpstr), tmpstr = NULL;
    1181 
    1182         if(file_exist(savefile))
    1183         {
    1184                 struct tithek* tnode = (struct tithek*)listbox->select->handle;
    1185                 createtithek(tnode, tnode->title, savefile, tnode->pic, tnode->localname, tnode->menutitle, tnode->flag);
    1186                 ret = 0;
    1187         }
    1188 
    1189         return ret;
    1190 }
    1191 
    11921158void cacheplay(char* link, char* filename, int flag)
    11931159{
     
    24512417                        }
    24522418                }
    2453                 else if(rcret == getrcconfigint("rcinfo", NULL))
    2454                 {
    2455                         if(listbox->select != NULL && listbox->select->handle != NULL)
    2456                         {
    2457                                 if(showinfo(listbox, ((struct tithek*)listbox->select->handle)->title, ((struct tithek*)listbox->select->handle)->link, ((struct tithek*)listbox->select->handle)->pic, ((struct tithek*)listbox->select->handle)->localname, ((struct tithek*)listbox->select->handle)->menutitle, ((struct tithek*)listbox->select->handle)->flag) == 0)
    2458                                         if(screenlistbox(grid, listbox, countlabel, title, titheklink, &pagecount, &tithekexit, &oaktpage, &oaktline, &ogridcol, 0, 0) == 0) break;
    2459                         }
    2460 
    2461                 }
    24622419//              else if(rcret == getrcconfigint("rcyellow", NULL) && ostrcmp(title, _("Tithek - Mainmenu - Favoriten")) == 0)
    24632420                else if(rcret == getrcconfigint("rcyellow", NULL) && ostrstr(title, _("Tithek - Mainmenu - Favoriten")) != NULL)
Note: See TracChangeset for help on using the changeset viewer.