📄 printable.php
字号:
<?php
/*
[DISCUZ!] include/printable.php - show printable version in thread viewing page
This is NOT a freeware, use is subject to license terms
Version: 2.0.0
Author: Crossday (info@discuz.net)
Copyright: Crossday Studio (www.crossday.com)
Last Modified: 2002/12/5 10:00
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
$postlist = array();
$querypost = $db->query("SELECT p.*, a.aid AS aaid, a.creditsrequire, a.filetype, a.filename, a.attachment, a.filesize, a.downloads
FROM $table_posts p LEFT JOIN $table_attachments a ON p.aid<>'0' AND p.aid=a.aid WHERE p.tid='$tid' ORDER BY dateline");
while($post = $db->fetch_array($querypost)) {
$post['dateline'] = gmdate("$dateformat $timeformat", $post['dateline'] + ($timeoffset * 3600));
$post['message'] = postify($post['message'], $post['smileyoff'], $post['bbcodeoff'], $forum['allowsmilies'], $forum['allowhtml'], $forum['allowbbcode'], $forum['allowimgcode']);
if($post['aaid']) {
require_once $discuz_root.'./include/attachment.php';
$extension = strtolower(substr(strrchr($post['filename'], "."), 1));
$post['attachicon'] = attachicon($extension."\t".$post['filetype']);
if($attachimgpost && ($extension == 'jpg' || $extension == 'jpeg' || $extension == 'jpe' || $extension == 'gif' || $extension == 'png' || $extension == 'bmp')) {
$post['attachimg'] = 1;
} else {
$post['attachimg'] = 0;
$post['attachsize'] = sizecount($post['filesize']);
}
}
$postlist[] = $post;
}
include template('viewthread_printable');
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -