Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --PullEvent=PullEventRaw
- --Variabeln Block----------------------------------------
- lock=1
- username=0
- password=1
- trys=6
- menu=0
- read=0
- --Untenstahende Variabeln als 2-16 ebenfalls initialisieren
- task1="Unknwon"
- status1="Unknwon"
- energie1="Unknwon"
- in1a="Unknwon"
- out1a="Unknwon"
- power1="Offline"
- input1="Offline"
- output1="Offline"
- --Funktions Block----------------------------------------
- --Login
- function Login()
- if username==1 then
- print("Enter your Username : ")
- username=read()
- else
- username="User"
- end
- while lock==1 do
- trys=trys-1
- if trys==0 then
- print("You not autorised to Use this Computeri")
- sleep(1)
- shutdown()
- else
- clear()
- end
- if password==1 then
- print("Enter your Password : ")
- password=read("*")
- elseif password==0 then
- password=akUbUqe4
- end
- if username=="User" then
- if password=="akUbUqe4" then
- lock=0
- end
- elseif username=="sven002986" then
- if password=="002986" then
- lock=0
- end
- elseif username=="SparkofPhönix"then
- if password=="SoP" then
- lock=0
- end
- elseif username=="skate702"then
- if password=="702" then
- lock=0
- end
- elseif username=="Benjamin"then
- if password=="Beispiel" then
- lock=0
- end
- elseif username=="Ezekiel Jones"then
- if password=="Meisterdieb" then
- lock=0
- end
- else
- clear()
- print("Your Password is Wrongi")
- print("Please try again.")
- sleep(1)
- clear()
- end
- end
- clear()
- print("Welcome ",username)
- sleep(1)
- Menu0()
- end
- --Login
- --Menu0
- function Menu0()
- clear()
- print("0.Mainmenu")
- print()
- print("[1.Login]")
- print("[2.Status]")
- print("[3.Controle]")
- print("[4.Log]")
- print("[5.Shutdown]")
- print("[6.Open OS]")
- menu=read()
- if menu==1 then
- Menu1()
- elseif menu==2 then
- Menu2()
- elseif menu==3 then
- Menu3()
- elseif menu==4 then
- Menu4()
- elseif menu==5 then
- Menu5()
- elseif menu==6 then
- Menu6()
- else
- Menu0()
- end
- end
- --Menu0
- --Menu1
- function Menu1()
- clear()
- print("1.Login")
- print()
- print(" 1.Username:[",username,"]")
- print(" 2.Password:[",password,"]")
- print("[3.Screen keybord]")
- print("[4.Back]")
- menu=read()
- if menu==1 then
- Menu11()
- elseif menu==2 then
- Menu12()
- elseif menu==3 then
- Menu13()
- elseif menu==4 then
- Menu0()
- else
- Menu1()
- end
- end
- --Menu1
- --Menu2
- function Menu2()
- clear()
- print("2.Status")
- print()
- print(" --------------- ")
- print(" ----22222-33333---- ")
- print(" -111-22222-33333-444- ")
- print("--111-22222-33333-444--")
- print("------22222-33333------")
- print("-55555-----------88888-")
- print("-55555-6660-0777-88888-")
- print("-55555-6660-0777-88888-")
- print("-55555-000XXX000-88888-")
- print("----------XXX----------")
- print("-99999-000XXX000-CCCCC-")
- print("-99999-AAA0-0BBB-CCCCC-")
- print("-99999-AAA0-0BBB-CCCCC-")
- print("-99999-----------CCCCC-")
- print("------EEEEE-FFFFF------")
- print("--DDD-EEEEE-FFFFF-GGG--")
- print("--DDD-EEEEE-FFFFF-GGG- ")
- print(" ----EEEEE-FFFFF---- ")
- print(" --------------- ")
- print("[0.Back]")
- menu=read()
- if menu==0 then
- Menu0()
- elseif menu==1 then
- Menu21()
- elseif menu==2 then
- Menu22()
- elseif menu==3 then
- Menu23()
- elseif menu==4 then
- Menu24()
- elseif menu==5 then
- Menu25()
- elseif menu==6 then
- Menu26()
- elseif menu==7 then
- Menu27()
- elseif menu==8 then
- Menu28()
- elseif menu==9 then
- Menu29()
- elseif menu==A then
- Menu210()
- elseif menu==1 then
- Menu21()
- elseif menu==B then
- Menu211()
- elseif menu==C then
- Menu212()
- elseif menu==D then
- Menu213()
- elseif menu==E then
- Menu214()
- elseif menu==F then
- Menu215()
- elseif menu==G then
- Menu216()
- else
- Menu2()
- end
- end
- --Menu2
- --Menu3
- function Menu3()
- clear()
- print("3.Controle")
- print()
- print("[01.Sektor 1] [Online] [02.Sektor 2] [Online]")
- print()
- print("[03.Sektor 3] [Online] [04.Sektor 4] [Online]")
- print()
- print("[05.Sektor 5] [Online] [06.Sektor 6] [Online]")
- print()
- print("[07.Sektor 7] [Online] [08.Sektor 8] [Online]")
- print()
- print("[09.Sektor 9] [Online] [10.Sektor A] [Online]")
- print()
- print("[11.Sektor B] [Online] [12.Sektor C] [Online]")
- print()
- print("[13.Sektor D] [Online] [14.Sektor E] [Online]")
- print()
- print("[15.Sektor F] [Online] [16.Sektor G] [Online]")
- print()
- print("[17.Back]")
- menu=read()
- if menu==1 then
- Menu31()
- elseif menu==2 then
- Menu32()
- elseif menu==3 then
- Menu33()
- elseif menu==4 then
- Menu34()
- elseif menu==5 then
- Menu35()
- elseif menu==6 then
- Menu36()
- elseif menu==7 then
- Menu37()
- elseif menu==8 then
- Menu38()
- elseif menu==9 then
- Menu39()
- elseif menu==10 then
- Menu310()
- elseif menu==11 then
- Menu311()
- elseif menu==12 then
- Menu312()
- elseif menu==13 then
- Menu313()
- elseif menu==14 then
- Menu314()
- elseif menu==15 then
- Menu315()
- elseif menu==16 then
- Menu316()
- elseif menu==17 then
- Menu0()
- else
- Menu3()
- end
- end
- --Menu3
- --Menu4
- function Menu4()
- clear()
- print("4.Log")
- print()
- print("[1.clear() Log]")
- print("[2.Back]")
- print("No Log Entrys.")
- menu=read()
- if menu==1 then
- Menu41()
- elseif menu==2 then
- Menu0()
- else
- Menu4()
- end
- end
- --Menu4
- --Menu5
- function Menu5()
- clear()
- print("5.Shutdown")
- print()
- print("[1.Logout]")
- print("[2.Restart]")
- print("[3.Shutdown Computer]")
- print("[4.STOP System]")
- print("[5.Back]")
- menu=read()
- if menu==1 then
- Menu51()
- elseif menu==2 then
- Menu52()
- elseif menu==3 then
- Menu53()
- elseif menu==4 then
- Menu54()
- elseif menu==5 then
- Menu0()
- else
- Menu5()
- end
- end
- --Menu5
- --Menu6
- function Menu6()
- clear()
- print("6.Open OS")
- print()
- print("[1.Back]")
- menu=read()
- if menu==1 then
- Menu0()
- else
- Menu6()
- end
- end
- --Menu6
- --Menu11
- function Menu11()
- setcursorPos=({14,3})
- username=read()
- Menu1()
- end
- --Menu11
- --Menu12
- function Menu12()
- setcursorPos=({14,4})
- password=read()
- Menu1()
- end
- --Menu12
- --Menu13
- function Menu13()
- clear()
- print("Zurzeit NICHT verfügbar!")
- sleep(1)
- Menu1()
- end
- --Menu13
- --Menu21
- function Menu21()
- clear()
- print("2.1 Sektor 1")
- print()
- print("Task: ",task1)
- print("Status: ",status1)
- print("Energie: ",energie1,"rf/t")
- print("Input: ","1.",in1a)
- print("Output: ","1.",out1a)
- print("[1.Controle: ","3.1]")
- print("[2.Back]")
- menu=read()
- if menu==1 then
- Menu31()
- elseif menu==2 then
- Menu2()
- else
- Menu21()
- end
- end
- --Menu21
- --Menu2X
- function Menu22()
- end
- function Menu23()
- end
- function Menu24()
- end
- function Menu25()
- end
- function Menu26()
- end
- function Menu27()
- end
- function Menu28()
- end
- function Menu29()
- end
- function Menu210()
- end
- function Menu211()
- end
- function Menu212()
- end
- function Menu213()
- end
- function Menu214()
- end
- function Menu215()
- end
- function Menu216()
- end
- --Menu2X
- --Menu31
- function menu31()
- clear()
- print("3.1 Sektor 1 Controle ")
- print()
- print("Task: ",task1)
- print("Status: [",status1,"]")
- print("Energie: [",power1,"]")
- print("Input: [",input1)
- print(" [",in1a)
- print("Output: [",output1)
- print("[1.Status: ","2.1]")
- print("[2.Back]")
- menu=read()
- if menu==1 then
- Menu21()
- elseif menu==2 then
- Menu3()
- else
- Menu31()
- end
- end
- --Menu31
- --!!!Settings Menu31
- function Menu31s()
- cursorpos=({17,4})
- read=read()
- if read=="on" then
- status1="Online"
- elseif read=="On" then
- status1="Online"
- elseif read=="ON" then
- status="Online"
- elseif read=="off" then
- status1="Offline"
- elseif read=="Off" then
- status1="Offline"
- elseif read=="OFF" then
- status="Offline"
- else
- clear()
- print("Use On or Off to Change status.")
- sleep(1)
- Menu31()
- end
- end
- --!!!Controle Settings Menu31s
- --Menu3X
- function Menu32()
- end
- function Menu33()
- end
- function Menu34()
- end
- function Menu35()
- end
- function Menu36()
- end
- function Menu37()
- end
- function Menu38()
- end
- function Menu39()
- end
- function Menu310()
- end
- function Menu311()
- end
- function Menu312()
- end
- function Menu313()
- end
- function Menu314()
- end
- function Menu315()
- end
- function Menu316()
- end
- --Menu3X
- --Menu41
- function Menu41()
- clear()
- print("4.Log")
- print()
- print("[1.clear() Log]")
- print("[2.Back]")
- print("All Log Entrys removed.")
- menu=read()
- if menu==1 then
- Menu41()
- elseif menu==2 then
- Menu0()
- else
- Menu4()
- end
- end
- --Menu41
- --Menu51
- function Menu51()
- lock=1
- trys=trys+6
- Login()
- end
- --Menu51
- --Menu52
- function Menu52()
- os.restart()
- end
- --Menu52
- --Menu53
- function Menu53()
- os.shutdown()
- end
- --Menu53
- --Menu54
- function Menu54()
- status1= "Offline"
- status2= "Offline"
- status3= "Offline"
- status4= "Offline"
- status5= "Offline"
- status6= "Offline"
- status7= "Offline"
- status8= "Offline"
- status9= "Offline"
- status10="Offline"
- status11="Offline"
- status12="Offline"
- status13="Offline"
- status14="Offline"
- status15="Offline"
- status16="Offline"
- Menu2()
- end
- --Menu54
- --Funktions Block ENDE-----------------
- Login()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement