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

Removed unused "local logon" code.

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