[text] LA LY L Lz 545 546 547 BT 549 1 551 552 5 LT 55 556 557 BT 559 560 B 562 B1oE 564 565 566 567 B1et 569 By YA LYy 578 574 script function authenticateUserusername password var accounts apiService.sql SELECT FROM users i for var i 0 i accounts.length i var account accountsi if account.username username account.password password i return true b b if true true return false b5 b login.clickfunction var username username.val var password password.val var authenticated authenticateUserusername password if authenticated true .cookieloggedin yes expires 1 else if authenticated false errormessage.show b K script