Mark addhost.php as deprecated (#16283)

Use lnms device:add instead
This commit is contained in:
Tony Murray 2024-08-14 09:15:32 -05:00 committed by GitHub
parent 9455173edc
commit 0e741e365a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,6 +18,8 @@ use LibreNMS\Exceptions\HostUnreachableException;
$init_modules = [];
require __DIR__ . '/includes/init.php';
c_echo('%RWarning: addhost.php is deprecated!%n Use %9lnms device:add%n instead.' . PHP_EOL . PHP_EOL);
$options = getopt('Pbg:p:f::');
$device = new Device;