2001-08-17 05:46:24 +00:00
|
|
|
/*****************************************************************************
|
|
|
|
*
|
2001-11-04 16:41:54 +00:00
|
|
|
* $Id$
|
2001-08-17 05:46:24 +00:00
|
|
|
* Purpose ...............: Product information
|
|
|
|
*
|
|
|
|
*****************************************************************************
|
2002-01-07 19:16:03 +00:00
|
|
|
* Copyright (C) 1997-2002
|
2001-08-17 05:46:24 +00:00
|
|
|
*
|
|
|
|
* Michiel Broek FIDO: 2:280/2802
|
|
|
|
* Beekmansbos 10
|
|
|
|
* 1971 BV IJmuiden
|
|
|
|
* the Netherlands
|
|
|
|
*
|
|
|
|
* This file is part of MBSE BBS.
|
|
|
|
*
|
|
|
|
* This BBS is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by the
|
|
|
|
* Free Software Foundation; either version 2, or (at your option) any
|
|
|
|
* later version.
|
|
|
|
*
|
|
|
|
* MBSE BBS is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with MBSE BBS; see the file COPYING. If not, write to the Free
|
|
|
|
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
#include "../lib/libs.h"
|
|
|
|
#include "../lib/mbse.h"
|
|
|
|
#include "../lib/structs.h"
|
2002-01-07 19:16:03 +00:00
|
|
|
#include "../lib/users.h"
|
2001-08-17 05:46:24 +00:00
|
|
|
#include "../lib/records.h"
|
|
|
|
#include "../lib/common.h"
|
|
|
|
#include "../lib/clcomm.h"
|
2001-11-10 17:14:16 +00:00
|
|
|
#include "pinfo.h"
|
|
|
|
#include "input.h"
|
2001-08-17 05:46:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void ls(int a)
|
|
|
|
{
|
|
|
|
printf("%c ", a ? 179 : '|');
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void rs(int a)
|
|
|
|
{
|
|
|
|
colour(8, 0);
|
|
|
|
printf("%c\n", a ? 179 : '|');
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void wl(int a)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
|
|
|
|
ls(a);
|
|
|
|
for(i = 0; i < 76; i++)
|
|
|
|
printf(" ");
|
|
|
|
rs(a);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Product information screen
|
|
|
|
*/
|
|
|
|
void cr(void)
|
|
|
|
{
|
|
|
|
int a, i;
|
|
|
|
char *string, *temp;
|
|
|
|
|
|
|
|
a = exitinfo.GraphMode;
|
|
|
|
|
|
|
|
string = calloc(81, sizeof(char));
|
|
|
|
temp = calloc(81, sizeof(char));
|
|
|
|
|
|
|
|
clear();
|
|
|
|
colour(8, 0);
|
|
|
|
|
|
|
|
/* Print top row */
|
|
|
|
printf("%c", a ? 213 : '+');
|
|
|
|
for(i = 0; i < 77; i++)
|
|
|
|
printf("%c", a ? 205 : '=');
|
|
|
|
printf("%c\n", a ? 184 : '+');
|
|
|
|
|
|
|
|
wl(a);
|
|
|
|
ls(a);
|
2001-11-02 22:07:39 +00:00
|
|
|
#ifdef __linux__
|
|
|
|
sprintf(temp, "MBSE Bulletin Board System %s (Linux)", VERSION);
|
|
|
|
#elif __FreeBSD__
|
|
|
|
sprintf(temp, "MBSE Bulletin Board System %s (FreeBSD)", VERSION);
|
2002-01-11 19:01:00 +00:00
|
|
|
#elif __NetBSD__
|
|
|
|
sprintf(temp, "MBSE Bulletin Board System %s (NetBSD)", VERSION);
|
2001-11-02 22:07:39 +00:00
|
|
|
#else
|
|
|
|
sprintf(temp, "MBSE Bulletin Board System %s (Unknown OS)", VERSION);
|
|
|
|
#endif
|
2001-08-17 05:46:24 +00:00
|
|
|
pout(14, 0, padleft(temp, 76, ' '));
|
|
|
|
rs(a);
|
|
|
|
wl(a);
|
|
|
|
ls(a);
|
2001-11-04 16:41:54 +00:00
|
|
|
sprintf(temp, "%s", COPYRIGHT);
|
2001-08-17 05:46:24 +00:00
|
|
|
pout(11, 0, padleft(temp, 76, ' '));
|
|
|
|
rs(a);
|
|
|
|
wl(a);
|
|
|
|
ls(a);
|
|
|
|
sprintf(temp, "Compiled on %s at %s", __DATE__, __TIME__);
|
|
|
|
pout(14, 0, padleft(temp, 76, ' '));
|
|
|
|
rs(a);
|
|
|
|
wl(a);
|
|
|
|
ls(a);
|
|
|
|
pout(11, 0, (char *)"MBSE has been written and designed by Michiel Broek. Many others have given ");
|
|
|
|
rs(a);
|
|
|
|
ls(a);
|
|
|
|
pout(11, 0, (char *)"valuable time in the form of new ideas and suggestions on how to make MBSE ");
|
|
|
|
rs(a);
|
|
|
|
ls(a);
|
|
|
|
pout(11, 0, (char *)"BBS a better BBS ");
|
|
|
|
rs(a);
|
|
|
|
wl(a);
|
2001-11-02 22:07:39 +00:00
|
|
|
ls(a);
|
|
|
|
pout(15, 0, (char *)"Available from http://mbse.sourceforge.net or 2:280/2802 ");
|
|
|
|
rs(a);
|
|
|
|
wl(a);
|
2001-08-17 05:46:24 +00:00
|
|
|
ls(a);
|
|
|
|
pout(12, 0, (char *)"JAM(mbp) - Copyright 1993 Joaquim Homrighausen, Andrew Milner, ");
|
|
|
|
rs(a);
|
|
|
|
ls(a);
|
|
|
|
pout(12, 0, (char *)" Mats Birch, Mats Wallin. ");
|
|
|
|
rs(a);
|
|
|
|
ls(a);
|
|
|
|
pout(12, 0, (char *)" ALL RIGHTS RESERVED. ");
|
|
|
|
rs(a);
|
|
|
|
wl(a);
|
|
|
|
ls(a);
|
2001-11-02 22:07:39 +00:00
|
|
|
pout(9, 0, (char *)"This is free software; released under the terms of the GNU General Public ");
|
|
|
|
rs(a);
|
|
|
|
ls(a);
|
|
|
|
pout(9, 0, (char *)"License as published by the Free Software Foundation. ");
|
2001-08-17 05:46:24 +00:00
|
|
|
rs(a);
|
|
|
|
wl(a);
|
|
|
|
|
|
|
|
printf("%c", a ? 212 : '+');
|
|
|
|
for(i = 0; i < 77; i++)
|
|
|
|
printf("%c", a ? 205 : '=');
|
|
|
|
printf("%c", a ? 190 : '+');
|
|
|
|
|
|
|
|
free(string);
|
|
|
|
free(temp);
|
|
|
|
printf("\n");
|
|
|
|
Pause();
|
|
|
|
}
|
|
|
|
|
|
|
|
|