From 112ac0c40bd37a92d2b2f422a813699becc2e3e8 Mon Sep 17 00:00:00 2001 From: Clarth Date: Wed, 27 Mar 2024 09:34:49 -0400 Subject: [PATCH] Upload files to "Rimworld-Together" --- Rimworld-Together/OptionalMods.php | 118 +++++++++++++++++++ Rimworld-Together/RWT-Mod-Request.php | 156 ++++++++++++++++++++++++++ 2 files changed, 274 insertions(+) create mode 100644 Rimworld-Together/OptionalMods.php create mode 100644 Rimworld-Together/RWT-Mod-Request.php diff --git a/Rimworld-Together/OptionalMods.php b/Rimworld-Together/OptionalMods.php new file mode 100644 index 0000000..6acdf7a --- /dev/null +++ b/Rimworld-Together/OptionalMods.php @@ -0,0 +1,118 @@ + + + + + +Claytonia RWT Optional Mods + + + + +

Current Optional Mods

+$entry - $secondPart
\n"; + } + } + // Close the directory handle + closedir($handle); +} + +// Function to get webpage title +function getPageTitle($url) { + $html = file_get_contents($url); + if ($html !== false) { + if (preg_match('/(.*?)<\/title>/', $html, $matches)) { + return $matches[1]; + } else { + return "Title not found"; + } + } else { + return "Failed to fetch title"; + } +} +?> + +</body> +</html> diff --git a/Rimworld-Together/RWT-Mod-Request.php b/Rimworld-Together/RWT-Mod-Request.php new file mode 100644 index 0000000..82bcdef --- /dev/null +++ b/Rimworld-Together/RWT-Mod-Request.php @@ -0,0 +1,156 @@ +<!DOCTYPE html> +<html lang="en"> +<head> +<meta charset="UTF-8"> +<meta name="viewport" content="width=device-width, initial-scale=1.0"> +<title>Mod Request Form + + + + +
+

RWT Mod Request Form

+
" method="post"> +
+ + +
+
+ + +
+
+ + +
+ +
+
+ + $botName, + "avatar_url" => $botAvatar, + "content" => $discordMessage + )); + + $options = array( + 'http' => array( + 'header' => "Content-Type: application/json\r\n", + 'method' => 'POST', + 'content' => $payload + ) + ); + $context = stream_context_create($options); + $result = file_get_contents($webhookURL, false, $context); + + if ($result !== false) { + echo ''; + } else { + echo ''; + } +} + +?> + + + +
+This is a request, not a guarantee.
+We will get back to you if we have any questions.
+
+If a mod is added, it will be an optional mod. This will allow you to use it on the server but when others try to interact with your colony it will cause issues.
+If you plan on interacting with other colonies it is recommended to use only the mods from Mods.txt
+
+ +Added mods won't be active until after the server reboots at 7 a.m. (-5 UTC) +
+Here is a list of the currently active optional mods + +