Advertisement
hadyproxml

بانل سبايسي

Jul 11th, 2022 (edited)
859
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.80 KB | None | 0 0
  1.  -------------------------------------------------------------------------------------------
  2.  
  3. Variable = {}
  4. Variable["RegisterURL"] = "http://spicyvip.000webhostapp.com/Register.php"
  5. Variable["UserUrl"] = "http://spicyvip.000webhostapp.com/User.php"
  6. Variable["Action"] = "http://spicyvip.000webhostapp.com/ActionManager.php"
  7. Variable["Log"] = "http://spicyvip.000webhostapp.com/Log.php"
  8. Variable["Key1"] = "DowrDnASKiDdJFxXPxEDcjf42BUqHzkbUaCNm4wHw8AyTpa7gEGEybswr6G3JgE3paHkZbTapcWZbe4NHD"---ACTIONS
  9. Variable["Key2"] = "DowrDnASKih9PAqJ6BWCSeqqns"
  10. Variable["Key3"] = "DowrDnASKiBPg3J6H8t6xnPVrR"
  11. Variable["Sec1"] = "DowrDnASKiMqJtMaxtNGV0RWp1RWtaRWJ4RWp4RWVdNHZcNWFtNGV2RWN1RWF2RWFaRWF1RWF2RWB0"
  12. Variable["Sec2"] = "DowrDnASKiMAgiCYHsMiwHHwbnV27Jvs4"
  13.  
  14. ---------------------------------------------------------------------------------------------
  15.  
  16. Lang = {}
  17. function SetLang()
  18. LangBase = {"🔐 كلمه سر","🔐ᴘᴀssᴡᴏʀᴅ","⏰ المده","⏰ʜᴏᴡ ᴍᴀɴʏ ᴅᴀʏ","🔘 تفعيل","🔘ᴀᴄᴛɪᴠᴇ","🚫 حذف","🚫ᴅᴇʟᴇᴛᴇ ᴜsᴇʀ","🔁 ترسيت","🔁ʀᴇsᴇᴛ ᴅᴇᴠɪᴄᴇ","🔄 تجديد الاشتراك","🔄ʀᴇɴᴇᴡ ᴜsᴇʀ","✏ تعديل","✏ᴇᴅɪᴛ ᴜsᴇʀ ɪɴғᴏ","🔧 اعدادات المفتاح","🔧ᴍᴜʟᴛʏ ᴜsᴇʀ sᴇᴛᴛɪɴɢ","📑 معلومات المفتاح","📑ɪɴғᴏʀᴍᴀᴛɪᴏɴ ᴏғ ᴜsᴇʀs","🔑 جميع المفاتيح","👤ᴜsᴇʀ ʟɪsᴛ","👥 تحديد المفاتيح","👥ᴀʟʟ ᴜsᴇʀs","📥 انشاء مفتاح","📥ʀᴇɢɪsᴛᴇʀ ᴜsᴇʀ","❌ خروج","❌ᴇxɪᴛ","⏳ يوم","⏳ᴅᴀʏs","❔ يوزر","❔ᴜsᴇʀɴᴀᴍᴇ","🔏ᴄᴏɴғᴏʀᴍ ᴘᴀssᴡᴏʀᴅ","🔏ᴄᴏɴғᴏʀᴍ ᴘᴀssᴡᴏʀᴅ","📴 اخر دخول","📴ʟᴀsᴛ ʟᴏɢɪɴ","✅ تم بنجاح","✔️ تم بنجاح","☑ تاريخ البدء", "☑ᴄʀᴇᴀᴛᴇᴅ", "✒ بدء في","✒ᴄᴀᴅᴀsᴛʀᴀʟ"}
  19. C = gg.choice({"\nدخول اللوحه\n",Lang[13]})
  20. if not C then
  21. os.exit()
  22. end
  23. if C == 3 then
  24. os.exit()
  25. end
  26.  
  27. for x =C,#LangBase,2
  28. do
  29. table.insert(Lang,LangBase[x])
  30.  
  31. end
  32.  
  33. end
  34. AccountList = {} View = 1 function split(s, delimiter)  result = {}; for match in (s..delimiter):gmatch("(.-)"..delimiter) do table.insert(result, match); end return result; end  function GetListType(Array,Type) NewList = {} for x=1,#Array,1 do table.insert(NewList,Array[x][Type]) end return NewList end function GetMenuToArray(MsM) array = {} array["name"] ={} array["Title"] = {} array["function"] = {} for key,value in pairs(MsM) do  if tonumber(key)  == 1 then array["Title"] = value else if type(value) == "string" then array["name"][#array["name"] + 1] = value end if type(value) == "function" then array["function"][#array["function"] + 1] = value end end end return array  end function JSONStringify(Json) JsonText = "" for x=2,#Json,2 do if x == 2 then JsonText = "{"..'"'..Json[x-1]..'":'..'"'..Json[x]..'"' else JsonText =JsonText..',"'..Json[x-1]..'":'..'"'..Json[x]..'"' end if x == #Json then JsonText = JsonText.."}" end end return JsonText end
  35. function DeleteAccount(Slot)
  36. local JSON  = JSONStringify({"Action","Delete","Authorization",Variable["Key1"],"Username",AccountList[Slot].Name,"Secret",Variable["Sec1"]})
  37. Response = gg.makeRequest(Variable["Action"],nil,JSON).content
  38.  pcall(load(Response))
  39.  end
  40.  function ResetAccount(Slot)
  41.  local JSON  = JSONStringify({"Action","Reset","Authorization",Variable["Key1"],"Username",AccountList[Slot].Name,"Secret",Variable["Sec1"]})
  42. Response = gg.makeRequest(Variable["Action"],nil,JSON).content
  43.  pcall(load(Response))
  44.  end
  45. function EditAccount(Slot)
  46.  if AccountList[Slot].Active == "true" then
  47.     Active = true
  48.      else
  49.     Active = false     
  50. end
  51.  if AccountList[Slot].Admin == "true" then
  52.     Admin = true
  53.      else
  54.     Admin = false  
  55. end
  56.  
  57. Prompt = gg.prompt({Lang[1],Lang[2],Lang[3],"👮Admin"},{AccountList[Slot].Password,AccountList[Slot].Expire,Active,Admin},{"text","text","checkbox","checkbox"})
  58.  if not Prompt then return
  59.  end
  60. local JSON  = JSONStringify({"Action","Edit","Authorization",Variable["Key1"],"Username",AccountList[Slot].Name,"date",Prompt[2],"password",Prompt[1],"actived",tostring(Prompt[3]),"level",tostring(Prompt[4]),"Secret",Variable["Sec1"]})
  61.  
  62.  Response = gg.makeRequest(Variable["Action"],nil,JSON).content
  63.  pcall(load(Response))
  64. end
  65. function AllUser()
  66. local UserList = GetListType(AccountList,"Name")
  67. local Actived = GetListType(AccountList,"Active")
  68. local Type = {}
  69. for x=1,#Actived,1
  70. do
  71. if Actived[x] == "true" then
  72.  
  73. Actived[x] = true
  74. else
  75. Actived[x] = false
  76. end
  77. Type[x] = "checkbox"
  78. end
  79.  
  80. P = gg.prompt(UserList,Actived,Type)
  81. if not P then
  82. return
  83. end
  84. Menu = gg.choice({Lang[6],Lang[4],Lang[5]},nil,Lang[8])
  85. if not Menu then
  86. return
  87. end
  88. if Menu > 0 and Menu < 2 then
  89. Prompt = gg.prompt({Lang[14]},nil,{"num"})
  90.  if not Prompt then
  91.  return
  92.  end
  93.  RenoveAll(P,Prompt[1])
  94. end
  95. if Menu > 1 and Menu  < 3 then
  96. for x =1,#P,1
  97. do
  98. if P[x] == true then
  99.  
  100. local JSON  = JSONStringify({"Action","Delete","Authorization",Variable["Key1"],"Username",AccountList[x].Name,"Secret",Variable["Sec1"]})
  101.  
  102.  
  103. Response = gg.makeRequest(Variable["Action"],nil,JSON).content
  104.  
  105. end
  106.  
  107. end
  108. gg.alert(Lang[18])
  109. end
  110. if Menu >  2 and Menu  < 4 then
  111. for x =1,#P,1
  112. do
  113. if P[x] == true then
  114.  
  115. local JSON  = JSONStringify({"Action","Reset","Authorization",Variable["Key1"],"Username",AccountList[x].Name,"Secret",Variable["Sec1"]})
  116.  
  117. Response = gg.makeRequest(Variable["Action"],nil,JSON).content
  118.  
  119. end
  120.  
  121. end
  122. gg.alert(Lang[18])
  123. end
  124. end
  125. function RenoveAll(Array,Days)
  126. if not Array or not Days then
  127. return
  128. end
  129. for x =1,#Array,1
  130. do
  131. if Array[x] == true then
  132.  local JSON  = JSONStringify({"Action","Renovate","Authorization",Variable["Key1"],"Username",AccountList[x].Name,"Expire",Days,"Secret",Variable["Sec1"]})
  133. Response = gg.makeRequest(Variable["Action"],nil,JSON).content
  134. end
  135. end
  136. gg.alert(Lang[18])
  137. end
  138.  
  139. function RenoveAccount(Slot)
  140. Prompt = gg.prompt({Lang[14]},nil,{"num"})
  141.  if not Prompt then
  142.  return
  143.  end
  144.  local JSON  = JSONStringify({"Action","Renovate","Authorization",Variable["Key1"],"Username",AccountList[Slot].Name,"Expire",Prompt[1],"Secret",Variable["Sec1"]})
  145. Response = gg.makeRequest(Variable["Action"],nil,JSON).content pcall(load(Response))
  146.  end
  147.  function ShowAccount(Slot)
  148. gg.alert(Lang[15]..": "..AccountList[Slot]["Name"].."\n"..Lang[1]..": "..AccountList[Slot]["Password"] .."\n"..Lang[2]..": "..AccountList[Slot]["Expire"].."\n"..Lang[3]..": "..AccountList[Slot]["Active"].."\n"..Lang[17]..": "..AccountList[Slot]["LastLogin"]..'\n'..Lang[19]..": "..AccountList[Slot]["Created"]:gsub("\\n",""))
  149. return;
  150.  end
  151.  function GetAccounts()
  152. UserList = GetListType(AccountList,"Name")
  153. local ID  = gg.choice(UserList,nil,Lang[10])
  154. if not ID then
  155.  return
  156. end
  157. Menu = {Lang[8],Lang[4],DeleteAccount,Lang[7],EditAccount,Lang[6],RenoveAccount,Lang[5],ResetAccount,Lang[9],ShowAccount}
  158. SetMenu= GetMenuToArray(Menu)
  159.  Choice = gg.choice(SetMenu["name"],nil,SetMenu["Title"])
  160.  if not Choice then  
  161. return
  162.  else
  163.  SetMenu["function"][Choice](ID)
  164. end
  165.  end
  166. function GetUsers()
  167. local JSON  = JSONStringify({"KEY",Variable["Key3"],"Secret",Variable["Sec2"]})
  168. Response = gg.makeRequest(Variable["UserUrl"],nil,JSON).content
  169. if not Response then
  170. return {}
  171. end
  172.  
  173.  Data = split(Response,"\\n")
  174.  
  175. X=1
  176. AccountList ={}
  177.  for x=1,(#Data - 1),1
  178. do
  179. local Split = split(Data[x],"||")
  180.  AccountList[X]  = {}
  181. AccountList[X]["Name"] = Split[1]
  182. AccountList[X]["Password"] = Split[2]
  183. AccountList[X]["Expire"] = Split[3]
  184. AccountList[X]["Active"] = Split[4]
  185. AccountList[X]["LastLogin"] = Split[5]
  186. AccountList[X]["Created"] =Split[7]
  187. X = X+1
  188. end
  189.  
  190.  return AccountList
  191.  end
  192. function Register()
  193.  Prompt = gg.prompt({Lang[15],Lang[1],Lang[2],"👮Admin","▶️ B A C K ◀️"},nil,{"text","text","num","checkbox","checkbox"})
  194.     if not Prompt then  
  195. return  
  196. end
  197.     if Prompt[5] then
  198.     return
  199.     end      
  200.     if Prompt[4] == true then
  201.    
  202.     Level = "1"
  203.     else
  204.     Level = "0"
  205.     end
  206. local JSON  = JSONStringify({"Username",Prompt[1],"Password",Prompt[2],"ConfirmPassword",Prompt[2],"Expiration",Prompt[3],"Key",Variable["Key2"],"Secret",Variable["Sec1"],"Level",Level})
  207. ResponseContent = gg.makeRequest(Variable["RegisterURL"],nil,JSON).content
  208.  
  209.  pcall(load(ResponseContent))  
  210. end
  211.  
  212. function Main()
  213.  GetUsers()  
  214. Menu = {"▫️𝐀𝐃𝐌𝐈𝐍 𝐏𝐀𝐍𝐄𝐋▫️\n@me_hadypro",Lang[10],GetAccounts,Lang[12],Register,Lang[11],AllUser,LogF,Lang[13],os.exit}
  215.  SetMenu= GetMenuToArray(Menu)
  216. Choice = gg.choice(SetMenu["name"],nil,SetMenu["Title"])
  217. if not Choice then
  218. return
  219.  else
  220. SetMenu["function"][Choice]()
  221. end
  222. View = -1
  223. end  
  224. SetLang()
  225. while (true) do   if gg.isVisible(true) then    View = 1     gg.setVisible(false)   end if View == 1 then   Main()  end  end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement