| Line 81... |
Line 81... |
| 81 |
$l_not_connected = "Non connecté";
|
81 |
$l_not_connected = "Non connecté";
|
| 82 |
$l_pubkey_to_deploy = "Si cet ALCASAR est secondaire, copiez la clé publique ci-dessous pour l'importez dans le primaire.";
|
82 |
$l_pubkey_to_deploy = "Si cet ALCASAR est secondaire, copiez la clé publique ci-dessous pour l'importez dans le primaire.";
|
| 83 |
$l_remote_access_mgmt = "Gestion des accès distants";
|
83 |
$l_remote_access_mgmt = "Gestion des accès distants";
|
| 84 |
$l_remote_role = "Rôle de l'hôte distant";
|
84 |
$l_remote_role = "Rôle de l'hôte distant";
|
| 85 |
$l_repl_io_running = "État";
|
85 |
$l_repl_io_running = "État";
|
| - |
|
86 |
$l_started = "Démarré";
|
| - |
|
87 |
$l_stopped = "Arrêté";
|
| - |
|
88 |
$l_in_progress = "En cours ...";
|
| 86 |
$l_replication_install = "Installer la Fédération";
|
89 |
$l_replication_install = "Installer la Fédération";
|
| 87 |
$l_replication_title = "Fédération";
|
90 |
$l_replication_title = "Fédération";
|
| 88 |
$l_role_primary = "Primaire";
|
91 |
$l_role_primary = "Primaire";
|
| 89 |
$l_role_secondary = "Secondaire";
|
92 |
$l_role_secondary = "Secondaire";
|
| 90 |
$l_ssh_keys_for_primary = "Liste des secondaires autorisées à se connecter";
|
93 |
$l_ssh_keys_for_primary = "Liste des secondaires autorisées à se connecter";
|
| Line 121... |
Line 124... |
| 121 |
$l_not_connected = "No conectado";
|
124 |
$l_not_connected = "No conectado";
|
| 122 |
$l_pubkey_to_deploy = "La clave debe implementarse en los servidores primarios.";
|
125 |
$l_pubkey_to_deploy = "La clave debe implementarse en los servidores primarios.";
|
| 123 |
$l_remote_access_mgmt = "Gestión de accesos remotos";
|
126 |
$l_remote_access_mgmt = "Gestión de accesos remotos";
|
| 124 |
$l_remote_role = "Función del host remoto";
|
127 |
$l_remote_role = "Función del host remoto";
|
| 125 |
$l_repl_io_running = "Estado";
|
128 |
$l_repl_io_running = "Estado";
|
| - |
|
129 |
$l_started = "Iniciado";
|
| - |
|
130 |
$l_stopped = "Decreto";
|
| - |
|
131 |
$l_in_progress = "En curso ...";
|
| 126 |
$l_replication_install = "Creación de la federación";
|
132 |
$l_replication_install = "Creación de la federación";
|
| 127 |
$l_replication_title = "Federación";
|
133 |
$l_replication_title = "Federación";
|
| 128 |
$l_role_primary = "Primaria";
|
134 |
$l_role_primary = "Primaria";
|
| 129 |
$l_role_secondary = "Secundaria";
|
135 |
$l_role_secondary = "Secundaria";
|
| 130 |
$l_ssh_keys_for_primary = "Lista de claves autorizadas para conectarse al usuario local «replication».";
|
136 |
$l_ssh_keys_for_primary = "Lista de claves autorizadas para conectarse al usuario local «replication».";
|
| Line 161... |
Line 167... |
| 161 |
$l_not_connected = "Not connected";
|
167 |
$l_not_connected = "Not connected";
|
| 162 |
$l_pubkey_to_deploy = "The following public key has to be deployed on remote primary servers.";
|
168 |
$l_pubkey_to_deploy = "The following public key has to be deployed on remote primary servers.";
|
| 163 |
$l_remote_access_mgmt = "Remote access management";
|
169 |
$l_remote_access_mgmt = "Remote access management";
|
| 164 |
$l_remote_role = "Remote role";
|
170 |
$l_remote_role = "Remote role";
|
| 165 |
$l_repl_io_running = "State";
|
171 |
$l_repl_io_running = "State";
|
| - |
|
172 |
$l_started = "Started";
|
| - |
|
173 |
$l_stopped = "Stopped";
|
| - |
|
174 |
$l_in_progress = "In progress...";
|
| 166 |
$l_replication_install = "Setting up the federation";
|
175 |
$l_replication_install = "Setting up the federation";
|
| 167 |
$l_replication_title = "Federation";
|
176 |
$l_replication_title = "Federation";
|
| 168 |
$l_role_primary = "Primary";
|
177 |
$l_role_primary = "Primary";
|
| 169 |
$l_role_secondary = "Secondary";
|
178 |
$l_role_secondary = "Secondary";
|
| 170 |
$l_ssh_keys_for_primary = "List of keys allowed to connect to local 'replication' user.";
|
179 |
$l_ssh_keys_for_primary = "List of keys allowed to connect to local 'replication' user.";
|
| Line 433... |
Line 442... |
| 433 |
</tr>
|
442 |
</tr>
|
| 434 |
<?php
|
443 |
<?php
|
| 435 |
$stdout = [];
|
444 |
$stdout = [];
|
| 436 |
$return = 0;
|
445 |
$return = 0;
|
| 437 |
exec("sudo /usr/local/bin/alcasar-replication-list.sh --all 2>&1", $stdout, $return);
|
446 |
exec("sudo /usr/local/bin/alcasar-replication-list.sh --all 2>&1", $stdout, $return);
|
| 438 |
|
- |
|
| 439 |
// If script went wrong
|
447 |
// If script went wrong
|
| 440 |
if ($return) {
|
448 |
if ($return) {
|
| 441 |
// Print error message
|
449 |
// Print error message
|
| 442 |
$errors_msg[$section."_error"] = implode(PHP_EOL, $stdout);
|
450 |
$errors_msg[$section."_error"] = implode(PHP_EOL, $stdout);
|
| 443 |
// Successfully fetched remotes stats
|
451 |
// Successfully fetched remotes stats
|
| Line 480... |
Line 488... |
| 480 |
} else {
|
488 |
} else {
|
| 481 |
echo "$l_not_connected";
|
489 |
echo "$l_not_connected";
|
| 482 |
}
|
490 |
}
|
| 483 |
?></td>
|
491 |
?></td>
|
| 484 |
<td><?= $prim["Connection_name"] ?></td>
|
492 |
<td><?= $prim["Connection_name"] ?></td>
|
| - |
|
493 |
<td>
|
| - |
|
494 |
<? if ($prim["Slave_IO_Running"] == "Yes") { echo "Démarré"; }
|
| 485 |
<td><?= $prim["Slave_IO_Running"] ?></td>
|
495 |
if ($prim["Slave_IO_Running"] == "No") { echo "Arreté"; }
|
| - |
|
496 |
if ($prim["Slave_IO_Running"] == "Connecting") { echo "Connexion en cours"; }
|
| - |
|
497 |
?>
|
| - |
|
498 |
</td>
|
| 486 |
<td><?= $prim["Master_Port"] ?></td>
|
499 |
<td><?= $prim["Master_Port"] ?></td>
|
| 487 |
<td>
|
500 |
<td>
|
| 488 |
<select name="action_primary_<?= $prim["Connection_name"] ?>" class="primary_action_select" onchange="enable_apply_btn_if_selected_primary_action()">
|
501 |
<select name="action_primary_<?= $prim["Connection_name"] ?>" class="primary_action_select" onchange="enable_apply_btn_if_selected_primary_action()">
|
| 489 |
<option value=""></option>
|
502 |
<option value=""></option>
|
| 490 |
<?php
|
503 |
<?php
|
| Line 569... |
Line 582... |
| 569 |
<td><label for="input_bind_port"><?= $l_bind_port ?></label></td>
|
582 |
<td><label for="input_bind_port"><?= $l_bind_port ?></label></td>
|
| 570 |
<td><input type="number" id="input_bind_port" name="bind_port" min="0" max="65535" class="role_secondary" pattern="<?= $reg_ip_port ?>"></td>
|
583 |
<td><input type="number" id="input_bind_port" name="bind_port" min="0" max="65535" class="role_secondary" pattern="<?= $reg_ip_port ?>"></td>
|
| 571 |
</tr>
|
584 |
</tr>
|
| 572 |
<tr>
|
585 |
<tr>
|
| 573 |
<td><label for="input_port"><?= $l_ssh_port ?></label></td>
|
586 |
<td><label for="input_port"><?= $l_ssh_port ?></label></td>
|
| 574 |
<td><input type="number" id="input_port" name="port" min="0" max="65535" placeholder="22" class="role_primary" pattern="<?= $reg_ip_port ?>"></td>
|
587 |
<td><input type="number" id="input_port" name="port" min="0" max="65535" class="role_primary" pattern="<?= $reg_ip_port ?>"></td>
|
| 575 |
</tr>
|
- |
|
| 576 |
<!-- <tr>
|
- |
|
| 577 |
<td><label for="input_user"><?= $l_ssh_user ?></label></td>
|
- |
|
| 578 |
<td><input type="text" id="input_user" name="user" value="replication" disabled class="role_primary" pattern="<?= $reg_linux_user ?>"></td>
|
- |
|
| 579 |
</tr>
|
- |
|
| 580 |
<tr>
|
- |
|
| 581 |
<td><label for="input_db_user"><?= $l_db_user ?></label></td>
|
- |
|
| 582 |
<td><input type="text" id="input_db_user" name="db_user" value="replication" disabled class="role_primary role_secondary" pattern="<?= $reg_mariadb_user ?>"></td>
|
- |
|
| 583 |
</tr>
|
588 |
</tr>
|
| 584 |
-->
|
- |
|
| 585 |
<tr>
|
589 |
<tr>
|
| 586 |
<td><label for="input_db_pwd"><?= $l_db_pwd ?></label></td>
|
590 |
<td><label for="input_db_pwd"><?= $l_db_pwd ?></label></td>
|
| 587 |
<td><input type="password" id="input_db_pwd" name="db_pwd" class="role_primary role_secondary"></td>
|
591 |
<td><input type="password" id="input_db_pwd" name="db_pwd" class="role_primary role_secondary"></td>
|
| 588 |
</tr>
|
592 |
</tr>
|
| 589 |
<tr>
|
593 |
<tr>
|
| 590 |
<td colspan=2 valign="middle" align="center">
|
594 |
<td colspan=2 valign="middle" align="center">
|
| 591 |
<input type="submit" class="button" value="<?= $l_add_to_list ?>" onClick="document.getElementById('ldoverlay').style.display='block';">
|
595 |
<input type="submit" class="button" value="<?= $l_add_to_list ?>">
|
| 592 |
</td>
|
596 |
</td>
|
| 593 |
</tr>
|
597 |
</tr>
|
| 594 |
</table>
|
598 |
</table>
|
| 595 |
</form>
|
599 |
</form>
|
| 596 |
<?php if (isset($errors_msg[$section."_error"])) { ?>
|
600 |
<?php if (isset($errors_msg[$section."_error"])) { ?>
|