Fixed date of birth question in mbsebbs and newuser

This commit is contained in:
Michiel Broek 2001-12-18 19:57:30 +00:00
parent 0e787dab0f
commit cb0ff54acf
15 changed files with 271 additions and 244 deletions

View File

@ -4324,10 +4324,16 @@ v0.33.19 26-Oct-2001
Fixed quote initials of the original user containing a space
character if there was a dot followed by a space in the users
name.
If Ask Date of Birth is not set in the configuration the user
can't change his date of birth and his age is 0 years. You
should not disable this if you restrict access to some file
areas if you want to test the users age. Also the age in the
users record is invalid.
mbnewusr:
New program, run by user bbs. This is only to register a new
bbs user. Should be started by the bbs account.
Ask Date of Birth now only is asked if set in configuration.
mbcico:
Removed IEMSI support since mbsebbs doesn't support it

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

View File

@ -2,7 +2,7 @@
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=ISO 8859-1">
<META http-equiv="Content-Style-Type" content="text/css">
<META name="author" lang="en" "content="Michiel Broek">
<META name="author" lang="en" content="Michiel Broek">
<META name="copyright" lang="en" content="Copyright Michiel Broek">
<META name="description" lang="en" content="MBSE BBS Manual">
<META name="keywords" lang="en" content="MBSE BBS, MBSE, BBS, manual, fido, fidonet, gateway, tosser, mail, tic, mailer">
@ -11,7 +11,7 @@
</HEAD>
<BODY>
<BLOCKQUOTE>
<h5>Last update 29-Jan-2001</h5>
<h5>Last update 16-Dec-2001</h5>
<P>&nbsp;<P>
<H1>MBSE BBS Setup - BBS Setup - File Areas.</H1>
@ -39,7 +39,12 @@ newfiles groups</A>.
<strong>Files.bbs </strong>The full path and filename if this area is on CDROM.
You may leave this blank if it is in the Path together
with the files.
<strong>Available </strong>If this area is available.
<strong>Available </strong>If this area is available. If you make an available
area unavailable the area is checked if there are
downloadable files in that area. If so, you can't remove
the area. If there are none you will be asked if you are
sure. After the area is made unavailable, the record is
filled with reasonable default values.
<strong>Check New </strong>Check this area for new files if a user logs in.
<strong>Dupecheck </strong>Check this area for duplicates if a user uploads a file.
<strong>Free area </strong>If all files in this area are free.

View File

@ -11,7 +11,7 @@
</HEAD>
<BODY>
<BLOCKQUOTE>
<h5>Last update 25-Oct-2001</h5>
<h5>Last update 16-Dec-2001</h5>
<P>&nbsp;<P>
<H1>MBSE BBS Setup - BBS Setup - Language Setup.</H1>
@ -28,7 +28,7 @@ present in your local language, the BBS will fall back to the default
language. This is true for the menus and textfiles for the BBS. It is
therefore wise to name all menus and textfiles the same for all languages used.
When you setup the languages for the first time, entries for English, Dutch,
Spanish, Galego and Italian are created.
Spanish, Galego, Italian and German languages are created.
<P>&nbsp;<p>
<H3>Language setup.</H3>

View File

