Skip to content

Commit

Permalink
PUSH
Browse files Browse the repository at this point in the history
-> Done #76
-> Done #75
-> Done #74
-> Done #72
-> Done #71
  • Loading branch information
NaysKutzu committed Oct 24, 2023
1 parent b22a50c commit 9e2f636
Show file tree
Hide file tree
Showing 61 changed files with 1,003 additions and 565 deletions.
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"mythicalsystems/php-router": "^1.0",
"symfony/yaml": "^6.3",
"phpseclib/phpseclib": "^3.0",
"phpmailer/phpmailer": "^6.8",
"livaco/easydiscordwebhook": "^2.0",
"mythicalsystems/aapanelapi": "^1.0"
"phpmailer/phpmailer": "^6.8"
}

}
117 changes: 7 additions & 110 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions migrate/18.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `mythicaldash_settings` ADD `terms_of_service` LONGTEXT NOT NULL DEFAULT 'Hell this looks like the host did not set up any terms of service please contact the host and if the host does not want to add any terms of service please make sure to report this <a href=\"https://github.com/MythicalLTD/MythicalGuard/issues\">here</a>.' AFTER `linkvertise_coins`, ADD `privacy_policy` LONGTEXT NOT NULL DEFAULT 'Hell this looks like the host did not set up any privacy policy please contact the host and if the host does not want to add any privacy policy please make sure to report this <a href=\"https://github.com/MythicalLTD/MythicalGuard/issues\">here</a>.' AFTER `terms_of_service`;
2 changes: 2 additions & 0 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
include(__DIR__ . '/../routes/earn.php');
//Routes for /admin/api/
include(__DIR__ . '/../routes/admin/api.php');
//Routes for /admin/servers/
include(__DIR__ . '/../routes/admin/servers.php');
//Routes for /admin/settings/
include(__DIR__ . '/../routes/admin/settings.php');
//Routes for /admin/redeem/
Expand Down
9 changes: 9 additions & 0 deletions routes/admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,13 @@
require("../view/admin/tickets/list.php");
});

$router->add("/admin", function () {
header('location: /admin/overview');
die();
});

$router->add("/admin/overview", function () {
require("../include/main.php");
require("../view/admin/main.php");
});
?>
12 changes: 12 additions & 0 deletions routes/admin/servers.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
$router->add("/admin/servers", function () {
require("../include/main.php");
require("../view/admin/servers/list.php");
});


$router->add("/admin/server/delete", function () {
require("../include/main.php");
require("../view/admin/servers/delete.php");
});
?>
10 changes: 10 additions & 0 deletions routes/admin/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,14 @@
require("../include/main.php");
require("../view/admin/settings/store.php");
});

$router->add("/admin/settings/pp", function () {
require("../include/main.php");
require("../view/admin/settings/pp.php");
});

$router->add("/admin/settings/tos", function () {
require("../include/main.php");
require("../view/admin/settings/tos.php");
});
?>
5 changes: 5 additions & 0 deletions routes/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,9 @@
require("../view/blank.php");
});

$router->add("/leaderboard", function () {
require("../include/main.php");
require("../view/leaderboard.php");
});

?>
3 changes: 2 additions & 1 deletion view/admin/api/main.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
include(__DIR__ . '/../../requirements/page.php');
include(__DIR__ . '/../../requirements/admin.php');

$apiPage = 20;
$page = isset($_GET['page']) && is_numeric($_GET['page']) ? (int) $_GET['page'] : 1;
Expand All @@ -20,7 +21,7 @@
<head>
<?php include(__DIR__ . '/../../requirements/head.php'); ?>
<title>
<?= $settings['name'] ?> | API Keys
<?= $settings['name'] ?> - API Keys
</title>
<style>
.avatar-image {
Expand Down
2 changes: 1 addition & 1 deletion view/admin/eggs/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<head>
<?php include(__DIR__ . '/../../requirements/head.php'); ?>
<title>
<?= $settings['name'] ?> | Eggs
<?= $settings['name'] ?> - Eggs
</title>
<style>
.avatar-image {
Expand Down
2 changes: 1 addition & 1 deletion view/admin/locations/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<head>
<?php include(__DIR__ . '/../../requirements/head.php'); ?>
<title>
<?= $settings['name'] ?> | Locations
<?= $settings['name'] ?> - Locations
</title>
<style>
.avatar-image {
Expand Down
Loading

0 comments on commit 9e2f636

Please sign in to comment.