Commit 06ed0bfc authored by rswindell's avatar rswindell
Browse files

Removed unused "local logon" code.

parent 29f2cf53
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2004 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 2005 Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
......@@ -116,6 +116,7 @@ bool sbbs_t::email(int usernumber, char *top, char *subj, long mode)
bputs(text[FileAlreadyThere]);
remove(msgpath);
return(false); }
#if 0 /* no such thing as local logon */
if(online==ON_LOCAL) { /* Local upload */
bputs(text[EnterPath]);
if(!getstr(str,60,K_LINE|K_UPPER)) {
......@@ -125,7 +126,9 @@ bool sbbs_t::email(int usernumber, char *top, char *subj, long mode)
backslash(str);
strcat(str,title);
mv(str,str2,1); }
else { /* Remote */
else
#endif
{ /* Remote */
xfer_prot_menu(XFER_UPLOAD);
mnemonics(text[ProtocolOrQuit]);
strcpy(str,"Q");
......
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2004 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 2005 Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
......@@ -225,6 +225,7 @@ bool sbbs_t::netmail(char *into, char *title, long mode)
if(fexistcase(str)) {
bputs(text[FileAlreadyThere]);
return(false); }
#if 0 /* no such thing as local logon */
if(online==ON_LOCAL) { /* Local upload */
bputs(text[EnterPath]);
if(!getstr(str,60,K_LINE|K_UPPER)) {
......@@ -235,7 +236,9 @@ bool sbbs_t::netmail(char *into, char *title, long mode)
strcat(str,fname);
if(mv(str,subj,1))
return(false);
} else { /* Remote */
} else
#endif
{ /* Remote */
xfer_prot_menu(XFER_UPLOAD);
mnemonics(text[ProtocolOrQuit]);
strcpy(str,"Q");
......
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2000 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 2005 Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
......@@ -1242,6 +1242,7 @@ int sbbs_t::listfileinfo(uint dirnum, char *filespec, long mode)
&& chk_ar(cfg.prot[i]->ar,&useron))
break;
if(i<cfg.total_prots) {
#if 0 /* no such thing as local logon */
if(online==ON_LOCAL) {
bputs(text[EnterPath]);
if(getstr(path,60,K_LINE)) {
......@@ -1259,7 +1260,9 @@ int sbbs_t::listfileinfo(uint dirnum, char *filespec, long mode)
,EX_OUTL);
CRLF; }
} }
else {
else
#endif
{
delfiles(cfg.temp_dir,ALLFILES);
if(cfg.dir[f.dir]->seqdev) {
lncntr=0;
......
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2004 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 2005 Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
......@@ -229,8 +229,10 @@ bool sbbs_t::logon()
CLS;
if(useron.rows)
rows=useron.rows;
#if 0 /* no such thing as local logon */
else if(online==ON_LOCAL)
rows=cfg.node_scrnlen-1;
#endif
unixtodstr(&cfg,logontime,str);
if(!strncmp(str,useron.birth,5) && !(useron.rest&FLAG('Q'))) {
bputs(text[HappyBirthday]);
......
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2004 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 2005 Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
......@@ -103,6 +103,7 @@ bool sbbs_t::inetmail(char *into, char *subj, long mode)
bputs(text[FileAlreadyThere]);
remove(msgpath);
return(false); }
#if 0 /* no such thing as local logon */
if(online==ON_LOCAL) { /* Local upload */
bputs(text[EnterPath]);
if(!getstr(str,60,K_LINE|K_UPPER)) {
......@@ -112,7 +113,9 @@ bool sbbs_t::inetmail(char *into, char *subj, long mode)
backslash(str);
strcat(str,title);
mv(str,str2,1); }
else { /* Remote */
else
#endif
{ /* Remote */
xfer_prot_menu(XFER_UPLOAD);
mnemonics(text[ProtocolOrQuit]);
strcpy(str,"Q");
......
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2003 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 2005 Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
......@@ -631,6 +631,7 @@ void sbbs_t::qwk_sec()
last_ns_time=ns_time;
remove(str);
continue; }
#if 0 /* no such thing as local logon */
if(online==ON_LOCAL) { /* Local QWK packet creation */
bputs(text[EnterPath]);
if(!getstr(str,60,K_LINE|K_UPPER)) {
......@@ -662,7 +663,7 @@ void sbbs_t::qwk_sec()
for(i=0;i<cfg.total_subs;i++)
sav_ptr[i]=subscan[i].ptr; }
continue; }
#endif
/***************/
/* Send Packet */
/***************/
......@@ -725,6 +726,7 @@ void sbbs_t::qwk_sec()
errorlog("Couldn't extract REP packet - configuration error");
continue; }
#if 0 /* no such thing as local logon */
if(online==ON_LOCAL) { /* Local upload of rep packet */
bputs(text[EnterPath]);
if(!getstr(str,60,K_LINE|K_UPPER))
......@@ -737,6 +739,7 @@ void sbbs_t::qwk_sec()
unpack_rep();
delfiles(cfg.temp_dir,ALLFILES);
continue; }
#endif
/******************/
/* Receive Packet */
......
......@@ -237,6 +237,7 @@ void sbbs_t::readmail(uint usernumber, int which)
sprintf(str3,text[DownloadAttachedFileQ]
,tp,ultoac(length,tmp));
if(length>0L && yesno(str3)) {
#if 0 /* no such thing as local logon */
if(online==ON_LOCAL) {
bputs(text[EnterPath]);
if(getstr(str3,60,K_LINE)) {
......@@ -252,7 +253,9 @@ void sbbs_t::readmail(uint usernumber, int which)
bprintf(text[FileNBytesSent]
,fd.name,ultoac(length,tmp)); } } }
else { /* Remote User */
else
#endif
{ /* Remote User */
xfer_prot_menu(XFER_DOWNLOAD);
mnemonics(text[ProtocolOrQuit]);
strcpy(str3,"Q");
......
......@@ -875,10 +875,12 @@ void sbbs_t::editfile(char *str)
sprintf(str2,"%sQUOTES.TXT",cfg.node_dir);
fexistcase(str2);
remove(str2);
#if 0 /* no such thing as local logon */
if(cfg.node_editor[0] && online==ON_LOCAL) {
external(cmdstr(cfg.node_editor,str,nulstr,NULL),0,cfg.node_dir);
return;
}
#endif
if(useron.xedit) {
editor_inf(useron.xedit,nulstr,nulstr,0,INVALID_SUB);
if(cfg.xedit[useron.xedit-1]->misc&XTRN_NATIVE)
......@@ -890,9 +892,12 @@ void sbbs_t::editfile(char *str)
if(cfg.xedit[useron.xedit-1]->misc&WWIVCOLOR)
mode|=EX_WWIV;
}
#if 0 /* no such thing as local logon */
if(online==ON_LOCAL)
external(cmdstr(cfg.xedit[useron.xedit-1]->lcmd,str,nulstr,NULL),mode,cfg.node_dir);
else {
else
#endif
{
CLS;
rioctl(IOCM|PAUSE|ABORT);
external(cmdstr(cfg.xedit[useron.xedit-1]->rcmd,str,nulstr,NULL),mode,cfg.node_dir);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment