Hello All!
Remember a couple of months ago we were talking about a feature in Maximus to
allow several callers to log in on the one actual call?
Well, I've done it I think.
I run my system under DesqView, and log in locally on Node 3 in a seperate
task to the actual BBS. Sometimes, for various reasons, I've had to restart
the BBS while I'm playing a game. The first few lines of the BBS BAT file
killed off any RESTAR*.*/ACTIVE*.*/LASTUSR*.* files. Of course, this had the
effect of the system having to re-log me in as if there had been a new task
started.
I saw it as an annoying problem at first, before I clicked to what it was,
and to how simple it is.
Here's the relevant portions of my various files..
MENUS.CTL :
{In the various menus. My ReLog is only availble to those with access greater
than normal :}
Goodbye <=Normal "Goodbye (Log Off)"
Display_Menu LogOff >Normal "Goodbye (Log Off)"
{The LogOff menu :}
Menu LogOff
Title LogOff Menu
MenuFile MISC\LOGOFFMN
NoDsp Display_File Hlp\logoffmn Demoted "? Help"
NoDsp Display_File Misc\logoffcl Demoted "Whoops, back to main"
NoDsp Display_Menu Main Demoted "Whoops, back to Main"
NoDsp Display_File Misc\logoffcl Demoted "M"
NoDsp Display_Menu Main Demoted "M"
NoDsp Display_File Misc\logoffcl Demoted "Q"
NoDsp Display_Menu Main Demoted "Q"
NoDsp Display_File misc\byebye Twit "Goodbye"
NoDsp Display_File Misc\LogInAN Worthy "Login as another
user"
NoDsp Leave_Comment Demoted "Comment to SysOp"
End Menu
The LogOffCL file is just to clear the screen (can't remember why).
My LOGOFFMN.MEC file :
[ifkey]Q [menu_cmd goodbye]
[IfKey]Q [Quit]
[acs limited/m goto maxgfx]
[clear_stacked black on black cls yellow]G[gray]ood bye[repeatseq 2 right
21][yellow]W[gray]hoops, mistake! Back to main
[yellow]L[grey]og in as another person[repeatseq 2 right 8]Um,
help[yellow]?[gray]
[grey]Your choice? [[[locate 4 15 black on black] [left left left left
\
\\left grey on black]][left left quit]
[/maxgfx]
[cls moreoff]
{MaxGraphics menu snipped}
{Users have an option to set 'Quick Log Off' from the Change Setup menu. This
just calls a file that asks them if they want to skip or see the logoff menu,
and if they want to skip it the key of Q is set}
My LogInAn.MEC file :
[Cls Yellow]Log in as another user?
[Choice]y[goto end]
[Choice]|[quit]
[Choice]n[quit]
[/End]
[LightRed Blink] Note:
[LightGrey]This part of the system is closely monitored and is intended as a
special feature for users who are on toll calls or who have family members
who want to call in during the same call. Any abuse will not be tolerated.
Also, it's still in the experimental phase. Any problems, please log in,
explain who you are, and I'll get on to fixing the problem ASAP.
[White Enter]
[xtern_erlvl] 78_Log_In_As_New
The relevant portions of my UNNAMED.BAT file (bear in mind that 2 BBS's run
on the same computer, and users can swap between them at will. %SYSTASK% is
of course the task number. The system is run by calling RUNSYS.BAT (not
shown), which then calls the relative BBS BAT file from Bink.
:Top
D:
Cd \Max
IF EXIST Restar0%SysTask%.Bbs GOTO ExistStart
IF NOT EXIST Restar0%SysTask%.Bbs GOTO NotExistStart
REM * Start here when it's a restart
:ExistStart
Max.Exe -r %1 %3 %4
GOTO TestErlvls
REM * Start here when it's not a restart
:NotExistStart
Max.Exe %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO TestErlvls
{Snip}
:TestErlvls
{Snip}
IF Errorlevel 78 GOTO LogInAN
{Snip}
:LogInAN
LogIt ~Login As New User
Smartdrv /C
Del D:\MAX\RESTAR0%SYSTASK%.*
Del d:\MAX\LASTUS0%SYSTASK%.*
Del D:\BBS\DS\LASTUS0%SYSTASK%.*
Del D:\BBS\DS\RESTAR0%SYSTASK%.*
GOTO Top
LogIt is a program written by my partner-in-crime and good friend, Mike
McGavin, which logs the text on the lline to a log file specified in the
LOGIT.CFG file, complete with date/timestamp etc in Maximus format. (Freqable
as LOGIT202.ZIP - DOS version only). The system checks for the relative
RESTAR*.* files. If found, it assumes it's a restart after a door game or
swap to Dark Skies BBS. If not found, it calls Max with the normal parameters
as passed by Bink. Reloging-in simply deletes the RESTAR*.* and LASTUS*.*
files for DarkSkies and Un Named (current task only) before returning to the
top.
So far, I've used this several times LOCALLY with no problems. Since it's
only been up since Monday, users are yet to give it any real testing.
Well, it's late, I'm tired, so I'm off to bed. Anyone got any questions, feel
free to ask..
Dave
--- timEd 1.10
---------------
* Origin: GnomeVille TBBS 64-4 235-6887 (3:771/1560)
|