From 1427d6934455632e9a667903658ba1a03fb4d7a2 Mon Sep 17 00:00:00 2001 From: ghost Date: Wed, 6 Sep 2023 19:30:02 +0300 Subject: [PATCH] init F.A.Q. page --- src/public/action.php | 2 + .../assets/theme/default/css/common.css | 1 - .../assets/theme/default/css/framework.css | 4 + src/public/download.php | 2 + src/public/edit.php | 2 + src/public/faq.php | 220 ++++++++++++++++++ src/public/index.php | 2 + src/public/magnet.php | 2 + src/public/node.php | 2 + 9 files changed, 236 insertions(+), 1 deletion(-) create mode 100644 src/public/faq.php diff --git a/src/public/action.php b/src/public/action.php index c8bebfb..8a53db0 100644 --- a/src/public/action.php +++ b/src/public/action.php @@ -652,6 +652,8 @@ switch (isset($_GET['target']) ? urldecode($_GET['target']) : false) | + + | | diff --git a/src/public/assets/theme/default/css/common.css b/src/public/assets/theme/default/css/common.css index 9726353..c5f9fb2 100644 --- a/src/public/assets/theme/default/css/common.css +++ b/src/public/assets/theme/default/css/common.css @@ -39,7 +39,6 @@ h2 { font-size: 16px; } - a h2, a:visited h2, a:active h2 { diff --git a/src/public/assets/theme/default/css/framework.css b/src/public/assets/theme/default/css/framework.css index 756743b..95d80c2 100644 --- a/src/public/assets/theme/default/css/framework.css +++ b/src/public/assets/theme/default/css/framework.css @@ -70,6 +70,10 @@ top: -2px; } +.top-2 { + top: 2px; +} + .line-height-26 { line-height: 26px; } diff --git a/src/public/download.php b/src/public/download.php index fa0df3b..347f13c 100644 --- a/src/public/download.php +++ b/src/public/download.php @@ -291,6 +291,8 @@ $response = (object) | + + | | diff --git a/src/public/edit.php b/src/public/edit.php index 7fd1b90..dc1f5b3 100644 --- a/src/public/edit.php +++ b/src/public/edit.php @@ -857,6 +857,8 @@ else { | + + | | diff --git a/src/public/faq.php b/src/public/faq.php new file mode 100644 index 0000000..735c214 --- /dev/null +++ b/src/public/faq.php @@ -0,0 +1,220 @@ + + true, + 'message' => _('Internal server error'), +]; + +// Yggdrasil connections only +if (!preg_match(YGGDRASIL_HOST_REGEX, $_SERVER['REMOTE_ADDR'])) +{ + $response->success = false; + $response->message = _('Yggdrasil connection required for this action'); +} + +// Init session +else if (!$userId = $db->initUserId($_SERVER['REMOTE_ADDR'], USER_DEFAULT_APPROVED, time())) +{ + $response->success = false; + $response->message = _('Could not init user session'); +} + +?> + + + + + + + <?php echo sprintf(_('F.A.Q. - %s'), WEBSITE_NAME) ?> + + + + + +
+
+ +
+
+
+
+
+
+
+ success) { ?> +

+
+ +
+
+

+ + + + + + +
+

open source community-driven BitTorrent registry for Yggdrasil ecosystem.') ?>

+

+
+
+
+

+ + + + + + +
+

+

+
+
+
+

+ + + + + + +
+

Node page.'), WEBSITE_URL) ?>

+
+
+
+ +
+
+

+ + + + + + +
+

Submit.') ?>

+

+

+
+
+
+

+ + + + + + +
+

+

qBittorrent supports all required features, just check Preferences - Advanced - Network interface / Optional IP address to bind to settings and select Yggdrasil instance from list, then reboot client.') ?>

+

') ?>

+
+
+
+

+ + + + + + +
+

+

+

+
+
+
+ +
+
+

+ + + + + + +
+

+

Install section.') ?>

+

trackers.json registry to participate shared model testing.') ?>

+
+
+
+

+ + + + + + +
+

Issues page!') ?>

+
+
+ +
message ?>
+ +
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/public/index.php b/src/public/index.php index 80eedd0..7a4b326 100644 --- a/src/public/index.php +++ b/src/public/index.php @@ -420,6 +420,8 @@ echo '' . PHP_EOL ?> | + + | | diff --git a/src/public/magnet.php b/src/public/magnet.php index 5005743..c449f96 100644 --- a/src/public/magnet.php +++ b/src/public/magnet.php @@ -490,6 +490,8 @@ echo '' . PHP_EOL ?> | + + | | diff --git a/src/public/node.php b/src/public/node.php index 5d4f31d..cf62b75 100644 --- a/src/public/node.php +++ b/src/public/node.php @@ -228,6 +228,8 @@ else if (!$userId = $db->initUserId($_SERVER['REMOTE_ADDR'], USER_DEFAULT_APPROV | + + | |