From 0417260bf158c5d7b62888dae2e202b0de115a05 Mon Sep 17 00:00:00 2001 From: Minteck Date: Wed, 10 Aug 2022 00:04:25 +0200 Subject: Initial commit --- pages/api.php | 15 + pages/disclaimers.php | 10 + pages/edit.php | 68 ++++ pages/emergency.php | 213 ++++++++++++ pages/fronting.php | 879 ++++++++++++++++++++++++++++++++++++++++++++++++++ pages/home.php | 48 +++ pages/login.php | 2 + pages/logout.php | 16 + pages/page.php | 40 +++ pages/parser.php | 247 ++++++++++++++ pages/prefix.php | 444 +++++++++++++++++++++++++ pages/relations.php | 66 ++++ pages/score.php | 210 ++++++++++++ pages/terminology.php | 10 + 14 files changed, 2268 insertions(+) create mode 100644 pages/api.php create mode 100644 pages/disclaimers.php create mode 100644 pages/edit.php create mode 100644 pages/emergency.php create mode 100644 pages/fronting.php create mode 100644 pages/home.php create mode 100644 pages/login.php create mode 100644 pages/logout.php create mode 100644 pages/page.php create mode 100644 pages/parser.php create mode 100644 pages/prefix.php create mode 100644 pages/relations.php create mode 100644 pages/score.php create mode 100644 pages/terminology.php (limited to 'pages') diff --git a/pages/api.php b/pages/api.php new file mode 100644 index 0000000..a1f13d9 --- /dev/null +++ b/pages/api.php @@ -0,0 +1,15 @@ + + +
+
+
+ +
+
+ + diff --git a/pages/edit.php b/pages/edit.php new file mode 100644 index 0000000..c031c22 --- /dev/null +++ b/pages/edit.php @@ -0,0 +1,68 @@ + + +
+
+
+

Emergency Alert +
+ + · +
+

+ Turn ON + +

Sending next notification never

+
+
+ + + + + + + + + + diff --git a/pages/fronting.php b/pages/fronting.php new file mode 100644 index 0000000..359deb7 --- /dev/null +++ b/pages/fronting.php @@ -0,0 +1,879 @@ + + +
+
+
+

Front Planner

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Today
Cloudburst SystemRaindrops System
+ + + +
+ 0 && count($dayRaindrops) > 0): ?> + will sleep with + + Unable to calculate who will sleep with who + +
Tomorrow
Cloudburst SystemRaindrops System
+ + + +
+ 0 && count($dayRaindrops) > 0): ?> + will sleep with + + Unable to calculate who will sleep with who + +
Cloudburst SystemRaindrops System
+ + + +
+ 0 && count($dayRaindrops) > 0): ?> + will sleep with + + Unable to calculate who will sleep with who + +
Cloudburst SystemRaindrops System
+ + + +
+ 0 && count($dayRaindrops) > 0): ?> + will sleep with + + Unable to calculate who will sleep with who + +
Cloudburst SystemRaindrops System
+ + + +
+ 0 && count($dayRaindrops) > 0): ?> + will sleep with + + Unable to calculate who will sleep with who + +
Cloudburst SystemRaindrops System
+ + + +
+ 0 && count($dayRaindrops) > 0): ?> + will sleep with + + Unable to calculate who will sleep with who + +
Cloudburst SystemRaindrops System
+ + + +
+ 0 && count($dayRaindrops) > 0): ?> + will sleep with + + Unable to calculate who will sleep with who + +
+
+ + +
+ + + + + + + + + diff --git a/pages/home.php b/pages/home.php new file mode 100644 index 0000000..4e853a6 --- /dev/null +++ b/pages/home.php @@ -0,0 +1,48 @@ + + +
+
+ +
+ + Error: +
+ + +
+ + + + + +
+
+ + + Cuties and Plurality
+ + + Just a small safe place for two plural systems + +
+
+ +
+ + = 20 || (int)date('H') < 6)): ?> + +
+ Are you in need of help? If you need immediate help from a loved one, you may want to enable the emergency alert by clicking here, even if that will wake up the . Use it as you need. +
+
+ + +
+ + + + +
+
+ + \ No newline at end of file diff --git a/pages/login.php b/pages/login.php new file mode 100644 index 0000000..a6f075f --- /dev/null +++ b/pages/login.php @@ -0,0 +1,2 @@ + + +
+
+
+

