Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("/XynSoft/System/SystemCC/xs")
- xs.FS(colors.white,false)
- f = fs.open("/XynSoft/Data/User/Password","r")
- truePass = f.read()
- f.close()
- s = fs.open("/XynSoft/Data/User/Color","r")
- col = s.read()
- s.close()
- z = fs.open("/XynSoft/Data/User/Username","r")
- user = z.read()
- z.close()
- xs.Block(1,5,50,14,colors.lightGray)
- xs.Write("Logon",22,8,colors.lightGray,colors.white)
- xs.Button("Done",7,12,colors.gray,clors.white)
- function CheckForMatch()
- if pass == truePass then
- xs.FS(colors.white,false)
- xs.Write("Welcome, "..user,18,10,colors.white,col)
- sleep(2)
- shell.run("/XynSoft/System/Desktop")
- else
- xs.FS(colors.white,false)
- xs.Write("[!] Incorrect [!]",18,10,colors.white,colors.gray)
- sleep(2)
- shell.run("/XynSoft/System/Logon")
- end
- end
- function EventLoop()
- while a do
- if xs.ShellEventAdv("mouse_click",1,7,12,11,13) then
- CheckForMatch()
- end
- end
- end
- EventLoop()
- pass = xs.Input("Password - ",10,10,colors.lightGray,colors.gray)
Advertisement
Add Comment
Please, Sign In to add comment