1 | #ifndef MC_INTERNETBROWSER_H |
---|
2 | #define MC_INTERNETBROWSER_H |
---|
3 | |
---|
4 | void screenmc_internetbrowser() |
---|
5 | { |
---|
6 | if(status.security == 1) |
---|
7 | { |
---|
8 | int treffer = 0; |
---|
9 | struct skin* plugin = getscreen("plugin"); |
---|
10 | struct skin* child = plugin->child; |
---|
11 | |
---|
12 | while(child != NULL) |
---|
13 | { |
---|
14 | if(child->del == PLUGINDELMARK) |
---|
15 | { |
---|
16 | if(ostrcmp(child->name, "Internet Browser") == 0) |
---|
17 | treffer = 1; |
---|
18 | child = child->next; |
---|
19 | } |
---|
20 | } |
---|
21 | |
---|
22 | if(treffer == 1) |
---|
23 | { |
---|
24 | // if(textbox(_("Message"), _("start Internet browser now ?"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 0, 0) == 1){ |
---|
25 | char* tmpstr = NULL; |
---|
26 | int rcret = 0; |
---|
27 | |
---|
28 | status.sec = 0; //deaktivate spinner |
---|
29 | setfbtransparent(255); |
---|
30 | rcret = servicestop(status.aktservice, 1, 0); |
---|
31 | if(rcret == 1) return; |
---|
32 | |
---|
33 | tmpstr = ostrcat("nsfb -f linux ", getconfig("browserhome", NULL), 0, 0); |
---|
34 | system(tmpstr); |
---|
35 | free(tmpstr); |
---|
36 | setosdtransparent(getskinconfigint("osdtransparent", NULL)); |
---|
37 | drawscreen(skin, 0); |
---|
38 | servicestart(status.lastservice->channel, NULL, NULL, 0); |
---|
39 | sleep(2); |
---|
40 | // } |
---|
41 | } |
---|
42 | else |
---|
43 | textbox(_("Message"), _("Install netsurf Internetbrowser Ipk first !"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1000, 200, 0, 0); |
---|
44 | } |
---|
45 | else |
---|
46 | textbox(_("Message"), _("Registration needed, please contact Atemio !"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1000, 200, 0, 0); |
---|
47 | } |
---|
48 | |
---|
49 | #endif |
---|