Added archiver selection

This commit is contained in:
Michiel Broek 2006-03-05 12:57:50 +00:00
parent d2ebff86f1
commit 134536cc27
20 changed files with 203 additions and 80 deletions

View File

@ -18,10 +18,21 @@ v0.83.14 23-Feb-2006
mbfido: mbfido:
Uses archiver from the setup to pack mail for a node. Uses archiver from the setup to pack mail for a node.
mbsebbs:
Added Change archiver menu.
Added crontrol-U0 to display current archiver.
mbsetup: mbsetup:
Added archiver selection for nodes in node setup. Added archiver selection for nodes in node setup.
In archiver select added checks for valid archivers and allowed In archiver select added checks for valid archivers and allowed
escape without selecting an archiver. escape without selecting an archiver.
Added selection of archiver select menu.
lang:
New prompts 86, 87, 88 and 89.
examples:
Updated Engish menus and txtfiles.
v0.83.13 13-Feb-2006 - 23-Feb-2006 v0.83.13 13-Feb-2006 - 23-Feb-2006

Binary file not shown.

Binary file not shown.

View File

@ -14,7 +14,7 @@
</HEAD> </HEAD>
<BODY> <BODY>
<BLOCKQUOTE> <BLOCKQUOTE>
<DIV align=right><h5>Last update 06-Nov-2004</h5></div> <DIV align=right><h5>Last update 05-Mar-2006</h5></div>
<DIV align=center><h1>MBSE BBS Control Codes in ANSI and ASCII files</h1></DIV> <DIV align=center><h1>MBSE BBS Control Codes in ANSI and ASCII files</h1></DIV>
<hr> <hr>
@ -119,6 +119,7 @@ For example: ^B32000^BThis is the text^B<br>
7 User's Third address line. 7 User's Third address line.
8 User's OLR Extended Onfo (On/Off). 8 User's OLR Extended Onfo (On/Off).
9 User's charactewr set. 9 User's charactewr set.
0 User's current archiver.
</PRE> </PRE>

View File

@ -14,7 +14,7 @@
</HEAD> </HEAD>
<BODY> <BODY>
<BLOCKQUOTE> <BLOCKQUOTE>
<DIV align=right><h5>Last update 02-Mar-2003</h5></DIV> <DIV align=right><h5>Last update 05-Mar-2006</h5></DIV>
<DIV align=center><h1>MBSE BBS User Settings Menus</h1></DIV> <DIV align=center><h1>MBSE BBS User Settings Menus</h1></DIV>
<hr> <hr>
@ -55,8 +55,7 @@
<strong>Optional data:</strong> None.<Br> <strong>Optional data:</strong> None.<Br>
<P> <P>
<LI value="308"><strong>Change Scrennlength:</strong> This command will <LI value="308"><strong>Obsolete:</strong> This command does not exist.<br>
let the user set a new screenlength, the default is 24.<br>
<strong>Optional data:</strong> None.<Br> <strong>Optional data:</strong> None.<Br>
<P> <P>
@ -118,6 +117,16 @@
<strong>Optional data:</strong> None.<Br> <strong>Optional data:</strong> None.<Br>
<P> <P>
<LI value="321"><strong>Change character set:</strong> Let the user change
the default character set for messages.<br>
<strong>Optional data:</strong> None.<Br>
<P>
<LI value="322"><strong>Change archiver:</strong> Let the user change the
archhiver to use to build offline reader packages.<br>
<strong>Optional data:</strong> None.<Br>
<P>
</OL> </OL>
<HR> <HR>

View File

@ -84,10 +84,10 @@
83 change.c |Please enter the correct date format 83 change.c |Please enter the correct date format
84 misc.c |Todays Callers to 84 misc.c |Todays Callers to
85 misc.c |# User Name Device TimeOn Calls Location 85 misc.c |# User Name Device TimeOn Calls Location
86 .c | 86 change.c |Can't open archiver file.
87 .c | 87 change.c |Select your preferred archiver
88 .c | 88 change.c |Select Archiver (Enter to Quit):
89 .c | 89 change.c |Archiver now set to:
90 .c | 90 .c |
91 .c | 91 .c |
92 .c | 92 .c |

