shell.run("ApfelOS/..colortheme.ac")
term.setBackgroundColor(body)
term.clear()
term.setCursorPos(1,1)
term.setBackgroundColor(tbar)
term.setTextColor(tbartxt)
print(" ")
term.setCursorPos(1,1)
write("ApfelOS 1.0 Pro ")
print(version)
term.setCursorPos(46,1)
term.setTextColor(prog)
print("Login ")
term.setTextColor(mbartxt)
term.setBackgroundColor(mbar)
print("<No Message available> ")
term.setTextColor(wico)
term.setCursorPos(11,5)
term.setBackgroundColor(wicotxt)
print(" Login ")
term.setBackgroundColor(wico)
term.setTextColor(wicotxt)
term.setCursorPos(11,6)
print(" ")
term.setCursorPos(11,7)
print(" ")
term.setCursorPos(11,8)
print(" ")
term.setCursorPos(11,9)
print(" ")
term.setCursorPos(11,10)
print(" ")
term.setCursorPos(11,11)
print(" ")
term.setCursorPos(12,7)
write("Username: ")
term.setCursorPos(12,9)
print("Password: ")
term.setCursorPos(22,7)
UserName = read()
term.setCursorPos(22,9)
UserPass = read("*")
if UserPass == "" then
shell.run("ApfelOS/aLogin.adf")
elseif UserName == "" then
shell.run("ApfelOS/aLogin.adf")
elseif UserName == "Reboot" then
os.reboot()
elseif UserName == "Shutdown" then
os.shutdown()
else
if fs.exists("ApfelOS/..Benutzer/"..UserName.."/"..UserPass.."") then
if fs.exists("ApfelOS/..benutzer/"..UserName.."/"..UserPass.."/admin") then
admin = true
else
admin = false
end
fs.makeDir("ApfelOS/..Session/login")
term.setBackgroundColor(body)
term.clear()
term.setTextColor(tbartxt)
term.setCursorPos(1,1)
term.setBackgroundColor(tbar)
print(" ")
term.setCursorPos(1,1)
write("ApfelOS 1.0 Pro ")
print(version)
term.setBackgroundColor(mbar)
term.setTextColor(mbartxt)
print("<Please wait!> ")
term.setBackgroundColor(body)
term.setTextColor(bodytxt)
term.setCursorPos(21,7)
print("Welcome |")
sleep(0.1)
term.setCursorPos(21,7)
print("Welcome /")
sleep(0.1)
term.setCursorPos(21,7)
print("Welcome -")
sleep(0.1)
term.setCursorPos(21,7)
print("Welcome |")
sleep(0.1)
term.setCursorPos(21,7)
print("Welcome /")
sleep(0.1)
term.setCursorPos(21,7)
print("Welcome -")
sleep(0.1)
term.setCursorPos(21,7)
print("Welcome |")
sleep(0.1)
term.setCursorPos(21,7)
print("Welcome /")
sleep(0.1)
term.setCursorPos(21,7)
print("Welcome -")
sleep(0.1)
term.setCursorPos(21,7)
print("Welcome |")
sleep(0.1)
term.setCursorPos(21,7)
print("Welcome /")
sleep(0.1)
term.setCursorPos(21,7)
print("Welcome -")
sleep(0.1)
term.setCursorPos(21,7)
print("Welcome |")
sleep(0.1)
term.setCursorPos(21,7)
print("Welcome /")
sleep(0.1)
term.setCursorPos(21,7)
print("Welcome -")
sleep(0.1)
else
term.setCursorPos(12,10)
term.setTextColor(16384)
print("Wrong Username or Password")
term.setTextColor(1)
sleep(1)
term.setBackgroundColor(8)
term.clear()
term.setCursorPos(1,1)
shell.run("ApfelOS/aLogin.adf")
end
end