Merge branch 'from-hg'
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Makefile for MBSE BBS under Linux
|
||||
# Copyright (c) 1998, 2001 by M. Broek.
|
||||
# $Id$
|
||||
# $Id: Makefile,v 1.69 2008/02/12 19:59:45 mbse Exp $
|
||||
|
||||
include ../Makefile.global
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: bye.c,v 1.32 2008/02/12 19:59:45 mbse Exp $
|
||||
* Purpose ...............: Hangup functions
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: change.c,v 1.35 2007/03/03 14:38:30 mbse Exp $
|
||||
* Purpose ...............: Change user settings
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#ifndef _CHANGE_H
|
||||
#define _CHANGE_H
|
||||
|
||||
/* $Id$ */
|
||||
/* $Id: change.h,v 1.7 2007/02/25 20:28:08 mbse Exp $ */
|
||||
|
||||
int Chg_Language(int); /* Change language */
|
||||
void Chg_Password(void); /* Change BBS Password */
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: chat.c,v 1.32 2008/02/12 19:59:45 mbse Exp $
|
||||
* Purpose ...............: Sysop to user chat utility
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#ifndef _CHAT_H
|
||||
#define _CHAT_H
|
||||
|
||||
/* $Id$ */
|
||||
/* $Id: chat.h,v 1.3 2003/04/01 21:41:40 mbroek Exp $ */
|
||||
|
||||
void Chat(char *, char *); /* Chat Function */
|
||||
|
||||
|
@@ -1,10 +1,9 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* Purpose ...............: Display ANSI/ASCII textfiles
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2007
|
||||
* Copyright (C) 1997-2011
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10
|
||||
@@ -314,7 +313,7 @@ int DisplayFile(char *filename)
|
||||
break;
|
||||
|
||||
default: snprintf(tmp1, sizeof(tmp1)-1, "%c", buf[x]);
|
||||
strncat(out, tmp1, sizeof(out));
|
||||
strncat(out, tmp1, sizeof(out)-1);
|
||||
} /* switch */
|
||||
} /* for */
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#ifndef _DISPLAYFILE_H
|
||||
#define _DISPLAYFILE_H
|
||||
|
||||
/* $Id$ */
|
||||
/* $Id: dispfile.h,v 1.3 2007/02/25 20:28:09 mbse Exp $ */
|
||||
|
||||
|
||||
void DisplayRules(void); /* Display area rules */
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: door.c,v 1.26 2007/02/25 20:28:09 mbse Exp $
|
||||
* Purpose ...............: Run external door
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,4 +1,4 @@
|
||||
/* $Id$ */
|
||||
/* $Id: door.h,v 1.3 2003/10/11 21:22:16 mbroek Exp $ */
|
||||
|
||||
#ifndef _DOOR_H
|
||||
#define _DOOR_H
|
||||
|
@@ -1,10 +1,9 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* Purpose ...............: Internet email
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2008
|
||||
* Copyright (C) 1997-2011
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10
|
||||
@@ -438,7 +437,7 @@ int Read_a_Email(unsigned int Num)
|
||||
* a reply will be made.
|
||||
*/
|
||||
if (strncasecmp(p, "\001Message-id: ", 13) == 0) {
|
||||
snprintf(Msg.Msgid, 101, "%s", p+13);
|
||||
snprintf(Msg.Msgid, sizeof(Msg.Msgid), "%s", p+13);
|
||||
Syslog('m', "Stored Msgid \"%s\"", Msg.Msgid);
|
||||
}
|
||||
if (Kludges) {
|
||||
@@ -747,9 +746,9 @@ void Reply_Email(int IsReply)
|
||||
Line = 1;
|
||||
Msg_New();
|
||||
|
||||
snprintf(Msg.Replyid, 101, "%s", msgid);
|
||||
snprintf(Msg.ReplyTo, 101, "%s", replyto);
|
||||
snprintf(Msg.ReplyAddr, 101, "%s", replyaddr);
|
||||
snprintf(Msg.Replyid, sizeof(Msg.Replyid), "%s", msgid);
|
||||
snprintf(Msg.ReplyTo, sizeof(Msg.ReplyTo), "%s", replyto);
|
||||
snprintf(Msg.ReplyAddr, sizeof(Msg.ReplyAddr), "%s", replyaddr);
|
||||
|
||||
/* From : */
|
||||
pout(YELLOW, BLACK, (char *) Language(209));
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#ifndef _EMAIL_H
|
||||
#define _EMAIL_H
|
||||
|
||||
/* $Id$ */
|
||||
/* $Id: email.h,v 1.3 2005/10/11 20:49:48 mbse Exp $ */
|
||||
|
||||
void ShowEmailHdr(void);
|
||||
int Read_a_Email(unsigned int);
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: exitinfo.c,v 1.15 2005/10/11 20:49:48 mbse Exp $
|
||||
* Purpose ...............: Exitinfo functions
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,4 +1,4 @@
|
||||
/* $Id$ */
|
||||
/* $Id: exitinfo.h,v 1.3 2001/11/11 12:07:39 mbroek Exp $ */
|
||||
|
||||
#ifndef _EXITINFO_H
|
||||
#define _EXITINFO_H
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: file.c,v 1.45 2008/02/12 19:59:45 mbse Exp $
|
||||
* Purpose ...............: All the file functions.
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#ifndef _FILE_H
|
||||
#define _FILE_H
|
||||
|
||||
/* $Id$ */
|
||||
/* $Id: file.h,v 1.3 2005/10/11 20:49:48 mbse Exp $ */
|
||||
|
||||
void File_RawDir(char *); /* Raw Directory List of a Directory */
|
||||
void File_List(void); /* List files in current Area */
|
||||
|
@@ -1,10 +1,9 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* Purpose ...............: All the file sub functions.
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2008
|
||||
* Copyright (C) 1997-2011
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10
|
||||
@@ -773,7 +772,7 @@ int ImportFile(char *fn, int Area, int fileid, off_t Size)
|
||||
int Addfile(char *File, int AreaNum, int fileid)
|
||||
{
|
||||
FILE *id, *pPrivate;
|
||||
int iDesc = 1, iPrivate = FALSE, GotId = FALSE, lines, i, j;
|
||||
int iDesc = 1, GotId = FALSE, lines, i, j;
|
||||
char *Filename, *temp1, *idname = NULL, *Desc[26], *lname, temp[PATH_MAX], msg[81];
|
||||
struct stat statfile;
|
||||
struct _fdbarea *fdb_area = NULL;
|
||||
@@ -980,7 +979,6 @@ int Addfile(char *File, int AreaNum, int fileid)
|
||||
if ((pPrivate = fopen(temp, "a+")) == NULL)
|
||||
WriteError("$Can't open %s", temp);
|
||||
else {
|
||||
iPrivate = TRUE;
|
||||
fprintf(pPrivate, "****************************************************");
|
||||
fprintf(pPrivate, "\nUser : %s", fdb.Uploader);
|
||||
fprintf(pPrivate, "\nFile : %s (%s)", fdb.LName, fdb.Name);
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#ifndef _FILESUB_H
|
||||
#define _FILESUB_H
|
||||
|
||||
/* $Id$ */
|
||||
/* $Id: filesub.h,v 1.6 2005/10/11 20:49:48 mbse Exp $ */
|
||||
|
||||
FILE *OpenFareas(int);
|
||||
int CheckBytesAvailable(int);
|
||||
|
@@ -1,10 +1,9 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* Purpose ...............: FullScreen Message editor.
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2007
|
||||
* Copyright (C) 1997-2011
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10
|
||||
@@ -395,8 +394,11 @@ int FsWordWrap()
|
||||
if ((WCol == 80) && (Col >= WCol))
|
||||
WCol = strlen((char *)tmpLine)+1;
|
||||
else {
|
||||
if (tmpLine[strlen((char *)tmpLine)] != ' ')
|
||||
snprintf((char *)tmpLine + strlen((char *)tmpLine), 1, " ");
|
||||
if (tmpLine[strlen((char *)tmpLine)] != ' '){
|
||||
int tmpLength=strlen((char *)tmpLine);
|
||||
tmpLine[tmpLength] = ' ';
|
||||
tmpLine[tmpLength+1] = '\0';
|
||||
}
|
||||
WCol = strlen((char *)tmpLine);
|
||||
}
|
||||
snprintf(Message[CurRow+1], TEXTBUFSIZE +1, "%s", strcat((char *)tmpLine, Message[CurRow+1]));
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#ifndef _FSEDIT_H
|
||||
#define _FSEDIT_H
|
||||
|
||||
/* $Id$ */
|
||||
/* $Id: fsedit.h,v 1.9 2007/02/25 20:28:09 mbse Exp $ */
|
||||
|
||||
|
||||
int Fs_Edit(void); /* The fullscreen message editor */
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: funcs.c,v 1.25 2005/10/17 18:02:00 mbse Exp $
|
||||
* Purpose ...............: Misc functions
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,4 +1,4 @@
|
||||
/* $Id$ */
|
||||
/* $Id: funcs.h,v 1.6 2002/10/01 16:54:16 mbroek Exp $ */
|
||||
|
||||
#ifndef _FUNCS_H
|
||||
#define _FUNCS_H
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: input.c,v 1.29 2007/08/25 18:32:08 mbse Exp $
|
||||
* Purpose ...............: Input functions, also for some utils.
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,4 +1,4 @@
|
||||
/* $Id$ */
|
||||
/* $Id: input.h,v 1.6 2005/10/11 20:49:48 mbse Exp $ */
|
||||
|
||||
#ifndef _INPUT_H
|
||||
#define _INPUT_H
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: language.c,v 1.12 2007/02/17 12:14:25 mbse Exp $
|
||||
* Purpose ...............: Language functions.
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: lastcallers.c,v 1.13 2008/11/29 13:42:39 mbse Exp $
|
||||
* Purpose ...............: Display Last Callers
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,4 +1,4 @@
|
||||
/* $Id$ */
|
||||
/* $Id: lastcallers.h,v 1.1 2001/11/12 21:42:17 mbroek Exp $ */
|
||||
|
||||
#ifndef _LASTCALLERS_H
|
||||
#define _LASTCALLERS_H
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: logentry.c,v 1.7 2005/08/29 11:15:54 mbse Exp $
|
||||
* Purpose ...............: Make a log entry
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,4 +1,4 @@
|
||||
/* $Id$ */
|
||||
/* $Id: logentry.h,v 1.1 2001/11/12 21:42:17 mbroek Exp $ */
|
||||
|
||||
#ifndef _LOGENTRY_H
|
||||
#define _LOGENTRY_H
|
||||
|
@@ -1,11 +1,10 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* Purpose ...............: Message reading and writing.
|
||||
* Todo ..................: Implement message groups.
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2008
|
||||
* Copyright (C) 1997-2011
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10
|
||||
@@ -503,8 +502,38 @@ void Post_Msg()
|
||||
} else if (msgs.Type == NETMAIL) {
|
||||
x = FALSE;
|
||||
Enter(1);
|
||||
pout(YELLOW, BLACK, (char *)"Address : ");
|
||||
FidoNode = calloc(61, sizeof(char));
|
||||
/*
|
||||
* Search for Name in Sysop Index of Nodelist
|
||||
*/
|
||||
node_list *nodesSysop;
|
||||
node_list *thisNode;
|
||||
node_list *prevNode;
|
||||
|
||||
if ( NULL ==( nodesSysop=searchSysop(Msg.To) )){
|
||||
snprintf(msg, 81, "%s\r\n\n", (char*)Language(480));
|
||||
pout(RED, BLACK, msg);
|
||||
} else {
|
||||
snprintf(msg, 81, "%s\r\n\n", (char*)Language(481));
|
||||
pout(GREEN, BLACK, msg);
|
||||
thisNode = nodesSysop;
|
||||
while ( thisNode != NULL ){
|
||||
snprintf(msg, 81, "(%d:%d/%d:%d) %s @ %s\r\n",
|
||||
thisNode->addr.zone, thisNode->addr.net,
|
||||
thisNode->addr.node, thisNode->addr.point,
|
||||
thisNode->Name, thisNode->Location);
|
||||
pout(CYAN, BLACK, msg);
|
||||
prevNode = thisNode;
|
||||
thisNode = thisNode->next;
|
||||
free( prevNode );
|
||||
}
|
||||
pout(YELLOW, BLACK, (char *)"\r\n");
|
||||
}
|
||||
/*
|
||||
* End Search
|
||||
*/
|
||||
|
||||
pout(YELLOW, BLACK, (char *)"Address : ");
|
||||
colour(CFG.MsgInputColourF, CFG.MsgInputColourB);
|
||||
GetstrC(FidoNode, 60);
|
||||
|
||||
@@ -1610,9 +1639,9 @@ void Reply_Msg(int IsReply)
|
||||
Message[i] = (char *) calloc(MAX_LINE_LENGTH +1, sizeof(char));
|
||||
Msg_New();
|
||||
|
||||
strncpy(Msg.Replyid, msgid, 101);
|
||||
strncpy(Msg.ReplyTo, replyto, 101);
|
||||
strncpy(Msg.ReplyAddr, replyaddr, 101);
|
||||
strncpy(Msg.Replyid, msgid, sizeof(Msg.Replyid));
|
||||
strncpy(Msg.ReplyTo, replyto, sizeof(Msg.ReplyTo));
|
||||
strncpy(Msg.ReplyAddr, replyaddr, sizeof(Msg.ReplyAddr));
|
||||
|
||||
/* From : */
|
||||
if (Alias_Option()) {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
/* $Id$ */
|
||||
/* $Id: mail.h,v 1.6 2007/02/25 20:28:10 mbse Exp $ */
|
||||
|
||||
#ifndef _MAIL_H
|
||||
#define _MAIL_H
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: mbnewusr.c,v 1.28 2007/10/14 13:15:34 mbse Exp $
|
||||
* Purpose ...............: New user registration
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,4 +1,4 @@
|
||||
/* $Id$ */
|
||||
/* $Id: mbnewusr.h,v 1.1 2001/11/10 17:14:16 mbroek Exp $ */
|
||||
|
||||
#ifndef _MBNEWUSR_H
|
||||
#define _MBNEWUSR_H
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: mbsebbs.c,v 1.59 2007/10/14 13:15:34 mbse Exp $
|
||||
* Purpose ...............: Main startup
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,10 +1,9 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* Purpose ...............: Display and handle the menus.
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2007
|
||||
* Copyright (C) 1997-2011
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10
|
||||
@@ -89,7 +88,7 @@ void InitMenu()
|
||||
void menu()
|
||||
{
|
||||
FILE *pMenuFile;
|
||||
int iFoundKey = FALSE, Key, IsANSI;
|
||||
int Key, IsANSI;
|
||||
char temp[81], *Input, *sMenuPathFileName, buf[81];
|
||||
|
||||
Input = calloc(PATH_MAX, sizeof(char));
|
||||
@@ -236,7 +235,6 @@ void menu()
|
||||
fclose(pMenuFile);
|
||||
}
|
||||
DoMenu(le_int(menus.MenuType));
|
||||
iFoundKey = TRUE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: mib.c,v 1.1 2008/02/12 19:59:45 mbse Exp $
|
||||
* Purpose ...............: snmp MIB counters
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#ifndef _MIB_H
|
||||
#define _MIB_H
|
||||
|
||||
/* $Id$ */
|
||||
/* $Id: mib.h,v 1.1 2008/02/12 19:59:45 mbse Exp $ */
|
||||
|
||||
|
||||
void sendmibs(void);
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: misc.c,v 1.21 2007/02/25 20:28:10 mbse Exp $
|
||||
* Purpose ...............: Misc functions
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,4 +1,4 @@
|
||||
/* $Id$ */
|
||||
/* $Id: misc.h,v 1.3 2001/11/12 21:42:17 mbroek Exp $ */
|
||||
|
||||
#ifndef _MISC_H
|
||||
#define _MISC_H
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: morefile.c,v 1.10 2005/10/07 20:42:35 mbse Exp $
|
||||
* Purpose ...............: Display file with more
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,4 +1,4 @@
|
||||
/* $Id$ */
|
||||
/* $Id: morefile.h,v 1.1 2001/11/12 21:42:17 mbroek Exp $ */
|
||||
|
||||
#ifndef _MOREFILE_H
|
||||
#define _MOREFILE_H
|
||||
|
@@ -1,10 +1,9 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* Purpose ...............: Utilities for message handling.
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2005
|
||||
* Copyright (C) 1997-2011
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10
|
||||
@@ -160,7 +159,7 @@ void Add_Headkludges(faddr *dest, int IsReply)
|
||||
time_t tt;
|
||||
faddr *Node;
|
||||
|
||||
temp = calloc(128, sizeof(char));
|
||||
temp = calloc(PATH_MAX, sizeof(char));
|
||||
|
||||
switch (msgs.Type) {
|
||||
case LOCALMAIL: Msg.Localmail = TRUE;
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#ifndef _MSGUTIL_H
|
||||
#define _MSGUTIL_H
|
||||
|
||||
/* $Id$ */
|
||||
/* $Id: msgutil.h,v 1.4 2003/09/14 12:24:18 mbroek Exp $ */
|
||||
|
||||
char *rfcdate(time_t); /* Create RFC style date */
|
||||
int Open_Msgbase(char *, int); /* Open msgbase for read/write */
|
||||
|
@@ -1,11 +1,10 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* Purpose ...............: New User login under Unix, creates both
|
||||
* BBS and unix accounts.
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2007
|
||||
* Copyright (C) 1997-2011
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10
|
||||
@@ -77,7 +76,6 @@ int newuser(void)
|
||||
{
|
||||
FILE *pUsrConfig;
|
||||
int i, x, Found, iLang, recno = 0, Count = 0, badname;
|
||||
unsigned int crc;
|
||||
char temp[PATH_MAX], *FullName, *temp1, *temp2, *Phone1, *Phone2;
|
||||
int offset;
|
||||
struct userrec us;
|
||||
@@ -171,7 +169,6 @@ int newuser(void)
|
||||
language(LIGHTRED, BLACK, 41);
|
||||
Enter(1);
|
||||
} else {
|
||||
crc = StringCRC32(tu(temp1));
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
/* $Id$ */
|
||||
/* $Id: newuser.h,v 1.5 2005/10/07 20:42:35 mbse Exp $ */
|
||||
|
||||
#ifndef _NEWUSER_H
|
||||
#define _NEWUSER_H
|
||||
|
@@ -1,10 +1,9 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* Purpose ...............: Offline Reader
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2008
|
||||
* Copyright (C) 1997-2011
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10
|
||||
@@ -2659,8 +2658,6 @@ char *StripSpaces(char *String, int Size)
|
||||
|
||||
void OLR_DownASCII(void)
|
||||
{
|
||||
struct tm *tp;
|
||||
time_t Now;
|
||||
char Pktname[32], *Work, *Temp, *cwd = NULL, Atag[60], Kinds[12], *p;
|
||||
int Area = 0, i, rc = 0;
|
||||
FILE *fp = NULL, *tf, *mf, *af, *inf;
|
||||
@@ -2685,8 +2682,6 @@ void OLR_DownASCII(void)
|
||||
Work = calloc(PATH_MAX, sizeof(char));
|
||||
Temp = calloc(PATH_MAX, sizeof(char));
|
||||
|
||||
Now = time(NULL);
|
||||
tp = localtime(&Now);
|
||||
Syslog('+', "Preparing ASCII packet");
|
||||
|
||||
snprintf(Temp, PATH_MAX, "%s.MSG", CFG.bbsid);
|
||||
|
@@ -1,10 +1,9 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* Purpose ...............: Oneliner functions.
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2005
|
||||
* Copyright (C) 1997-2011
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10
|
||||
@@ -196,7 +195,7 @@ char *Oneliner_Get()
|
||||
/*
|
||||
* Get a random oneliner
|
||||
*/
|
||||
sFileName = calloc(128, sizeof(char));
|
||||
sFileName = calloc(PATH_MAX, sizeof(char));
|
||||
snprintf(sFileName, PATH_MAX, "%s/etc/oneline.data", getenv("MBSE_ROOT"));
|
||||
|
||||
if ((pOneline = fopen(sFileName, "r+")) == NULL) {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: openport.c,v 1.16 2007/02/11 14:52:48 mbse Exp $
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2007
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#ifndef _OPENPORT_H
|
||||
#define _OPENPORT_H
|
||||
|
||||
/* $Id$ */
|
||||
/* $Id: openport.h,v 1.2 2004/11/20 13:30:13 mbse Exp $ */
|
||||
|
||||
int io_mode(int, int);
|
||||
void hangup(void);
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: page.c,v 1.19 2007/02/17 12:14:26 mbse Exp $
|
||||
* Purpose ...............: Sysop Paging
|
||||
* Todo ..................: Implement new config settings.
|
||||
*
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: pinfo.c,v 1.17 2007/02/25 20:28:12 mbse Exp $
|
||||
* Purpose ...............: Product information
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: pop3.c,v 1.15 2005/10/11 20:49:48 mbse Exp $
|
||||
* Purpose ...............: POP3 client
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: signature.c,v 1.7 2005/08/29 10:29:22 mbse Exp $
|
||||
* Purpose ...............: Edit message signature.
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#ifndef _SIGNATURE_H
|
||||
#define _SIGNATURE_H
|
||||
|
||||
/* $Id$ */
|
||||
/* $Id: signature.h,v 1.1 2003/02/02 21:26:47 mbroek Exp $ */
|
||||
|
||||
void signature(void);
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: term.c,v 1.6 2007/08/25 12:49:09 mbse Exp $
|
||||
* Purpose ...............: Terminal output routines.
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#ifndef _TERM_H
|
||||
#define _TERM_H
|
||||
|
||||
/* $Id$ */
|
||||
/* $Id: term.h,v 1.4 2007/02/25 20:28:13 mbse Exp $ */
|
||||
|
||||
void Enter(int);
|
||||
char *pout_str(int, int, char *);
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: timecheck.c,v 1.18 2005/10/17 18:02:00 mbse Exp $
|
||||
* Purpose ...............: Timecheck functions
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: timeout.c,v 1.16 2007/03/03 14:38:31 mbse Exp $
|
||||
* Purpose ...............: Inactivity timeout functions
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: timestats.c,v 1.11 2007/03/01 15:17:16 mbse Exp $
|
||||
* Purpose ...............: Time Statistics
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,4 +1,4 @@
|
||||
/* $Id$ */
|
||||
/* $Id: timestats.h,v 1.1 2001/11/12 21:42:18 mbroek Exp $ */
|
||||
|
||||
#ifndef _TIMESTATS_H
|
||||
#define _TIMESTATS_H
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: transfer.c,v 1.21 2005/10/11 20:49:48 mbse Exp $
|
||||
* Purpose ...............: File Transfers
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#ifndef _TRANSFER_H
|
||||
#define _TRANSFER_H
|
||||
|
||||
/* $Id$ */
|
||||
/* $Id: transfer.h,v 1.8 2005/10/11 20:49:48 mbse Exp $ */
|
||||
|
||||
|
||||
|
||||
|
@@ -1,10 +1,9 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* Purpose ...............: tty I/O for mbsebbs and mbnewusr
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2004
|
||||
* Copyright (C) 1997-2011
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10
|
||||
@@ -61,7 +60,6 @@ char *ttystat[]= {(char *)"Ok",
|
||||
static int tty_read(char *, int, int);
|
||||
static int tty_read(char *buf, int size, int tot)
|
||||
{
|
||||
time_t now;
|
||||
int rc;
|
||||
fd_set readfds, writefds, exceptfds;
|
||||
struct timeval seltimer;
|
||||
@@ -70,8 +68,6 @@ static int tty_read(char *buf, int size, int tot)
|
||||
return 0;
|
||||
tty_status = 0;
|
||||
|
||||
now = time(NULL);
|
||||
|
||||
FD_ZERO(&readfds);
|
||||
FD_ZERO(&writefds);
|
||||
FD_ZERO(&exceptfds);
|
||||
|
@@ -1,4 +1,4 @@
|
||||
/* $Id$ */
|
||||
/* $Id: ttyio.h,v 1.5 2006/03/20 19:13:14 mbse Exp $ */
|
||||
|
||||
#ifndef TTYIO_H
|
||||
#define TTYIO_H
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: user.c,v 1.43 2007/03/03 14:38:31 mbse Exp $
|
||||
* Purpose ...............: Main user login procedure. Checks for limits,
|
||||
* new ratio's cats all the welcome screens, and
|
||||
* does a lot of checking in general.
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: userlist.c,v 1.12 2007/02/25 20:28:13 mbse Exp $
|
||||
* Purpose ...............: Display Userlist
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,4 +1,4 @@
|
||||
/* $Id$ */
|
||||
/* $Id: userlist.h,v 1.1 2001/11/12 21:42:18 mbroek Exp $ */
|
||||
|
||||
#ifndef _USERLIST_H
|
||||
#define _USERLIST_H
|
||||
|
@@ -1,10 +1,9 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* Purpose ...............: Who's online functions
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2007
|
||||
* Copyright (C) 1997-2011
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10
|
||||
@@ -50,7 +49,7 @@ extern int LC_Download, LC_Upload, LC_Read, LC_Chat, LC_Olr, LC_Door;
|
||||
*/
|
||||
void WhosOn(char *OpData)
|
||||
{
|
||||
char buf[128], *Heading, *cnt, *isdoing, *location, *device;
|
||||
char buf[128], *Heading, *isdoing, *location, *device;
|
||||
char *fullname, *temp, msg[81], wstr[128];;
|
||||
int x, Start = TRUE;
|
||||
FILE *fp;
|
||||
@@ -100,7 +99,7 @@ void WhosOn(char *OpData)
|
||||
/*
|
||||
* We are only interested in copies of the mbsebbs program
|
||||
*/
|
||||
cnt = strtok(buf, ",");
|
||||
strtok(buf, ",");
|
||||
strtok(NULL, ",");
|
||||
device = xstrcpy(strtok(NULL, ","));
|
||||
fullname = xstrcpy(cldecode(strtok(NULL, ",")));
|
||||
|
@@ -1,4 +1,4 @@
|
||||
/* $Id$ */
|
||||
/* $Id: whoson.h,v 1.2 2003/10/11 21:22:16 mbroek Exp $ */
|
||||
|
||||
#ifndef _WHOSON_H
|
||||
#define _WHOSON_H
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: ymrecv.c,v 1.13 2005/10/11 20:49:48 mbse Exp $
|
||||
* Purpose ...............: Ymodem receiver
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#ifndef _YMRECV_H
|
||||
#define _YMRECV_H
|
||||
|
||||
/* $Id$ */
|
||||
/* $Id: ymrecv.h,v 1.5 2004/11/27 22:04:12 mbse Exp $ */
|
||||
|
||||
#define WCEOT (-10)
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: ymsend.c,v 1.14 2005/10/11 20:49:48 mbse Exp $
|
||||
* Purpose ...............: Ymodem sender
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#ifndef _YMSEND_H
|
||||
#define _YMSEND_H
|
||||
|
||||
/* $Id$ */
|
||||
/* $Id: ymsend.h,v 1.4 2004/11/27 22:04:12 mbse Exp $ */
|
||||
|
||||
#define RETRYMAX 10
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id$
|
||||
* $Id: zmmisc.c,v 1.25 2006/05/23 19:27:37 mbse Exp $
|
||||
*
|
||||
* Z M . C
|
||||
* Copyright 1994 Omen Technology Inc All Rights Reserved
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#ifndef _ZMMISC_H
|
||||
#define _ZMMISC_H
|
||||
|
||||
/* $Id$ */
|
||||
/* $Id: zmmisc.h,v 1.15 2006/03/18 18:32:23 mbse Exp $ */
|
||||
|
||||
|
||||
#ifndef OK
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* $Id: zmrecv.c,v 1.27 2007/08/26 14:02:28 mbse Exp $
|
||||
* Purpose ...............: Zmodem receive
|
||||
*
|
||||
*****************************************************************************
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#ifndef ZMRECV_H
|
||||
#define ZMRECV_H
|
||||
|
||||
/* $Id$ */
|
||||
/* $Id: zmrecv.h,v 1.5 2004/11/27 22:04:12 mbse Exp $ */
|
||||
|
||||
int procheader(char*);
|
||||
int zmrcvfiles(int, int);
|
||||
|
@@ -1,10 +1,9 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
* Purpose ...............: Zmodem sender
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2006
|
||||
* Copyright (C) 1997-2011
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10
|
||||
@@ -205,14 +204,9 @@ static int sendzfile(char *rn)
|
||||
{
|
||||
int rc = 0;
|
||||
struct stat st;
|
||||
struct flock fl;
|
||||
int bufl;
|
||||
int sverr;
|
||||
|
||||
fl.l_type = F_RDLCK;
|
||||
fl.l_whence = 0;
|
||||
fl.l_start = 0L;
|
||||
fl.l_len = 0L;
|
||||
if (txbuf == NULL)
|
||||
txbuf = malloc(MAXBLOCK + 1024);
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#ifndef _ZMSEND_H
|
||||
#define _ZMSEND_H
|
||||
|
||||
/* $Id$ */
|
||||
/* $Id: zmsend.h,v 1.3 2004/11/21 12:06:56 mbse Exp $ */
|
||||
|
||||
|
||||
int zmsndfiles(down_list *, int);
|
||||
|
Reference in New Issue
Block a user