Advertisement
doublequestionmark

HydroMail Installer

Jun 24th, 2015
515
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.15 KB | None | 0 0
  1. Code = [[{
  2. "{\
  3. Children={\
  4. {\
  5. X=\"27%\",\
  6. Width=\"50%\",\
  7. Y=2,\
  8. Align=\"Center\",\
  9. Name=\"Status\",\
  10. Type=\"Label\",\
  11. Text=\"\",\
  12. },\
  13. {\
  14. X=\"50%, -5\",\
  15. Width=\"20%\",\
  16. Y=1,\
  17. Align=\"Center\",\
  18. Name=\"RefreshB\",\
  19. Type=\"Button\",\
  20. Text=\"Refresh\",\
  21. BackgroundColour=\"lime\",\
  22. ActiveBackgroundColour=\"green\",\
  23. }, \
  24. {\
  25. X=\"27%\",\
  26. Width=\"50%\",\
  27. Y=4,\
  28. Align=\"Center\",\
  29. Name=\"StatusB\",\
  30. Type=\"Label\",\
  31. Text=\"\",\
  32. },\
  33. {\
  34. X=\"100%, -5\",\
  35. Y=1,\
  36. Name=\"ExitB2\",\
  37. Type=\"Button\",\
  38. Text=\"Exit\",\
  39. BackgroundColour=\"red\",\
  40. Width=6,\
  41. },\
  42. {\
  43. X=1,\
  44. Y=1,\
  45. Name=\"MenuB\",\
  46. Type=\"Button\",\
  47. Text=\"#\",\
  48. BackgroundColour=\"white\",\
  49. Width=3,\
  50. },\
  51. {\
  52. X=\"100%, -7\",\
  53. Y=\"100%\",\
  54. Name=\"Next\",\
  55. Type=\"Button\",\
  56. Text=\"Next -->\",\
  57. BackgroundColour=\"green\",\
  58. Width=0,\
  59. },\
  60. {\
  61. X=1,\
  62. Y=\"100%\",\
  63. Name=\"Prev\",\
  64. Type=\"Button\",\
  65. Text=\"<-- Prev\",\
  66. BackgroundColour=\"orange\",\
  67. Width=0,\
  68. },\
  69. },\
  70. BackgroundColour='white'\
  71. }",
  72. "{\
  73. Children={\
  74. {\
  75. X=\"27%\",\
  76. Width=\"50%\",\
  77. Y=2,\
  78. Align=\"Center\",\
  79. Name=\"LoginL\",\
  80. Type=\"Label\",\
  81. Text=\"Email Login\",\
  82. },\
  83. {\
  84. X=\"27%\",\
  85. Width=\"50%\",\
  86. Y=6,\
  87. Align=\"Center\",\
  88. Name=\"Bouncer\",\
  89. Type=\"Label\",\
  90. Text=\"\",\
  91. },\
  92. {\
  93. X=\"38%\",\
  94. Y=7,\
  95. Width=\"25%\",\
  96. Type=\"TextBox\",\
  97. Name=\"Username\",\
  98. Placeholder=\"Username\",\
  99. Active=true\
  100. },\
  101. {\
  102. X=\"38%\",\
  103. Y=10,\
  104. Width=\"25%\",\
  105. Type=\"SecureTextBox\",\
  106. Name=\"Password\",\
  107. Placeholder=\"Password\",\
  108. Active=false\
  109. },\
  110. {\
  111. X=\"25%\",\
  112. Y=16,\
  113. Name=\"ExitB\",\
  114. Type=\"Button\",\
  115. Text=\"Exit\",\
  116. BackgroundColour=\"red\",\
  117. Width=\"25%\",\
  118. },\
  119. {\
  120. X=\"52%\",\
  121. Y=16,\
  122. Name=\"LoginB\",\
  123. Type=\"Button\",\
  124. Text=\"Login\",\
  125. BackgroundColour=\"green\",\
  126. Width=\"25%\",\
  127. }\
  128. },\
  129. BackgroundColour='white'\
  130. }",
  131. "{\
  132. Type=\"Menu\",\
  133. Children={\
  134. {\
  135. Name=\"InboxB\",\
  136. Type=\"Button\",\
  137. Text=\"Inbox\"\
  138. },\
  139. {\
  140. [\"Type\"]=\"Separator\"\
  141. },\
  142. {\
  143. Name=\"SendB\",\
  144. Type=\"Button\",\
  145. Text=\"Send\"\
  146. },\
  147. -- {\
  148. -- [\"Type\"]=\"Separator\"\
  149. -- },\
  150. -- {\
  151. -- Name=\"SettingsB\",\
  152. -- Type=\"Button\",\
  153. -- Text=\"Settings\"\
  154. -- },\
  155. }\
  156. }",
  157. "{\
  158. Children={\
  159. {\
  160. X=\"27%\",\
  161. Width=\"50%\",\
  162. Y=2,\
  163. Align=\"Center\",\
  164. Name=\"Head\",\
  165. Type=\"Label\",\
  166. Text=\"\",\
  167. },\
  168. {\
  169. X=\"3\",\
  170. Width=\"100%, -3\",\
  171. Y=5,\
  172. Align=\"Center\",\
  173. Name=\"Mail\",\
  174. Type=\"Label\",\
  175. Text=\"\",\
  176. },\
  177. {\
  178. X=\"100%, -5\",\
  179. Y=1,\
  180. Name=\"ExitB\",\
  181. Type=\"Button\",\
  182. Text=\"Exit\",\
  183. BackgroundColour=\"red\",\
  184. Width=6,\
  185. },\
  186. {\
  187. X=1,\
  188. Y=1,\
  189. Name=\"BackB\",\
  190. Type=\"Button\",\
  191. Text=\"<-- Back\",\
  192. BackgroundColour=\"orange\",\
  193. Width=8,\
  194. },\
  195. {\
  196. X=\"38%\",\
  197. Width=\"25%\",\
  198. Y=1,\
  199. Align=\"Center\",\
  200. Name=\"DeleteB\",\
  201. Type=\"Button\",\
  202. Text=\" Delete\",\
  203. BackgroundColour=\"red\",\
  204. },\
  205. },\
  206. BackgroundColour='white'\
  207. }",
  208. "{\
  209. Children={\
  210. {\
  211. X=\"27%\",\
  212. Width=\"50%\",\
  213. Y=2,\
  214. Align=\"Center\",\
  215. Name=\"SendHead\",\
  216. Type=\"Label\",\
  217. Text=\"Send Mail\",\
  218. },\
  219. {\
  220. X=\"27%\",\
  221. Width=\"50%\",\
  222. Y=6,\
  223. Align=\"Center\",\
  224. Name=\"To\",\
  225. Type=\"TextBox\",\
  226. Placeholder='To',\
  227. Active=false,\
  228. },\
  229. {\
  230. X=\"27%\",\
  231. Width=\"50%\",\
  232. Y=9,\
  233. Align=\"Center\",\
  234. Name=\"Subject\",\
  235. Type=\"TextBox\",\
  236. Placeholder='Subject',\
  237. Active=false,\
  238. },\
  239. {\
  240. X=\"5%\",\
  241. Width=\"90%, 1\",\
  242. Height=\"25%\",\
  243. Y=12,\
  244. Align=\"Center\",\
  245. Name=\"Body\",\
  246. Type=\"TextBox\",\
  247. Placeholder='Body',\
  248. Active=false,\
  249. },\
  250. {\
  251. X=1,\
  252. Y=1,\
  253. Name=\"MenuB\",\
  254. Type=\"Button\",\
  255. Text=\"#\",\
  256. BackgroundColour=\"white\",\
  257. Width=3,\
  258. },\
  259. {\
  260. X=\"100%, -5\",\
  261. Y=1,\
  262. Name=\"ExitB\",\
  263. Type=\"Button\",\
  264. Text=\"Exit\",\
  265. BackgroundColour=\"red\",\
  266. Width=6,\
  267. },\
  268. {\
  269. X=\"100%, -7\",\
  270. Y=\"100%\",\
  271. Name=\"Next\",\
  272. Type=\"Button\",\
  273. Text=\"Send\",\
  274. BackgroundColour=\"green\",\
  275. Width=8,\
  276. },\
  277. {\
  278. X=1,\
  279. Y=\"100%\",\
  280. Name=\"Prev\",\
  281. Type=\"Button\",\
  282. Text=\"Cancel\",\
  283. BackgroundColour=\"orange\",\
  284. Width=8,\
  285. },\
  286. {\
  287. X=0,\
  288. Width=0,\
  289. Y=0,\
  290. Align=\"Center\",\
  291. Name=\"Bouncer\",\
  292. Type=\"Label\",\
  293. Text=\"\",\
  294. },\
  295. },\
  296. BackgroundColour='white'\
  297. }",
  298. }]]
  299. Name = [[{
  300. "Views/Selections.view",
  301. "Views/main.view",
  302. "Views/menu.view",
  303. "Views/reader.view",
  304. "Views/send.view",
  305. }]]
  306. code=textutils.unserialize(Code)
  307. name=textutils.unserialize(Name)
  308. for i=1,#code do
  309. file = fs.open(name[i], 'w')
  310. file.write(code[i])
  311. file.close()
  312. print('unpacked "'.. name[i] ..'"')
  313. end
  314. print('Downloading Core...')
  315. v = http.get("http://pastebin.com/raw.php?i=AK9SHeZQ")
  316. f = fs.open('mail', 'w')
  317. f.write(v.readAll())
  318. f.close()
  319. v.close()
  320. print('Done!')
  321. print('Would You Like To Start HydroMail Now?')
  322. write('Y/n > ')
  323. c = read()
  324. if c == 'n' then
  325. else
  326. shell.run("mail")
  327. end
  328. print('run "mail" to start HydroMail')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement