Guest User

Untitled

a guest
Oct 20th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     function Ulogin(){
  2.             flogin.open();
  3.             flogin.clear();
  4.             flogin.top();
  5.             flogin.gotoxy(2,2);
  6.             flogin.putmsg("\1yUser:");
  7.             f.cycle();
  8.            
  9.             console.gotoxy(60,20);
  10.             console.attributes = BG_BLUE | WHITE;
  11.            
  12.             var id=console.getstr( LEN_ALIAS , K_UPRLWR | K_TAB | K_ANSI_CPR );
  13.             truncsp(id);
  14.            
  15.             if(!id.length)
  16.                     return false;
  17.            
  18.            
  19.             var unum = system.matchuser(id);
  20.             if(unum < 1)
  21.                     return false;
  22.             flogin.gotoxy(2,3);
  23.             flogin.putmsg("\1yPass:");
  24.             f.cycle();
  25.             console.gotoxy(60,21);
  26.             console.attributes = BG_BLUE | WHITE;
  27.             // var pw=console.getstr();
  28.             // console.ungetstr(pw);
  29.             // var usr = new User(unum);
  30.             // if (usr.security.level>89) {
  31.                 // flogin.gotoxy(2,4);
  32.                 // flogin.putmsg("\1ySysPw:");
  33.                 // f.cycle();
  34.                 // console.gotoxy(61,22);
  35.                 // console.attributes = BG_BLUE | WHITE;
  36.                 // var sys = console.getstr();
  37.                 // var syspw = (pw + "\r\n" + sys + "\r\n");
  38.                 // console.ungetstr(syspw);
  39.                 // (bbs.login(id,''));
  40.                 // exit();
  41.                 // }
  42.                 // else {
  43.                     // flogin.clear();
  44.                     // flogin.gotoxy(6,3);
  45.                     // flogin.putmsg("\1h\1rINVALID LOGIN!");
  46.                     // f.invalidate();
  47.                     // f.cycle();
  48.                     // mswait(1500);
  49.                     // return false; }
  50.                    
  51.             if (bbs.login(id,'')) {
  52.                     bbs.logon();
  53.                     exit();
  54.                 }  
  55.                 else {
  56.                     flogin.clear();
  57.                     flogin.gotoxy(6,3);
  58.                     flogin.putmsg("\1h\1rINVALID LOGIN!");
  59.                     f.invalidate();
  60.                     f.cycle();
  61.                     //console.getkey();
  62.                     mswait(1500);
  63.                     return false; }
  64.             }
Add Comment
Please, Sign In to add comment