-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-> Plugin system logic
- Loading branch information
Showing
11 changed files
with
280 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
|
||
# MythicalSystems End User License Agreement (EULA) | ||
|
||
This End User License Agreement ("EULA") constitutes a binding legal agreement between you ("the User") and MythicalSystems Ltd. or its applicable local affiliates (collectively referred to as "MythicalSystems"). | ||
|
||
By accessing or using any MythicalSystems services, software, or content ("Services"), you acknowledge that you have read, understood, and agree to be bound by the terms and conditions of this EULA and the MythicalSystems Services Agreement. Please read these terms carefully. | ||
|
||
## 1. Scope of Agreement | ||
|
||
This EULA, together with the MythicalSystems Services Agreement, governs your use of all MythicalSystems websites, software, products, and services, including any updates, patches, or modifications that may be provided in the future. By accepting these terms, you also agree to abide by any supplemental policies, including but not limited to our community standards and Software Usage Guidelines, which may be updated from time to time. | ||
|
||
## 2. Ownership and Intellectual Property | ||
|
||
While MythicalSystems values your creative contributions, we retain exclusive ownership of all proprietary software, code, content, and intellectual property developed by us. You are granted a non-exclusive, non-transferable, and revocable license to use our Services in accordance with this EULA. | ||
|
||
Your original works, including plugins, themes, and modifications, remain your property, provided they do not incorporate a substantial portion of MythicalSystems' code or intellectual property. MythicalSystems does not claim ownership of your original creations, but we reserve the right to determine whether content contains infringing elements. | ||
|
||
### 2.1 Restrictions on Distribution | ||
|
||
You are expressly prohibited from distributing, sublicensing, or commercially exploiting any MythicalSystems software, content, or services without prior written consent from MythicalSystems. This includes but is not limited to sharing, copying, or reselling our products, software, and any related modifications or derivatives. | ||
|
||
## 3. Account Usage and Terms | ||
|
||
A MythicalSystems account is required to access certain features, purchase services, or interact with MythicalSystems platforms. You are responsible for maintaining the security and confidentiality of your account credentials. If you acquire any MythicalSystems product via a third-party platform (e.g., Spigot or BuiltByBit), the respective terms of that platform will also apply in conjunction with this EULA. | ||
|
||
MythicalSystems reserves the right to suspend or terminate accounts that are in breach of this EULA or related agreements. | ||
|
||
## 4. Permitted Modifications (Plugins and Themes) | ||
|
||
We encourage the development of plugins, themes, and other creative contributions, subject to the following conditions: | ||
|
||
- **Plugins and Themes must not contain significant portions of MythicalSystems' proprietary code.** | ||
- **Originality:** Any plugin or theme created by you must be your own original work. | ||
- **Commercial Restrictions:** You are not permitted to sell plugins or themes for excessive or inflated prices. Nulled or unauthorized versions of plugins and themes are strictly forbidden. | ||
- **Compatibility:** MythicalSystems assumes no responsibility for ensuring that your plugins or themes will be compatible with future updates or modifications to our Services. | ||
|
||
We reserve the right to review, approve, or revoke permissions for plugins and themes at any time. | ||
|
||
## 5. Content Ownership | ||
|
||
Your content remains your own, including any text, images, or code that you develop independently. However, MythicalSystems retains ownership of any substantial derivative works or content that incorporates or mimics our proprietary software, designs, or materials. | ||
|
||
For example: | ||
|
||
- If your plugin consists of less than 100 lines of code based on MythicalSystems' core code, we maintain ownership of that derivative work. | ||
- If you create a standalone plugin with significant new functionality (e.g., Discord integration) containing over 400 lines of code, you retain ownership of that original creation. | ||
|
||
## 6. Community Standards and Online Safety | ||
|
||
MythicalSystems is committed to fostering a safe, respectful, and inclusive community. As a user of our Services, you agree to uphold these values and avoid engaging in any activities that promote hate speech, harassment, violence, or illegal conduct. Fraudulent behavior, such as using deceit or misrepresentation for personal gain, is strictly prohibited. | ||
|
||
Interactions with others through our Services, third-party platforms, or community forums are at your own risk. We advise caution when sharing personal information or communicating with others, as MythicalSystems cannot guarantee the authenticity or integrity of third-party participants. | ||
|
||
We reserve the right to suspend or permanently ban any user who violates these standards or any other terms of this EULA. | ||
|
||
## 7. Legal Compliance and Amendments | ||
|
||
This EULA and any supplemental policies may be updated or amended by MythicalSystems at any time, without prior notice. It is your responsibility to review these terms periodically to ensure compliance. Continued use of MythicalSystems' Services after changes to the EULA signifies your acceptance of the revised terms. | ||
|
||
## 8. Limitation of Liability | ||
|
||
To the fullest extent permitted by law, MythicalSystems shall not be held liable for any indirect, incidental, or consequential damages resulting from the use or inability to use our Services, including but not limited to lost profits, data loss, or compatibility issues arising from third-party plugins or updates. | ||
|
||
## 9. Termination | ||
|
||
Failure to comply with this EULA may result in immediate termination of your license and access to MythicalSystems' Services. MythicalSystems reserves the right to terminate or suspend access to any account, service, or content without notice if the User violates any provision of this EULA. | ||
|
||
## 10. Governing Law | ||
|
||
This EULA shall be governed by and construed in accordance with the laws of the jurisdiction in which MythicalSystems Ltd. is established, without regard to conflicts of law principles. Any disputes arising from this EULA shall be resolved in the courts of that jurisdiction. | ||
|
||
## 11. Contact Information | ||
|
||
For any questions regarding this EULA or MythicalSystems' Services, please contact us at `[email protected]`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
/* | ||
* This file is part of MythicalSystemsFramework. | ||
* Please view the LICENSE file that was distributed with this source code. | ||
* | ||
* (c) MythicalSystems <mythicalsystems.xyz> - All rights reserved | ||
* (c) NaysKutzu <nayskutzu.xyz> - All rights reserved | ||
* (c) Cassian Gherman <nayskutzu.xyz> - All rights reserved | ||
* | ||
* You should have received a copy of the MIT License | ||
* along with this program. If not, see <https://opensource.org/licenses/MIT>. | ||
*/ | ||
|
||
use MythicalSystemsFramework\Kernel\Logger; | ||
use MythicalSystemsFramework\User\UserHelper; | ||
use MythicalSystemsFramework\Web\Template\Engine; | ||
use MythicalSystemsFramework\User\UserDataHandler; | ||
|
||
global $router; | ||
|
||
$router->add('/admin/legal', function (): void { | ||
global $router, $event, $renderer; | ||
$template = 'admin/legal.twig'; | ||
if (isset($_COOKIE['token']) === false) { | ||
exit(header('location: /auth/login')); | ||
} | ||
|
||
$user = new UserHelper($_COOKIE['token'], $renderer); | ||
UserDataHandler::requireAuthorization($renderer, $_COOKIE['token']); | ||
|
||
$renderer->addGlobal('page_name', 'Legal'); | ||
|
||
Engine::registerAlerts($renderer, $template); | ||
$content = file_get_contents(__DIR__.'/../../../LEGAL_STUFF.md'); | ||
|
||
$renderer->addGlobal('content', $content); | ||
|
||
|
||
exit($renderer->render($template)); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{% extends 'components/dashboard.twig' %} | ||
{% block head %} | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/css/ace.min.css" rel="stylesheet"> | ||
{% endblock %} | ||
{% block dashboard %} | ||
<div class="card"> | ||
<div class="card-datatable table-responsive pt-0"> | ||
<div class="card-header"> | ||
<h3 class="card-title">Legal Agreements</h3> | ||
<p class="card-subtitle text-muted">By using our software you agree with those terms and eula in the textbox down here!</p> | ||
</div> | ||
<div id="editor" style="height: 500px; width: 100%;">{{content}}</div> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
{% block footer %} <script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.36.2/ace.js" type="text/javascript" charset="utf-8"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.36.2/theme-monokai.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script> | ||
<script> | ||
var editor = ace.edit("editor"); | ||
// Set the theme to Monokai | ||
editor.setTheme("ace/theme/monokai"); | ||
// Set the mode to Markdown for syntax highlighting | ||
editor.session.setMode("ace/mode/markdown"); | ||
// Disable the print margin | ||
editor.setShowPrintMargin(false); | ||
// Enable basic autocompletion, snippets, and live autocompletion | ||
editor.setOptions({ | ||
enableBasicAutocompletion: true, | ||
enableSnippets: true, | ||
enableLiveAutocompletion: true, | ||
// Make the editor read-only | ||
readOnly: true, | ||
// Optional: Disable editing commands (for complete read-only experience) | ||
highlightActiveLine: false, | ||
highlightGutterLine: false, | ||
}); | ||
// Optional: Make the editor unselectable (for full read-only effect) | ||
editor.renderer.$cursorLayer.element.style.display = "none"; | ||
</script> | ||
{% endblock %} |
Oops, something went wrong.