-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-> Now you can customize the colors using a custom CSS inside the settings path. -> Now you can customize the header, so you can add Google AdSense, etc.
- Loading branch information
Showing
8 changed files
with
160 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE `mythicaldash_settings` ADD `customhead_enabled` ENUM('false','true') NOT NULL DEFAULT 'true' AFTER `customcss_code`, ADD `customhead_code` TEXT NOT NULL DEFAULT '<link rel=\"manifest\" href=\"/manifest.webmanifest\">' AFTER `customhead_enabled`; |
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 @@ | ||
ALTER TABLE `mythicaldash_settings` CHANGE `version` `version` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '\'2.0.1\''; |
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 @@ | ||
ALTER TABLE `mythicaldash_settings` ADD `customcss_enabled` ENUM('false','true') NOT NULL DEFAULT 'false' AFTER `ads_code`, ADD `customcss_code` TEXT NOT NULL DEFAULT '.body { height: unset; }' AFTER `customcss_enabled`; |
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,17 @@ | ||
<?php | ||
include(__DIR__ . '/../../requirements/page.php'); | ||
include(__DIR__ . '/../../requirements/admin.php'); | ||
|
||
if (isset($_GET['update_settings'])) { | ||
$customcss_enabled = mysqli_real_escape_string($conn,$_GET['customcss:enabled']); | ||
$customcss_code = mysqli_real_escape_string($conn,$_GET['customcss:code']); | ||
mysqli_query($conn, "UPDATE `mythicaldash_settings` SET `customcss_enabled` = '" . $customcss_enabled . "' WHERE `mythicaldash_settings`.`id` = 1;"); | ||
mysqli_query($conn, "UPDATE `mythicaldash_settings` SET `customcss_code` = '" . $customcss_code . "' WHERE `mythicaldash_settings`.`id` = 1;"); | ||
header('location: /admin/settings'); | ||
$conn->close(); | ||
die(); | ||
} else { | ||
header('location: /admin/settings'); | ||
die(); | ||
} | ||
?> |
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,17 @@ | ||
<?php | ||
include(__DIR__ . '/../../requirements/page.php'); | ||
include(__DIR__ . '/../../requirements/admin.php'); | ||
|
||
if (isset($_GET['update_settings'])) { | ||
$customhead_enabled = mysqli_real_escape_string($conn,$_GET['customhead:enabled']); | ||
$customhead_code = mysqli_real_escape_string($conn,$_GET['customhead:code']); | ||
mysqli_query($conn, "UPDATE `mythicaldash_settings` SET `customhead_enabled` = '" . $customhead_enabled . "' WHERE `mythicaldash_settings`.`id` = 1;"); | ||
mysqli_query($conn, "UPDATE `mythicaldash_settings` SET `customhead_code` = '" . $customhead_code . "' WHERE `mythicaldash_settings`.`id` = 1;"); | ||
header('location: /admin/settings'); | ||
$conn->close(); | ||
die(); | ||
} else { | ||
header('location: /admin/settings'); | ||
die(); | ||
} | ||
?> |
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