@ -2,7 +2,7 @@
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=ISO 8859-1">
<META http-equiv="Content-Style-Type" content="text/css">
<META name="author" lang="en" "content="Michiel Broek">
<META name="author" lang="en" content="Michiel Broek">
<META name="copyright" lang="en" content="Copyright Michiel Broek">
<META name="description" lang="en" content="MBSE BBS Manual">
<META name="keywords" lang="en" content="MBSE BBS, MBSE, BBS, manual, fido, fidonet, gateway, tosser, mail, tic, mailer">
@ -63,9 +63,10 @@ you can setup the aka's, mail, files and session handshake.
<strong>No Zedzap </strong>Disable Zedzap protocol.
<strong>No Hydra </strong>Disable Hydra protocol.
<strong>No TCP/IP </strong>Disbale TCP/IP protocol, forces dial only.
<strong>8.3 names </strong>Set this if the node only accepts 8.3 filenames.
</pre>
<P>
<IMG SRC="../images/nodes.gif" width="589" height="343">
<IMG SRC="../images/nodes.gif">
<P>&nbsp;<p>
<H3>Mail setup</H3>
@ -84,7 +85,7 @@ you can setup the aka's, mail, files and session handshake.
<strong>ARCmail a..z </strong>Allow a..z last character for ARCmail filenames.
</pre>
<P>
<IMG SRC="../images/nodes1.gif" width="576" height="344">
<IMG SRC="../images/nodes1.gif">
<P>&nbsp;<p>
<H3>Mail groups</H3>
@ -93,7 +94,7 @@ Here you can tag which mail groups are available for this node. Note that all
groups are visible here, even for networks this node has no aka's in. Be
carefull not to allow a node to connect areas from networks he has no aka in.
<P>
<IMG SRC="../images/nodes2.gif" width="589" height="343">
<IMG SRC="../images/nodes2.gif">
<P>&nbsp;<p>
<H3>File setup</H3>
@ -117,14 +118,14 @@ carefull not to allow a node to connect areas from networks he has no aka in.
<strong>Stop level </strong>The debet level when to stop sending files.
</pre>
<P>
<IMG SRC="../images/nodes3.gif" width="589" height="343">
<IMG SRC="../images/nodes3.gif">
<P>&nbsp;<p>
<H3>File groups</H3>
<P>
The same story as for mail groups is true for the file groups.
<P>
<IMG SRC="../images/nodes4.gif" width="589" height="343">
<IMG SRC="../images/nodes4.gif">
<P>&nbsp;<p>
<H3>Statistics</H3>
@ -135,7 +136,7 @@ current month and previous month and the overall total since you defined
this node. There are actual 12 months of statistics stored in the nodes
record, only 2 are visible.
<P>
<IMG SRC="../images/nodes5.gif" width="589" height="343">
<IMG SRC="../images/nodes5.gif">
<P>
<A HREF="./"><IMG SRC="../images/larrow.gif" ALT="Back" Border="0" width="40" height="30"> Back to index</A>&nbsp;

View File

@ -722,7 +722,18 @@ int Test_DOB(char *DOB)
int tyear, year, month, day;
char temp[40], temp1[40];
/* First check length of string */
/*
* If Ask Date of Birth is off, assume users age is
* zero, and this check is ok.
*/
if (!CFG.iDOB) {
UserAge = 0;
return TRUE;
}
/*
* First check length of string
*/
if (strlen(DOB) != 10) {
Syslog('!', "Date format length %d characters", strlen(DOB));
/* Please enter the correct date format */
@ -769,8 +780,10 @@ void Chg_DOB()
{
char *temp;
temp = calloc(81, sizeof(char));
if (!CFG.iDOB)
return;
temp = calloc(81, sizeof(char));
ReadExitinfo();
Syslog('+', "Old DOB %s", exitinfo.sDateOfBirth);
@ -793,7 +806,6 @@ void Chg_DOB()
/*
* Change default protocol.
*/

View File

@ -375,6 +375,7 @@ int newuser()
} else /* End of if Statement */
sprintf(usrconfig.sSex, "Unknown"); /* If set off, set to Unknown */
if (CFG.iDOB) {
while (TRUE) {
Enter(1);
/* Please enter your Date of Birth DD-MM-YYYY: */
@ -394,7 +395,7 @@ int newuser()
/* Sorry you entered this year by mistake. */
pout(LIGHTRED, BLACK, (char *) Language(57));
Enter(1);
} else
} else {
if((strlen(temp)) != 10) {
Enter(1);
/* Please enter the correct date format */
@ -405,6 +406,8 @@ int newuser()
break;
}
}
}
}
usrconfig.tFirstLoginDate = ltime; /* Set first login date to current date */
usrconfig.tLastLoginDate = (time_t)0; /* To force setting new limits */

View File

@ -1448,7 +1448,7 @@ void edit_color(int *fg, int *bg, char *help)
clr_index();
set_color(WHITE, BLACK);
mvprintw(5, 6, "1.7 EDIT COLORS");
mvprintw(5, 6, "1.8 EDIT COLORS");
sprintf(temp, "Change the ^%s^ color with arrow keys, press <Enter> whene done", help);
showhelp(temp);