Update functions.php
parent
aad9e6d73c
commit
91489b4253
|
@ -248,7 +248,7 @@ function get_refresh_token()
|
||||||
$tmp['client_id'] = $_POST['client_id'];
|
$tmp['client_id'] = $_POST['client_id'];
|
||||||
$tmp['client_secret'] = $_POST['client_secret'];
|
$tmp['client_secret'] = $_POST['client_secret'];
|
||||||
}
|
}
|
||||||
echo '<pre>'. json_encode($tmp, JSON_PRETTY_PRINT).'</pre>';
|
//echo '<pre>'. json_encode($tmp, JSON_PRETTY_PRINT).'</pre>';
|
||||||
$response = setConfig($tmp);
|
$response = setConfig($tmp);
|
||||||
$title = $constStr['MayinEnv'][$constStr['language']];
|
$title = $constStr['MayinEnv'][$constStr['language']];
|
||||||
$html = $constStr['Wait'][$constStr['language']] . ' 3s<meta http-equiv="refresh" content="3;URL=' . $url . '?install2">';
|
$html = $constStr['Wait'][$constStr['language']] . ' 3s<meta http-equiv="refresh" content="3;URL=' . $url . '?install2">';
|
||||||
|
@ -438,6 +438,7 @@ function setConfig($arr)
|
||||||
foreach ($arr as $k1 => $v1) {
|
foreach ($arr as $k1 => $v1) {
|
||||||
$evns[$k1] = $v1;
|
$evns[$k1] = $v1;
|
||||||
}
|
}
|
||||||
|
echo '<pre>'. json_encode($envs, JSON_PRETTY_PRINT).'</pre>';
|
||||||
$envs = array_filter($envs, 'array_value_isnot_null');
|
$envs = array_filter($envs, 'array_value_isnot_null');
|
||||||
ksort($envs);
|
ksort($envs);
|
||||||
echo '<pre>'. json_encode($envs, JSON_PRETTY_PRINT).'</pre>';
|
echo '<pre>'. json_encode($envs, JSON_PRETTY_PRINT).'</pre>';
|
||||||
|
|
Loading…
Reference in New Issue