View File

@ -84,27 +84,27 @@ YN|Would you like Hot-Keyed menus? [Y/n]:
|Please enter the correct date format |Please enter the correct date format
|Todays Callers to |Todays Callers to
|# User Name Device TimeOn Calls Location |# User Name Device TimeOn Calls Location
|Safe Cracker Door |Can't open archiver file.
|Please press a key to continue: |Select your preferred archiver
|In the safe lies ... |Select Archiver (Enter to Quit):
|Please enter three numbers consisting from 1 to |Archiver now set to:
|Please enter three combinations. |
|1st digit: |
|Please try again! You must input a number greater than Zero and less than |
|2nd digit: |
|3rd digit: |
| Left: |
|Right: |
YN|Attempt to open safe with this combination [Y/n]: |
|You have won the following... |
|Sorry - You didn't open the safe! |
|The safe code was: |
YN|Do you want to try again ? [Y/n]: |
YN|Do you want to open the safe ? [Y/n]: |
|THE SAFE IS CURRENTLY LOCKED |
|has cracked the safe. |
|The safe will remain locked until the sysop rewards the user. |
|Maximum trys per day Exceeded! |
|Edit message signature |Edit message signature
|The FROM, TO and SUBJECT fields are optional. |The FROM, TO and SUBJECT fields are optional.
| From: | From:

View File

@ -84,27 +84,27 @@ JN|Wilt U sneltoets menus? [J/n]:
|Geef het juiste datum formaat |Geef het juiste datum formaat
|Bellers vandaag bij |Bellers vandaag bij
|# Gebruiker Poort Tijd Keren Woonplaats |# Gebruiker Poort Tijd Keren Woonplaats
|Kluis kraker programma |Kan archiver file niet openenen.
|Druk een toets om verder te gaan: |Kies je favourite archiver
|In de kluis ligt ... |Kies archiver (Enter is Stop):
|Geef drie nummers tussen 1 en |Archiver is nu:
|Geef drie kombinaties. |
|Eerste cijfer: |
|Probeer opnieuw! U moet een nummer geven groter dan 0 en kleiner dan |
|Tweede cijfer: |
|Derde cijfer : |
| Links: |
|Rechts: |
JN|Proberen de kluis met deze kombinatie te openenen [J/n]: |
|U hebt het volgende gewonnen ... |
|Spijtig - U hebt de kluis niet geopend! |
|De cijferkombinatie was: |
JN|Wilt U het opnieuw proberen ? [J/n]: |
JN|Wilt U de kluis openenen ? [J/n]: |
|DE KLUIS ZIT NU OP SLOT |
|heeft de kluis grkraakt. |
|De kluis blijft op slot tot de sysop de gebruiker beloond heeft. |
|Maximaal aantal pogingen perdag bereikt! |
|Wijzig berichten handtekening |Wijzig berichten handtekening
|De VAN, AAN en ONDERWERP velden zijn opties. |De VAN, AAN en ONDERWERP velden zijn opties.
| Van: | Van:

View File

@ -84,10 +84,10 @@ YN|Would you like Hot-Keyed menus? [Y/n]:
|Please enter the correct date format |Please enter the correct date format
|Todays Callers to |Todays Callers to
|# User Name Device TimeOn Calls Location |# User Name Device TimeOn Calls Location
|Safe Cracker Door |Can't open archiver file.
|Please press a key to continue: |Select your preferred archiver
|In the safe lies ... |Select Archiver (Enter to Quit):
|Please enter three numbers consisting from 1 to |Archiver now set to:
|Please enter three combinations. |Please enter three combinations.
|1st digit: |1st digit:
|Please try again! You must input a number greater than Zero and less than |Please try again! You must input a number greater than Zero and less than

View File

