Commit graph

6 commits

Author SHA1 Message Date
Ad Schellevis
e190e9c138 System: High Availability: Status - backend code for https://github.com/opnsense/core/issues/7899
This commit wraps our xmlrpc functions via configd and wires them via an api controller.
In the long run we should consider moving to RESTful interfaces, but for now we will keep and cleanup the xmlrpc code.

configd action "system ha services_cached" caches the service list for a couple of seconds to improve searchability via our standard grid functions.
2024-12-15 20:09:09 +01:00
Ad Schellevis
5d59e86b4b IXR_Library.php - minor cleanups, partly borrowed from https://github.com/kissifrot/php-ixr. closes https://github.com/opnsense/core/issues/5911
At the moment it doesn't seem to make much sense replacing the IXR library, the latest release tag from https://github.com/kissifrot/php-ixr seems to be from a couple of years ago as well and most changes relate to splitting the file into separate class files.
2022-09-21 17:01:23 +02:00
Ad Schellevis
65ceba42f3 System / High Availability - fix for https://forum.opnsense.org/index.php?topic=29521.0, IXR_Library using incorrect constructor format for php 8 2022-07-29 11:08:09 +02:00
Ad Schellevis
a65e793cb4 IXR_Library: do not trim xml values, there's no reason for. closes https://github.com/opnsense/core/pull/4707
xml-rpc isn't used very often these days, it proably doesn't make sense to try to upstream this change since the library doesn't seem to be very active anymore.
When values are of non string type, it makes sense to trim() for safety, for strings leading spaces can have a meaning.
2021-02-15 20:56:05 +01:00
Ad Schellevis
9452022307 xmlrpc, php7.2 migration, Warning: count(): Parameter must be. checking for an array should be enough here, other types aren't supported. closes https://github.com/opnsense/core/issues/3390 2019-04-07 11:33:45 +02:00
Franco Fichtner
30d0c1760c src/contrib: aaaaand it's gone ;) 2016-09-25 12:50:04 +02:00
Renamed from src/opnsense/contrib/IXR_Library.php (Browse further)