Remove remote server support

The functionality was marked as "I'm not even sure if this code works anymore" 11 years ago...
This commit is contained in:
Zankaria
2024-02-14 23:00:52 +01:00
parent e52c996a56
commit dd5c25f99c
3 changed files with 2 additions and 83 deletions

View File

@@ -636,14 +636,8 @@ function file_write($path, $data, $simple = false, $skip_purge = false) {
global $config, $debug;
if (preg_match('/^remote:\/\/(.+)\:(.+)$/', $path, $m)) {
if (isset($config['remote'][$m[1]])) {
require_once 'inc/remote.php';
$remote = new Remote($config['remote'][$m[1]]);
$remote->write($data, $m[2]);
return;
} else {
error('Invalid remote server: ' . $m[1]);
if (isset($config['remote'])) {
error('Remote server support has been removed');
}
}