@ -84,10 +84,10 @@ ON|Voulez vous les menus Hot-Keyed ? [O/n]:
|Veuillez entrer la date au format correct |Veuillez entrer la date au format correct
|Appels d'aujourd'hui pour |Appels d'aujourd'hui pour
|# User Name Device TimeOn Calls Location |# User Name Device TimeOn Calls Location
|Safe Cracker Door |Can't open archiver file.
|Pressez une touche pour continuer: |Select your preferred archiver
|Dans le coffre, il y a ... |Select Archiver (Enter to Quit):
|Entrez 3 chiffres de 1 à |Archiver now set to:
|Entrez trois combinaisons. |Entrez trois combinaisons.
|1er chiffre: |1er chiffre:
|Essayez encore! Le chiffre doit être compris entre zéro et |Essayez encore! Le chiffre doit être compris entre zéro et

View File

@ -84,10 +84,10 @@ SN|
|Teclea o formato de data correcto |Teclea o formato de data correcto
|Hoxe chamaron a |Hoxe chamaron a
|# Usr. Nombre Puerto Tiempo Llams Localidad |# Usr. Nombre Puerto Tiempo Llams Localidad
|Xogo de Rouba-la Caixa Forte |Can't open archiver file.
|Pulsa unha tecla para seguir: |Select your preferred archiver
|Na caixa hay ... |Select Archiver (Enter to Quit):
|Teclea tres n£meros de 1 a |Archiver now set to:
|Teclea tres combinaci¢ns. |Teclea tres combinaci¢ns.
|1§ dixito: |1§ dixito:
|­Repite! Debe ser un n£mero maior que cero e menor que |­Repite! Debe ser un n£mero maior que cero e menor que

View File

@ -84,10 +84,10 @@ JN|Moechten Sie in den Menues "Hot-Keys" verwenden? [J/n]:
|Bitte verwenden Sie das vorgegebene Datumsformat |Bitte verwenden Sie das vorgegebene Datumsformat
|Logins heute bis |Logins heute bis
|# Benutzername Leitg. TimeOn Anrufe Ort |# Benutzername Leitg. TimeOn Anrufe Ort
|Safe Cracker Door |Can't open archiver file.
|Um fortzufahren druecken Sie bitte eine Taste: |Select your preferred archiver
|Im Safe liegt ... |Select Archiver (Enter to Quit):
|Bitte geben Sie drei Zahlen ein - von 1 bis |Archiver now set to:
|Bitte geben Sie drei Kombinationen ein. |Bitte geben Sie drei Kombinationen ein.
|1. Zahl: |1. Zahl:
|Bitte versuchen Sie es erneut! Verwenden Sie Zahlen groesser 0 und kleiner |Bitte versuchen Sie es erneut! Verwenden Sie Zahlen groesser 0 und kleiner

View File

@ -84,10 +84,10 @@ JN|Moechtest Du Menues mit "Hot-Keys" verwenden? [<J>a/<n>ein]:
|Bitte verwende das vorgegebene Datumsformat |Bitte verwende das vorgegebene Datumsformat
|Logins heute bis |Logins heute bis
|# User Name Leitg. TimeOn Calls Ort |# User Name Leitg. TimeOn Calls Ort
|Safe Cracker Door |Can't open archiver file.
|Um fortzufahren druecke bitte eine Taste: |Select your preferred archiver
|Im Safe liegt ... |Select Archiver (Enter to Quit):
|Bitte gib drei Zahlen ein - von 1 bis |Archiver now set to:
|Bitte gib Deine Kombination ein. |Bitte gib Deine Kombination ein.
|1. Zahl: |1. Zahl:
|Bitte versuche es erneut! Verwende Zahlen groesser 0 und kleiner |Bitte versuche es erneut! Verwende Zahlen groesser 0 und kleiner

View File

