Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Ulogin(){
- flogin.open();
- flogin.clear();
- flogin.top();
- flogin.gotoxy(2,2);
- flogin.putmsg("\1yUser:");
- f.cycle();
- console.gotoxy(60,20);
- console.attributes = BG_BLUE | WHITE;
- var id=console.getstr( LEN_ALIAS , K_UPRLWR | K_TAB | K_ANSI_CPR );
- truncsp(id);
- if(!id.length)
- return false;
- var unum = system.matchuser(id);
- if(unum < 1)
- return false;
- flogin.gotoxy(2,3);
- flogin.putmsg("\1yPass:");
- f.cycle();
- console.gotoxy(60,21);
- console.attributes = BG_BLUE | WHITE;
- // var pw=console.getstr();
- // console.ungetstr(pw);
- // var usr = new User(unum);
- // if (usr.security.level>89) {
- // flogin.gotoxy(2,4);
- // flogin.putmsg("\1ySysPw:");
- // f.cycle();
- // console.gotoxy(61,22);
- // console.attributes = BG_BLUE | WHITE;
- // var sys = console.getstr();
- // var syspw = (pw + "\r\n" + sys + "\r\n");
- // console.ungetstr(syspw);
- // (bbs.login(id,''));
- // exit();
- // }
- // else {
- // flogin.clear();
- // flogin.gotoxy(6,3);
- // flogin.putmsg("\1h\1rINVALID LOGIN!");
- // f.invalidate();
- // f.cycle();
- // mswait(1500);
- // return false; }
- if (bbs.login(id,'')) {
- bbs.logon();
- exit();
- }
- else {
- flogin.clear();
- flogin.gotoxy(6,3);
- flogin.putmsg("\1h\1rINVALID LOGIN!");
- f.invalidate();
- f.cycle();
- //console.getkey();
- mswait(1500);
- return false; }
- }
Add Comment
Please, Sign In to add comment