From 30303a3ad0d0f31d93c25f42bfd10d70e8277b72 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 10 Dec 2022 22:27:08 +0100 Subject: Update --- pages/about.inc | 2 +- pages/actions.inc | 2 +- pages/alphabet.inc | 4 +- pages/bitset.inc | 150 ++++++++++------ pages/byfront.inc | 11 +- pages/computers.inc | 2 +- pages/dashboard.inc | 2 +- pages/debug.inc | 68 ++++---- pages/demo.inc | 129 +------------- pages/disclaimers.inc | 4 +- pages/docs.inc | 2 +- pages/edit-private.inc | 2 +- pages/edit.inc | 2 +- pages/emergency.inc | 2 +- pages/fronting.inc | 2 +- pages/government.inc | 32 ++-- pages/home.inc | 63 +++---- pages/login.inc | 31 ++-- pages/metadata.inc | 123 +++++++++++++ pages/nicknames.inc | 2 +- pages/page.inc | 8 +- pages/parser.inc | 259 +--------------------------- pages/pleasure.inc | 2 +- pages/prefix.inc | 455 +------------------------------------------------ pages/profiles.inc | 104 +++++++++++ pages/relations.inc | 24 ++- pages/rules-old.inc | 2 +- pages/rules.inc | 2 +- pages/score.inc | 2 +- pages/splitting.inc | 2 +- pages/stats.inc | 2 +- pages/terminology.inc | 4 +- pages/together.inc | 2 +- pages/travelling.inc | 112 +++++++----- pages/wakeup.inc | 2 +- 35 files changed, 536 insertions(+), 1081 deletions(-) create mode 100644 pages/metadata.inc create mode 100644 pages/profiles.inc (limited to 'pages') diff --git a/pages/about.inc b/pages/about.inc index 3e89cf5..855d9b1 100644 --- a/pages/about.inc +++ b/pages/about.inc @@ -1,6 +1,6 @@ @@ -8,7 +8,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
-

Members by prefix letters

+

diff --git a/pages/bitset.inc b/pages/bitset.inc index b608c73..6d05e8e 100644 --- a/pages/bitset.inc +++ b/pages/bitset.inc @@ -1,10 +1,33 @@ + + + + + +
@@ -21,10 +44,10 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
0
0
0
-
0
-
0
-
0
-
0
+
0
+
0
+
0
+
0
0
0
0
@@ -32,9 +55,9 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
0
0
0
-
0
-
0
-
0
+
0
+
0
+
0
0
0
0
@@ -43,7 +66,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
0
0
0
-
0
+
0
0
0
0
@@ -58,7 +81,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
0
0
0
-
0
+
0

@@ -110,6 +133,8 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; let lessFrequent = binString.substring(14, 15) !== "0"; let sexuallyActive = binString.substring(13, 14) !== "0"; let ageRegressor = binString.substring(12, 13) !== "0"; + let leader = binString.substring(11, 12) !== "0"; + let persecutor = binString.substring(10, 11) !== "0"; document.getElementById("value-0").value = sharedMemory; document.getElementById("value-1").value = little; @@ -131,6 +156,8 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; document.getElementById("value-17").checked = lessFrequent; document.getElementById("value-18").checked = sexuallyActive; document.getElementById("value-19").checked = ageRegressor; + document.getElementById("value-20").checked = leader; + document.getElementById("value-21").checked = persecutor; } } @@ -183,6 +210,8 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; let sensitivity = parseInt(binString.substring(5 + 16, 8 + 16), 2); let sexuallyActive = binString.substring(13, 14) !== "0"; let ageRegressor = binString.substring(12, 13) !== "0"; + let leader = binString.substring(11, 12) !== "0"; + let persecutor = binString.substring(10, 11) !== "0"; document.getElementById("value-0").value = sharedMemory; document.getElementById("value-1").value = little; @@ -204,6 +233,8 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; document.getElementById("value-17").checked = lessFrequent; document.getElementById("value-18").checked = sexuallyActive; document.getElementById("value-19").checked = ageRegressor; + document.getElementById("value-20").checked = leader; + document.getElementById("value-21").checked = persecutor; calculateOutput(); @@ -231,6 +262,8 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; let val17 = document.getElementById("value-17").checked; let val18 = document.getElementById("value-18").checked; let val19 = document.getElementById("value-19").checked; + let val20 = document.getElementById("value-20").checked; + let val21 = document.getElementById("value-21").checked; let val0bin = parseInt(val0).toString(2); val0bin = val0bin.length === 1 ? "0" + val0bin : val0bin; @@ -263,8 +296,10 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; let val17bin = val17 ? "1" : "0"; let val18bin = val18 ? "1" : "0"; let val19bin = val19 ? "1" : "0"; + let val20bin = val20 ? "1" : "0"; + let val21bin = val21 ? "1" : "0"; - let bin = "000000000000" + val19bin + val18bin + val17bin + val16bin + val11bin + val12bin + val13bin + val0bin + val4bin + val1bin + val5bin + val6bin + val7bin + val8bin + val2bin + val3bin + val14bin + val9bin + val10bin + val15bin; + let bin = "0000000000" + val21bin + val20bin + val19bin + val18bin + val17bin + val16bin + val11bin + val12bin + val13bin + val0bin + val4bin + val1bin + val5bin + val6bin + val7bin + val8bin + val2bin + val3bin + val14bin + val9bin + val10bin + val15bin; console.log(bin, parseInt(bin, 2)); @@ -288,7 +323,6 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; -
Food: -
Little/younger: -
Species: - -
- Magic: -
+

