mirror of
https://github.com/unraid/api.git
synced 2026-05-23 01:19:15 -05:00
Merge pull request #69 from unraid/fix/context-myservers-cfg
fix(plg): adds context for myservers.cfg in php
This commit is contained in:
@@ -919,7 +919,9 @@ function response_complete($httpcode, $result, $cli_success_msg='') {
|
||||
}
|
||||
|
||||
// remoteaccess, externalport, (if registering) username, password
|
||||
extract(parse_ini_file('/boot/config/plugins/Unraid.net/myservers.cfg',true));
|
||||
if (file_exists('/boot/config/plugins/Unraid.net/myservers.cfg')) {
|
||||
extract(parse_ini_file('/boot/config/plugins/Unraid.net/myservers.cfg',true));
|
||||
}
|
||||
if (empty($remote)) {
|
||||
$remote = [
|
||||
"apikey" => "",
|
||||
@@ -1859,6 +1861,10 @@ setTimeout(() => {
|
||||
<![CDATA[
|
||||
<!-- RegWiz -->
|
||||
<?
|
||||
if (file_exists('/boot/config/plugins/Unraid.net/myservers.cfg')) {
|
||||
extract(parse_ini_file('/boot/config/plugins/Unraid.net/myservers.cfg',true));
|
||||
}
|
||||
|
||||
$serverstate = [
|
||||
"deviceCount" => $var['deviceCount'],
|
||||
"email" => ($remote['email']) ? $remote['email'] : '',
|
||||
|
||||
Reference in New Issue
Block a user