• Daydream Matrix.

    From ignatius@46:1/124 to All on Wed Mar 16 08:00:12 2016
    Hi,

    I've created a "matrix" for Daydream BBS. It has 4 choices:

    1) Login to the BBS. 2) Apply for access. 3) Page the sysop and 4) log off.

    I'm having problems with the "apply" function. Here's some code (in C):

    --//--snip-------

    static int create_new_account(void)

    DDPut(sd[newucstr]);
    switch (HotKey(HOT_NOYES)) {
    case 1:
    if (CreateNewAccount()) {
    clog.cl_userid = user.user_account_id;
    clog.cl_firstcall = user.user_firstcall;
    clog.cl_logon = time(0);
    if (user.user_connections == 0)
    clog.cl_flags |= CL_NEWUSER;
    clog.cl_bpsrate = bpsrate;
    getin();
    return 1;
    }
    return 0;
    case 2:
    DDPut("\n");
    return 0;
    default:
    return 1;
    }

    --//--snip-------

    I'm wondering. How would I "call" this code?


    Thanks,


    |09ignatius |07(|15cia|07)

    --- DayDream BBS/UNIX (Linux) 2.15a
    * Origin: catch22bbs.com >>> >> > (46:1/124)
  • From ignatius@46:1/116 to ignatius on Wed Apr 27 00:56:57 2016
    I'm having problems with the "apply" function. Here's some code (in C):


    I actually solved this a few months back. I'm using the console tool
    "writevt" to write directly to the BBS' stdin. It's working nicely.

    -ignatius

    --- Mystic BBS v1.12 A11 (Raspberry Pi)
    * Origin: Cyberia BBS | Cyberia.Darktech.Org | Kingwood, TX (46:1/116)