Atom888

XynSoft 1.0 - Setup

Nov 16th, 2017
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.84 KB | None | 0 0
  1. os.loadAPI("/XynSoft/System/SysCC/xs")
  2. xs.FS(colors.white)
  3. xs.F("h",1,colors.gray)
  4. xs.F("h"2,colors.gray)
  5. xs.F("h"3,colors.gray)
  6. xs.Write("XynSoft 1.0",5,2,colors.gray,colors.white)
  7. xs.Write("Setup",14,2,colors.gray,colors.lightGray)
  8. function GetLang()
  9.    local file = fs.open("/XynSoft/System/Data/lang","r")
  10.    local data = file.readAll()
  11.    return data
  12. end
  13. l = GetLang()
  14. if l == "en" then
  15.    e1 = "Welcome to the XynSoft 1.0 Setup"
  16.    e2 = "Username - "
  17.    e3 = "Password - "
  18.    e4 = "Label - "
  19.    e5 = "Choose your color: "
  20.    e6 = "Advanced Settings"
  21.    e7 = "Next"
  22.    e8 = "This are your configurations: "
  23.    e9 = " -- Terms of Useage --"
  24.    e10 = "- Do not use this operating system for illegal operations"
  25.    e11 = "- Do not break the system, you don't get EXTENDED help"
  26.    e12 = "- Don't use the system code for your own work"
  27.    e13 = "-- Copyright --"
  28.    e14 = "- Copyight (C) Fluxcraft Labs. All rights reserved."
  29.    e15 = "OK, Next"
  30.    e16 = "I do not argee"
  31.    e17 = "Configurate"
  32.    t18 = "Data Covering"
  33.    t19 = "Automatic encryption"
  34.    t20 = "RedNet Connecion Firewall"
  35.    t21 = "Pastebin System Check"
  36.    t22 = "RedNet Network Finder"
  37.    t23 = "Extra Memory Pincode"
  38.    t24 = "More configurations in the Configuration Center..."
  39.    t25 = "Apply"
  40.    t26 = "Cancel"
  41.    e27 = "XynSoft Succesfully configurated"
  42.    e28 = "Reboot"
  43. elseif l == "nl" then
  44.    e1 = "Welkom bij de XynSoft 1.0 Setup"
  45.    e2 = "Gebruikersnaam - "
  46.    e3 = "Wachtwoord - "
  47.    e4 = "Label - "
  48.    e5 = "Kies je kleur: : "
  49.    e6 = "Geadvanceerde Instellingen"
  50.    e7 = "Volgende"
  51.    e8 = "Dit zijn je Aangebrachte configuraties: "
  52.    e9 = " -- Terms of Useage --"
  53.    e10 = "- Do not use this operating system for illegal operations"
  54.    e11 = "- Do not break the system, you don't get EXTENDED help"
  55.    e12 = "- Don't use the system code for your own work"
  56.    e13 = "-- Copyright --"
  57.    e14 = "- Copyight (C) Fluxcraft Labs. All rights reserved."
  58.    e15 = "OK, Volgende"
  59.    e16 = "Ik accepteer dit niet"
  60.    e17 = "Configureer"
  61.    t18 = "Data Bescherming"
  62.    t19 = "Automatische encryptie"
  63.    t20 = "RedNet Verbinding Firewall"
  64.    t21 = "Pastebin Systeem Controle"
  65.    t22 = "RedNet Netwerk Zoeker"
  66.    t23 = "Extra Geheugen Pincode"
  67.    t24 = "Meer configuraties in het Configuratie Centrum"
  68.    t25 = "Toepassen"
  69.    t26 = "Annuleren"
  70.    e27 = "XynSoft is met succes geconfigureerd"
  71.    e28 = "Opnieuw Opstarten"
  72. else
  73.    xs.FS(colors.white)
  74.    xs.BC(colors.gray)
  75.    xs.TC(colors.white)
  76.    sec = 10
  77.    for i = 1,10
  78.       xs.Write("Err: Undifined Language. Rebooting after "..sec.." Seconds."
  79.       sleep(1)
  80.       sec = sec - 1
  81.    end
  82.    os.reboot()
  83. end
  84. xs.Write(e1,15,6,colors.white,colors.black)
  85. xs.F("h",11,colors.gray)
  86. xs.F("h"12,colors.gray)
  87. xs.F("h"13,colors.gray)
  88. if l == "en" then
  89.    xs.Write("Next",20,12,colors.gray,colors.white)
  90. elseif l == "nl" then
  91.    xs.Write("Volgende",20,12,colors.gray,colors.white)
  92. else
  93.    xs.Write("Err",20,12,colors.gray,colors.white)
  94.    sleep(5)
  95.    os.reboot()
  96. end
  97. t1 = true
  98. while t1 do
  99.    if xs.ShellEventAdv("mouse_click",1,1,42,11,13) then
  100.       t1 = false
  101.    end
  102. end
  103. xs.FS(colors.white)
  104. xs.F("h",1,colors.gray)
  105. xs.F("h",2,colors.gray)
  106. xs.F("h",3,colors.gray)
  107. xs.Write("XynSoft 1.0",5,2,colors.gray,colors.white)
  108. xs.Write("Setup",14,2,colors.gray,colors.lightGray)
  109. xs.Write(e2,6,6,colors.white,colors.black)
  110. xs.Write(e3,6,8,colors.white,colors.black)
  111. xs.Write(e4,6,10,colors.white,colors.black)
  112. user = xs.Input(e2,nil,6,6,colors.white,colors.gray)
  113. pass = xs.Input(e3,nil,6,8,colors.white,colors.gray)
  114. labl = xs.Input(e4,nil,6,10,colors.white,colors.gray)
  115. xs.FS(colors.white)
  116. xs.F("h",1,colors.gray)
  117. xs.F("h",2,colors.gray)
  118. xs.F("h",3,colors.gray)
  119. xs.Write("XynSoft 1.0",5,2,colors.gray,colors.white)
  120. xs.Write("Setup",14,2,colors.gray,colors.lightGray)
  121. xs.Write(e5,18,6,colors.white,colors.black)
Advertisement
Add Comment
Please, Sign In to add comment