+ Magic: +
+
Sensitivity: -


+

+
+

+
+

-
+

+

-
+

+

-
+

+ + Persecutor +

+ +
+
+ Show deprecated options + +
+

+
+
+
+

+
diff --git a/pages/byfront.inc b/pages/byfront.inc index 77556a2..ca2a6c2 100644 --- a/pages/byfront.inc +++ b/pages/byfront.inc @@ -1,6 +1,6 @@ -
time() - (86400 * 14)): ?>rgba(255, 255, 255, .1) time() - (86400 * 30)): ?>rgba(255, 227, 0, 0.17)rgba(255,55,55,0.17);;margin-bottom:10px;padding:10px;border-radius:10px;display:grid;grid-template-columns: 1fr 2fr max-content;opacity: 0.75;"> +
time() - (86400 * 21)): ?>rgba(255, 255, 255, .1) time() - (86400 * 37)): ?>rgba(255, 227, 0, 0.17)rgba(255,55,55,0.17); time() - (86400 * 21)): ?>rgba(255, 255, 255, .1) time() - (86400 * 30)): ?>rgba(255, 227, 0, 0.17)rgba(255,55,55,0.17);;margin-bottom:10px;padding:10px;border-radius:10px;display:grid;grid-template-columns: 1fr 2fr max-content;opacity: 0.75;"> "> " style="width:24px;">  + + Less + Memory diff --git a/pages/computers.inc b/pages/computers.inc index c2d6437..6880d48 100644 --- a/pages/computers.inc +++ b/pages/computers.inc @@ -1,6 +1,6 @@ "General info about $systemName", - "members" => "Members in the $systemName", - "fronters" => "Current fronter(s) in the $systemName", - "switches" => "Switch history from the $systemName", - default => "$type in $systemName", + "general" => $lang["debug"]["general"] . " $systemName", + "members" => $lang["debug"]["members"] . " $systemName", + "fronters" => $lang["debug"]["fronters"] . " $systemName", + "switches" => $lang["debug"]["switches"] . " $systemName", + default => "$type " . $lang["debug"]["in"] . " $systemName", }; } @@ -35,9 +37,9 @@ function itemToName(string $item): string { $member = getSystemMember($system, $id) ?? [ "name" => $id, "display_name" => $id, "id" => $id ]; if ($member["name"] === "unknown") { - return "Unknown (" . $systemName . ")'s images"; + return str_replace("%1", $lang["debug"]["unknown"] . " (" . $systemName . ")", $lang["debug"]["images"]); } else { - return getMiniName($member["display_name"] ?? $member["name"]) . "'s images"; + return str_replace("%1", getMiniName($member["display_name"] ?? $member["name"]), $lang["debug"]["images"]); } } @@ -51,32 +53,32 @@ function itemToName(string $item): string {
-

Data updater debugging

-

This page provides debugging information to troubleshoot unexpectedly long update times or reported failures.

+

+

360): ?>

- The data is not updated periodically anymore. +

- This can be due to multiple things: +
    -
  • the data updater has been disabled temporarily for maintenance;
  • -
  • the data updater cannot start on the server;
  • -
  • the server was down for an extended period of time
  • +
  • +
  • +
- If you are an administrator and think this is not normal, you may investigate the issue. +
-

General information

+

    -
  • Update date: format("l j F Y, G:i:s.u T")); ?>
  • -
  • Total duration: ms
  • -
  • Longest operation: ( ms, %)
  • +
  • format("l j F Y, G:i:s.u T")); ?>
  • +
  • ms
  • +
  • ( ms, %)
-

Processing times

+

$time): ?>%">
@@ -86,11 +88,11 @@ function itemToName(string $item): string { -

Reported failures

+

-

The data updater has not reported any update failure in the last run.

+

-

The following files have failed to update:

+