source: titan/titan/restoredefault.h @ 12819

Last change on this file since 12819 was 12819, checked in by obi, 12 years ago

fix restoredefault.h

File size: 795 bytes
Line 
1#ifndef RESTOREDEFAULT_H
2#define RESTOREDEFAULT_H
3
4void 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
Note: See TracBrowser for help on using the repository browser.