fix bug
parent
c8b5fb65d7
commit
4610d37976
|
@ -57,10 +57,10 @@ function getConfig($str, $disktag = '')
|
||||||
global $Base64Env;
|
global $Base64Env;
|
||||||
if ($disktag=='') $disktag = $_SERVER['disktag'];
|
if ($disktag=='') $disktag = $_SERVER['disktag'];
|
||||||
if (in_array($str, $InnerEnv)) {
|
if (in_array($str, $InnerEnv)) {
|
||||||
if (in_array($str, $Base64Env)) return base64_decode(equal_replace(json_decode(getenv($disktag), true)[$str],1));
|
if (in_array($str, $Base64Env)) return equal_replace(json_decode(getenv($disktag), true)[$str],1);
|
||||||
else return json_decode(getenv($disktag), true)[$str];
|
else return json_decode(getenv($disktag), true)[$str];
|
||||||
}
|
}
|
||||||
if (in_array($str, $Base64Env)) return base64_decode(equal_replace(getenv($str),1));
|
if (in_array($str, $Base64Env)) return equal_replace(getenv($str),1);
|
||||||
else return getenv($str);
|
else return getenv($str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ function setConfig($arr, $disktag = '')
|
||||||
$oparetdisk = 0;
|
$oparetdisk = 0;
|
||||||
foreach ($arr as $k => $v) {
|
foreach ($arr as $k => $v) {
|
||||||
if (in_array($k, $InnerEnv)) {
|
if (in_array($k, $InnerEnv)) {
|
||||||
if (in_array($k, $Base64Env)) $diskconfig[$k] = equal_replace(base64_encode($v));
|
if (in_array($k, $Base64Env)) $diskconfig[$k] = equal_replace($v);
|
||||||
else $diskconfig[$k] = $v;
|
else $diskconfig[$k] = $v;
|
||||||
$indisk = 1;
|
$indisk = 1;
|
||||||
} elseif ($k=='disktag_add') {
|
} elseif ($k=='disktag_add') {
|
||||||
|
@ -87,7 +87,7 @@ function setConfig($arr, $disktag = '')
|
||||||
$tmp[$v] = '';
|
$tmp[$v] = '';
|
||||||
$oparetdisk = 1;
|
$oparetdisk = 1;
|
||||||
} else {
|
} else {
|
||||||
if (in_array($k, $Base64Env)) $tmp[$k] = equal_replace(base64_encode($v));
|
if (in_array($k, $Base64Env)) $tmp[$k] = equal_replace($v);
|
||||||
else $tmp[$k] = $v;
|
else $tmp[$k] = $v;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue