source: titan/titan/extensions.h @ 39562

Last change on this file since 39562 was 36322, checked in by obi, 8 years ago

fix

File size: 16.9 KB
Line 
1#ifndef EXTENSIONS_H
2#define EXTENSIONS_H
3
4//flag 0: inputbox
5//flag 1: auto
6void screenfeed(int flag)
7{
8        char* tmpstr = NULL, *line = NULL, *lastline = NULL;
9        char* pos = NULL;
10
11        tmpstr = readsys(getconfig("feed", NULL), 4); //line4
12        tmpstr = string_replace("src/gz secret http://", "", tmpstr, 1);
13
14        if(tmpstr != NULL)
15                pos = strchr(tmpstr, '/');
16        if(pos != NULL)
17                pos[0] = '\0';
18
19        if(tmpstr == NULL || ostrcmp(tmpstr, "") == 0 || ostrcmp(tmpstr, "\n") == 0)
20                tmpstr = ostrcat(tmpstr, "000.000.000.000", 1, 0);
21
22        if(flag == 1)
23                lastline = ostrcat("999.999.999.999", NULL, 0, 0);
24        else   
25                lastline = numinput(_("Feed"), tmpstr, "000.000.000.000", 1);
26       
27        //for devs, who have secret feed not in mind
28        if(ostrcmp("999.999.999.999", lastline) == 0)
29        {
30                free(lastline); lastline = NULL;
31                lastline = ostrcat("097.074.032.010", NULL, 0, 0);
32        }
33
34        if(lastline != NULL)
35        {
36                free(tmpstr); tmpstr = NULL;
37                tmpstr = fixip(lastline, 1);
38                free(lastline); lastline = tmpstr;
39
40                tmpstr = readsys(getconfig("feed", NULL), 1); //line1
41                if(tmpstr == NULL || (tmpstr != NULL && strlen(tmpstr) == 0))
42                        line = ostrcat(line, "#", 1, 0);
43                else
44                        line = ostrcat(line, tmpstr, 1, 0);
45                free(tmpstr); tmpstr = NULL;
46
47                if(line[strlen(line) - 1] != '\n')
48                        line = ostrcat(line, "\n", 1, 0);
49
50                tmpstr = readsys(getconfig("feed", NULL), 2); //line2
51                if(tmpstr == NULL || (tmpstr != NULL && strlen(tmpstr) == 0))
52                        line = ostrcat(line, "#\n", 1, 0);
53                else
54                        line = ostrcat(line, tmpstr, 1, 0);
55                free(tmpstr); tmpstr = NULL;
56/////
57                if(line[strlen(line) - 1] != '\n')
58                        line = ostrcat(line, "\n", 1, 0);
59
60                tmpstr = readsys(getconfig("feed", NULL), 3); //line3
61                if(tmpstr == NULL || (tmpstr != NULL && strlen(tmpstr) == 0))
62                        line = ostrcat(line, "#\n", 1, 0);
63                else
64                        line = ostrcat(line, tmpstr, 1, 0);
65                free(tmpstr); tmpstr = NULL;
66/////
67                if(line[strlen(line) - 1] == '\n')
68                        tmpstr = ostrcat(line, "src/gz secret http://", 0, 0);
69                else
70                        tmpstr = ostrcat(line, "\nsrc/gz secret http://", 0, 0);
71
72                if(strlen(lastline) == 0)
73                {
74                        free(tmpstr);
75                        tmpstr = ostrcat(line, NULL, 0, 0);
76                }
77
78                tmpstr = ostrcat(tmpstr, lastline, 1, 0);
79//              tmpstr = ostrcat(tmpstr, "/svn/tpk/sh4", 1, 0);
80#ifdef SH4
81                tmpstr = ostrcat(tmpstr, "/svn/tpk/nightly-sh4-secret", 1, 0); 
82#else
83                tmpstr = ostrcat(tmpstr, "/svn/tpk/nightly-mipsel-secret", 1, 0);
84#endif
85                writesys(getconfig("feed", NULL), tmpstr, 0);
86        }
87
88        free(tmpstr);
89        free(line);
90        free(lastline);
91}
92
93//flag 0: install ok
94//flag 1: install err
95//flag 2: remove ok
96//flag 3: remove err
97char* gettpklog(char* installpath, int flag)
98{
99        char* tmpstr = NULL;
100
101        if(flag == 0 || flag == 1)
102                tmpstr = ostrcat(tmpstr, _("Installation start"), 1, 0);
103        else
104                tmpstr = ostrcat(tmpstr, _("Remove start"), 1, 0);
105        tmpstr = ostrcat(tmpstr, "\n\n", 1, 0);
106       
107        tmpstr = ostrcat(tmpstr, readfiletomem(TPKLOG, 0), 1, 1);
108       
109        tmpstr = ostrcat(tmpstr, "\n\n", 1, 0);
110       
111        if(installpath != NULL)
112        {
113                tmpstr = ostrcat(tmpstr, _("New free space (KB): "), 1, 0);
114                tmpstr = ostrcat(tmpstr, ollutoa(getfreespace(installpath) / 1024), 1, 1);
115                tmpstr = ostrcat(tmpstr, "\n", 1, 0);
116        }
117       
118        if(flag == 0)
119                tmpstr = ostrcat(tmpstr, _("Install success"), 1, 0);
120        if(flag == 1)
121                tmpstr = ostrcat(tmpstr, _("Install error"), 1, 0);
122        if(flag == 2)
123                tmpstr = ostrcat(tmpstr, _("Remove success"), 1, 0);
124        if(flag == 3)
125                tmpstr = ostrcat(tmpstr, _("Remove error"), 1, 0);
126               
127        if(installpath == NULL || ostrcmp("/var/swap", installpath) == 0)
128                sync();
129       
130        return tmpstr;
131}
132
133char* getinstallpath(char* path, char* size)
134{
135        int count = 0, isize = 0;
136        char* tmpstr = NULL;
137        struct menulist* mlist = NULL, *mbox = NULL, *tmpmlist = NULL;
138       
139        if(size != NULL) isize = atoi(size);
140       
141        if(path == NULL || path[0] == '*' || ostrstr(path, "mnt") != NULL)
142        {
143                if(tpkchecksize(NULL, "/mnt/swapextensions", isize) == 0)
144                {
145                        tmpmlist = addmenulist(&mlist, _("Install to MNT"), NULL, NULL, 0, 0);
146                        changemenulistparam(tmpmlist, "/mnt/swapextensions", NULL, NULL, NULL);
147                        free(tmpstr); tmpstr = NULL;
148                        tmpstr = ostrcat("/mnt/swapextensions", NULL, 0, 0);
149                        count++;
150                }
151        }
152       
153        if(path == NULL || path[0] == '*' || ostrstr(path, "var") != NULL)
154        {
155                if(tpkchecksize(NULL, "/var", isize) == 0)
156                {
157                        tmpmlist = addmenulist(&mlist, _("Install to FLASH"), NULL, NULL, 0, 0);
158                        changemenulistparam(tmpmlist, "/var", NULL, NULL, NULL);
159                        free(tmpstr); tmpstr = NULL;
160                        tmpstr = ostrcat("/var", NULL, 0, 0);
161                        count++;
162                }
163        }
164       
165        if(path == NULL || path[0] == '*' || ostrstr(path, "swap") != NULL)
166        {
167                if(file_exist("/tmp/.swapextensionsdev") == 1 || file_exist("/var/swap"))
168                {
169                        if(tpkchecksize(NULL, "/var/swap", isize) == 0)
170                        {
171                                tmpmlist = addmenulist(&mlist, _("Install to SWAP"), NULL, NULL, 0, 0);
172                                changemenulistparam(tmpmlist, "/var/swap", NULL, NULL, NULL);
173                                free(tmpstr); tmpstr = NULL;
174                                tmpstr = ostrcat("/var/swap", NULL, 0, 0);
175                                count++;
176                        }
177                }
178        }
179       
180        //if(count > 1) // if only 1 installpath, don't show choicebox
181        if(count > 0) // show always choicebox
182        {
183                free(tmpstr); tmpstr = NULL;
184                mbox = menulistbox(mlist, "tpkinstallinfo", _("Choice Install Medium"), NULL, NULL, NULL, 0, 0);
185                if(mbox != NULL)
186                        tmpstr = ostrcat(mbox->param, NULL, 0, 0);
187        }
188        else if(count == 0)
189        {
190                textbox(_("Tpk Install Info"), _("Can't install Package. Package to big."), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 800, 200, 0, 0);
191                free(tmpstr); tmpstr = NULL;
192        }
193       
194        freemenulist(mlist, 0); mlist = NULL;
195        return tmpstr;
196}
197
198void screenextensions(int mode, char* path, char* defentry, int first)
199{
200        char* tmpstr = NULL, *tmpinfo = NULL, *installpath = NULL;
201        struct menulist* mlist = NULL, *mbox = NULL;
202        struct menulist* mlist1 = NULL, *mbox1 = NULL;
203        struct skin* load = getscreen("loading");
204               
205        status.hangtime = 99999;
206        unlink(TPKLOG);
207       
208        if(mode == 0)
209        {
210                drawscreen(load, 0, 0);
211
212                if(first == 1) tpkgetindex(0);
213                tpklist();
214
215                clearscreen(load);
216
217                mbox = tpkmenulist(mlist, NULL, _("Tpk Install - select section"), NULL, NULL, 1, defentry, 0);
218
219                if(mbox != NULL)
220                {
221                        debug(130, "section: %s", mbox->name);
222                        mbox1 = tpkmenulist(mlist1, "tpkinstall", _("Tpk Install - select file"), "/tmp/tpk", mbox->name, 2, NULL, 1);
223                       
224                        if(mbox1 != NULL && mbox1->param != NULL && mbox1->param1 != NULL)
225                        {
226                                debug(130, "file: %s", mbox1->name);
227                                if(ostrstr(mbox1->name, _("There may only be one package installed from this section. To install another package from this section, remove the installed one. If the package is not visible after a software update, perform a TPK update to: ")) == NULL)
228                                {
229                                        installpath = getinstallpath(mbox1->param2, mbox1->param3);
230                                        if(installpath != NULL)
231                                        {
232                                                tmpinfo = ostrcat(tmpinfo, _("Installing"), 1, 0);
233                                                tmpinfo = ostrcat(tmpinfo, " ", 1, 0);
234                                                tmpinfo = ostrcat(tmpinfo, mbox->name, 1, 0);
235                                                tmpinfo = ostrcat(tmpinfo, "-", 1, 0);
236                                                tmpinfo = ostrcat(tmpinfo, mbox1->name, 1, 0);
237                                                tmpinfo = ostrcat(tmpinfo, " ", 1, 0);
238                                                tmpinfo = ostrcat(tmpinfo, _("starting"), 1, 0);
239                                                tmpinfo = ostrcat(tmpinfo, " ?", 1, 0);
240                       
241                                                if(textbox(_("Tpk Install Info"), _(tmpinfo), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1000, 200, 0, 0) == 1)
242                                                {
243                                                        drawscreen(load, 0, 0);
244                                                        resettvpic();
245                                                        char* log = NULL;
246                                                        int tpkret = tpkgetpackage(mbox1->param, mbox1->param1, installpath, 0, 0);
247                                                        if(tpkret == 0)
248                                                        {
249                                                                log = gettpklog(installpath, 0);
250                                                                textbox(_("Tpk Install Info - Install OK"), _(log), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1000, 600, 0, 2);
251                                                        }
252                                                        else if(tpkret == 2)
253                                                        {
254                                                                textbox(_("Tpk Install Info - Install ERROR"), _("There may only be one package installed from this section. To install another package from this section, remove the installed one. If the package is not visible after a software update, perform a TPK update to: "), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1000, 600, 0, 2);
255                                                        }
256                                                        else
257                                                        {
258                                                                log = gettpklog(installpath, 1);
259                                                                textbox(_("Tpk Install Info - Install ERROR"), _(log), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1000, 600, 0, 2);
260                                                        }
261        //                                              textbox(_("Message"), _("Some plugins needs restart.\nIf the plugin is not active\nreboot the box."), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1000, 200, 0, 0);
262                                                        loadplugin();
263                                                        free(log), log = NULL;
264                                                        unlink(TPKLOG);
265                                                        if(file_exist("/tmp/.tpk_needs_reboot"))
266                                                        {
267                                                                unlink("/tmp/.tpk_needs_reboot");
268                                                                textbox(_("Message"), _("Titan will be restarted!"), _("OK"), getrcconfigint("rcok", NULL), NULL, 0, NULL, 0, NULL, 0, 600, 200, 0, 0);
269                                                                //sync usb
270                                                                system("sync");
271                                                                //write only config file
272                                                                writeallconfig(3);
273                                                                //gui restart and write no config
274                                                                oshutdown(3, 2);
275                                                        }
276                                                }
277                                        }
278                                }
279                        }
280                }
281                free(installpath); installpath = NULL;
282                free(tmpstr); tmpstr = NULL;   
283                freemenulist(mlist1, 0); mlist1 = NULL;
284                if(mbox != NULL) tmpstr = ostrcat(mbox->name, NULL, 0, 0);
285                freemenulist(mlist, 0); mlist = NULL;
286                free(tmpinfo); tmpinfo = NULL;
287                freetpk();
288                if(mbox != NULL) screenextensions(0, path, tmpstr, 0);
289                free(tmpstr); tmpstr = NULL;
290        }
291        else if(mode == 1)
292        {
293                tpklistinstalled(0);
294                mbox = tpkmenulist(mlist, NULL, _("Tpk Remove - select file"), NULL, NULL, 1, defentry, 2);
295               
296                if(mbox != NULL && mbox->param != NULL)
297                {
298                        debug(130, "file: %s", mbox->name);
299
300                        tmpinfo = ostrcat(tmpinfo, _("Removeing"), 1, 0);
301                        tmpinfo = ostrcat(tmpinfo, " ", 1, 0);
302                        tmpinfo = ostrcat(tmpinfo, mbox->name, 1, 0);
303                        tmpinfo = ostrcat(tmpinfo, " ?", 1, 0);
304
305                        if(textbox(_("Tpk Remove Info"), _(tmpinfo), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 800, 200, 0, 0) == 1)
306                        {
307                                drawscreen(load, 0, 0);
308                                resettvpic();
309                                char* log = NULL;
310                                if(tpkremove(mbox->param, 0, 0) == 0)
311                                {
312                                        log = gettpklog(NULL, 2);
313                                        textbox(_("Tpk Remove Info - Remove OK"), _(log), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1000, 600, 0, 2);
314                                        //del plugin from memory if Titanname is defined in plugin control file
315                                        if(mbox->param1 != NULL && mbox->param1[0] != '*') delplugin(mbox->param1);
316                                }
317                                else
318                                {
319                                        log = gettpklog(NULL, 3);
320                                        textbox(_("Tpk Remove Info - Remove ERROR"), _(log), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1000, 600, 0, 2);
321                                }
322//                              textbox(_("Message"), _("Some plugins needs restart.\nIf the plugin is not active\nreboot the box."), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1000, 200, 0, 0);
323                                free(log); log = NULL;
324                                unlink(TPKLOG);
325                                if(file_exist("/tmp/.tpk_needs_reboot"))
326                                {
327                                        unlink("/tmp/.tpk_needs_reboot");
328                                        textbox(_("Message"), _("Titan will be restarted!"), _("OK"), getrcconfigint("rcok", NULL), NULL, 0, NULL, 0, NULL, 0, 600, 200, 0, 0);
329                                        //sync usb
330                                        system("sync");
331                                        //write only config file
332                                        writeallconfig(3);
333                                        //gui restart and write no config
334                                        oshutdown(3, 2);
335                                }
336                        }
337                }
338                free(tmpstr); tmpstr = NULL;
339                freemenulist(mlist, 0); mlist = NULL;
340                if(mbox != NULL) tmpstr = ostrcat(mbox->name, NULL, 0, 0);
341                free(tmpinfo); tmpinfo = NULL;
342                freetpk();
343                if(mbox != NULL) screenextensions(1, path, tmpstr, 0);
344                free(tmpstr); tmpstr = NULL;
345        }
346        else if(mode == 2)
347        {
348                char* text1 = "Tpk Tmp Install - select file";
349                char* text2 = "Tpk Tmp Info";
350
351                if(path == NULL)
352                        tmpstr = gettpktmplist("/tmp");
353                else
354                {
355                        tmpstr = gettpktmplist(path);
356                        text1 = "Tpk Media Install - select file";
357                        text2 = "Tpk Media Info";
358                }
359   
360                if(tmpstr == NULL || strlen(tmpstr) == 0)
361                {
362                        textbox(_("Message"), _("No plugin found."), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 0, 0);
363                }
364                else
365                {
366                        addmenulistall(&mlist, tmpstr, NULL, 0, defentry);
367                        mbox = menulistbox(mlist, NULL, text1, NULL, NULL, "/skin/plugin.png", 1, 0);
368                }
369               
370                free(tmpstr); tmpstr = NULL;
371               
372                if(mbox != NULL)
373                {
374                        installpath = getinstallpath(NULL, 0);
375                        debug(130, "installpath: %s", installpath);
376                        if(installpath != NULL)
377                        {
378                                debug(130, "file: %s", mbox->name);
379       
380                                tmpinfo = ostrcat(tmpinfo, _("Installing"), 1, 0);
381                                tmpinfo = ostrcat(tmpinfo, " ", 1, 0);
382                                tmpinfo = ostrcat(tmpinfo, mbox->name, 1, 0);
383                                tmpinfo = ostrcat(tmpinfo, " ", 1, 0);
384                                tmpinfo = ostrcat(tmpinfo, _("starting"), 1, 0);
385                                tmpinfo = ostrcat(tmpinfo, " ?", 1, 0);
386                                debug(130, "tmpinfo: %s", tmpinfo);
387       
388                                if(textbox(_(text2), _(tmpinfo), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1000, 200, 0, 0) == 1)
389                                {
390                                        char* log = NULL;
391                                        int ret = 0;                           
392                                        drawscreen(load, 0, 0);
393                                        resettvpic();                           
394                                        if(path == NULL)
395                                        {
396                                                tmpstr = ostrcat(tmpstr, "/tmp", 1, 0);
397                                                tmpstr = ostrcat(tmpstr, "/", 1, 0);
398                                                tmpstr = ostrcat(tmpstr, mbox->name, 1, 0);
399                                                debug(130, "tmpstr: %s", tmpstr);
400                                                ret = tpkinstall(tmpstr, installpath, 0);
401                                                free(tmpstr); tmpstr = NULL;
402                                        }
403                                        else
404                                        {
405                                                tmpstr = ostrcat(tmpstr, path, 1, 0);
406                                                tmpstr = ostrcat(tmpstr, "/", 1, 0);
407                                                tmpstr = ostrcat(tmpstr, mbox->name, 1, 0);
408                                                debug(130, "tmpstr: %s", tmpstr);
409                                                ret = tpkinstall(tmpstr, installpath, 0);
410                                                free(tmpstr); tmpstr = NULL;
411                                        }
412       
413                                        if(ret == 0)
414                                                log = gettpklog(installpath, 0);
415                                        else if(ret == 2)
416                                                log = ostrcat(_("There may only be one package installed from this section. To install another package from this section, remove the installed one. If the package is not visible after a software update, perform a TPK update to: "), NULL, 0, 0);
417                                        else
418                                                log = gettpklog(installpath, 1);
419                                        textbox(_(text2), log, _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1000, 600, 0, 0);
420                                        free(log); log = NULL;
421                                        unlink(TPKLOG);
422                                        textbox(_("Message"), _("Some plugins needs restart.\nIf the plugin is not active\nreboot the box."), "EXIT", getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, NULL, 0, 1000, 200, 0, 0);
423                                        loadplugin();
424                                        if(file_exist("/tmp/.tpk_needs_reboot"))
425                                        {
426                                                unlink("/tmp/.tpk_needs_reboot");
427                                                textbox(_("Message"), _("Titan will be restarted!"), _("OK"), getrcconfigint("rcok", NULL), NULL, 0, NULL, 0, NULL, 0, 600, 200, 0, 0);
428                                                //sync usb
429                                                system("sync");
430                                                //write only config file
431                                                writeallconfig(3);
432                                                //gui restart and write no config
433                                                oshutdown(3, 2);
434                                        }
435                                }
436                        }
437                }
438                free(installpath); installpath = NULL;
439                free(tmpstr); tmpstr = NULL;
440                freemenulist(mlist, 0); mlist = NULL;
441                if(mbox != NULL) tmpstr = ostrcat(mbox->name, NULL, 0, 0);
442                free(tmpinfo); tmpinfo = NULL;
443                if(mbox != NULL) screenextensions(2, path, tmpstr, 0);
444                free(tmpstr); tmpstr = NULL;
445        }
446        else if(mode == 3)
447        {
448                drawscreen(load, 0, 0);
449                resettvpic();
450                if(first == 1)
451                {
452                        if(tpkgetindex(0) != 0)
453                                textbox(_("Tpk Update Info - Update ERROR"), _("Can't get all TPK index !"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 0, 0);
454                }
455                writesys("/tmp/.tpk_upgrade_start", "0", 0);
456                if(tpkupdate(0) != 0)
457                        textbox(_("Tpk Update Info - Update ERROR"), _("Can't update all packages !"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 0, 0);
458                loadplugin();
459                clearscreen(load);
460                drawscreen(skin, 0, 0);
461                unlink(TPKLOG);
462
463                if(file_exist("/tmp/.tpk_needs_reboot"))
464                {
465                        unlink("/tmp/.tpk_needs_reboot");
466                        textbox(_("Message"), _("Titan will be restarted!"), _("OK"), getrcconfigint("rcok", NULL), NULL, 0, NULL, 0, NULL, 0, 600, 200, 0, 0);
467                        //sync usb
468                        system("sync");
469                        //write only config file
470                        writeallconfig(3);
471                        //gui restart and write no config
472                        oshutdown(3, 2);
473                }
474                unlink("/tmp/.tpk_upgrade_start");
475        }
476
477        if(first == 1) tpkcleantmp(0);
478        status.hangtime = getconfigint("hangtime", NULL);
479}
480
481//flag 0: without message
482//flag 1: with message
483void screenextensions_check(int flag)
484{
485        int treffer = 0;
486        struct hdd *node = NULL;
487        char* tmpstr = NULL, *tmpstr1 = NULL;
488
489        if(status.security >= 1)
490        {
491                addhddall();
492                node = hdd;
493
494                while(node != NULL)
495                {
496                        if(node->partition != 0)
497                        {
498                                tmpstr = ostrcat("/autofs/", node->device, 0, 0);
499                                tmpstr1 = gettpktmplist(tmpstr);
500
501                                if(tmpstr1 != NULL)
502                                {
503                                        treffer = 1;
504                                        screenextensions(2, tmpstr, NULL, 1);
505                                }
506
507                                free(tmpstr); tmpstr = NULL;
508                                free(tmpstr1); tmpstr1 = NULL;
509                        }
510                        node = node->next;
511                }
512
513                if(flag == 1 && treffer == 0)
514                        textbox(_("Tpk Install Info"), _("No plugin found."), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 0, 0);
515        }
516}
517
518#endif
Note: See TracBrowser for help on using the repository browser.