add shortUrl support
parent
c6f0193899
commit
2bec7a4e83
|
@ -65,6 +65,7 @@ $EnvConfigs = [
|
||||||
'public_path' => 0b111,
|
'public_path' => 0b111,
|
||||||
'fileConduitSize' => 0b110,
|
'fileConduitSize' => 0b110,
|
||||||
'fileConduitCacheTime' => 0b110,
|
'fileConduitCacheTime' => 0b110,
|
||||||
|
'reurl_cc_api' => 0b010, //shortUrlSite_apiKey
|
||||||
];
|
];
|
||||||
|
|
||||||
$timezones = array(
|
$timezones = array(
|
||||||
|
@ -3089,6 +3090,8 @@ function render_list($path = '', $files = [])
|
||||||
|
|
||||||
$tmp = splitfirst($html, '</title>');
|
$tmp = splitfirst($html, '</title>');
|
||||||
$html = $tmp[0] . '</title>' . $authinfo . $tmp[1];
|
$html = $tmp[0] . '</title>' . $authinfo . $tmp[1];
|
||||||
|
//短链接apikey处理
|
||||||
|
$html = str_replace('your_api_key_for_reurl_cc', strval(getConfig('reurl_cc_api')), $html);
|
||||||
//if (isset($_SERVER['Set-Cookie'])) return output($html, $statusCode, [ 'Set-Cookie' => $_SERVER['Set-Cookie'], 'Content-Type' => 'text/html' ]);
|
//if (isset($_SERVER['Set-Cookie'])) return output($html, $statusCode, [ 'Set-Cookie' => $_SERVER['Set-Cookie'], 'Content-Type' => 'text/html' ]);
|
||||||
return output($html, $statusCode);
|
return output($html, $statusCode);
|
||||||
}
|
}
|
||||||
|
|
|
@ -119,6 +119,7 @@ $constStr = [
|
||||||
'domainforproxy' => 'Will replace the https://xxxxx-my.sharepoint.com with this value.Add &Origindomain=xxxxx-my.sharepoint.com at last',
|
'domainforproxy' => 'Will replace the https://xxxxx-my.sharepoint.com with this value.Add &Origindomain=xxxxx-my.sharepoint.com at last',
|
||||||
'public_path' => 'Show this Onedrive dir when through the long url of API Gateway.',
|
'public_path' => 'Show this Onedrive dir when through the long url of API Gateway.',
|
||||||
'sitename' => 'sitename',
|
'sitename' => 'sitename',
|
||||||
|
'reurl_cc_api' => 'the api_key of short URL site of reurl.cc',
|
||||||
],
|
],
|
||||||
'zh-cn' => [
|
'zh-cn' => [
|
||||||
'admin' => '管理密码,不添加时不显示登录页面且无法登录。',
|
'admin' => '管理密码,不添加时不显示登录页面且无法登录。',
|
||||||
|
@ -153,6 +154,7 @@ $constStr = [
|
||||||
'domainforproxy' => '会将https://xxxxx-my.sharepoint.com替换成这个值,在目标需要自己设置反代。会加上&Origindomain=原域名',
|
'domainforproxy' => '会将https://xxxxx-my.sharepoint.com替换成这个值,在目标需要自己设置反代。会加上&Origindomain=原域名',
|
||||||
'public_path' => '使用API长链接访问时,显示网盘文件的路径,不设置时默认为根目录。',
|
'public_path' => '使用API长链接访问时,显示网盘文件的路径,不设置时默认为根目录。',
|
||||||
'sitename' => '网站的名称',
|
'sitename' => '网站的名称',
|
||||||
|
'reurl_cc_api' => 'reurl.cc 短链接网站的api key',
|
||||||
],
|
],
|
||||||
'zh-tw' => [
|
'zh-tw' => [
|
||||||
'admin' => '管理密碼,不設定密碼將不顯示登入頁面且無法登入。',
|
'admin' => '管理密碼,不設定密碼將不顯示登入頁面且無法登入。',
|
||||||
|
@ -178,6 +180,7 @@ $constStr = [
|
||||||
'domainforproxy' => '會將https://xxxxx-my.sharepoint.com取代成這個值,在目標需要自己設定反代。會加上&Origindomain=原域名',
|
'domainforproxy' => '會將https://xxxxx-my.sharepoint.com取代成這個值,在目標需要自己設定反代。會加上&Origindomain=原域名',
|
||||||
'public_path' => '使用API長連結訪問時,顯示網路硬碟檔案的路徑,不設定時預設為根目錄。',
|
'public_path' => '使用API長連結訪問時,顯示網路硬碟檔案的路徑,不設定時預設為根目錄。',
|
||||||
'sitename' => '網站的名稱',
|
'sitename' => '網站的名稱',
|
||||||
|
'reurl_cc_api' => 'reurl.cc 短連結網站的api key',
|
||||||
],
|
],
|
||||||
'ja' => [
|
'ja' => [
|
||||||
'admin' => 'パスワードを管理する、追加しない場合、ログインページは表示されず、ログインできません。',
|
'admin' => 'パスワードを管理する、追加しない場合、ログインページは表示されず、ログインできません。',
|
||||||
|
@ -203,6 +206,7 @@ $constStr = [
|
||||||
'domainforproxy' => '会将https://xxxy-my.sharepoint.comこの値に代えて、目標には自分で反世代を設定する必要があります。に加えて&Originndomain=元のドメイン名',
|
'domainforproxy' => '会将https://xxxy-my.sharepoint.comこの値に代えて、目標には自分で反世代を設定する必要があります。に加えて&Originndomain=元のドメイン名',
|
||||||
'public_path' => 'APIのロングリンクアクセスを使用する場合、ネットワークディスクファイルのパスが表示されますが、設定されていない場合はデフォルトでルートディレクトリになり。',
|
'public_path' => 'APIのロングリンクアクセスを使用する場合、ネットワークディスクファイルのパスが表示されますが、設定されていない場合はデフォルトでルートディレクトリになり。',
|
||||||
'sitename' => 'ウェブサイト名',
|
'sitename' => 'ウェブサイト名',
|
||||||
|
'reurl_cc_api' => 'reurl.cc ショートリンクサイトのapi key',
|
||||||
],
|
],
|
||||||
'ko-kr' => [
|
'ko-kr' => [
|
||||||
'admin' => '비밀번호를 관리하고 로그인 페이지를 표시하지 않으며 추가하지 않으면 로그인 할 수 없습니다.',
|
'admin' => '비밀번호를 관리하고 로그인 페이지를 표시하지 않으며 추가하지 않으면 로그인 할 수 없습니다.',
|
||||||
|
|
Loading…
Reference in New Issue