Compare commits

...

3 Commits

19 changed files with 103 additions and 11 deletions

View File

@ -15,6 +15,7 @@ const FRAMES_HOME = ANSITEX_HOME+'/text/';
const FRAMES_MSG_BASE = 'vtx_data'; const FRAMES_MSG_BASE = 'vtx_data';
/* Load frames from files */ /* Load frames from files */
const FRAMES_MSG_FILES = true; const FRAMES_MSG_FILES = true;
const FRAMES_EOF_MARKER = "\r\n=== EOF";
const PAGE_LENGTH = 4; // The size of our page tag as stored in the msgbase for echomail/netmail const PAGE_LENGTH = 4; // The size of our page tag as stored in the msgbase for echomail/netmail
const NUMERIC_REGEX = /^[0-9]*$/; const NUMERIC_REGEX = /^[0-9]*$/;

View File

@ -163,7 +163,7 @@ function MsgArea() {
var headers = msgbase.get_all_msg_headers(false,false) || []; var headers = msgbase.get_all_msg_headers(false,false) || [];
for (var i in headers) { for (var i in headers) {
if ((! (headers[i].attr&MSG_DELETE)) && headers[i].tags && ((! regex) || regex.test(headers[i].tags))) if ((! (headers[i].attr&MSG_DELETE)) && (headers[i].from === 'SYSTEM') && ((! regex) || regex.test(headers[i].to)))
frames.push(headers[i]); frames.push(headers[i]);
} }
@ -426,10 +426,13 @@ function MsgArea() {
var raw = msgbase.get_msg_body(false,id,false,false,true,true); var raw = msgbase.get_msg_body(false,id,false,false,true,true);
// Our messages are terminated with \r=== EOF // Our messages are terminated with \r=== EOF
if (! /^(.*)\r=== EOF/.test(raw)) var regex = new RegExp('^(.*)'+FRAMES_EOF_MARKER);
if (! regex.test(raw))
return undefined; return undefined;
var content = JSON.parse(LZString.decompressFromBase64(raw.replace(/\r=== EOF[.\s\S]*$/,''))); var regex = new RegExp(FRAMES_EOF_MARKER+'[.\\s\\S]*$');
var content = JSON.parse(LZString.decompressFromBase64(raw.replace(regex,'')));
msgbase.close(); msgbase.close();
} else { } else {

View File

@ -110,8 +110,6 @@ require('sbbsdefs.js','SS_USERON'); // Need for our ANSI colors eg: BG_*
* - load - Load the frame from the msgbase * - load - Load the frame from the msgbase
*/ */
function Page(debug) { function Page(debug) {
const EOF_MARKER = "\r=== EOF";
this.__window__ = { this.__window__ = {
layout: undefined, // Window - Full page content layout: undefined, // Window - Full page content
header: undefined, // Window - Page Title header: undefined, // Window - Page Title
@ -1043,7 +1041,7 @@ function Page(debug) {
return a.number < b.number return a.number < b.number
else else
return (a.when_imported_time < b.when_imported_time); }) return (a.when_imported_time < b.when_imported_time); })
.filter(function(item) { return item.tags === page; }).pop(); .filter(function(item) { return (item.from === 'SYSTEM') && (item.to === page); }).pop();
if (msg === undefined) { if (msg === undefined) {
log(LOG_DEBUG,'|- Frame not found: ['+page.toString()+'] in ['+FRAMES_MSG_BASE+']'); log(LOG_DEBUG,'|- Frame not found: ['+page.toString()+'] in ['+FRAMES_MSG_BASE+']');
@ -1058,6 +1056,7 @@ function Page(debug) {
return false; return false;
contents.content = contents.content[SESSION_EXT]; contents.content = contents.content[SESSION_EXT];
log(LOG_DEBUG,'|/ Content:'+contents.content);
return this.preload(contents,SESSION_EXT); return this.preload(contents,SESSION_EXT);
} }
@ -1307,7 +1306,7 @@ function Page(debug) {
'content': p.raw, 'content': p.raw,
}; };
var body = LZString.compressToBase64(JSON.stringify(page))+EOF_MARKER; var body = LZString.compressToBase64(JSON.stringify(page))+FRAMES_EOF_MARKER;
if (! msgbase.save_msg(hdr,body)) { if (! msgbase.save_msg(hdr,body)) {
log(LOG_ERROR,' ! Error saving frame: ['+this.name.toString()+']'); log(LOG_ERROR,' ! Error saving frame: ['+this.name.toString()+']');

1
text/999a Normal file
View File

@ -0,0 +1 @@
{"version":2,"key":[0,null,null,null,null,null,null,null,null,null]}

1
text/999b Normal file
View File

@ -0,0 +1 @@
{"version":2,"key":[0,null,null,null,null,null,null,null,null,null]}

17
text/tex/980a.ans Normal file
View File

@ -0,0 +1,17 @@
 ÚÄÜÚÄÜÚÄÜ ß ÚÂÜÚÄÜÚ Ü 
Ú ¿Â¿³Ú¿Ú¿Ú¿¿ ³ßÛ³ Û.\ÜÞÛ  ³ Ã_ÜÚßÜ 
³³³ÃÙ³³ ³³³ ³ÃÙ ÄÄÄÄÄÄÄÄÄÄÄÄÜÜÜÜÜÜÜÜÜÜ
ÀÁÙÁÙÀÀÙÀÙÀ ÙÁÙ node: Xnodeid;-11\
 date: XDATE:%Y-%b-%d;-11\
time: XTIME;-11\
Welcome, you have connected to ANSItex a BBS that is based on the
1980's Videotex service, but using ANSI.
Depending on which country you live in the Videotex service was called
Viatel (AU), Prestel (UK), Minitex (FR), Telidon (CA), Ibertex (SP), etc

 If you got here by mistake, you should disconnect now, otherwise, you can
 press 0 to get to the login screen.



File diff suppressed because one or more lines are too long

21
text/tex/999a.ans Normal file
View File

@ -0,0 +1,21 @@
 Ă-ÂżÚżĂ- ڿ¿¿¿ ABCDEFGHIJKLMNOPQRSTUVWXYZ
ł ĂŮŔżł łłÂ´łłĂŮ abcdefghijklmnopqrstuvwxyz
ŔŮÁŮŔŮŔŮ ĂŮÁÁÁ´ÁŮ !@#$%^&*()_+{}|\:;"'<>?,./~
ŰßßßßßßßßßŔßßßßŮßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßŰ
Ű BLA BLU GRE CYA RED MAG YEL WHI BLA BLU GRE CYA RED MAG YEL WHIł0 ÚżŔŮijôÁÂŢ
Ű BLA BLU GRE CYA RED MAG YEL WHI BLA BLU GRE CYA RED MAG YEL WHIł1 ɻȼͺ̹ĘËŢ
Ű BLA BLU GRE CYA RED MAG YEL WHI BLA BLU GRE CYA RED MAG YEL WHIł2 ոԾͳƵĎŃŢ
Ű BLA BLU GRE CYA RED MAG YEL WHI BLA BLU GRE CYA RED MAG YEL WHIł3 ַӽĺǶĐŇŢ
Ű BLA BLU GRE CYA RED MAG YEL WHI BLA BLU GRE CYA RED MAG YEL WHIł4 ĹÎŘ×ččś™ďŢ
Ű BLA BLU GRE CYA RED MAG YEL WHI BLA BLU GRE CYA RED MAG YEL WHIł5 °±˛ŰßÜÝŢţúŢ
Ű BLA BLU GRE CYA RED MAG YEL WHI BLA BLU GRE CYA RED MAG YEL WHIł6 đ Ţ
Ű BLA BLU GRE CYA RED MAG YEL WHI BLA BLU GRE CYA RED MAG YEL WHIł7 Ţ
Ű BLA BLU GRE CYA RED MAG YEL WHI BLA BLU GRE CYA RED MAG YEL WHIł8 ®Żňó©Şýö«¬Ţ
Ű BLA BLU GRE CYA RED MAG YEL WHI BLA BLU GRE CYA RED MAG YEL WHIł9 ăńôőęťäřűüŢ
Ű BLA BLU GRE CYA RED MAG YEL WHI BLA BLU GRE CYA RED MAG YEL WHIłA ŕáâĺćçëěíîŢ
Ű BLA BLU GRE CYA RED MAG YEL WHI BLA BLU GRE CYA RED MAG YEL WHIłB €‡Ą¤<30>ź÷ů­¨Ţ
Ű BLA BLU GRE CYA RED MAG YEL WHI BLA BLU GRE CYA RED MAG YEL WHIłC <30>„… ¦†ŽŹŢ
Ű BLA BLU GRE CYA RED MAG YEL WHI BLA BLU GRE CYA RED MAG YEL WHIłD <30>‰Š<30>ŚŤˇžŢ
Ű BLA BLU GRE CYA RED MAG YEL WHI BLA BLU GRE CYA RED MAG YEL WHIłE “”•˘§<30>—ŁšŢ
Ű BLA BLU GRE CYA RED MAG YEL WHI BLA BLU GRE CYA RED MAG YEL WHIłF /\(){}[]`'Ţ
ŰÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜŰ

File diff suppressed because one or more lines are too long

21
text/tex/999b.ans Normal file
View File

@ -0,0 +1,21 @@
 Ă-ÂżÚżĂ- ڿ¿¿¿ ABCDEFGHIJKLMNOPQRSTUVWXYZ
ł ĂŮŔżł łłÂ´łłĂŮ abcdefghijklmnopqrstuvwxyz
ŔŮÁŮŔŮŔŮ ĂŮÁÁÁ´ÁŮ !@#$%^&*()_+{}|\:;"'<>?,./~
ŰßßßßßßßßßŔßßßßŮßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßŰ
Ű BLA BLA RED RED GRE GRE YEL YEL BLU BLU MAG MAG CYA CYA WHI WHIł0 ÚżŔŮijôÁÂŢ
Ű BLA BLA RED RED GRE GRE YEL YEL BLU BLU MAG MAG CYA CYA WHI WHIł1 ɻȼͺ̹ĘËŢ
Ű BLA BLA RED RED GRE GRE YEL YEL BLU BLU MAG MAG CYA CYA WHI WHIł2 ոԾͳƵĎŃŢ
Ű BLA BLA RED RED GRE GRE YEL YEL BLU BLU MAG MAG CYA CYA WHI WHIł3 ַӽĺǶĐŇŢ
Ű BLA BLA RED RED GRE GRE YEL YEL BLU BLU MAG MAG CYA CYA WHI WHIł4 ĹÎŘ×ččś™ďŢ
Ű BLA BLA RED RED GRE GRE YEL YEL BLU BLU MAG MAG CYA CYA WHI WHIł5 °±˛ŰßÜÝŢţúŢ
Ű BLA BLA RED RED GRE GRE YEL YEL BLU BLU MAG MAG CYA CYA WHI WHIł6 đ Ţ
Ű BLA BLA RED RED GRE GRE YEL YEL BLU BLU MAG MAG CYA CYA WHI WHIł7 Ţ
Ű BLA BLA RED RED GRE GRE YEL YEL BLU BLU MAG MAG CYA CYA WHI WHIł8 ®Żňó©Şýö«¬Ţ
Ű BLA BLA RED RED GRE GRE YEL YEL BLU BLU MAG MAG CYA CYA WHI WHIł9 ăńôőęťäřűüŢ
Ű BLA BLA RED RED GRE GRE YEL YEL BLU BLU MAG MAG CYA CYA WHI WHIłA ŕáâĺćçëěíîŢ
Ű BLA BLA RED RED GRE GRE YEL YEL BLU BLU MAG MAG CYA CYA WHI WHIłB €‡Ą¤<30>ź÷ů­¨Ţ
Ű BLA BLA RED RED GRE GRE YEL YEL BLU BLU MAG MAG CYA CYA WHI WHIłC <30>„… ¦†ŽŹŢ
Ű BLA BLA RED RED GRE GRE YEL YEL BLU BLU MAG MAG CYA CYA WHI WHIłD <30>‰Š<30>ŚŤˇžŢ
Ű BLA BLA RED RED GRE GRE YEL YEL BLU BLU MAG MAG CYA CYA WHI WHIłE “”•˘§<30>—ŁšŢ
Ű BLA BLA RED RED GRE GRE YEL YEL BLU BLU MAG MAG CYA CYA WHI WHIłF /\(){}[]`'Ţ
ŰÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜŰ

21
text/tex/99a.ans Normal file
View File

@ -0,0 +1,21 @@
 Ú¿ ÚÄÜÚÄÜÚÄÜ ß ÚÂÜÚÄÜÚ Ü 
¿ڿڿڴÿ¿Ú¿ ³ßÛ³ Û.\ÜÞÛ  ³ Ã_ÜÚßÜ 
³³³³³³³³³³³³ÃÙ ÄÄÄÄÄÄÄÄÄÄÄÄÜÜÜÜÜÜÜÜÜÜ
Á´ÀÙÀÙÀÙÀÙÀ´ÁÙ node: Xnodeid;-11\
ÄÙ ÄÙ date: XDATE:%Y-%b-%d;-11\
time: XTIME;-11\
You are about to disconnect from ANSItex XREALNAME;20\
If you wanted to stay online, you can press *0# to get back to the main menu
Otherwise press # to disconnect now.
*0# to get back to the Main Menu

8
text/tex/99b.ans Normal file
View File

@ -0,0 +1,8 @@
 Ú¿ ÚÄÜÚÄÜÚÄÜ ß ÚÂÜÚÄÜÚ Ü 
¿ڿڿڴÿ¿Ú¿ ³ßÛ³ Û.\ÜÞÛ  ³ Ã_ÜÚßÜ 
³³³³³³³³³³³³ÃÙ ÄÄÄÄÄÄÄÄÄÄÄÄÜÜÜÜÜÜÜÜÜÜ
Á´ÀÙÀÙÀÙÀÙÀ´ÁÙ node: Xnodeid;-11\ ÄÙ ÄÙ date: XDATE:%Y-%b-%d;-11\ time: XTIME;-11\
Thanks for visiting ANSItex XREALNAME;20\
Hope to see you again...

1
text/vtx/980a.bin Normal file
View File

@ -0,0 +1 @@
,l|l|,,7k#37k#5 kj/|5ho <=$,5 /./*,//upzpquzp5 Videotex Welcome Welcome, you have connected to ANSItex a BBS that is based on the 1980's Videotex service. Depending on which country you live in the Videotex service was called Viatel (AU), Prestel (UK), Minitel (FR), Telidon (CA), Ibertex (SP), etc If you got here by mistake, you should disconnect now, otherwise you can press0to get to the login screen. To login using SQRL, press1

View File

@ -1 +0,0 @@
{"version":1,"frame":999,"index":"a","owner":9,"cost":0,"content":"AQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAwMRceD3MTGhYeHxgEDR0DRU5HSU5FRVJJTkcgEhwMHnMVDhEPFA8HMDIXHg9zExoWHh8YBA0dA0VOR0lORUVSSU5HIBIcDB5zFQ4RDxQPBzAyfn9+f35/fn9+f35/fn9+f35/fn9+f35/fn9+f35/fn9+f35/fn8wNBQaHnMRGRUAFQENIAUdAlRlc3QgUGFnZSAgHAweEnMWGBMAFxgBMDUUGh5zERkVABUBDSAFHQJUZXN0IFBhZ2UgIBwMHhJzFhgTABcYATA1AQABIAAgAR4gHiAXLBMTFhYSEhIVFRERFBQUICAUAAEAAQABAAEwN35/fn9+f35/fn9+f35/fn9+f35/fn9+f35/fn9+f35/fn9+f35/MDgBAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABADA5fn9+f35/fn9+f35/fn9+f35/fn9+f35/fn9+f35/fn9+f35/fn8xMAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAMTF+f35/fn9+f35/fn9+f35/fn9+f35/fn9+f35/fn9+f35/fn9+fzEyAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAxM35/fn9+f35/fn9+f35/fn9+f35/fn9+f35/fn9+f35/fn9+f35/MTQBAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABADE1fn9+f35/fn9+f35/fn9+f35/fn9+f35/fn9+f35/fn9+f35/fn8xNldoaXRlA1llbGxvdwZDeWFuAkdyZWVuBU1hZ2VudGEBUmVkBEJsdWUXGiEiIxMkJSYnFigpKisSLC0uLxkwMTIzFTQ1NjcRODk6OxQ8PT4/ICAhIiMgJCUmJyAoKSorICwtLi8gMDEyMyA0NTY3IDg5OjsgPD0+PyBAQUJDIERFRkcgSElKSyBMTU5PIFBRUlMgVFVWVyBYWVpbIFxdXl8gYGFiYyBkZWZnIGhpamsgbG1ubyBwcXJzIHR1dncgeHl6eyB8fX5/FGBhYmMRZGVmZxVoaWprEmxtbm8acHFycxZ0dXZ3E3h5ensXfH1+fwMYQ29uY2VhbAhGbGFzaAMqCwtCb3gJU3RlYWR5GEdvbmU/Fl5/","isPublic":1,"isAccessible":1,"type":"i","key":[1,null,null,null,null,null,null,null,null,null],"date":"2019-10-27T00:52:54.117Z"}

BIN
text/vtx/999a.bin Normal file

Binary file not shown.

View File

@ -1 +0,0 @@
{"version":1,"frame":999,"index":"b","owner":9,"cost":0,"content":"ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAINQ2hhcmFjdGVyIE1hcAwHNyBiaXQgY2hhcmFjdGVyIHNldCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICABICAwIDEgMiAzIDQgNSA2IDcgOCA5IGEgYiBjIGQgZSBmICAgICAgATAAYgFyAmcDeQRiBW0GYwd3CGYJcyBFIFMgTiBIIEQgZCAgICAgIAExEEIRUhJHE1kUQhVNFkMXVwdDIE8gbyBzIEIgYiBIIHIgICAgICABMgcgICEgIiAjICQgJSAmICcgKCApICogKyAsIC0gLiAvICAgICAgATMHMCAxIDIgMyA0IDUgNiA3IDggOSA6IDsgPCA9ID4gPyAgICAgIAE0B0AgQSBCIEMgRCBFIEYgRyBIIEkgSiBLIEwgTSBOIE8gICAgICABNQdQIFEgUiBTIFQgVSBWIFcgWCBZIFogWyBcIF0gXiBfICAgICAgATYHYCBhIGIgYyBkIGUgZiBnIGggaSBqIGsgbCBtIG4gbyAgICAgIAE3B3AgcSByIHMgdCB1IHYgdyB4IHkgeiB7IHwgfSB+IH8gICAgAiBHcmFwaGljcyBDaGFycyAgICAgICAgICAgICAgICAgICAgICAgICAaATIXICAhICIgIyAkICUgJiAnICggKSAqICsgLCAtIC4gLyAgICAgGgEzFzAgMSAyIDMgNCA1IDYgNyA4IDkgOiA7IDwgPSA+ID8gICAgIBoBNhdgIGEgYiBjIGQgZSBmIGcgaCBpIGogayBsIG0gbiBvICAgICAaATcXcCBxIHIgcyB0IHUgdiB3IHggeSB6IHsgfCB9IH4gfyAgICACDVNwZWNpYWwgQ29kZXMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICABMDgvMDkHRmxhc2gvU3RlYWR5IAExOC8xRgdDb25jZWFsL1Nob3cgATBBLzBCB0VuZC9TdGFydCBCb3gBMUMHQmxrIEJhY2sgICAgICAgIAEwQy8wRAdOb3JtYWwvRG91YmxlATFEB05ldyBCYWNrICAgICAgICABMEUvMEYHRCBXaWRlL1NpemUgIAUxOS8xQQZTb2xpZC9CbG9jayAgATFFLzFGB0hvbGQvUmVsZWFzZSBNb3NpYWMgIAUxQgZDU0kgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIA==","isPublic":1,"isAccessible":1,"type":"i","key":[1,null,null,null,null,null,null,null,null,null],"date":"2019-10-27T00:52:54.117Z"}

BIN
text/vtx/999b.bin Normal file

Binary file not shown.

1
text/vtx/99a.bin Normal file
View File

@ -0,0 +1 @@
7+o/??/o ,l|l|,,7k#37k#55jj %5sz kj/|5ho <=$,5urzsqusz /./*,//upzpquzp5 Videotex You are about todisconnectfrom ANSItex. To head back to the main menu, please use*0_ Otherwise to disconnect press_ Thanks for calling

1
text/vtx/99b.bin Normal file
View File

@ -0,0 +1 @@
7+o/??/o ,l|l|,,7k#37k#55jj %5sz kj/|5ho <=$,5urzsqusz /./*,//upzpquzp5 Videotex Thanks for calling Hope to see you again.