summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2023-02-19 23:12:03 +0100
committerMinteck <contact@minteck.org>2023-02-19 23:12:03 +0100
commitf26da14fc6405f6f703c2f1a7ddd32bf1c495fb0 (patch)
treea311d18eec321327b0c379319f6ec9e065384351
parentbdf9e6e49eea87085490342550625085967aa4ee (diff)
downloaddelta-f26da14fc6405f6f703c2f1a7ddd32bf1c495fb0.tar.gz
delta-f26da14fc6405f6f703c2f1a7ddd32bf1c495fb0.tar.bz2
delta-f26da14fc6405f6f703c2f1a7ddd32bf1c495fb0.zip
Updated 6 files and added support/rules/index.php (automated)
-rw-r--r--includes/functions.php2
-rw-r--r--includes/header.php2
-rw-r--r--includes/prod.sh5
-rw-r--r--includes/session.php1
-rw-r--r--lang/en.json75
-rw-r--r--lang/fr.json75
-rw-r--r--support/rules/index.php94
7 files changed, 253 insertions, 1 deletions
diff --git a/includes/functions.php b/includes/functions.php
index b9f1c8a..379ae5a 100644
--- a/includes/functions.php
+++ b/includes/functions.php
@@ -1,5 +1,7 @@
<?php
+if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/maintenance")) die();
+
require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/lang.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/linking.php";
diff --git a/includes/header.php b/includes/header.php
index 44c63d6..1456234 100644
--- a/includes/header.php
+++ b/includes/header.php
@@ -1,5 +1,7 @@
<?php
+if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/maintenance")) die();
+
global $title;
global $title_pre;
global $_PROFILE;
diff --git a/includes/prod.sh b/includes/prod.sh
index bf98c3c..54d33bc 100644
--- a/includes/prod.sh
+++ b/includes/prod.sh
@@ -1,4 +1,5 @@
#!/bin/bash
+touch /app/maintenance
cp -rv /app/includes/data /tmp/delta-data
cp -rv /app/uploads /tmp/delta-uploads
cp -rv /app-staging/* /app
@@ -7,4 +8,6 @@ cp -rv /tmp/delta-data/* /app/includes/data
rm -rf /tmp/delta-data
rm -rf /app/uploads/*
cp -rv /tmp/delta-uploads/* /app/uploads
-rm -rf /tmp/delta-uploads \ No newline at end of file
+rm -rf /tmp/delta-uploads
+chmod -Rfv 777 /app-staging /app
+rm /app/maintenance \ No newline at end of file
diff --git a/includes/session.php b/includes/session.php
index b473853..1ef45ec 100644
--- a/includes/session.php
+++ b/includes/session.php
@@ -1,5 +1,6 @@
<?php
+if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/maintenance")) die();
require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/functions.php";
global $_USER;
diff --git a/lang/en.json b/lang/en.json
index 06805eb..bed8950 100644
--- a/lang/en.json
+++ b/lang/en.json
@@ -776,5 +776,80 @@
"editor": {
"items": "Plus d'options de formattage",
"add": "Insérer du contenu"
+ },
+ "rules": {
+ "intro": "Delta users are part of a community. Therefore, as with any community, they have to abide to a specific set of rules to ensure their (and the others') experience stays enjoyable. Failure to abide to these rules will lead to punishments.",
+ "sections": [
+ "Access to Delta",
+ "Graphical and textual content",
+ "Administrative operations and moderation",
+ "Safety and user privacy",
+ "Paid options and subscriptions",
+ "Warranty and technical issues"
+ ],
+ "lines": [
+ [
+ "Users who are younger than seven (7) years old are not allowed to access the platform at all. Users who are younger than thirteen (13) years old are allowed to access Delta only with consent from their guardian or parent.",
+ "Users who are younger than sixteen (16) years old may not be allowed to access certain features of the platform.",
+ "Only approved family members or relatives are allowed to access the platform.",
+ "Sharing a single platform account with another physical person is not permitted.",
+ "Users who have committed a crime or an offense are not allowed to use the platform.",
+ "A valid way of proving one's identity, including their birth date, is required to access the platform.",
+ "At least a valid email address is required to use the platform. Additional, a valid phone number is recommended but not required.",
+ "For certain operations, the administrative personnel of the platform may require a user to provide another way of proving their identity.",
+ "The administrative personnel can reject a user's access to the platform if they are unable to prove their identity."
+ ],
+ [
+ "Content must be in the language specified on the platform. Use of another language requires an accurate translation to be provided.",
+ "Use of vulgar or explicit text is not permitted.",
+ "All images present across the entire platform must be acceptable for all people of all ages. This means violent, sexually explicit, or vulgar content is not allowed.",
+ "Consent from people is required to publish an image showcasing them. Failure to comply may lead to legal procedures.",
+ "Content published to the platform must be of a respectable quality. This means content that provides no actual useful information is not permitted.",
+ "Content on the platform must be entirely inclusive. Any content that is hateful against people with a specific sexual orientation, gender identity, or identity as a whole, is not permitted.",
+ "Content that is not owned by the person writing it must mention the original source and author. If accessing the original content requires payment, this content is not permitted on the platform.",
+ "All content published to the platform can be read, modified, deleted and reused by all users of the platform, regardless of the state of their account.",
+ "Content on the platform is strictly confidential and must not leave the platform without the consent of any concerned people."
+ ],
+ [
+ "Contacting the platform's administrative personnel when that is not required is not permitted.",
+ "Users must respect the administrative personnel or any other platform personnel and must not be violent against them. A violent user will not receive any support and may get their account suspended.",
+ "Moderation operations can be taken automatically, using an automated program. These actions are the same as if they were performed by the administrative personnel.",
+ "Users must not attempt to moderate the platform by themselves. If there is a case that needs administrative intervention, concerned users must get in touch with the administrative personnel.",
+ "Users are required to give the administrative personnel real, up-to-date and accurate personal information to be able to access and use the platform.",
+ "The administrative personnel is allowed to restrict a person's ability to use the platform at any point, without warning, and without providing a specific reason.",
+ "The administrative personnel is allowed to remove content from the platform without providing a specific reason."
+ ],
+ [
+ "Publishing content containing malicious software or code is not permitted, regardless of whether it was intentional or not.",
+ "A user must not publish another user's personal information without their prior written consent. Failure to abide to this may lead to legal procedures.",
+ "The platform collects additional user behavior data to improve user experience and performance. A user can see the data collected about them by downloading a copy.",
+ "The option to download a copy of user data only downloads the data associated with the currently logged-in user, and may not contain data that is stored anonymously.",
+ "For transparency reasons, some user information is publicly accessible by default. This helps reduce fraud and abuse.",
+ "Since the platform is accessible to people who are at least seven (7) years old, it is important that all content on the platform remains safe for children.",
+ "The platform will not communicate a user's immediate state (whether they are active or not) and will allow them to stop receiving mobile notifications at any time.",
+ "The platform will only communicate with a user's through their mobile phone or email address.",
+ "The platform's administrative personnel reserves the right to use a user's personal information to get in touch with them in the event that such an action is needed.",
+ "All personal data on the platform will never be exchanged, given, sold or borrowed to third-parties, and will not leave the platform's official servers."
+ ],
+ [
+ "Users who are less than sixteen (16) years old are not allowed to enroll into the platform's paid subscriptions. They, however, are allowed to possess the platform's virtual currency (\"coins\").",
+ "The platform can provide refunds to users who paid virtual currency using real money only if they have not used said currency.",
+ "The platform can refund any item paid using the platform's virtual currency within 48 hours. Past 48 hours, it is considered that the user has made use of the item they bought and, therefore, no refund is possible.",
+ "The platform can change the price of the virtual currency at any point in time, and without warning users. The platform can also create discounts without warning users.",
+ "The platform can change the price of a subscription as long as the currently enrolled users are made aware of such a change before it takes effect.",
+ "The platform makes no warranty whatsoever that the features provided by a subscription will be available, remain available, or be functioning as intended.",
+ "The platform's experimental features programme, which is accessible through a paid subscription, contains work-in-progress code. This code may expose a user's security or user data and may misbehave."
+ ],
+ [
+ "Although the developers put as much effort as possible into making the platform free of issues, technical difficulties may happen at any point in time and may not be resolved.",
+ "Users encountering technical issues are invited to use the platform's help center service. No support will be provided outside of this help center service.",
+ "The platform's administrative personnel can refuse to help a user with their issues if they have previously harmed the administrative personnel.",
+ "The developers provide no warranty whatsoever that the platform will function as intended, function at specific points in time or function at all.",
+ "While this generally should not happen, the developers make no guarantee using the platform will not damage a user's device.",
+ "The platform may terminate service at any point in time, without warning users, without giving the option to download user data, and without providing refunds (unless a dispute is already ongoing).",
+ "The developers make no guarantee that the platform's current feature set will remain the same over time. Features may be added, changed or removed at any point in time.",
+ "In the event of a technical failure, the developers will try to keep user data safe. However, there is no guarantee this will always be the case."
+ ]
+ ]
}
} \ No newline at end of file
diff --git a/lang/fr.json b/lang/fr.json
index 251ff8d..1968e71 100644
--- a/lang/fr.json
+++ b/lang/fr.json
@@ -772,5 +772,80 @@
},
"name": "Export de données Delta pour %1",
"kiosk": "Télécharger une copie de vos données personnelles n'est pas possible depuis un kiosque Delta. Ouvrez cette page sur votre propre appareil pour continuer."
+ },
+ "rules": {
+ "intro": "Les utilisateurs de Delta font partie d'une communauté. De ce fait, comme pour toute communauté, ils doivent respecter certaines règles pour assurer que leur expérience (et celle des autres) reste agréable. Tout manquement à ces règles mènera à des sanctions.",
+ "sections": [
+ "Accès à Delta",
+ "Contenu textuel et graphique",
+ "Operations administratives et modération",
+ "Sécurité et confidentialité",
+ "Options et abonnements payants",
+ "Garantie et problèmes techniques"
+ ],
+ "lines": [
+ [
+ "Users who are younger than seven (7) years old are not allowed to access the platform at all. Users who are younger than thirteen (13) years old are allowed to access Delta only with consent from their guardian or parent.",
+ "Users who are younger than sixteen (16) years old may not be allowed to access certain features of the platform.",
+ "Only approved family members or relatives are allowed to access the platform.",
+ "Sharing a single platform account with another physical person is not permitted.",
+ "Users who have committed a crime or an offense are not allowed to use the platform.",
+ "A valid way of proving one's identity, including their birth date, is required to access the platform.",
+ "At least a valid email address is required to use the platform. Additional, a valid phone number is recommended but not required.",
+ "For certain operations, the administrative personnel of the platform may require a user to provide another way of proving their identity.",
+ "The administrative personnel can reject a user's access to the platform if they are unable to prove their identity."
+ ],
+ [
+ "Content must be in the language specified on the platform. Use of another language requires an accurate translation to be provided.",
+ "Use of vulgar or explicit text is not permitted.",
+ "All images present across the entire platform must be acceptable for all people of all ages. This means violent, sexually explicit, or vulgar content is not allowed.",
+ "Consent from people is required to publish an image showcasing them. Failure to comply may lead to legal procedures.",
+ "Content published to the platform must be of a respectable quality. This means content that provides no actual useful information is not permitted.",
+ "Content on the platform must be entirely inclusive. Any content that is hateful against people with a specific sexual orientation, gender identity, or identity as a whole, is not permitted.",
+ "Content that is not owned by the person writing it must mention the original source and author. If accessing the original content requires payment, this content is not permitted on the platform.",
+ "All content published to the platform can be read, modified, deleted and reused by all users of the platform, regardless of the state of their account.",
+ "Content on the platform is strictly confidential and must not leave the platform without the consent of any concerned people."
+ ],
+ [
+ "Contacting the platform's administrative personnel when that is not required is not permitted.",
+ "Users must respect the administrative personnel or any other platform personnel and must not be violent against them. A violent user will not receive any support and may get their account suspended.",
+ "Moderation operations can be taken automatically, using an automated program. These actions are the same as if they were performed by the administrative personnel.",
+ "Users must not attempt to moderate the platform by themselves. If there is a case that needs administrative intervention, concerned users must get in touch with the administrative personnel.",
+ "Users are required to give the administrative personnel real, up-to-date and accurate personal information to be able to access and use the platform.",
+ "The administrative personnel is allowed to restrict a person's ability to use the platform at any point, without warning, and without providing a specific reason.",
+ "The administrative personnel is allowed to remove content from the platform without providing a specific reason."
+ ],
+ [
+ "Publishing content containing malicious software or code is not permitted, regardless of whether it was intentional or not.",
+ "A user must not publish another user's personal information without their prior written consent. Failure to abide to this may lead to legal procedures.",
+ "The platform collects additional user behavior data to improve user experience and performance. A user can see the data collected about them by downloading a copy.",
+ "The option to download a copy of user data only downloads the data associated with the currently logged-in user, and may not contain data that is stored anonymously.",
+ "For transparency reasons, some user information is publicly accessible by default. This helps reduce fraud and abuse.",
+ "Since the platform is accessible to people who are at least seven (7) years old, it is important that all content on the platform remains safe for children.",
+ "The platform will not communicate a user's immediate state (whether they are active or not) and will allow them to stop receiving mobile notifications at any time.",
+ "The platform will only communicate with a user's through their mobile phone or email address.",
+ "The platform's administrative personnel reserves the right to use a user's personal information to get in touch with them in the event that such an action is needed.",
+ "All personal data on the platform will never be exchanged, given, sold or borrowed to third-parties, and will not leave the platform's official servers."
+ ],
+ [
+ "Users who are less than sixteen (16) years old are not allowed to enroll into the platform's paid subscriptions. They, however, are allowed to possess the platform's virtual currency (\"coins\").",
+ "The platform can provide refunds to users who paid virtual currency using real money only if they have not used said currency.",
+ "The platform can refund any item paid using the platform's virtual currency within 48 hours. Past 48 hours, it is considered that the user has made use of the item they bought and, therefore, no refund is possible.",
+ "The platform can change the price of the virtual currency at any point in time, and without warning users. The platform can also create discounts without warning users.",
+ "The platform can change the price of a subscription as long as the currently enrolled users are made aware of such a change before it takes effect.",
+ "The platform makes no warranty whatsoever that the features provided by a subscription will be available, remain available, or be functioning as intended.",
+ "The platform's experimental features programme, which is accessible through a paid subscription, contains work-in-progress code. This code may expose a user's security or user data and may misbehave."
+ ],
+ [
+ "Although the developers put as much effort as possible into making the platform free of issues, technical difficulties may happen at any point in time and may not be resolved.",
+ "Users encountering technical issues are invited to use the platform's help center service. No support will be provided outside of this help center service.",
+ "The platform's administrative personnel can refuse to help a user with their issues if they have previously harmed the administrative personnel.",
+ "The developers provide no warranty whatsoever that the platform will function as intended, function at specific points in time or function at all.",
+ "While this generally should not happen, the developers make no guarantee using the platform will not damage a user's device.",
+ "The platform may terminate service at any point in time, without warning users, without giving the option to download user data, and without providing refunds (unless a dispute is already ongoing).",
+ "The developers make no guarantee that the platform's current feature set will remain the same over time. Features may be added, changed or removed at any point in time.",
+ "In the event of a technical failure, the developers will try to keep user data safe. However, there is no guarantee this will always be the case."
+ ]
+ ]
}
} \ No newline at end of file
diff --git a/support/rules/index.php b/support/rules/index.php
new file mode 100644
index 0000000..476c133
--- /dev/null
+++ b/support/rules/index.php
@@ -0,0 +1,94 @@
+<?php
+
+$title = "lang_support_rules";
+require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php";
+require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/header.php";
+require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/navigation.php";
+global $_PROFILE; global $_USER;
+
+?>
+
+<div class="container">
+ <br><br>
+ <h1><?= l("lang_support_rules") ?></h1>
+
+ <p><?= l("lang_rules_intro") ?></p>
+
+ <h2><?= l("lang_rules_sections_0") ?></h2>
+ <ul>
+ <li><?= l("lang_rules_lines_0_0") ?></li>
+ <li><?= l("lang_rules_lines_0_1") ?></li>
+ <li><?= l("lang_rules_lines_0_2") ?></li>
+ <li><?= l("lang_rules_lines_0_3") ?></li>
+ <li><?= l("lang_rules_lines_0_4") ?></li>
+ <li><?= l("lang_rules_lines_0_5") ?></li>
+ <li><?= l("lang_rules_lines_0_6") ?></li>
+ <li><?= l("lang_rules_lines_0_7") ?></li>
+ <li><?= l("lang_rules_lines_0_8") ?></li>
+ </ul>
+
+ <h2><?= l("lang_rules_sections_1") ?></h2>
+ <ul>
+ <li><?= l("lang_rules_lines_1_0") ?></li>
+ <li><?= l("lang_rules_lines_1_1") ?></li>
+ <li><?= l("lang_rules_lines_1_2") ?></li>
+ <li><?= l("lang_rules_lines_1_3") ?></li>
+ <li><?= l("lang_rules_lines_1_4") ?></li>
+ <li><?= l("lang_rules_lines_1_5") ?></li>
+ <li><?= l("lang_rules_lines_1_6") ?></li>
+ <li><?= l("lang_rules_lines_1_7") ?></li>
+ <li><?= l("lang_rules_lines_1_8") ?></li>
+ </ul>
+
+ <h2><?= l("lang_rules_sections_2") ?></h2>
+ <ul>
+ <li><?= l("lang_rules_lines_2_0") ?></li>
+ <li><?= l("lang_rules_lines_2_1") ?></li>
+ <li><?= l("lang_rules_lines_2_2") ?></li>
+ <li><?= l("lang_rules_lines_2_3") ?></li>
+ <li><?= l("lang_rules_lines_2_4") ?></li>
+ <li><?= l("lang_rules_lines_2_5") ?></li>
+ <li><?= l("lang_rules_lines_2_6") ?></li>
+ </ul>
+
+ <h2><?= l("lang_rules_sections_3") ?></h2>
+ <ul>
+ <li><?= l("lang_rules_lines_3_0") ?></li>
+ <li><?= l("lang_rules_lines_3_1") ?></li>
+ <li><?= l("lang_rules_lines_3_2") ?></li>
+ <li><?= l("lang_rules_lines_3_3") ?></li>
+ <li><?= l("lang_rules_lines_3_4") ?></li>
+ <li><?= l("lang_rules_lines_3_5") ?></li>
+ <li><?= l("lang_rules_lines_3_6") ?></li>
+ <li><?= l("lang_rules_lines_3_7") ?></li>
+ <li><?= l("lang_rules_lines_3_8") ?></li>
+ <li><?= l("lang_rules_lines_3_9") ?></li>
+ </ul>
+
+ <h2><?= l("lang_rules_sections_4") ?></h2>
+ <ul>
+ <li><?= l("lang_rules_lines_4_0") ?></li>
+ <li><?= l("lang_rules_lines_4_1") ?></li>
+ <li><?= l("lang_rules_lines_4_2") ?></li>
+ <li><?= l("lang_rules_lines_4_3") ?></li>
+ <li><?= l("lang_rules_lines_4_4") ?></li>
+ <li><?= l("lang_rules_lines_4_5") ?></li>
+ <li><?= l("lang_rules_lines_4_6") ?></li>
+ </ul>
+
+ <h2><?= l("lang_rules_sections_5") ?></h2>
+ <ul>
+ <li><?= l("lang_rules_lines_5_0") ?></li>
+ <li><?= l("lang_rules_lines_5_1") ?></li>
+ <li><?= l("lang_rules_lines_5_2") ?></li>
+ <li><?= l("lang_rules_lines_5_3") ?></li>
+ <li><?= l("lang_rules_lines_5_4") ?></li>
+ <li><?= l("lang_rules_lines_5_5") ?></li>
+ <li><?= l("lang_rules_lines_5_6") ?></li>
+ <li><?= l("lang_rules_lines_5_7") ?></li>
+ </ul>
+
+ <br><br>
+</div>
+
+<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/footer.php"; ?> \ No newline at end of file