-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-> Fix bug that you can't delete servers in the waiting list -> Disable snow -> Added some developer options -> Bump some composer packages to the latest version! -> Now you can perform sql commands from the dashboard iself -> Now you can purge the caches from the ui and you don't need to use the cli anymore!
- Loading branch information
Showing
8 changed files
with
164 additions
and
20 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 @@ | ||
UPDATE `mythicaldash_settings` SET `version` = '3.1.2' WHERE `mythicaldash_settings`.`id` = 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 @@ | ||
UPDATE `mythicaldash_settings` SET `show_snow` = 'false' WHERE `mythicaldash_settings`.`id` = 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
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,29 @@ | ||
<?php | ||
use MythicalDash\ErrorHandler; | ||
|
||
include(__DIR__ . '/../../requirements/page.php'); | ||
include(__DIR__ . '/../../requirements/admin.php'); | ||
|
||
try { | ||
try { | ||
try { | ||
$conn->query("TRUNCATE `mythicaldash_servers_logs`"); | ||
$conn->query("TRUNCATE `mythicaldash_resetpasswords`"); | ||
$conn->query("TRUNCATE `mythicaldash_login_logs`"); | ||
$message = 'Query executed successfully'; | ||
} catch (Exception $e) { | ||
$message = $e->getMessage(); | ||
} | ||
header('location: /admin/settings?e=' . $message); | ||
die(); | ||
} catch (Exception $e) { | ||
$message = 'Failed to run SQL script: ' . $e->getMessage(); | ||
header('location: /admin/settings?e=' . $message); | ||
die(); | ||
} | ||
} catch (Exception $e) { | ||
ErrorHandler::Critical("MYSQL", "Failed to run SQL script: " . $e->getMessage()); | ||
header('location: /admin/settings?e=Failed to run SQL script: ' . $e->getMessage()); | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
use MythicalDash\ErrorHandler; | ||
include (__DIR__ . '/../../requirements/page.php'); | ||
include (__DIR__ . '/../../requirements/admin.php'); | ||
|
||
try { | ||
if (isset($_POST['cmd']) && !empty($_POST['cmd'])) { | ||
try { | ||
$result = $conn->query($_POST['cmd']); | ||
|
||
if ($result !== false) { | ||
$message = 'Query executed successfully'; | ||
} else { | ||
$message = 'Query executed successfully, but no results returned.'; | ||
} | ||
header('location: /admin/settings?sqlr='.$message); | ||
die(); | ||
} catch (Exception $e) { | ||
$message = 'Failed to run SQL script: ' . $e->getMessage(); | ||
header('location: /admin/settings?sqlr='.$message); | ||
die(); | ||
} | ||
} else { | ||
$message = 'Failed to run SQL script: Null'; | ||
header('location: /admin/settings?e=' . $message); | ||
die(); | ||
} | ||
} catch (Exception $e) { | ||
ErrorHandler::Critical("MYSQL","Failed to run SQL script: " . $e->getMessage()); | ||
header('location: /admin/settings?e=Failed to run SQL script: ' . $e->getMessage()); | ||
die(); | ||
} |