Update functions.php

pull/13/head
qkqpttgf 2020-01-03 15:49:10 +08:00 committed by GitHub
parent b5e3eda0fa
commit cbf0890866
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -224,6 +224,9 @@ function get_refresh_token()
document.cookie=\'language=; path=/\'; document.cookie=\'language=; path=/\';
</script>'; </script>';
setConfig([ 'refresh_token' => $tmptoken ]); setConfig([ 'refresh_token' => $tmptoken ]);
$cache = null;
$cache = new \Doctrine\Common\Cache\FilesystemCache(sys_get_temp_dir(), '.Onedrive');
$cache->save('access_token', $ret['access_token'], $ret['expires_in'] - 60);
$str .= ' $str .= '
<meta http-equiv="refresh" content="5;URL=' . $url . '">'; <meta http-equiv="refresh" content="5;URL=' . $url . '">';
return message($str, $constStr['WaitJumpIndex'][$constStr['language']]); return message($str, $constStr['WaitJumpIndex'][$constStr['language']]);
@ -303,7 +306,7 @@ Can not write config to file.<br>
} }
$html .= ' $html .= '
<form action="?install0" method="post"> <form action="?install0" method="post">
<label>admin:<input name="admin" type="password" placeholder="' . $constStr['EnvironmentsDescription']['admin'][$constStr['language']] . '" style="width:' . strlen($constStr['EnvironmentsDescription']['admin'][$constStr['language']]) . 'rem;"></label><br> <label>admin:<input name="admin" type="password" placeholder="' . $constStr['EnvironmentsDescription']['admin'][$constStr['language']] . '" size="' . strlen($constStr['EnvironmentsDescription']['admin'][$constStr['language']]) . '"></label><br>
language:<br>'; language:<br>';
foreach ($constStr['languages'] as $key1 => $value1) { foreach ($constStr['languages'] as $key1 => $value1) {
$html .= ' $html .= '