spacejewel-ipn-communication/source/config.php
Miguel Nogueira c9d71b422a Database crentials were incorrect.
Also wrapped database logic inside the correct try catch block to prevent further mishaps and information leakages.
Fixes #6.
2018-06-08 15:38:27 +00:00

51 lines
1.5 KiB
PHP

<?php
// Keep things simple for simplicity's sake. We can't waste too much time.
// Wrap this around an helper class
return [
"mainconfig" =>
[
"appname" => "SG-Gateway",
"appversion" => "alpha 1.0",
"operationmode" => "development"
],
"core" =>
[
"database" =>
[
"username" => "spacejewel",
"password" => "zwNUECRSy1DVZneq",
"hostname" => "spacejewel.ga",
"port" => "3306",
"dbname" => "billing"
],
"virtualmin" =>
[
"vmin-url" => "",
"password" => "",
"username" => ""
],
"templates" =>
[
"templateDirectory" => $_SERVER['DOCUMENT_ROOT'] . '/source/emailTemplates'
],
"mailer" =>
[
"username" => "0bffccb77f9228",
"password" => "bbd994d1500dab",
"hostname" => " smtp.mailtrap.io",
"port" => 2525
]
]
];