'.__('Server deleted successfully').'';
} else {
echo '
'.__('There was a problem deleting the server').'
';
}
} elseif (isset($_GET["update"])) {
$name = get_parameter_post ("name");
$address = get_parameter_post ("address");
$description = get_parameter_post ("description");
$id_server = get_parameter_post ("server");
$sql = sprintf ("UPDATE tserver SET name = '%s', ip_address = '%s', description = '%s' WHERE id_server = %d",$name,$address,$description,$server);
$result = process_sql ($sql);
if ($result !== false) {
echo ''.__('Server updated successfully').'
';
} else {
echo ''.__('There was a problem updating the server').'
';
}
}
if (isset($_GET["server"])) {
$id_server= get_parameter_get ("server");
echo "".__('Pandora servers')." > ".__('Update Server')."
";
$sql = sprintf("SELECT name, ip_address, description FROM tserver WHERE id_server = %d",$id_server);
$row = get_db_row_sql ($sql);
echo '