home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
BBSMEMO.ZIP
/
BBS.CMD
next >
Wrap
OS/2 REXX Batch file
|
1989-11-24
|
67KB
|
1,707 lines
/* ───────────────── */
/* BBS - M é M o */
/* ───────────────── */
/* */
/* Programme crée par SANDORFI Emmanuel */
/* en REXX pour l'OS/2 protected mode */
/* */
/* Ce petit programme vous permet d'avoir, et d'éditer une liste */
/* des BBS que vous fréquentés avec vos login et pass propres à chacun */
/* d'eux. */
/* */
/* Version 1.0 d'Octobre 1989 */
/* ----------------------------- */
/* Définition des divers paramtètres & varaibles */
/* pour l'effectuation du programme */
vary=1
esc='1B'x
/* Premiere fonctions */
'@echo off'
x=charout('con',esc'[34;40m')
cls
nbr=linein('bbscfg')
call lineout 'bbscfg'
del bbscfg
/* Affichage de l'écran de presentation */
/* */
x=charout('con',esc'[0;0f')
y=charout('con',esc'[1;37;40m')
say '┌─────────────────────────────────────────────────────────────────────────────┐'
say '│ │'
say '│ │'
say '│ │'
say '│ │'
say '│ │'
say '│ │'
say '│ │'
say '│ │'
say '│ │'
say '├────────────────┬────────────────────────────────────────┬───────────────────┤'
say '│ │ │ │'
say '│ └────────────────────────────────────────┘ │'
say '│ │'
say '│ │'
say '│ │'
say '│ │'
say '│ │'
say '│ │'
say '│ By SANDORFI Emmanuel. October 1989 │'
say '└─────────────────────────────────────────────────────────────────────────────┘'
say ' '
y=charout('con',esc'[32;40m')
x=charout('con',esc'[22;00f')
say ' Press'
y=charout('con',esc'[1;37;40m')
x=charout('con',esc'[22;57f')
y=charout('con',esc'[1;37;41m')
say '[Return]'
y=charout('con',esc'[1;37;40m')
x=charout('con',esc'[22;67f')
y=charout('con',esc'[0;32;40m')
say 'to continue '
y=charout('con',esc'[1;37;40m')
x=charout('con',esc'[23;00f')
y=charout('con',esc'[0;32;40m')
say ' or'
y=charout('con',esc'[1;37;40m')
x=charout('con',esc'[23;57f')
y=charout('con',esc'[1;37;41m')
say '[X]'
y=charout('con',esc'[1;37;40m')
x=charout('con',esc'[23;67f')
y=charout('con',esc'[0;32;40m')
say 'to cancel '
y=charout('con',esc'[1;37;40m')
x=charout('con',esc'[2;66f')
y=charout('con',esc'[36;42m')
say '▌ ▌▀▌'
x=charout('con',esc'[3;66f')
say '▌▄ ▌▄▌'
y=charout('con',esc'[1;37;40m')
y=charout('con',esc'[1;32;31m')
x=charout('con',esc'[3;5f')
say ' ▄▄ ▄▄ '
x=charout('con',esc'[4;5f')
say ' ▌ ▌ '
x=charout('con',esc'[5;5f')
say ' ▌ ▌ ▄▀▀ '
x=charout('con',esc'[6;5f')
say ' ▌▄▄▄▄▄▄ ▌▄▄▄▄▄▄ ▌▀▀▀▀▀▌ ▌▄ ▄▌ ▄▄▄▄ ▌▄ ▄▌ ▄▄▄▌ '
x=charout('con',esc'[7;5f')
say ' ▌ ▌ ▌ ▌ ▌▄▄▄▄▄ ▌ ▀▄ ▄▀ ▌ ▌ ▌ ▀▄ ▄▀ ▌ ▌ ▌ '
x=charout('con',esc'[8;5f')
say ' ▌ ▌ ▌ ▌ ▌ ▄▄▄▄ ▌ ▀ ▌ ▌▀▀ ▌ ▀ ▌ ▌ ▌ '
x=charout('con',esc'[9;5f')
say ' ▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀ ▀▀▀▀▀▀ ▌ ▌ ▌▄▄▄▄ ▌ ▌ ▌▄▄▄ '
y=charout('con',esc'[1;37;40m')
x=charout('con',esc'[12;21f')
y=charout('con',esc'[0;40;43m')
say 'Bulletin Board System - Memorandum'
y=charout('con',esc'[1;38;40m')
x=charout('con',esc'[15;2f')
y=charout('con',esc'[0;38;40m')
say ' Programmed for'
x=charout('con',esc'[15;23f')
y=charout('con',esc'[1;33;40m')
say 'OS/2'
x=charout('con',esc'[15;28f')
y=charout('con',esc'[0;38;40m')
say 'full screen in'
x=charout('con',esc'[15;43f')
y=charout('con',esc'[0;36;40m')
say 'REXX'
y=charout('con',esc'[0;38;40m')
x=charout('con',esc'[16;2f')
say ' The fonction of this application is just for simplify the '
x=charout('con',esc'[17;2f')
say ' management of yours Bbs. You can know your login, pass, number '
x=charout('con',esc'[18;2f')
say ' in different Bbs. '
y=charout('con',esc'[1;37;40m')
x=charout('con',esc'[23;0f')
gete=translate(linein())
if gete='X' then signal goodbye
else signal menu
/* Boucle 1. Menu prinicpal */
/* Demande des options, go au autres boucles */
menu:
x=charout('con',esc'[7m')
cls
say '┌─────────────────┬───────────────────────────────────────────────────────────┐'
say '│ BBS - M é M o │ M E N U -- P r I n C i P a L -- │'
say '├─────────────────┼───────────────────────────────────────────────────────────┤'
say '│ │ │'
say '│ ▌▀▀▌ │ Liste des BBS avec vos login, pass, niveau │'
say '│ ▌▀▀▌ ▄ │ + caractéristiques techniques du BBS. │'
say '│ │ │'
say '├─────────────────┼───────────────────────────────────────────────────────────┤'
say '│ ▄ │ │'
say '│ ▌▄▄ │ Ajouter, éditer ou détruire vos données des │'
say '│ ▌▄▄▌ ▄ │ BBS fréquentés. │'
say '│ │ │'
say '├─────────────────┼───────────────────────────────────────────────────────────┤'
say '│ │ │'
say '│ ▌▀▀ │ Toute l''aide nécéssaire sur BBS - M é M o │'
say '│ ▌▄▄▄ ▄ │ ainsi qu''une petite liste des BBS français. │'
say '│ │ │'
say '├─────────────────┼───────────────────────────────────────────────────────────┤'
say '│ │ │'
say '│ ▌▀▀▌ │ Quitter le programme BBS - M é M o │'
say '│ ▄▌▄▄▌ ▄ │ │'
say '│ │ │'
say '└─────────────────┴───────────────────────────────────────────────────────────┘'
nbz=nbr
x=charout('con',esc'[1;33;44m')
say ' Commande -> '
y=charout('con',esc'[24;14f')
/* Redirections des options [A], [B], [C] et [D] de la boucle 1 */
/* Envois au boucle 2,3 et 4. */
option:
gete=translate(linein())
if gete<>'A' & gete<>'B' & gete<>'C' & gete<>'D' & gete<>'H' then signal menuhelp
if gete='A' then signal display
if gete='B' then signal Edz
if gete='C' then signal bbhelp
if gete='D' then signal goodbye
if gete='H' then signal menuhelp
signal menu
/* Help pour le menu */
menuhelp:
y=charout('con',esc'[24;0f')
x=charout('con',esc'[1;33;44m')
say ' Commande -> '
y=charout('con',esc'[24;79f')
y=charout('con',esc'[24;14f')
say ' Aide séléctionée '
x=charout('con',esc'[1;33;46m')
y=charout('con',esc'[3;10f')
say '╔═════════════╤════════════════════════════════════════════╗'
y=charout('con',esc'[4;10f')
say '║ HELP ME !! │ ║'
y=charout('con',esc'[5;10f')
say '╟─────────────┘ ║'
y=charout('con',esc'[6;10f')
say '║ Il vous faut choisir une option: A, B, C, ou D. ║'
y=charout('con',esc'[7;10f')
say '║ [A] suivi Cr -> Permet de consulter la liste de vos BBS ║'
y=charout('con',esc'[8;10f')
say '║ [B] suivi Cr -> Editer une liste avec votre éditeur ║'
y=charout('con',esc'[9;10f')
say '║ [C] suivi Cr -> Aide étendu pour BBS - M é M o ║'
y=charout('con',esc'[10;10f')
say '║ [D] suivi Cr -> Quitter le programme ║'
y=charout('con',esc'[11;10f')
say '║ [H] suivi Cr -> Ce petit menu d`aide ║'
y=charout('con',esc'[12;10f')
say '╟──────────────────────────────────────────────────────────╢'
y=charout('con',esc'[13;10f')
say '║ Appuyer sur [RETURN] pour revenir à l`écran ║'
y=charout('con',esc'[14;10f')
say '╚══════════════════════════════════════════════════════════╝'
x=charout('con',esc'[1;33;44m')
y=charout('con',esc'[24;31f')
gete=translate(linein())
signal menu
/* Boucle 2 */
/* Display de la liste des BBS */
display:
if nbr=0 then signal menu
uk=0
x=charout('con',esc'[1;37;44m')
cls
x=charout('con',esc'[0;0f')
say '┌────────────┬───────────────────┬──────────────┬────────────────┬───┬────────┐'
say '│ Nom du BBS │ Login Utilisé │ Password │ Numéro d''Acces │Mt.│ Divers │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '└────────────┴───────────────────┴──────────────┴────────────────┴───┴────────┘'
dipo:
nbc=nbr
nb=4
cot=1
do while cot<=10 & nbc>0
app='call '''nbc'bbsd.cmd'' nb'
interpret app
call lineout nbc'bbsd.cmd'
call lineout nbc'bbsd.cmd'
nbc=nbc-1
nb=nb+2
cot=cot+1
nf=nbc
end
sayer:
x=charout('con',esc'[24;1f')
x=charout('con',esc'[1;37;44m')
say ' '
x=charout('con',esc'[24;0f')
x=charout('con',esc'[1;37;41m')
say ' Commande -> '
x=charout('con',esc'[24;14f')
gete=translate(linein())
if gete<>'H' & gete<>'X' & gete<>'D' & gete<>'+' & gete<>'-' then signal disphelp
if gete='H' then signal disphelp
if gete='X' then signal menu
if gete='D' then signal display
if gete='+' then signal oco
if gete='-' then signal oco
signal sayer
oco:
if nbr<=10 then signal sayer
us=5
oi=5
if gete='-'
then do until oi=0
if nbc=0 then oi=0
else oi=1
if nbc<=nbr then oi=1
else oi=0
if nbc>nbr then nbc=nbr
if nbc>nbr then oi=1
if nbc=nbr then oi=1
leave
end
if gete='-' & oi=1 then signal Moyn
if gete='-' & oi=0 then signal sayer
oi=5
if gete='+'
then do until us=0
if nbc<=999 then us=1
else us=0
if nbc<nbr then us=1
else us=0
if nbc>nbr then nbc=nbr
if nbc>nbr then us=0
if nbc=nbr then us=0
else us=1
if nbc>=nbr-10 then us=0
else us=1
if nf>1 then signal sayer
if mok=1 then nbc=nbc+mnx
if mok=1 then mok=0
if nbr<10 then us=0
else us=1
leave
end
if nbc=0 & nbc=1 & us<>0 then ply=1
if gete='+' & us=1 then signal Puye
if gete='+' & us=0 then signal sayer
pl=5
signal sayer
Puye:
x=charout('con',esc'[1;37;44m')
cls
x=charout('con',esc'[0;0f')
say '┌────────────┬───────────────────┬──────────────┬────────────────┬───┬────────┐'
say '│ Nom du BBS │ Login Utilisé │ Password │ Numéro d''Acces │Mt.│ Divers │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '└────────────┴───────────────────┴──────────────┴────────────────┴───┴────────┘'
bny=3
nb=4
cot=1
nf=0
if mok=1 then nbc=nbc+mnx
if mok=1 then mok=0
if nbc=0 then uab=1
uab=nbc
ulk=0
uk=0
do while cot<=10 & nbc>0 & nbc<=nbr
app='call '''nbc'bbsd.cmd'' nb'
interpret app
call lineout nbc'bbsd.cmd'
call lineout nbc'bbsd.cmd'
ulk=1
nbc=nbc+1
nb=nb+2
cot=cot+1
end
uk=nbc-uab
signal sayer
Moyn:
toz=nbr-nbc
x=charout('con',esc'[1;37;44m')
cls
x=charout('con',esc'[0;0f')
say '┌────────────┬───────────────────┬──────────────┬────────────────┬───┬────────┐'
say '│ Nom du BBS │ Login Utilisé │ Password │ Numéro d''Acces │Mt.│ Divers │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '└────────────┴───────────────────┴──────────────┴────────────────┴───┴────────┘'
bny=3
if nbc=0 then nbc=1
nb=4
mok=0
cot=1
mn1=nbc
nxc=0
cv=nbr-10
toz=nbr-nbc
if toz=0 then signal zdc
if nbc>=cv & ulk=1
then do forever
ulk=0
nbc=nbc-9
signal zdc
leave
end
if uk>=nbr
then do forever
if uk=0 then leave
nxc=uk-nbz
if nxc>=0 & nbr>10 then nbc=nbc-10
if nxc>=0 & nbr<=10 then signal sayer
leave
end
if ulk=1 then nbc=nbc+uk
if ulk=1 then ulk=0
tyui:
nf=0
do while cot<=10 & nbc>0 & nbc<=nbr
app='call '''nbc'bbsd.cmd'' nb'
interpret app
call lineout nbc'bbsd.cmd'
call lineout nbc'bbsd.cmd'
nbc=nbc-1
nb=nb+2
cot=cot+1
mok=1
end
mn2=nbc
mnx=mn1-mn2
signal sayer
zdc:
do while cot<=10 & nbc>0
app='call '''nbc'bbsd.cmd'' nb'
interpret app
call lineout nbc'bbsd.cmd'
call lineout nbc'bbsd.cmd'
nbc=nbc-1
nb=nb+2
cot=cot+1
mok=1
end
mn2=nbc
mnx=mn1-mn2
signal sayer
/* Aide */
disphelp:
y=charout('con',esc'[24;0f')
x=charout('con',esc'[1;37;41m')
say ' Commande -> '
y=charout('con',esc'[24;79f')
y=charout('con',esc'[24;14f')
say ' Aide séléctionée '
x=charout('con',esc'[1;33;46m')
y=charout('con',esc'[3;10f')
say '╔═════════════╤════════════════════════════════════════════╗'
y=charout('con',esc'[4;10f')
say '║ HELP ME !! │ ║'
y=charout('con',esc'[5;10f')
say '╟─────────────┘ ║'
y=charout('con',esc'[6;10f')
say '║ [+] suivi Cr -> Page suivante tant qu''il en reste ║'
y=charout('con',esc'[7;10f')
say '║ [-] suivi Cr -> Page précédente tant qu''il en reste ║'
y=charout('con',esc'[8;10f')
say '║ [x] suivi Cr -> Retour menu principal ║'
y=charout('con',esc'[9;10f')
say '║ [h] suivi Cr -> Ce petit menu ║'
y=charout('con',esc'[10;10f')
say '║ [D] suivi Cr -> Vous ramene à la position initiale ║'
y=charout('con',esc'[11;10f')
say '║ Il se pourra, en effet, qu''à un moment ║'
y=charout('con',esc'[12;10f')
say '║ plus rien ne s''affiche, alors tapez [D] ║'
y=charout('con',esc'[13;10f')
say '╟──────────────────────────────────────────────────────────╢'
y=charout('con',esc'[14;10f')
say '║ Appuyer sur [RETURN] pour revenir à l`écran ║'
y=charout('con',esc'[15;10f')
say '╚══════════════════════════════════════════════════════════╝'
x=charout('con',esc'[1;37;41m')
y=charout('con',esc'[24;31f')
gete=translate(linein())
x=charout('con',esc'[1;37;41m')
signal display
/* Boucle 4 */
/* */
Edz:
x=charout('con',esc'[0;34;47m')
cls
say '┌─────────────────────────────────────────────────────────────────────────────┐'
say '│ Option [B] .... Edition, Destruction, Modification, Addition des données. │'
say '│ │'
say '│ │'
say '│ │'
say '│ │'
say '│ Veuillez choisir entre les différents choix proposés : │'
say '│ │'
say '│ │'
say '│ [1] . Edition d''une donnée (d''une BBS), │'
say '│ Quand vous voulez rentrer une nouvelle Bbs ou si vous utilisez │'
say '│ pour la première fois BBS - M é M o. │'
say '│ │'
say '│ [2] . Destruction, Modifcation d''une donnée. │'
say '│ Cette option ne peut marcher que si vous avez précedamment │'
say '│ entrer une donnée │'
say '│ │'
say '│ [3] . Retour au menu, et abandon de cette option. │'
say '│ Il est absolument nécessaire de faire l''option [1] pour pouvoir│'
say '│ accéder au choix [A] dans le menu principal. │'
say '│ │'
say '├─────────────────────────────────────────────────────────────────────────────┤'
say '│ Votre Choix -> ┌┘'
say '└────────────────────────────────────────────────────────────────────────────┘'
roptyu:
x=charout('con',esc'[23;19f')
say ' '
x=charout('con',esc'[23;19f')
x=charout('con',esc'[1;33m')
gete=translate(linein())
if gete<>'1' & gete<>'2' & gete<>'3' then signal roptyu
if gete='1' then signal edit
if gete='2' then signal optC
if gete='3' then signal menu
signal Edz
/* */
/* DEBUT OPTION EDITION */
/* */
/* */
/* */
/* Definition des variables pour l'edition */
edit:
x=charout('con',esc'[0;40m')
cls
fich='bbsd.cmd'
nom=''
login=''
pass=''
phone=''
mintel=''
region=''
x=charout('con',esc'[0;1f')
x=charout('con',esc'[1;37;m')
say ' Option [B] choisie : EDITION de données sur vos BBS ......'
/* DEmande des differentes donnes */
x=charout('con',esc'[0;37m')
/* */
/* Demande du nom */
/* [10] */
x=charout('con',esc'[5;5f')
x=charout('con',esc'[0;32m')
say 'Entrer le nom du BBS:'
nom2:
x=charout('con',esc'[5;40f')
x=charout('con',esc'[0;31m')
say ' [ ]'
x=charout('con',esc'[5;42f')
x=charout('con',esc'[1;33;m')
nom=linein()
if length(nom)>10 then nom=''
if nom='' then x=charout('con',esc'[5;40f')
if nom='' then say ' '
if nom='' then signal nom2
x=charout('con',esc'[0;36m')
/* */
/* Demande du login */
/* [18] */
x=charout('con',esc'[7;5f')
x=charout('con',esc'[0;32m')
say 'Entrer votre login utilisé:'
login2:
x=charout('con',esc'[7;40f')
x=charout('con',esc'[0;31m')
say ' [ ]'
x=charout('con',esc'[7;42f')
x=charout('con',esc'[1;33;m')
login=linein()
if length(login)>18 then login=''
if login='' then x=charout('con',esc'[7;40f')
if login='' then say ' '
if login='' then signal login2
x=charout('con',esc'[0;36m')
/* */
/* Demande du Pass */
/* [12] */
x=charout('con',esc'[9;5f')
x=charout('con',esc'[0;32m')
say 'Entrer votre pass utilisé:'
pass2:
x=charout('con',esc'[9;40f')
x=charout('con',esc'[0;31m')
say ' [ ]'
x=charout('con',esc'[9;42f')
x=charout('con',esc'[1;33;m')
pass=linein()
if length(pass)>12 then pass=''
if pass='' then x=charout('con',esc'[9;40f')
if pass='' then say ' '
if pass='' then signal pass2
x=charout('con',esc'[0;36m')
/* */
/* Demande du Telephone */
/* [15] */
x=charout('con',esc'[11;5f')
x=charout('con',esc'[0;32m')
say 'Entrer le numero d''acces au BBS:'
phone2:
x=charout('con',esc'[11;40f')
x=charout('con',esc'[0;31m')
say ' [ ]'
x=charout('con',esc'[11;42f')
x=charout('con',esc'[1;33;m')
phone=linein()
if length(phone)>15 then phone=''
if phone='' then x=charout('con',esc'[11;40f')
if phone='' then say ' '
if phone='' then signal phone2
x=charout('con',esc'[0;36m')
/* */
/* Demande, Minitel (o/n) */
/* [1] */
x=charout('con',esc'[13;5f')
x=charout('con',esc'[0;32m')
say 'Serveur en Videotext ou genre Qbbs:'
minitel2:
x=charout('con',esc'[13;40f')
x=charout('con',esc'[0;31m')
say ' [ ]'
x=charout('con',esc'[13;42f')
x=charout('con',esc'[1;33;m')
minitel=linein()
if length(minitel)>1 then minitel=''
if minitel='' then x=charout('con',esc'[13;40f')
if minitel='' then say ' '
if minitel='' then signal minitel2
x=charout('con',esc'[0;36m')
/* */
/* Demande du la Region */
/* [8] */
x=charout('con',esc'[15;5f')
x=charout('con',esc'[0;32m')
say 'Quelle est la region, divers:'
region2:
x=charout('con',esc'[15;40f')
x=charout('con',esc'[0;31m')
say ' [ ]'
x=charout('con',esc'[15;42f')
x=charout('con',esc'[1;33;m')
region=linein()
if length(region)>8 then region=''
if region='' then x=charout('con',esc'[15;40f')
if region='' then say ' '
if region='' then signal region2
x=charout('con',esc'[0;36m')
signal demande
/* */
/* Envoi dans le fichier special */
ecriture:
x=charout('con',esc'[0;40m')
cls
nbr=nbr+1
fich=nbr fich
fich=space(fich,0)
x1='x=charout(''con'',esc''[''nb'';03f'')'
x2='x=charout(''con'',esc''[''nb'';16f'')'
x3='x=charout(''con'',esc''[''nb'';36f'')'
x4='x=charout(''con'',esc''[''nb'';51f'')'
x5='x=charout(''con'',esc''[''nb'';68f'')'
x6='x=charout(''con'',esc''[''nb'';71f'')'
st1='say '''nom''''
st2='say '''login''''
st3='say '''pass''''
st4='say '''phone''''
st5='say '''minitel''''
st6='say '''region''''
/* Ecriture du fichier */
/* */
zz=lineout(fich,'/* 'nom' */')
zz=lineout(fich,'/* 'nom' */')
zz=lineout(fich,'esc=''1B''x')
zz=lineout(fich,'arg nb .')
zz=lineout(fich,x1)
zz=lineout(fich,st1)
zz=lineout(fich,x2)
zz=lineout(fich,st2)
zz=lineout(fich,x3)
zz=lineout(fich,st3)
zz=lineout(fich,x4)
zz=lineout(fich,st4)
zz=lineout(fich,x5)
zz=lineout(fich,st5)
zz=lineout(fich,x6)
zz=lineout(fich,st6)
zz=lineout(fich)
zz=linein(fich)
reco:
cls
x=charout('con',esc'[0;33m')
x=charout('con',esc'[5;5f')
say ' Toutes les données concernant le Bbs 'nom' ont été sauvegardés '
x=charout('con',esc'[6;5f')
say ' dans le fichier 'fich' .'
x=charout('con',esc'[0;32m')
x=charout('con',esc'[15;2f')
say ' Voulez vous: 1°) revenir au menu, 2°) rentrer une nouvelle données '
x=charout('con',esc'[15;74f')
gete=translate(linein())
if gete<>'1' & gete<>'2' & gete<>'X' then signal recohelp
if gete='X' then signal menu
if gete='1' then signal Edz
if gete='2' then signal edit
signal reco
recohelp:
x=charout('con',esc'[1;33;46m')
y=charout('con',esc'[3;10f')
say '╔═════════════╤════════════════════════════════════════════╗'
y=charout('con',esc'[4;10f')
say '║ HELP ME !! │ ║'
y=charout('con',esc'[5;10f')
say '╟─────────────┘ ║'
y=charout('con',esc'[6;10f')
say '║ Ce menu vous propose deux choix différents: ║'
y=charout('con',esc'[7;10f')
say '║ - l''un étant de continuer à rentrer des données sur vos ║'
y=charout('con',esc'[8;10f')
say '║ BBS cottoyés. ║'
y=charout('con',esc'[9;10f')
say '║ - et l''autre, vous ramene au menu, tout en finissant ║'
y=charout('con',esc'[10;10f')
say '║ l''option d''édition (sauvegarde a été effectué) ║'
y=charout('con',esc'[11;10f')
say '║ [1] suivi Cr -> Retour au menu pricipal ║'
y=charout('con',esc'[12;10f')
say '║ [2] suivi Cr -> Continuer l''enregistrement de données ║'
y=charout('con',esc'[13;10f')
say '║ [x] suivi Cr -> Abandon et retour au menu principal ║'
y=charout('con',esc'[14;10f')
say '╟──────────────────────────────────────────────────────────╢'
y=charout('con',esc'[15;10f')
say '║ Appuyer sur [RETURN] pour revenir à l`écran ║'
y=charout('con',esc'[16;10f')
say '╚══════════════════════════════════════════════════════════╝'
x=charout('con',esc'[0;40m')
y=charout('con',esc'[24;31f')
gete=translate(linein())
signal reco
/* */
/* Fin d'ecriture du fichier */
demande:
x=charout('con',esc'[0;40m')
cls
x=charout('con',esc'[3;0f')
x=charout('con',esc'[0;32m')
say ' Voici les données qui ont été entrer .... '
x=charout('con',esc'[5;0f')
x=charout('con',esc'[0;36m')
say nom
x=charout('con',esc'[5;20f')
x=charout('con',esc'[0;31m')
say ' ....... nom du BBS'
x=charout('con',esc'[6;0f')
x=charout('con',esc'[0;36m')
say login
x=charout('con',esc'[6;20f')
x=charout('con',esc'[0;31m')
say ' ....... votre nom utilisé'
x=charout('con',esc'[7;0f')
x=charout('con',esc'[0;36m')
say pass
x=charout('con',esc'[7;20f')
x=charout('con',esc'[0;31m')
say ' ....... le mot de pass utilisé'
x=charout('con',esc'[8;0f')
x=charout('con',esc'[0;36m')
say phone
x=charout('con',esc'[8;20f')
x=charout('con',esc'[8;31m')
say ' ....... le numero d''acces du BBS'
x=charout('con',esc'[9;0f')
x=charout('con',esc'[0;36m')
say minitel
x=charout('con',esc'[9;20f')
x=charout('con',esc'[0;31m')
say ' ....... serveur en videotext, ou sur minitel (Qbbs)'
x=charout('con',esc'[10;0f')
x=charout('con',esc'[0;36m')
say region
x=charout('con',esc'[10;20f')
x=charout('con',esc'[0;31m')
say ' ....... la localite du BBS ou divers renseignements'
x=charout('con',esc'[14;10f')
x=charout('con',esc'[0;33;44m')
say 'Ces données vous conviennent-elles (o/n) ->'
x=charout('con',esc'[1;37;44m')
x=charout('con',esc'[14;53f')
gete=translate(linein())
if gete<>'O' & gete<>'N' & gete<>'X' then signal demahelp
if gete='X' then signal Edz
if gete='N' then signal reedit
if gete='O' then signal ecriture
signal demande
demahelp:
x=charout('con',esc'[1;33;46m')
y=charout('con',esc'[3;10f')
say '╔═════════════╤════════════════════════════════════════════╗'
y=charout('con',esc'[4;10f')
say '║ HELP ME !! │ ║'
y=charout('con',esc'[5;10f')
say '╟─────────────┘ ║'
y=charout('con',esc'[6;10f')
say '║ Cette section vous permet de vérifier que toutes les ║'
y=charout('con',esc'[7;10f')
say '║ données que vous aviez précédamment entré sont sans ║'
y=charout('con',esc'[8;10f')
say '║ erreurs. Plusieurs option vous sont alors proposées: ║'
y=charout('con',esc'[9;10f')
say '║ [o] suivi Cr -> Acces a l''étape suivante (la sauvegarde) ║'
y=charout('con',esc'[10;10f')
say '║ [n] suivi Cr -> Revient au menu précédent permmettant ║'
y=charout('con',esc'[11;10f')
say '║ de corriger vos erreurs... ║'
y=charout('con',esc'[12;10f')
say '║ [x] suivi Cr -> Abandon et retour au menu principal ║'
y=charout('con',esc'[13;10f')
say '╟──────────────────────────────────────────────────────────╢'
y=charout('con',esc'[14;10f')
say '║ Appuyer sur [RETURN] pour revenir à l`écran ║'
y=charout('con',esc'[15;10f')
say '╚══════════════════════════════════════════════════════════╝'
x=charout('con',esc'[0;40m')
y=charout('con',esc'[24;31f')
gete=translate(linein())
signal demande
reedit:
x=charout('con',esc'[0;40m')
cls
nom3:
x=charout('con',esc'[0;37m')
x=charout('con',esc'[5;5f')
x=charout('con',esc'[0;32m')
say 'Nom du bbs {' nom '}'
x=charout('con',esc'[5;60f')
x=charout('con',esc'[0;31m')
say ' [ ]'
x=charout('con',esc'[5;62f')
x=charout('con',esc'[1;33;m')
nomx=linein()
if length(nomx)>10 then xomx='~'
if length(nomx)=0 then signal login3
if xomx='~' then x=charout('con',esc'[5;40f')
if xomx='~' then say ' '
if xomx='~' then signal nom3
nom=nomx
login3:
x=charout('con',esc'[0;36m')
x=charout('con',esc'[7;5f')
x=charout('con',esc'[0;32m')
say 'Votre ID utilisée {' login '}'
x=charout('con',esc'[7;60f')
x=charout('con',esc'[0;31m')
say ' [ ]'
x=charout('con',esc'[7;62f')
x=charout('con',esc'[1;33;m')
logix=linein()
if length(logix)>18 then xogix='~'
if length(logix)=0 then signal pass3
if xogix='~' then x=charout('con',esc'[7;40f')
if xogix='~' then say ' '
if xogix='~' then signal login3
login=logix
x=charout('con',esc'[0;36m')
pass3:
x=charout('con',esc'[9;5f')
x=charout('con',esc'[0;32m')
say 'Votre password {' pass '}'
x=charout('con',esc'[9;60f')
x=charout('con',esc'[0;31m')
say ' [ ]'
x=charout('con',esc'[9;62f')
x=charout('con',esc'[1;33;m')
pasx=linein()
if length(pasx)>12 then xasx='~'
if length(pasx)=0 then signal phone3
if xasx='~' then x=charout('con',esc'[9;40f')
if xasx='~' then say ' '
if xasx='~' then signal pass3
pass=pasx
x=charout('con',esc'[0;36m')
phone3:
x=charout('con',esc'[11;5f')
x=charout('con',esc'[0;32m')
say 'Le numéro d''accès {' phone '}'
x=charout('con',esc'[11;60f')
x=charout('con',esc'[0;31m')
say ' [ ]'
x=charout('con',esc'[11;62f')
x=charout('con',esc'[1;33;m')
phonx=linein()
if length(phonx)>15 then xhonx='~'
if length(phonx)=0 then signal minitel3
if xhonx='~' then x=charout('con',esc'[11;40f')
if xhonx='~' then say ' '
if xhonx='~' then signal phone3
phone=phonx
x=charout('con',esc'[0;36m')
minitel3:
x=charout('con',esc'[13;5f')
x=charout('con',esc'[0;32m')
say 'Videotext, Qbbs, (o/n) {' minitel '}'
x=charout('con',esc'[13;60f')
x=charout('con',esc'[0;31m')
say ' [ ]'
x=charout('con',esc'[13;62f')
x=charout('con',esc'[1;33;m')
minitex=linein()
if length(minitex)>1 then xinitex='~'
if length(minitex)=0 then signal region3
if xinitex='~' then x=charout('con',esc'[13;40f')
if xinitex='~' then say ' '
if xinitex='~' then signal minitel3
minitel=minitex
x=charout('con',esc'[0;36m')
region3:
x=charout('con',esc'[15;5f')
x=charout('con',esc'[0;32m')
say 'Précisitions, région du BBS {' region '}'
x=charout('con',esc'[15;60f')
x=charout('con',esc'[0;31m')
say ' [ ]'
x=charout('con',esc'[15;62f')
x=charout('con',esc'[1;33;m')
regiox=linein()
if length(regiox)>8 then xegiox='~'
if length(regiox)=0 then signal demande
if xegiox='~' then x=charout('con',esc'[5;40f')
if xegiox='~' then say ' '
if xegiox='~' then signal region3
region=regiox
x=charout('con',esc'[0;36m')
signal demande
/* */
/* */
/* FIN OPTION EDITION */
/* */
/* */
optC:
x=charout('con',esc'[1;33;40m')
cls
bny=3
nbrc=nbr
nbro=nbr
if nbrc=0 then say 'Vous devez deja entré une donnée avant de pouvoir la corriger !!'
do while nbrc>0 & bny<22
x=charout('con',esc'['bny';3f')
say nbrc '.'
x=charout('con',esc'['bny';8f')
ro1=linein(nbrc'bbsd.cmd')
call lineout nbrc'bbsd.cmd'
call lineout nbrc'bbsd.cmd'
say ro1
ro1=lineout(nbrc'bbsd.cmd')
bny=bny+1
nbrc=nbrc-1
end
bny2=3
if bny>=22
then do while nbrc>0 & bny2<22
x=charout('con',esc'['bny2';30f')
say nbrc '.'
x=charout('con',esc'['bny2';35f')
ro1=linein(nbrc'bbsd.cmd')
call lineout nbrc'bbsd.cmd'
call lineout nbrc'bbsd.cmd'
say ro1
ro1=lineout(nbrc'bbsd.cmd')
bny2=bny2+1
nbrc=nbrc-1
end
bny=3
if bny2>=22
then do while nbrc>0 & bny<22
x=charout('con',esc'['bny';55f')
say nbrc '.'
x=charout('con',esc'['bny';60f')
ro1=linein(nbrc'bbsd.cmd')
call lineout nbrc'bbsd.cmd'
call lineout nbrc'bbsd.cmd'
say ro1
ro1=lineout(nbrc'bbsd.cmd')
bny=bny+1
nbrc=nbrc-1
end
bny2=3
oky:
x=charout('con',esc'[23;0f')
x=charout('con',esc'[1;40m')
say ' '
x=charout('con',esc'[23;0f')
x=charout('con',esc'[37;41m')
say 'Numéro du BBS à modifier ou à éliminer ->'
x=charout('con',esc'[23;42f')
x=charout('con',esc'[1;37;41m')
gete=translate(linein())
if gete='X' then signal Edz
if gete='H' then signal Hepsp
if gete='D' then signal optC
if gete='+' then signal ecoo
if gete='-' then signal ecoo
da=datatype(gete)
if da='NUM' then signal conti
else signal aller
signal oky
ecoo:
if nbrc>nbr then nbrc=nbr
pl=5
mo=5
do until mo=0
if nbrc=0 then mo=0
else mo=1
if nbrc<nbr then mo=1
else mo=0
if nbrc>nbr then mo=0
if nbrc=nbr then mo=1
if nbrc+57=57 then mo=0
else mo=1
leave
end
if gete='-' & mo=1 then signal moin
if gete='-' & mo=0 then signal oky
do until pl=0
if nbr<=999 then pl=1
else pl=0
if nbrc<nbr then pl=1
else pl=0
if nbrc>nbr then pl=0
if nbrc=nbr then pl=0
else pl=1
if nbrc=nbr-57 then pl=0
else pl=1
if nbrc<57 then pl=0
else pl=1
if nbro-57=nbrc then pl=0
else pl=1
leave
end
if nbrc=0 & nbrc=1 & pl<>0 then plx=1
if gete='+' & pl=1 then signal plus
if gete='+' & pl=0 then signal oky
signal oky
plus:
x=charout('con',esc'[1;33;40m')
cls
bny=3
if nbrc=0 then nbrc=1
if plx<=57 then nbrc=nbrc+plx
xlx=0
if plx<=57 then signal pp
if nbrc+57>nbr then signal pp
nbrc=nbrc+57
pp:
do while nbrc>0 & bny<22 & nbrc<=nbr
x=charout('con',esc'['bny';3f')
say nbrc '.'
x=charout('con',esc'['bny';8f')
ro1=linein(nbrc'bbsd.cmd')
call lineout nbrc'bbsd.cmd'
call lineout nbrc'bbsd.cmd'
say ro1
ro1=lineout(nbrc'bbsd.cmd')
bny=bny+1
nbrc=nbrc+1
end
bny2=3
if bny>=22
then do while nbrc>0 & bny2<22 & nbrc<=nbr
x=charout('con',esc'['bny2';30f')
say nbrc '.'
x=charout('con',esc'['bny2';35f')
ro1=linein(nbrc'bbsd.cmd')
call lineout nbrc'bbsd.cmd'
call lineout nbrc'bbsd.cmd'
say ro1
ro1=lineout(nbrc'bbsd.cmd')
bny2=bny2+1
nbrc=nbrc+1
end
bny=3
if bny2>=22
then do while nbrc>0 & bny<22 & nbrc<=nbr
x=charout('con',esc'['bny';55f')
say nbrc '.'
x=charout('con',esc'['bny';60f')
ro1=linein(nbrc'bbsd.cmd')
call lineout nbrc'bbsd.cmd'
call lineout nbrc'bbsd.cmd'
say ro1
ro1=lineout(nbrc'bbsd.cmd')
bny=bny+1
nbrc=nbrc+1
end
bny2=3
signal oky
moin:
x=charout('con',esc'[1;33;40m')
cls
bny=3
if nbrc<=57 then plx=nbrc
if nbrc<=57 then xlx=1
if nbrc=nbr then pl=0
if pl=1 then nbrc=nbrc-57
do while nbrc>0 & bny<22 & nbrc<=nbr
x=charout('con',esc'['bny';3f')
say nbrc '.'
x=charout('con',esc'['bny';8f')
ro1=linein(nbrc'bbsd.cmd')
call lineout nbrc'bbsd.cmd'
call lineout nbrc'bbsd.cmd'
say ro1
ro1=lineout(nbrc'bbsd.cmd')
bny=bny+1
nbrc=nbrc-1
end
bny2=3
if bny>=22
then do while nbrc>0 & bny2<22 & nbrc<=nbr
x=charout('con',esc'['bny2';30f')
say nbrc '.'
x=charout('con',esc'['bny2';35f')
ro1=linein(nbrc'bbsd.cmd')
call lineout nbrc'bbsd.cmd'
call lineout nbrc'bbsd.cmd'
say ro1
ro1=lineout(nbrc'bbsd.cmd')
bny2=bny2+1
nbrc=nbrc-1
end
bny=3
if bny2>=22
then do while nbrc>0 & bny<22 & nbrc<=nbr
x=charout('con',esc'['bny';55f')
say nbrc '.'
x=charout('con',esc'['bny';60f')
ro1=linein(nbrc'bbsd.cmd')
call lineout nbrc'bbsd.cmd'
call lineout nbrc'bbsd.cmd'
say ro1
ro1=lineout(nbrc'bbsd.cmd')
bny=bny+1
nbrc=nbrc-1
end
bny2=3
signal oky
aller:
x=charout('con',esc'[23;0f')
x=charout('con',esc'[1;34;47m')
say ' Veuillez taper: [X] partir, [H] aide, [numéro] étant proposer ->'
x=charout('con',esc'[23;68f')
gete=translate(linein())
if gete='X' then signal Edz
if gete='H' then signal Hepsp
if gete='D' then signal optC
if gete='+' then signal ecoo
if gete='-' then signal ecoo
da=datatype(gete)
if da='NUM' then signal conti
else signal aller
signal aller
Hepsp:
x=charout('con',esc'[1;33;46m')
y=charout('con',esc'[3;10f')
say '╔═════════════╤════════════════════════════════════════════╗'
y=charout('con',esc'[4;10f')
say '║ HELP ME !! │ ║'
y=charout('con',esc'[5;10f')
say '╟─────────────┘ ║'
y=charout('con',esc'[6;10f')
say '║ La demande ici, est fort simple: ║'
y=charout('con',esc'[7;10f')
say '║ Toutes les données déja inscrites sont identifier avec ║'
y=charout('con',esc'[8;10f')
say '║ un numéro. Il vous suffit donc d''entrer le numéro ║'
y=charout('con',esc'[9;10f')
say '║ correspondant au nom du BBS à corriger pour pouvoir ║'
y=charout('con',esc'[10;10f')
say '║ y accéder... ║'
y=charout('con',esc'[11;10f')
say '║ [+] suivi de CR -> Augmenter d''une page si possiblité ║'
y=charout('con',esc'[12;10f')
say '║ [-] suivi de Cr -> Diminuer d''une page si possiblité ║'
y=charout('con',esc'[13;10f')
say '║ [D] suivi de Cr -> Position de départ, à la dernière ║'
y=charout('con',esc'[14;10f')
say '║ donnée entrer. ║'
y=charout('con',esc'[15;10f')
say '╟──────────────────────────────────────────────────────────╢'
y=charout('con',esc'[16;10f')
say '║ Appuyer sur [RETURN] pour revenir à l`écran ║'
y=charout('con',esc'[17;10f')
say '╚══════════════════════════════════════════════════════════╝'
x=charout('con',esc'[0;40m')
y=charout('con',esc'[24;31f')
gete=translate(linein())
signal optC
conti:
if gete>nbr then signal oky
if gete<=0 then signal oky
x=charout('con',esc'[0;36;40m')
cls
nor=gete
nxe=nor
nb=4
app='call '''nor'bbsd.cmd'' nb'
x=charout('con',esc'[1;0f')
say '┌────────────┬───────────────────┬──────────────┬────────────────┬───┬────────┐'
say '│ Nom du BBS │ Login Utilisé │ Password │ Numéro d''Acces │Mt.│ Divers │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '└────────────┴───────────────────┴──────────────┴────────────────┴───┴────────┘'
interpret app
call lineout nor'bbsd.cmd'
call lineout nor'bbsd.cmd'
contER:
x=charout('con',esc'[7;0f')
x=charout('con',esc'[31m')
say ' '
say ' '
say ' '
say 'Voici toutes les données que vous avez inscrites auparavant concernant ce BBS'
say 'Il vous est maintenant possible de modifier vos données, de les détruire ...'
say '... à jamais !, ou simplement d''abonner cette opération sans rien changer.'
say 'Vous avez le choix entre les options suivantes: '
say ' [M] suivi de Cr, Modifier les données inscrites ci-dessus '
say ' [D] suivi de Cr, Detruire toutes ces données '
say ' [X] suivi de Cr, Abandonner tout, et revenir au menu '
say ' [H] suivi de Cr, Aide supplémentaire...mais que dire de plus ?!'
say ' '
say ' '
x=charout('con',esc'[22;0f')
x=charout('con',esc'[1;34;40m')
say '───────────────────────────────────────────────────────────────────────────────'
zygg:
x=charout('con',esc'[23;5f')
say ' '
x=charout('con',esc'[23;0f')
x=charout('con',esc'[1;33;0m')
say ' Veuillez entrer votre choix -> '
x=charout('con',esc'[23;32f')
gete=translate(linein())
if gete<>'M' & gete<>'D' & gete<>'X' & gete<>'H' then signal hecr
if gete='M' then signal modcr
if gete='D' then signal detcr
if gete='X' then signal Edz
if gete='H' then signal hecr
signal zygg
hecr:
x=charout('con',esc'[1;33;46m')
y=charout('con',esc'[7;10f')
say '╔═════════════╤════════════════════════════════════════════╗'
y=charout('con',esc'[8;10f')
say '║ HELP ME !! │ ║'
y=charout('con',esc'[9;10f')
say '╟─────────────┘ ║'
y=charout('con',esc'[10;10f')
say '║ Tout vous est expliquer sur l''écran, alors pourquoi ║'
y=charout('con',esc'[11;10f')
say '║ vouloir toujours embetter le monde avec de l''aide, ║'
y=charout('con',esc'[12;10f')
say '║ toujours de l''Aide. Eh bin, non! Pas cette fois! Je ne ║'
y=charout('con',esc'[13;10f')
say '║ vous redirais pas ce qu''y est deja inscrit sur l''écran.. ║'
y=charout('con',esc'[14;10f')
say '║ Suffit de lire!! Non mais des fois... ║'
y=charout('con',esc'[15;10f')
say '╟──────────────────────────────────────────────────────────╢'
y=charout('con',esc'[16;10f')
say '║ Appuyer sur [RETURN] pour revenir à l`écran ║'
y=charout('con',esc'[17;10f')
say '╚══════════════════════════════════════════════════════════╝'
x=charout('con',esc'[0;40m')
y=charout('con',esc'[24;31f')
gete=translate(linein())
signal contER
detcr:
x=charout('con',esc'[1;37;40m')
cls
x=charout('con',esc'[2;2f')
say 'Voulez vous vraiment détruire cette donnée (o/n) ?'
x=charout('con',esc'[2;53f')
gete=translate(linein())
if gete<>'O' & gete<>'N' then signal detai
if gete='N' then signal Edz
if gete='O' then signal detcr2
signal detcr
detcr2:
fich=nxe'bbsd.cmd'
del fich
nom='-L i B r E-'
x1='x=charout(''con'',esc''[''nb'';03f'')'
st1='say '''nom''''
zz=lineout(fich,'/* 'nom' */')
zz=lineout(fich,'/* 'nom' */')
zz=lineout(fich,'esc=''1B''x')
zz=lineout(fich,'arg nb .')
zz=lineout(fich,x1)
zz=lineout(fich,st1)
zz=lineout(fich)
zz=linein(fich)
signal Edz
detai:
x=charout('con',esc'[1;33;46m')
y=charout('con',esc'[7;10f')
say '╔═════════════╤════════════════════════════════════════════╗'
y=charout('con',esc'[8;10f')
say '║ HELP ME !! │ ║'
y=charout('con',esc'[9;10f')
say '╟─────────────┘ ║'
y=charout('con',esc'[10;10f')
say '║ A ce stade de l''option [DESTRUCTION], un dernier choix ║'
y=charout('con',esc'[11;10f')
say '║ s''impose! Oui, je ne veux pas, Non, ayant bien réfléchi ║'
y=charout('con',esc'[12;10f')
say '║ j''en veux encore. ║'
y=charout('con',esc'[13;10f')
say '║ Donc si vous répondez oui [o], la donnée sera réduite ║'
y=charout('con',esc'[14;10f')
say '║ à néans pour toujours, sinon vous abandonner, et au menu!║'
y=charout('con',esc'[15;10f')
say '╟──────────────────────────────────────────────────────────╢'
y=charout('con',esc'[16;10f')
say '║ Appuyer sur [RETURN] pour revenir à l`écran ║'
y=charout('con',esc'[17;10f')
say '╚══════════════════════════════════════════════════════════╝'
x=charout('con',esc'[0;40m')
y=charout('con',esc'[24;31f')
gete=translate(linein())
signal detcr
modcr:
x=charout('con',esc'[0;37;40m')
cls
nb=4
app='call '''nxe'bbsd.cmd'' nb'
x=charout('con',esc'[1;0f')
say '┌────────────┬───────────────────┬──────────────┬────────────────┬───┬────────┐'
say '│ Nom du BBS │ Login Utilisé │ Password │ Numéro d''Acces │Mt.│ Divers │'
say '├────────────┼───────────────────┼──────────────┼────────────────┼───┼────────┤'
say '│ │ │ │ │ │ │'
say '└────────────┴───────────────────┴──────────────┴────────────────┴───┴────────┘'
interpret app
call lineout nxe'bbsd.cmd'
call lineout nxe'bbsd.cmd'
say ' '
x=charout('con',esc'[8;5f')
x=charout('con',esc'[0;32m')
say 'Nom du BBS:'
noz2:
x=charout('con',esc'[8;40f')
x=charout('con',esc'[0;31m')
say ' [ ]'
x=charout('con',esc'[8;42f')
x=charout('con',esc'[1;33;m')
nom=linein()
if length(nom)>10 then nom=''
if nom='' then x=charout('con',esc'[8;40f')
if nom='' then say ' '
if nom='' then signal noz2
x=charout('con',esc'[0;36m')
/* */
/* Demande du login */
/* [18] */
x=charout('con',esc'[10;5f')
x=charout('con',esc'[0;32m')
say 'Login Utilisé:'
logiz2:
x=charout('con',esc'[10;40f')
x=charout('con',esc'[0;31m')
say ' [ ]'
x=charout('con',esc'[10;42f')
x=charout('con',esc'[1;33;m')
login=linein()
if length(login)>18 then login=''
if login='' then x=charout('con',esc'[10;40f')
if login='' then say ' '
if login='' then signal logiz2
x=charout('con',esc'[0;36m')
/* */
/* Demande du Pass */
/* [12] */
x=charout('con',esc'[12;5f')
x=charout('con',esc'[0;32m')
say 'Password:'
pasz2:
x=charout('con',esc'[12;40f')
x=charout('con',esc'[0;31m')
say ' [ ]'
x=charout('con',esc'[12;42f')
x=charout('con',esc'[1;33;m')
pass=linein()
if length(pass)>12 then pass=''
if pass='' then x=charout('con',esc'[12;40f')
if pass='' then say ' '
if pass='' then signal pasz2
x=charout('con',esc'[0;36m')
/* */
/* Demande du Telephone */
/* [15] */
x=charout('con',esc'[14;5f')
x=charout('con',esc'[0;32m')
say 'Numéro d''acces:'
phonz2:
x=charout('con',esc'[14;40f')
x=charout('con',esc'[0;31m')
say ' [ ]'
x=charout('con',esc'[14;42f')
x=charout('con',esc'[1;33;m')
phone=linein()
if length(phone)>15 then phone=''
if phone='' then x=charout('con',esc'[14;40f')
if phone='' then say ' '
if phone='' then signal phonz2
x=charout('con',esc'[0;36m')
/* */
/* Demande, Minitel (o/n) */
/* [1] */
x=charout('con',esc'[16;5f')
x=charout('con',esc'[0;32m')
say 'Minitel (o/n):'
minitez2:
x=charout('con',esc'[16;40f')
x=charout('con',esc'[0;31m')
say ' [ ]'
x=charout('con',esc'[16;42f')
x=charout('con',esc'[1;33;m')
minitel=linein()
if length(minitel)>1 then minitel=''
if minitel='' then x=charout('con',esc'[16;40f')
if minitel='' then say ' '
if minitel='' then signal minitez2
x=charout('con',esc'[0;36m')
/* */
/* Demande du la Region */
/* [8] */
x=charout('con',esc'[18;5f')
x=charout('con',esc'[0;32m')
say 'Divers:'
regioz2:
x=charout('con',esc'[18;40f')
x=charout('con',esc'[0;31m')
say ' [ ]'
x=charout('con',esc'[18;42f')
x=charout('con',esc'[1;33;m')
region=linein()
if length(region)>8 then region=''
if region='' then x=charout('con',esc'[18;40f')
if region='' then say ' '
if region='' then signal regioz2
x=charout('con',esc'[0;36m')
fich=nxe'bbsd.cmd'
del fich
x1='x=charout(''con'',esc''[''nb'';03f'')'
x2='x=charout(''con'',esc''[''nb'';16f'')'
x3='x=charout(''con'',esc''[''nb'';36f'')'
x4='x=charout(''con'',esc''[''nb'';51f'')'
x5='x=charout(''con'',esc''[''nb'';68f'')'
x6='x=charout(''con'',esc''[''nb'';71f'')'
st1='say '''nom''''
st2='say '''login''''
st3='say '''pass''''
st4='say '''phone''''
st5='say '''minitel''''
st6='say '''region''''
zz=lineout(fich,'/* 'nom' */')
zz=lineout(fich,'/* 'nom' */')
zz=lineout(fich,'esc=''1B''x')
zz=lineout(fich,'arg nb .')
zz=lineout(fich,x1)
zz=lineout(fich,st1)
zz=lineout(fich,x2)
zz=lineout(fich,st2)
zz=lineout(fich,x3)
zz=lineout(fich,st3)
zz=lineout(fich,x4)
zz=lineout(fich,st4)
zz=lineout(fich,x5)
zz=lineout(fich,st5)
zz=lineout(fich,x6)
zz=lineout(fich,st6)
zz=lineout(fich)
zz=linein(fich)
signal Edz
bbhelp:
x=charout('con',esc'[0;31;46m')
cls
say '┌─────────────────────────────────────────────────────────────────────────────┐'
say '│ Aide Etendue sur BBS - M é M o Page 1/5 │'
say '├─────────────────────────────────────────────────────────────────────────────┤'
say '│ │'
say '│ │'
say '│ │'
say '│ Ce programme a été rélisé en REXX sous OS/2 1.1 │'
say '│ Par │'
say '│ SANDORFI Emmanuel en Octobre de l''an de grÅce 1989. │'
say '│ ─────────────────── │'
say '│ │'
say '│ │'
say '│ Pour me joindre: QBBS (Transpac ou Teletel 2 (3614)) │'
say '│ (code d''acces: 195150485*BBS) │'
say '│ mail: ZYGAR │'
say '│ │'
say '│ MODULA (4043 0124) │'
say '│ mail: EMMANUEL SANDORFI │'
say '│ │'
say '│ SUPTEL (4899 1200) │'
say '│ mail: MANU SANDORFI │'
say '│ │'
say '└──────────┤ Appuyer sur [Return] pour continuer, ou sur [X] pour abandonner├─┘'
gete=translate(linein())
if gete='X' then signal menu
cls
say '┌─────────────────────────────────────────────────────────────────────────────┐'
say '│ Aide Etendue sur BBS - M é M o Page 2/5 │'
say '├─────────────────────────────────────────────────────────────────────────────┤'
say '│ │'
say '│ │'
say '│ BBS - M é M o est un petit programme qui a pour simple but de faciliter │'
say '│ le management de toutes les BBS que vous fréquentées. C''est à dire: │'
say '│ - une possibilité d''avoir tous vos bbs inscrits dans un sortes │'
say '│ de répertoire, ainsi que leur numéro d''acces. │'
say '│ - une possibilité d''avoir le login et le password utilisé dans │'
say '│ chaque bbs. │'
say '│ - le management des données sur vos BBS. │'
say '│ Enfin, il faut bien vous imaginer que ce n''est qu''un tout petit │'
say '│ programme, donc ne pas vous attendre à quelquechose de fantasmagorique, │'
say '│ bien que..... Hehehe │'
say '│ │'
say '│ Toutes les commandes devront etres généralment suivies de Return. │'
say '│ Si vous ne mettez pas la bonne commande, dans la plupart des cas, un │'
say '│ écran d''aide appparaitra (sinon tapez [H]). │'
say '│ │'
say '│ Les differents choix de menus sont: │'
say '│ │'
say '└──────────┤ Appuyer sur [Return] pour continuer, ou sur [X] pour abandonner├─┘'
gete=translate(linein())
if gete='X' then signal menu
cls
say '┌─────────────────────────────────────────────────────────────────────────────┐'
say '│ Aide Etendue sur BBS - M é M o Page 3/5 │'
say '├─────────────────────────────────────────────────────────────────────────────┤'
say '│ │'
say '│ │'
say '│ - Un View de vos données: Il permet en efftet une fois que vous avez │'
say '│ rentré au moins un fichier concernant un BBS (option B au menu) │'
say '│ de pouvoir lister ce que vous avez fait. Il se pourra qu''a un │'
say '│ moment plus rien ne s''affiche, dnas ce cas la appuyer sur [D] │'
say '│ qui remmtra le compteur a zero. Pour pouvoir changer de page, il │'
say '│ vous suffit simplement de faire [+] ou [-] suivi d'Enter. │'
say '│ │'
say '│ - Un programme d''édition permmettant de rentrer vos données. │'
say '│ │'
say '│ - Un programme de modification qui apres etre aller dans [B],[2] │'
say '│ affichera tous vos BBS. Pour le deplacement, voir ci-dessus. │'
say '│ Ensuite pour selecter un BBS, tapez son numero correspondant. │'
say '│ Si jamais vous le détruisez, aparaitra alors un nom ''- Libre - '' │'
say '│ ou vous devez par la suite mettre qqchose dessus. │'
say '│ │'
say '│ - Abandon, qui vous ramenera sous le prompt OS/2 │'
say '│ │'
say '└──────────┤ Appuyer sur [Return] pour continuer, ou sur [X] pour abandonner├─┘'
gete=translate(linein())
if gete='X' then signal menu
cls
say '┌─────────────────────────────────────────────────────────────────────────────┐'
say '│ Aide Etendue sur BBS - M é M o Page 4/5 │'
say '├─────────────────────────────────────────────────────────────────────────────┤'
say '│ │'
say '│ │'
say '│ Cette version de BBS - M é M o est en Beta Test, donc si vous trouvez │'
say '│ quelques erreurs n''hésitez pas à m''en faire part dans un des BBS cités │'
say '│ en première page. │'
say '│ │'
say '│ │'
say '│ │'
say '│ BBS - M é M o n''est pas à considérer comme un gros programme, mais │'
say '│ comme un démonstration de la puissance du language REXX. │'
say '│ Son but secondaire se montre par la gestion des BBS: on peut dire qu''en │'
say '│ fin de compte, c''est une mini-database. │'
say '│ │'
say '│ │'
say '│ BBS - M é M o fonctionne sous OS/2 1.1 et +. Attention la version du │'
say '│ Rexx est SAA, non OS/2 ! Il peut y avoir des differences d''ou une non │'
say '│ compatibilité .. │'
say '│ Donc verifiez la version de votre Rexx avant de déclarer que .... │'
say '│ │'
say '└──────────┤ Appuyer sur [Return] pour continuer, ou sur [X] pour abandonner├─┘'
gete=translate(linein())
if gete='X' then signal menu
cls
say '┌─────────────────────────────────────────────────────────────────────────────┐'
say '│ Aide Etendue sur BBS - M é M o Page 5/5 │'
say '├─────────────────────────────────────────────────────────────────────────────┤'
say '│ │'
say '│ │'
say '│ .... BBS - M é M o ne fonctionne pas. │'
say '│ │'
say '│ │'
say '│ │'
say '│ │'
say '│ │'
say '│ Et pour finir, je dédie ce tout tout petit programme au │'
say '│ ┌────────────────┐ │'
say '│ │ DOMAINE PUBLIC │ │'
say '│ └────────────────┘ │'
say '│ Vente strictement interdite !! │'
say '│ │'
say '│ │'
say '│ LA MODIFICATION DU PROGRAMME BBS.CMD EST STRICTEMENT INTERDITE !! │'
say '│ AINSI QUE SA VENTE. │'
say '│ LOGICIEL FREEWARE │'
say '│ │'
say '└──────────┤ Appuyer sur [Return] pour continuer, ou sur [X] pour abandonner├─┘'
gete=translate(linein())
if gete='X' then signal menu
signal menu
/* Boucle GOODBYE -> Quitte le programme */
goodbye:
x=charout('con',esc'[1;33;40m')
cls
zz=lineout('bbscfg',nbr)
say ' Thanks to use BBS - M é M o '
x=charout('con',esc'[0;37;40m')
exit