ShareShortcuts

host256

Quick details; Upcoming project Finishing by 2/20/22 Does NOT Currently Work

znugget
Fork “host256”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so znugget gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
47K
Saved
2
Actions
61
Category
API
Version
1.0
Language
EN

Quick details; Upcoming project Finishing by 2/20/22 Does NOT Currently Work

What's New

Version 1.0

First release

Version History
1.0 Oct 7, 2021

First release

What it does

61 actions
  1. Comment
    Hello and welcome to host256! This shortcut is meant for hosting files on a free to use server. For example, if you needed to make a whitelist system, you could use host256 for it.
  2. Comment
    This shortcut was created by zNugget. Any replicas of this shortcut that are posted on shareshortcuts or routinehub, will be requested for deletion.
  3. URL
    http://host256.tk
  4. Create Folder
  5. Create Folder
  6. Text
  7. Set Variable
    option_0x1
  8. Get File
  9. Text
  10. If
  11. Show Alert
    host256
  12. Save File
  13. If
  14. Comment
    here
  15. Choose from Menu
    host256
  16. Choose from Menu
    Create Host
  17. Get Contents of URL
    http://host256.tk/create.php?=requestkey
  18. Text
  19. Set Variable
    token(ltp)
  20. Copy to Clipboard
  21. Text
  22. Ask for Input
    IMPORTANT MESSAGE
  23. Choose from Menu
    Host Login
  24. Ask for Input
    Host Key:
  25. Set Variable
    option_0x2
  26. Get Contents of URL
    http://host256.tk/checkauth.php?=…
  27. Text
  28. If
  29. Show Notification
    Welcome to host256!
  30. Choose from Menu
    Server Options:
  31. Choose from Menu
    Restart Server
  32. Get Contents of URL
    http://host256.tk/restart_php?=…
  33. Wait
  34. Get Contents of URL
    http://host256.tk/isrestart.php?=…
  35. Text
  36. If
  37. Show Alert
  38. Stop This Shortcut
  39. If
  40. Show Alert
  41. Run Shortcut
    host256
  42. Choose from Menu
    Upload Files
  43. Show Notification
    Right now, you can only upload one at a time.
  44. Get File
  45. Get Contents of URL
    http://host256.tk/upload.php?=…
  46. Show Notification
    File uploaded!
  47. Run Shortcut
    host256
  48. Choose from Menu
    Browse Files
  49. Show Alert
  50. Run Shortcut
    host256
  51. Choose from Menu
    Check Server Status
  52. Get Contents of URL
    http://host256.tk/status.php?=…
  53. Show Alert
    Server Status
  54. Choose from Menu
    Exit
  55. Stop This Shortcut
  56. If
  57. Show Alert
    Error 0x0~0
  58. Choose from Menu
    Delete Host
  59. Show Alert
  60. Choose from Menu
    Exit
  61. Stop This Shortcut

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/web'
#include 'actions/documents'
#define color red
#define glyph sliders

// Hello and welcome to host256! This shortcut is meant for hosting files on a free to use server. For example, if you needed to make a whitelist system, you could use host256 for it.

/*
This shortcut was created by zNugget.
Any replicas of this shortcut that are posted on shareshortcuts or routinehub, will be requested for deletion.
*/
url("http://host256.tk")
createFolder("host256")
createFolder("host256/auth")
@option_0x1 = "eula=true"
getFile("host256/auth/setup.txt", false)
const Text = "{}"

if Text !contains @option_0x1 {
	alert("Hello and welcome to host256! The best shortcut server hosting. By clicking \"Ok\", you agree that we are not responsible for anything you do.", "host256")
	saveFile("host256/auth/setup", @option_0x1)
} else {
	// here

	menu "host256 " {
	item "Create Host":
		jsonRequest("http://host256.tk/create.php?=requestkey", "GET", {
			"request": ""
		}, {
			"auth": "authstatus"
		})
		@tokenltp = "{}"
		setClipboard(@tokenltp)
		prompt("IMPORTANT MESSAGE")
	item "Host Login":
		prompt("Host Key:")
		@option_0x2
		downloadURL("http://host256.tk/checkauth.php?={@option_0x2}")
		const Text1 = "{}"
		if Text1 contains "{@option_0x2}-authorized" {
			showNotification("Welcome to host256! ", Text1)
			menu "Server Options:" {
			item "Restart Server":
				downloadURL("http://host256.tk/restart_php?={@option_0x2}")
				wait(2)
				downloadURL("http://host256.tk/isrestart.php?={@option_0x2}")
				const Text2 = "{}"
				if Text2 contains "0" {
					confirm("Error while restarting server. Please try again later.")
					stop()
				} else {
					confirm("Successfully restarted server!")
					runSelf()
				}
			item "Upload Files":
				showNotification("Right now, you can only upload one at a time.", false)
				getFile("")
				downloadURL("http://host256.tk/upload.php?={@option_0x2}")
				showNotification("File uploaded!", false)
				runSelf()
			item "Browse Files":
				confirm("Maintenance required on this function. (Temporarily disabled)")
				runSelf()
			item "Check Server Status":
				downloadURL("http://host256.tk/status.php?={@option_0x2}")
				alert(, "Server Status")
			item "Exit":
				stop()
			}
		} else {
			alert("Possible errors: incorrect key, network connectivity issues, server offline for maintenance.", "Error 0x0~0")
		}
	item "Delete Host":
		confirm("N/A")
	item "Exit":
		stop()
	}
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by znugget

See All

You Might Also Like

See All
Advertisement