-
-
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.
-> Settings have to be removed ;)
- Loading branch information
Showing
5 changed files
with
28 additions
and
15 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
composer.phar | ||
/vendor/ | ||
/logs/*.log | ||
|
||
/settings.json | ||
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control | ||
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file | ||
# composer.lock |
This file was deleted.
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,21 @@ | ||
<?php | ||
use MythicalSystemsFramework\Cli\Colors as color; | ||
use MythicalSystemsFramework\Database\MySQL; | ||
use MythicalSystemsFramework\Managers\ConfigManager as cfg; | ||
|
||
class setupCommand | ||
{ | ||
public function execute() | ||
{ | ||
$db = new MySQL(); | ||
if ($db->tryConnection(cfg::get("database", "host"), cfg::get("database", "port"), cfg::get("database", "username"), cfg::get("database", "password"), cfg::get("database", "name")) == true) { | ||
echo color::translateColorsCode("&fConnection to the database was &asuccessful!&o"); | ||
echo color::NewLine(); | ||
if (cfg::get("encryption","key") == "") { | ||
die(color::translateColorsCode("&cEncryption key is not set!&o&fHave you set it up already?&o")); | ||
} | ||
} else { | ||
die(color::translateColorsCode("&cFailed to connect to the database!&o&fHave you set it up already?&o")); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.