Skip to content
Snippets Groups Projects
Commit 58ad114b authored by deuce's avatar deuce
Browse files

Added Menu item to run SyncTERM under System Options. Requires syncterm

to be in exec directory.

Changed Edit CFG files to Edit CFG/INI files and added sbbs.ini and
services.ini since newer versions use it.  May take out services.cfg
later.

(Any reason that it was changed to ini?  Somewhat confusing having some
cfg and some ini.)
			- RuneMaster

.ini files are in .ini format, .cfg files are in whatever format seemed like
a good idea at the time.

Eventually, all the cfg files will be replace with an ini file.
parent 037bf8a8
No related branches found
No related tags found
No related merge requests found
......@@ -726,6 +726,7 @@ int edit_cfg(scfg_t *cfg)
allocfail(MAX_OPLN);
i=0;
strcpy(opt[i++],"sbbs.ini");
strcpy(opt[i++],"alias.cfg");
strcpy(opt[i++],"attr.cfg");
strcpy(opt[i++],"dns_blacklist.cfg");
......@@ -736,6 +737,7 @@ int edit_cfg(scfg_t *cfg)
strcpy(opt[i++],"relay.cfg");
strcpy(opt[i++],"sbbsecho.cfg");
strcpy(opt[i++],"services.cfg");
strcpy(opt[i++],"services.ini");
strcpy(opt[i++],"ftpalias.cfg");
strcpy(opt[i++],"sockopts.cfg");
strcpy(opt[i++],"spambait.cfg");
......@@ -993,7 +995,7 @@ int main(int argc, char** argv) {
}
mopt[i][0]=0;
uifc.helpbuf= "`Synchronet Monitor\n"
uifc.helpbuf= "`Synchronet UNIX Monitor\n"
"`------------------\n"
"Welcome to the Synchronet UNIX Monitor.\n"
"Displayed on this screen are the statitics for the BBS\n"
......@@ -1029,17 +1031,20 @@ int main(int argc, char** argv) {
i=0;
strcpy(opt[i++],"Run SCFG");
strcpy(opt[i++],"Run User Editor");
strcpy(opt[i++],"Run SyncTERM");
strcpy(opt[i++],"View logs");
strcpy(opt[i++],"Force QWK Net callout");
strcpy(opt[i++],"Run event");
strcpy(opt[i++],"Recycle servers");
strcpy(opt[i++],"Edit CFG files");
strcpy(opt[i++],"Edit CFG/INI files");
strcpy(opt[i++],"Edit trashcan files");
opt[i][0]=0;
uifc.helpbuf= "`System Options`\n"
"`------------`\n\n"
"`Run SCFG : `Run the Synchronet Configuration Utility.\n"
"`Run User Editor : `Call up the User Editor.\n"
"`Run SynchTERM : `Run SyncTERM for RLogin. SyncTERM must be\n"
" in the exec directory.\n"
"`View logs : `View the various system logs.\n"
"`Force QWK Net callout : `Force a callout to QWK Net Hub. Select which\n"
" Hub from a popup list of configured Hubs.\n"
......@@ -1075,21 +1080,30 @@ int main(int argc, char** argv) {
do_cmd(str);
break;
case 2:
view_logs(&cfg);
sprintf(str,"%ssyncterm",cfg.exec_dir);
for(j=1; j<argc; j++) {
strcat(str,"'");
strcat(str,argv[j]);
strcat(str,"' ");
}
do_cmd(str);
break;
case 3:
qwk_callouts(&cfg);
view_logs(&cfg);
break;
case 4:
run_events(&cfg);
qwk_callouts(&cfg);
break;
case 5:
recycle_servers(&cfg);
run_events(&cfg);
break;
case 6:
edit_cfg(&cfg);
recycle_servers(&cfg);
break;
case 7:
edit_cfg(&cfg);
break;
case 8:
edit_can(&cfg);
break;
}
......@@ -1330,3 +1344,4 @@ int main(int argc, char** argv) {
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment