ShareShortcuts

host256

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

znugget
„host256“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit znugget die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
47K
Gesichert
2
Aktionen
61
Kategorie
API
Version
1.0
Sprache
EN

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

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 7. Okt 2021

First release

Was er macht

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

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#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()
	}
}
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

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

Werbung

Mehr von znugget

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung