1 | #ifndef RESTOREDEFAULT_H |
---|
2 | #define RESTOREDEFAULT_H |
---|
3 | |
---|
4 | void screenrestoredefault() |
---|
5 | { |
---|
6 | int ret = 0; |
---|
7 | char* tmpstr = NULL; |
---|
8 | |
---|
9 | ret = textbox(_("Message"), _("Realy restore default settings ?"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 0, 0); |
---|
10 | |
---|
11 | if(ret == 1) |
---|
12 | { |
---|
13 | tmpstr = getconfig("restorecmd", NULL); |
---|
14 | if(tmpstr != NULL) |
---|
15 | { |
---|
16 | system(tmpstr); |
---|
17 | textbox(_("Message"), _("Receiver now reboot !!!"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 7, 0); |
---|
18 | oshutdown(2, 2);; |
---|
19 | } |
---|
20 | else |
---|
21 | textbox(_("Message"), _("Can't restore settings"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 7, 0); |
---|
22 | } |
---|
23 | } |
---|
24 | |
---|
25 | #endif |
---|