@ -84,10 +84,10 @@ SN|
|Teclee el formato de fecha correcto |Teclee el formato de fecha correcto
|Hoy llamaron a |Hoy llamaron a
|# Usr. Nombre Puerto Tiempo Llams Localidad |# Usr. Nombre Puerto Tiempo Llams Localidad
|Juego de Robar la Caja Fuerte |Can't open archiver file.
|Pulse una tecla para seguir: |Select your preferred archiver
|En la caja hay ... |Select Archiver (Enter to Quit):
|Teclee tres n£meros de 1 a |Archiver now set to:
|Teclee tres combinaciones. |Teclee tres combinaciones.
|1er digito: |1er digito:
|­Repita! Debe ser un n£mero mayor que cero y menor que |­Repita! Debe ser un n£mero mayor que cero y menor que

View File

@ -4,7 +4,7 @@
* Purpose ...............: Change user settings * Purpose ...............: Change user settings
* *
***************************************************************************** *****************************************************************************
* Copyright (C) 1997-2005 * Copyright (C) 1997-2006
* *
* Michiel Broek FIDO: 2:280/2802 * Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10 * Beekmansbos 10
@ -804,6 +804,98 @@ void Chg_DOB()
/*
* Change default archiver.
*/
void Chg_Archiver()
{
FILE *fp;
int Found = FALSE;
char *temp;
temp = calloc(PATH_MAX, sizeof(char));
ReadExitinfo();
Syslog('+', "Old archiver %s", exitinfo.Archiver);
while(TRUE) {
snprintf(temp, PATH_MAX, "%s/etc/archiver.data", getenv("MBSE_ROOT"));
if ((fp = fopen(temp, "r")) == NULL) {
WriteError("$Can't open %s", temp);
/* Can't open archiver file. */
Enter(1);
PUTSTR((char *) Language(86));
Enter(2);
Pause();
free(temp);
return;
}
fread(&archiverhdr, sizeof(archiverhdr), 1, fp);
Enter(1);
/* Select your preferred archiver */
pout(CFG.HiliteF, CFG.HiliteB, (char *) Language(87));
Enter(2);
while (fread(&archiver, archiverhdr.recsize, 1, fp) == 1) {
if (archiver.available && strlen(archiver.marc) && strlen(archiver.farc)) {
colour(LIGHTBLUE, BLACK);
snprintf(temp, 81, "%-6s", archiver.name);
PUTSTR(temp);
colour(WHITE, BLACK);
snprintf(temp, 81, "%s\r\n", archiver.comment);
PUTSTR(temp);
}
}
Enter(1);
/* Select Archiver (Enter to Quit): */
pout(CFG.HiliteF, CFG.HiliteB, (char *) Language(88));
alarm_on();
memset(temp, 0, PATH_MAX);
GetstrC(temp, 5);
if (strlen(temp) == 0) {
free(temp);
return;
}
Found = FALSE;
fseek(fp, archiverhdr.hdrsize, SEEK_SET);
while (fread(&archiver, archiverhdr.recsize, 1, fp) == 1) {
if (archiver.available && strlen(archiver.marc) && strlen(archiver.farc)) {
if (strcasecmp(archiver.name, temp) == 0) {
/* Valid input, set new archiver */
Found = TRUE;
break;
}
}
}
fclose(fp);
if (Found)
break;
Enter(2);
/* Invalid selection, please try again! */
pout(LIGHTGREEN, BLACK, (char *) Language(265));
Enter(2);
/* Loop for new attempt */
}
strncpy(exitinfo.Archiver, archiver.name, 6);
/* Archiver now set to: */
snprintf(temp, 81, "%s %s", Language(89), exitinfo.Archiver);
colour(WHITE, BLACK);
PUTSTR(temp);
Syslog('+', "New archiver %s", exitinfo.Archiver);
WriteExitinfo();
free(temp);
Enter(2);
Pause();
}
/* /*
* Change default protocol. * Change default protocol.
*/ */

View File

