Compare commits
2 Commits
44ff33120d
...
9c87d47477
Author | SHA1 | Date |
---|---|---|
tracer | 9c87d47477 | |
tracer | b0535a3d18 |
|
@ -445,7 +445,7 @@ class BindAPI
|
||||||
echo COLOR_RED . ' ' . $result['header'] . COLOR_DEFAULT;
|
echo COLOR_RED . ' ' . $result['header'] . COLOR_DEFAULT;
|
||||||
$arguments = $this->parseArguments();
|
$arguments = $this->parseArguments();
|
||||||
if (!empty($arguments['fix']) && $arguments['fix'] == 'yes') {
|
if (!empty($arguments['fix']) && $arguments['fix'] == 'yes') {
|
||||||
echo 'trying to fix …';
|
echo ' trying to fix …';
|
||||||
$body = [
|
$body = [
|
||||||
'name' => $domainName,
|
'name' => $domainName,
|
||||||
'panel' => $panel->getName(),
|
'panel' => $panel->getName(),
|
||||||
|
@ -474,9 +474,10 @@ class BindAPI
|
||||||
echo $e->getMessage();
|
echo $e->getMessage();
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
print_r(value: $create);
|
if ($create['header'] != 201) {
|
||||||
if ($create['header'] != 200) {
|
|
||||||
die("make error handling");
|
die("make error handling");
|
||||||
|
} else {
|
||||||
|
echo COLOR_GREEN . 'OK';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -65,7 +65,7 @@ class DomainRepository
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = "
|
$sql = "
|
||||||
SELECT id, name, name
|
SELECT id, name, panel
|
||||||
FROM . " . DatabaseConnection::TABLE_DOMAINS . "
|
FROM . " . DatabaseConnection::TABLE_DOMAINS . "
|
||||||
WHERE id = :id";
|
WHERE id = :id";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue