Added character set chanage to the bbs
This commit is contained in:
parent
1d91200972
commit
ce30494be0
13
ChangeLog
13
ChangeLog
@ -20,16 +20,21 @@ v0.51.1 21-Feb-2004
|
|||||||
In edit message areas added setup for character set for the
|
In edit message areas added setup for character set for the
|
||||||
area. Also added global edit for character set.
|
area. Also added global edit for character set.
|
||||||
In several places where groups need to be tagged, there is now
|
In several places where groups need to be tagged, there is now
|
||||||
a switch (*) to select/deslect all groups at once.
|
a switch (*) to select/deselect all groups at once.
|
||||||
In the user editor the sex is now changed with the spacebar to
|
In the user editor the sex is now changed with the spacebar to
|
||||||
prevent typing errors.
|
prevent typing errors.
|
||||||
In the user editor added character set edit in the second
|
In the user editor added character set edit in the second
|
||||||
screen.
|
screen.
|
||||||
Removed users fullscreen chat setting, not used.
|
Removed users fullscreen chat setting, not used.
|
||||||
|
Added menu setup for change character set, menu 321.
|
||||||
|
|
||||||
mbsebbs:
|
mbsebbs:
|
||||||
Writes the ^aCHRS: kludge again in new created messages.
|
Writes the ^aCHRS: kludge again in new created messages.
|
||||||
Changed ^aPID to include OS and CPU.
|
Changed ^aPID to include OS and CPU.
|
||||||
|
Added user selecting a character set, menu 321.
|
||||||
|
Added login check to see if user has a valid character set.
|
||||||
|
Added Control-U 9 to display file to show the users character
|
||||||
|
set in the menus screens.
|
||||||
|
|
||||||
mbmsg:
|
mbmsg:
|
||||||
Writes the ^aCHRS: kludge again in new created messages.
|
Writes the ^aCHRS: kludge again in new created messages.
|
||||||
@ -42,6 +47,12 @@ v0.51.1 21-Feb-2004
|
|||||||
mbfido:
|
mbfido:
|
||||||
Changed ^aTID to include OS and CPU.
|
Changed ^aTID to include OS and CPU.
|
||||||
|
|
||||||
|
examples:
|
||||||
|
Added change character set in English menus and textfiles.
|
||||||
|
|
||||||
|
lang:
|
||||||
|
Added language prompts 23, 24 and 25.
|
||||||
|
|
||||||
|
|
||||||
v0.51.0 09-Feb-2004 - 21-Feb-2004
|
v0.51.0 09-Feb-2004 - 21-Feb-2004
|
||||||
|
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -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 24-Feb-2004</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>
|
|||||||
6 User's Second address line.
|
6 User's Second address line.
|
||||||
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.
|
||||||
|
|
||||||
</PRE>
|
</PRE>
|
||||||
|
|
||||||
|
@ -21,9 +21,9 @@
|
|||||||
20 door.c |The door is in use by another user, try again later
|
20 door.c |The door is in use by another user, try again later
|
||||||
21 mail.c YN| Is this correct [y/N]:
|
21 mail.c YN| Is this correct [y/N]:
|
||||||
22 mail.c |Could not parse
|
22 mail.c |Could not parse
|
||||||
23 .c |
|
23 change.c |Select your preferred character set
|
||||||
24 .c |
|
24 change.c |Select character set (Enter to Quit):
|
||||||
25 .c |
|
25 change.c |Character set now set to:
|
||||||
26 .c |
|
26 .c |
|
||||||
27 .c |
|
27 .c |
|
||||||
28 .c |
|
28 .c |
|
||||||
@ -33,8 +33,8 @@
|
|||||||
32 .c |
|
32 .c |
|
||||||
33 .c |
|
33 .c |
|
||||||
34 .c |
|
34 .c |
|
||||||
35 .c |
|
35 .c |In use for internationalization
|
||||||
36 .c |
|
36 .c |In use for internationalization
|
||||||
37 newuser.c |MBSE Bulletin Board System - NEW USER REGISTRATION
|
37 newuser.c |MBSE Bulletin Board System - NEW USER REGISTRATION
|
||||||
38 newuser.c |Use this name:
|
38 newuser.c |Use this name:
|
||||||
39 newuser.c |Please enter new password :
|
39 newuser.c |Please enter new password :
|
||||||
@ -263,7 +263,7 @@
|
|||||||
262 change.c |Protocol: Can't open protocol file.
|
262 change.c |Protocol: Can't open protocol file.
|
||||||
263 change.c |Select your preferred file transfer protcol
|
263 change.c |Select your preferred file transfer protcol
|
||||||
264 change.c |Select Protocol (Enter to Quit):
|
264 change.c |Select Protocol (Enter to Quit):
|
||||||
265 change.c |Ivalid selection, please try again!
|
265 change.c |Invalid selection, please try again!
|
||||||
266 change.c |Protocol now set to:
|
266 change.c |Protocol now set to:
|
||||||
267 file.c |Enter keyword to use for Search:
|
267 file.c |Enter keyword to use for Search:
|
||||||
268 file.c |File Search by Keyword
|
268 file.c |File Search by Keyword
|
||||||
|
@ -21,9 +21,9 @@ HR|Exporteer naar (H)ome of (R)egels directory:
|
|||||||
|De door is in gebruik door een andere gebruiker, probeer het later nog eens
|
|De door is in gebruik door een andere gebruiker, probeer het later nog eens
|
||||||
JN| Is dit juist [j/N]:
|
JN| Is dit juist [j/N]:
|
||||||
|Niet te verwerken
|
|Niet te verwerken
|
||||||
|
|
|Kies Uw karakter set
|
||||||
|
|
|Kies karakter set (Enter is Stop):
|
||||||
|
|
|Karakter set is nu:
|
||||||
|
|
|
|
||||||
|
|
|
|
||||||
|
|
|
|
||||||
|
@ -21,9 +21,9 @@ HR|Export to (H)ome or (R)ules directory:
|
|||||||
|The door is in use by another user, try again later
|
|The door is in use by another user, try again later
|
||||||
YN| Is this correct [y/N]:
|
YN| Is this correct [y/N]:
|
||||||
|Could not parse
|
|Could not parse
|
||||||
|
|
|Select your preferred character set
|
||||||
|
|
|Select character set (Enter to Quit):
|
||||||
|
|
|Character set now set to:
|
||||||
|
|
|
|
||||||
|
|
|
|
||||||
|
|
|
|
||||||
|
@ -18,12 +18,12 @@ HR|Exporter vers le r
|
|||||||
|Ceci n'est pas un simple fichier texte.
|
|Ceci n'est pas un simple fichier texte.
|
||||||
|Vous ne pouvez vous connecter que
|
|Vous ne pouvez vous connecter que
|
||||||
|fois simultanément.
|
|fois simultanément.
|
||||||
|
|
|The door is in use by another user, try again later
|
||||||
|
|
YN| Is this correct [y/N]:
|
||||||
|
|
|Could not parse
|
||||||
|
|
|Select your preferred character set
|
||||||
|
|
|Select character set (Enter to Quit):
|
||||||
|
|
|Character set now set to:
|
||||||
|
|
|
|
||||||
|
|
|
|
||||||
|
|
|
|
||||||
|
@ -21,9 +21,9 @@ HR|Exportar
|
|||||||
|Outro usuario est a usar esa door, proba mais tarde
|
|Outro usuario est a usar esa door, proba mais tarde
|
||||||
SN| ‚ correcto [s/N]:
|
SN| ‚ correcto [s/N]:
|
||||||
|Non podo interpretar
|
|Non podo interpretar
|
||||||
|
|
|Select your preferred character set
|
||||||
|
|
|Select character set (Enter to Quit):
|
||||||
|
|
|Character set now set to:
|
||||||
|
|
|
|
||||||
|
|
|
|
||||||
|
|
|
|
||||||
|
@ -21,9 +21,9 @@ HR|Export in (H)ome oder (R)ules Direktorie:
|
|||||||
|The door is in use by another user, try again later
|
|The door is in use by another user, try again later
|
||||||
YN| Is this correct [y/N]:
|
YN| Is this correct [y/N]:
|
||||||
|Could not parse
|
|Could not parse
|
||||||
|
|
|Select your preferred character set
|
||||||
|
|
|Select character set (Enter to Quit):
|
||||||
|
|
|Character set now set to:
|
||||||
|
|
|
|
||||||
|
|
|
|
||||||
|
|
|
|
||||||
|
@ -21,9 +21,9 @@ HR|Export in (H)ome oder (R)ules Direktorie:
|
|||||||
|The door is in use by another user, try again later
|
|The door is in use by another user, try again later
|
||||||
YN| Is this correct [y/N]:
|
YN| Is this correct [y/N]:
|
||||||
|Could not parse
|
|Could not parse
|
||||||
|
|
|Select your preferred character set
|
||||||
|
|
|Select character set (Enter to Quit):
|
||||||
|
|
|Character set now set to:
|
||||||
|
|
|
|
||||||
|
|
|
|
||||||
|
|
|
|
||||||
|
@ -21,9 +21,9 @@ HR|Export to (H)ome or (R)ules directory:
|
|||||||
|The door is in use by another user, try again later
|
|The door is in use by another user, try again later
|
||||||
YN| Is this correct [y/N]:
|
YN| Is this correct [y/N]:
|
||||||
|Could not parse
|
|Could not parse
|
||||||
|
|
|Select your preferred character set
|
||||||
|
|
|Select character set (Enter to Quit):
|
||||||
|
|
|Character set now set to:
|
||||||
|
|
|
|
||||||
|
|
|
|
||||||
|
|
|
|
||||||
|
@ -21,9 +21,9 @@ PR|Exportar al directorio (P)ersonal o de (R)eglas:
|
|||||||
|Otro usuario est usando esa door, int‚ntalo m s tarde.
|
|Otro usuario est usando esa door, int‚ntalo m s tarde.
|
||||||
SN| Es correcto [s/N]:
|
SN| Es correcto [s/N]:
|
||||||
|No puedo iterpretar
|
|No puedo iterpretar
|
||||||
|
|
|Select your preferred character set
|
||||||
|
|
|Select character set (Enter to Quit):
|
||||||
|
|
|Character set now set to:
|
||||||
|
|
|
|
||||||
|
|
|
|
||||||
|
|
|
|
||||||
|
@ -976,3 +976,64 @@ void Chg_OLR_ExtInfo()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Change character set.
|
||||||
|
*/
|
||||||
|
void Chg_Charset()
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
char *temp;
|
||||||
|
|
||||||
|
temp = calloc(81, sizeof(char));
|
||||||
|
ReadExitinfo();
|
||||||
|
Syslog('+', "Old character set %s", getchrs(exitinfo.Charset));
|
||||||
|
|
||||||
|
while(TRUE) {
|
||||||
|
colour(CFG.HiliteF, CFG.HiliteB);
|
||||||
|
/* Select your preferred character set */
|
||||||
|
printf("\n%s\n\n", (char *) Language(23));
|
||||||
|
|
||||||
|
colour(LIGHTBLUE, BLACK);
|
||||||
|
for (i = (FTNC_NONE + 1); i <= FTNC_MAXCHARS; i++) {
|
||||||
|
colour(LIGHTBLUE, BLACK);
|
||||||
|
printf("%2d ", i);
|
||||||
|
colour(LIGHTCYAN, BLACK);
|
||||||
|
printf("%-9s ", getchrs(i));
|
||||||
|
colour(LIGHTMAGENTA, BLACK);
|
||||||
|
printf("%s\n", getchrsdesc(i));
|
||||||
|
}
|
||||||
|
|
||||||
|
colour(CFG.HiliteF, CFG.HiliteB);
|
||||||
|
/* Select character set (Enter to Quit): */
|
||||||
|
printf("\n%s", (char *) Language(24));
|
||||||
|
|
||||||
|
fflush(stdout);
|
||||||
|
Getnum(temp, 2);
|
||||||
|
|
||||||
|
if (((strcmp(temp, "")) == 0) && (exitinfo.Charset != FTNC_NONE)) {
|
||||||
|
free(temp);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
i = atoi(temp);
|
||||||
|
|
||||||
|
if ((i > FTNC_NONE) && (i <= FTNC_MAXCHARS)) {
|
||||||
|
exitinfo.Charset = i;
|
||||||
|
Syslog('+', "New character set %s", getchrs(exitinfo.Charset));
|
||||||
|
WriteExitinfo();
|
||||||
|
free(temp);
|
||||||
|
colour(LIGHTGREEN, BLACK);
|
||||||
|
/* Character set now set to: */
|
||||||
|
printf("\n\n%s%s\n\n", (char *) Language(25), getchrs(i));
|
||||||
|
Pause();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Enter(2);
|
||||||
|
/* Invalid selection, please try again! */
|
||||||
|
pout(LIGHTRED, BLACK, (char *) Language(265));
|
||||||
|
Enter(2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#ifndef _CHANGE_H
|
#ifndef _CHANGE_H
|
||||||
#define _CHANGE_H
|
#define _CHANGE_H
|
||||||
|
|
||||||
|
/* $Id$ */
|
||||||
|
|
||||||
int Chg_Language(int); /* Change language */
|
int Chg_Language(int); /* Change language */
|
||||||
void Chg_Password(void); /* Change BBS Password */
|
void Chg_Password(void); /* Change BBS Password */
|
||||||
@ -23,6 +24,7 @@ void Chg_DOB(void); /* Change Date of Birth */
|
|||||||
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 */
|
||||||
|
void Chg_Charset(void); /* Change character set */
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -552,6 +552,10 @@ void ControlCodeU(int ch)
|
|||||||
printf("%s", exitinfo.OL_ExtInfo ? (char *) Language(147) : (char *) Language(148));
|
printf("%s", exitinfo.OL_ExtInfo ? (char *) Language(147) : (char *) Language(148));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case '9':
|
||||||
|
printf("%s", getchrs(exitinfo.Charset));
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
printf(" ");
|
printf(" ");
|
||||||
}
|
}
|
||||||
|
@ -657,6 +657,10 @@ void DoMenu(int Type)
|
|||||||
Chg_OLR_ExtInfo();
|
Chg_OLR_ExtInfo();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 321:
|
||||||
|
Chg_Charset();
|
||||||
|
break;
|
||||||
|
|
||||||
case 401:
|
case 401:
|
||||||
Oneliner_Add();
|
Oneliner_Add();
|
||||||
break;
|
break;
|
||||||
|
@ -448,6 +448,13 @@ void user()
|
|||||||
if (! InitExitinfo())
|
if (! InitExitinfo())
|
||||||
Good_Bye(MBERR_INIT_ERROR);
|
Good_Bye(MBERR_INIT_ERROR);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If user has not set a preferred character set, force this
|
||||||
|
*/
|
||||||
|
if (exitinfo.Charset == FTNC_NONE) {
|
||||||
|
Chg_Charset();
|
||||||
|
}
|
||||||
|
|
||||||
GetLastUser();
|
GetLastUser();
|
||||||
StartTime = xstrcpy(GetLocalHM());
|
StartTime = xstrcpy(GetLocalHM());
|
||||||
ChangeHomeDir(exitinfo.Name, exitinfo.Email);
|
ChangeHomeDir(exitinfo.Name, exitinfo.Email);
|
||||||
|
@ -2170,6 +2170,7 @@ char *getmenutype(int val)
|
|||||||
case 318: return (char *)"Change address";
|
case 318: return (char *)"Change address";
|
||||||
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 401: return (char *)"Add oneliner";
|
case 401: return (char *)"Add oneliner";
|
||||||
case 402: return (char *)"List oneliners";
|
case 402: return (char *)"List oneliners";
|
||||||
|
@ -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, 20);
|
case 4: return GetSubmenu(301, 21);
|
||||||
case 5: return GetSubmenu(401, 5);
|
case 5: return GetSubmenu(401, 5);
|
||||||
case 6: return GetSubmenu(501, 6);
|
case 6: return GetSubmenu(501, 6);
|
||||||
default: return 0;
|
default: return 0;
|
||||||
|
Reference in New Issue
Block a user