ShareShortcuts

host256

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

znugget
Fork “host256”

Har du bygget noget nyt oven på denne genvej? Del den som en fork: den bliver din egen genvej, som du styrer, og begge sider linker til hinanden, så znugget får kredit.

  1. 1Hent genvejen og ret den i Genveje-appen. Giv den sit eget navn.
  2. 2Del den fra Genveje-appen og kopiér iCloud-linket.
  3. 3Kom tilbage hertil, indsæt linket og beskriv, hvad der er anderledes, fx “Tilføjet et trin, der bruger Apple Intelligence til at gøre teksten mere personlig.”
Downloads
47K
Gemt
2
Handlinger
61
Kategori
API
Version
1.0
Sprog
EN

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

Nyheder

Version 1.0

First release

Versionshistorik
1.0 7. okt. 2021

First release

Hvad den gør

61 handlinger
  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

Vis som kode
Beta

Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.

#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()
	}
}
Åbn i Cherri Playground Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.

Bedømmelser og anmeldelser

Skriv en anmeldelse
–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ingen anmeldelser endnu. Vær den første!

Annonce

Mere fra znugget

Se alle

Du vil måske også kunne lide

Se alle
Annonce