Message Parser

+

Enter a message here, and we will tell you which system member this message came from.

+ +
+ + + +
+ +
+ +
+ Cloudburst System +
+
+ +
+
+
+ Name + (Prefix) +
+
+
+
+ +
+ Raindrops System +
+
+ +
+
+
+ Name + (Prefix) +
+
+
+
+
+ +
+
+ The entered message does not contain a prefix/suffix corresponding to a member of the selected system(s); therefore, the host was selected as a fallback. We assume that the host is talking when there is no prefix/suffix in the current message. +
+ + + +
+ + diff --git a/pages/prefix.php b/pages/prefix.php new file mode 100644 index 0000000..721baa5 --- /dev/null +++ b/pages/prefix.php @@ -0,0 +1,444 @@ + + +
+
+
+

Prefix Generator

+

This prefix generator will take into account the prefixes from the existing members to try to generate new original prefixes for a potential new member.

+ +
+ + + +
+ +
+ + +
+

Generated Prefix

+

We couldn't generate a prefix for a member who goes by this name, try tuning your settings.

+
+ +
    +
  1. {...}
  2. +
+ +
+ + + +
+ + diff --git a/pages/relations.php b/pages/relations.php new file mode 100644 index 0000000..54fc4ec --- /dev/null +++ b/pages/relations.php @@ -0,0 +1,66 @@ + + +
+
+
+

Relations

+ 0 || count($member["_metadata"]["sisters"]) > 0): ?> +
+ /"> + .png" style="width:24px;"> + + +
+ Marefriends:
+ + None + + + /">.png" style="width:24px;"> ,
'); $index++; ?> + + +
+ +
+ Sisters:
+ + None + + + /">.png" style="width:24px;"> ,
'); $index++; ?> + + +
+
+ +
+ + +
+ + diff --git a/pages/score.php b/pages/score.php new file mode 100644 index 0000000..841decc --- /dev/null +++ b/pages/score.php @@ -0,0 +1,210 @@ + + +
+
+
+

Score System Testing

+ +

Raindrops System ()

+
    + $name, + "page" => "/raindrops/" . $member["name"], + "score" => $score["total"], + "details" => $score + ]; + } + } + + uasort($scores, function($a, $b) { + return $b["score"] - $a["score"]; + }); + + ?> + + +
  • +
    + "> () +
    +
    +
  • + +
+ + +

Cloudburst System ()

+
    + $name, + "page" => "/cloudburst/" . $member["name"], + "score" => $score["total"], + "details" => $score + ]; + } + } + + uasort($scores, function($a, $b) { + return $b["score"] - $a["score"]; + }); + + ?> + + +
  • +
    + "> () +
    +
    +
  • + +
+ +

Global ()

+
    + $name, + "page" => "/raindrops/" . $member["name"], + "score" => $score["total"], + "details" => $score + ]; + } + } + foreach (json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/ynmuc-members.json"), true) as $member) { + if ($member["name"] !== "unknown") { + $name = $member["display_name"] ?? $member["name"]; + require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/score.php"; + $metadata = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/ynmuc-$member[id]-metadata.json"), true); + $score = calculateScore($metadata, $member["display_name"] ?? $member["name"]); + + $scores[] = [ + "name" => $name, + "page" => "/cloudburst/" . $member["name"], + "score" => $score["total"], + "details" => $score + ]; + } + } + + uasort($scores, function($a, $b) { + return $b["score"] - $a["score"]; + }); + + ?> + + +
  • +
    + "> () +
    +
    +
  • + +
+
+
+ + diff --git a/pages/terminology.php b/pages/terminology.php new file mode 100644 index 0000000..f73d401 --- /dev/null +++ b/pages/terminology.php @@ -0,0 +1,10 @@ + + +
+
+
+ +
+
+ + \ No newline at end of file -- cgit