Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not http then
- printError("Xeon OS needs the http API")
- return
- end
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.white)
- local isp = paintutils.loadImage("Xeon/System/installationbackground")
- paintutils.drawImage(isp,1,1)
- local function pb(paste,file)
- local response = http.get("http://pastebin.com/raw/"..paste)
- local sResponse = response.readAll()
- response.close()
- local file = fs.open( file, "w" )
- file.write(sResponse)
- end
- local function continuebutton()
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.white)
- term.setCursorPos(35,15)
- print("Continue")
- local event, button, x, y = os.pullEvent("mouse_click")
- if y == 15 and x < 43 and x > 34 and button == 1 then
- continued = 1
- end
- end
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.white)
- term.setCursorPos(13,8)
- print("Please wait while Xeon OS ")
- term.setCursorPos(11,9)
- print("downloads the neccisary Files...")
- pb("PyYKSwFk","Xeon/System/login")
- pb("ChNyQYEm","Xeon/System/welcome")
- pb("Di9SWCeC","Xeon/System/bkgd")
- pb("gLLy8GSd","Xeon/System/black")
- pb("zm2rKe83","Xeon/System/defaultuser.paint")
- pb("kFysEaaF","Xeon/System/Exit.paint")
- pb("ZsGuGi0M","Xeon/System/lightB")
- pb("Kh1Y54F7","Xeon/System/logo")
- pb("772v6E6D","Xeon/System/menu10")
- pb("sqsS8S0S","Xeon/System/system")
- pb("PuBekjhj","Xeon/System/white")
- pb("zY24cE2L","Xeon/System/updater")
- pb("yf0hGAEi","Xeon/System/execute")
- pb("DL1fgXwe","Xeon/System/exitscreen")
- pb("umYiNCt5","Xeon/System/optionswindow")
- pb("6tztv9dq","Xeon/System/optionswindow2")
- pb("KAeHtrRE","Xeon/System/powermenu")
- pb("6te2Eqi3","Xeon/System/searchbar")
- pb("2wxQPtuv","Xeon/System/installationbackground")
- paintutils.drawImage(isp,1,1)
- term.setCursorPos(13,8)
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.white)
- print(" Welcome to Xeon OS !")
- while true do
- continuebutton()
- if continued == 1 then
- continued = 0
- paintutils.drawImage(isp,1,1)
- term.setCursorPos(13,8)
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.white)
- print("Please choose a Username !")
- term.setCursorPos(13,11)
- local user = read()
- paintutils.drawImage(isp,1,1)
- term.setCursorPos(13,8)
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.white)
- print("Please choose a Password !")
- term.setCursorPos(13,11)
- local pass = read("*")
- paintutils.drawImage(isp,1,1)
- term.setCursorPos(13,8)
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.white)
- print("Please repeat the Password !")
- term.setCursorPos(13,11)
- local pass2 = read("*")
- if pass == pass2 then
- local convertlink = "http://md5hash.netne.net/md5.php?cn="
- local vpass = http.get(convertlink .. pass).readLine()
- local filez = fs.open("Xeon/Users/"..user,"a")
- filez.writeLine(vpass)
- while true do
- continuebutton()
- if continued == 1 then
- paintutils.drawImage(isp,1,1)
- term.setCursorPos(13,8)
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.white)
- print("Installation finished !")
- term.setCursorPos(13,9)
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.white)
- print("The OS will reboot now...")
- sleep(2)
- os.reboot()
- end
- end
- else
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement