mirror of
https://github.com/zyx0814/dzzoffice.git
synced 2025-01-05 10:27:33 +08:00
修复网址无法预览和文件类型显示为未知类型的问题、修改title (#261)
This commit is contained in:
parent
25acf615bf
commit
dbb1289bd7
@ -889,6 +889,8 @@ class table_resources extends dzz_table
|
||||
if ($currentfolder = C::t('folder')->fetch($fileinfo['oid'])) {
|
||||
$fileinfo['isgroup'] = ($currentfolder['flag'] == 'organization') ? true : false;
|
||||
}
|
||||
} elseif ($fileinfo['type'] == 'link') {
|
||||
$fileinfo['type'] = lang('type_link');
|
||||
} elseif ($fileinfo['ext']) {
|
||||
$fileinfo['type'] = getFileTypeName($fileinfo['type'], $fileinfo['ext']);
|
||||
} else {
|
||||
|
@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<title><!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if !empty($_G[setting][sitename])}--> $_G[setting][sitename] - <!--{/if}--></title>
|
||||
<title><!--{if !empty($navtitle)}-->$navtitle - <!--{/if}-->$_G[setting][sitename]</title>
|
||||
<meta name="keywords" content="{if !empty($_G[setting][metakeywords])}{echo htmlspecialchars($_G[setting][metakeywords])}{/if}" />
|
||||
<meta name="description" content="{if !empty($_G[setting][metadescription])}{echo htmlspecialchars($_G[setting][metadescription])} {/if}" />
|
||||
<meta name="generator" content="DzzOffice" />
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<title><!--{if !empty($navtitle)}-->$navtitle - <!--{/if}-->$_G[setting][sitename] </title>
|
||||
<title><!--{if !empty($navtitle)}-->$navtitle - <!--{/if}-->$_G[setting][sitename]</title>
|
||||
<meta name="keywords" content="{if !empty($_G[setting][metakeywords])}{echo htmlspecialchars($_G[setting][metakeywords])}{/if}" />
|
||||
<meta name="description" content="{if !empty($_G[setting][metadescription])}{echo htmlspecialchars($_G[setting][metadescription])} {/if}" />
|
||||
<meta name="generator" content="DzzOffice" />
|
||||
|
@ -33,6 +33,10 @@ if($_GET['a']=='down'){
|
||||
}
|
||||
$icoarr['icoid'] = $_GET['s'];
|
||||
}
|
||||
if ($icoarr['type'] == 'link') {
|
||||
@header('Location: '.$icoarr['url']);
|
||||
exit();
|
||||
}
|
||||
$imageexts=array('jpg','jpeg','png','gif'); //图片使用;
|
||||
$filename=$icoarr['name'];//rtrim($_GET['n'],'.dzz');
|
||||
$ext=$icoarr['ext'];//strtolower(substr(strrchr($filename, '.'), 1, 10));
|
||||
|
Loading…
Reference in New Issue
Block a user