@ -20,6 +20,7 @@ void Chg_DataPhone(void); /* Change dataphone */
void Chg_News(void); /* Toggle News Bulletins */ void Chg_News(void); /* Toggle News Bulletins */
int Test_DOB(char *); /* Test of Date of Birth is valid */ int Test_DOB(char *); /* Test of Date of Birth is valid */
void Chg_DOB(void); /* Change Date of Birth */ void Chg_DOB(void); /* Change Date of Birth */
void Chg_Archiver(void); /* Change default archiver */
void Chg_Protocol(void); /* Change default transfer protocol. */ void Chg_Protocol(void); /* Change default transfer protocol. */
void Set_Protocol(char *); /* Set default protocol */ void Set_Protocol(char *); /* Set default protocol */
void Chg_OLR_ExtInfo(void); /* Set OLR Extended Info */ void Chg_OLR_ExtInfo(void); /* Set OLR Extended Info */

View File

@ -4,7 +4,7 @@
* Purpose ...............: Display ANSI/ASCII textfiles * Purpose ...............: Display ANSI/ASCII textfiles
* *
***************************************************************************** *****************************************************************************
* Copyright (C) 1997-2005 * Copyright (C) 1997-2006
* *
* Michiel Broek FIDO: 2:280/2802 * Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10 * Beekmansbos 10
@ -562,6 +562,10 @@ void ControlCodeU(int ch)
snprintf(temp, 81, "%s", getftnchrs(exitinfo.Charset)); snprintf(temp, 81, "%s", getftnchrs(exitinfo.Charset));
break; break;
case '0':
snprintf(temp, 81, "%s", exitinfo.Archiver);
break;
default: default:
snprintf(temp, 81, " "); snprintf(temp, 81, " ");
} }

View File

@ -4,7 +4,7 @@
* Purpose ...............: Display and handle the menus. * Purpose ...............: Display and handle the menus.
* *
***************************************************************************** *****************************************************************************
* Copyright (C) 1997-2005 * Copyright (C) 1997-2006
* *
* Michiel Broek FIDO: 2:280/2802 * Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10 * Beekmansbos 10
@ -659,6 +659,10 @@ void DoMenu(int Type)
Chg_Charset(); Chg_Charset();
break; break;
case 322:
Chg_Archiver();
break;
case 401: case 401:
Oneliner_Add(); Oneliner_Add();
break; break;

View File

@ -4,7 +4,7 @@
* Purpose ...............: Line Editor * Purpose ...............: Line Editor
* *
***************************************************************************** *****************************************************************************
* Copyright (C) 1997-2005 * Copyright (C) 1997-2006
* *
* Michiel Broek FIDO: 2:280/2802 * Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10 * Beekmansbos 10
@ -2224,6 +2224,7 @@ char *getmenutype(int val)
case 319: return (char *)"Change .signature file"; case 319: return (char *)"Change .signature file";
case 320: return (char *)"Change OLR Extended Info"; case 320: return (char *)"Change OLR Extended Info";
case 321: return (char *)"Change character set"; case 321: return (char *)"Change character set";
case 322: return (char *)"Change archiver";
case 401: return (char *)"Add oneliner"; case 401: return (char *)"Add oneliner";
case 402: return (char *)"List oneliners"; case 402: return (char *)"List oneliners";

View File

@ -4,7 +4,7 @@
* Purpose ...............: Edit BBS menus * Purpose ...............: Edit BBS menus
* *
***************************************************************************** *****************************************************************************
* Copyright (C) 1997-2005 * Copyright (C) 1997-2006
* *
* Michiel Broek FIDO: 2:280/2802 * Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10 * Beekmansbos 10
@ -192,7 +192,7 @@ int GetMenuType(void)
case 1: return GetSubmenu(1, 22); case 1: return GetSubmenu(1, 22);
case 2: return GetSubmenu(101, 19); case 2: return GetSubmenu(101, 19);
case 3: return GetSubmenu(201, 21); case 3: return GetSubmenu(201, 21);
case 4: return GetSubmenu(301, 21); case 4: return GetSubmenu(301, 22);
case 5: return GetSubmenu(401, 5); case 5: return GetSubmenu(401, 5);
default: return 0; default: return 0;
} }