26 lines
479 B
PHP
Executable File
26 lines
479 B
PHP
Executable File
#!/usr/bin/php
|
|
<?php
|
|
|
|
class Custom extends Plugin
|
|
{
|
|
public function onSync($remote_config)
|
|
{
|
|
if (!isset($remote_config["custom"])) {
|
|
return;
|
|
}
|
|
$this->config = $remote_config["custom"];
|
|
$this->saveConfig();
|
|
|
|
$path = dirname(__DIR__) . "/networks/custom.json";
|
|
file_put_contents($path, json_encode($this->config));
|
|
}
|
|
|
|
protected function checkConfig(): void
|
|
{
|
|
parent::checkConfig();
|
|
}
|
|
|
|
|
|
}
|
|
|