Update functions.php
parent
e37dfcf48e
commit
1330eed999
|
@ -173,10 +173,16 @@ function gethiddenpass($path,$passfile)
|
||||||
$ispassfile = fetch_files(spurlencode(path_format($path . '/' . $passfile),'/'));
|
$ispassfile = fetch_files(spurlencode(path_format($path . '/' . $passfile),'/'));
|
||||||
//echo $path . '<pre>' . json_encode($ispassfile, JSON_PRETTY_PRINT) . '</pre>';
|
//echo $path . '<pre>' . json_encode($ispassfile, JSON_PRETTY_PRINT) . '</pre>';
|
||||||
if (isset($ispassfile['file'])) {
|
if (isset($ispassfile['file'])) {
|
||||||
$passwordf=explode("\n",curl_request($ispassfile['@microsoft.graph.downloadUrl']));
|
$arr = curl_request($ispassfile['@microsoft.graph.downloadUrl']);
|
||||||
$password=$passwordf[0];
|
if ($arr['stat']==200) {
|
||||||
$password=md5($password);
|
$passwordf=explode("\n",$arr['body']);
|
||||||
return $password;
|
$password=$passwordf[0];
|
||||||
|
$password=md5($password);
|
||||||
|
return $password;
|
||||||
|
} else {
|
||||||
|
//return md5('DefaultP@sswordWhenNetworkError');
|
||||||
|
return md5( md5(time()).rand(1000,9999) );
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($path !== '' ) {
|
if ($path !== '' ) {
|
||||||
$path = substr($path,0,strrpos($path,'/'));
|
$path = substr($path,0,strrpos($path,'/'));
|
||||||
|
@ -217,7 +223,8 @@ function get_refresh_token()
|
||||||
}
|
}
|
||||||
document.cookie=\'language=; path=/\';
|
document.cookie=\'language=; path=/\';
|
||||||
</script>';
|
</script>';
|
||||||
setConfig([ 'refresh_token' => $tmptoken ]);
|
//setConfig([ 'refresh_token' => $tmptoken ]);
|
||||||
|
setConfig($ret);
|
||||||
$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']]);
|
||||||
|
|
Loading…
Reference in New Issue