Functionnal web server on docker-compose
This commit is contained in:
BIN
webroot/fonts/techmono.woff2
Normal file
BIN
webroot/fonts/techmono.woff2
Normal file
Binary file not shown.
@ -7,12 +7,14 @@ if (isset($_POST['login']) && $_POST['login'] == 'Login') {
|
||||
if ( isset($_POST['username']) && !empty($_POST['username']) ) {
|
||||
if ( isset($_POST['password']) && !empty($_POST['password']) ) {
|
||||
|
||||
$bdd = new mysqli("localhost", "cyber-zetatech-inc", "wY7nhg7xnzmCcJbfz3Gf89qyU5cvpr", "ctf-zetatech-inc");
|
||||
if ($bdd->connect_errno) {
|
||||
$bdd = mysqli_connect('database:3306', 'cyber-zetatech-inc', 'wY7nhg7xnzmCcJbfz3Gf89qyU5cvpr', 'ctf-zetatech-inc');
|
||||
//$bdd = new mysqli("database", "cyber-zetatech-inc", "wY7nhg7xnzmCcJbfz3Gf89qyU5cvpr", "ctf-zetatech-inc", 3306);
|
||||
if (mysqli_connect_errno()) {
|
||||
$state->return = 'error';
|
||||
$state->string = 'Connection error';
|
||||
$state_json = json_encode($state);
|
||||
echo $state_json;
|
||||
return;
|
||||
}
|
||||
|
||||
$real_user = "puppet-master";
|
||||
|
Reference in New Issue
Block a user