First commit
This commit is contained in:
26
source/archiver/forum/discuz.php
Normal file
26
source/archiver/forum/discuz.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
if(!defined('IN_DISCUZ')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
include loadarchiver('common/header');
|
||||
?>
|
||||
<div id="nav">
|
||||
<a href="./"><strong><?php echo $_G['setting']['bbname']; ?></strong></a>
|
||||
</div>
|
||||
<div id="content">
|
||||
<?php foreach($catlist as $key => $cat): ?>
|
||||
<h3><?php echo $cat['name']; ?></h3>
|
||||
<?php if(!empty($cat['forums'])): ?>
|
||||
<ul>
|
||||
<?php foreach($cat['forums'] as $fid): ?>
|
||||
<li><a href="?fid-<?php echo $fid; ?>.html"><?php echo $forumlist[$fid]['name']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<div id="end">
|
||||
<?php echo lang('forum/archiver', 'full_version'); ?>:
|
||||
<a href="../forum.php" target="_blank"><strong><?php echo $_G['setting']['bbname']; ?></strong></a>
|
||||
</div>
|
||||
<?php include loadarchiver('common/footer'); ?>
|
35
source/archiver/forum/forumdisplay.php
Normal file
35
source/archiver/forum/forumdisplay.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
if(!defined('IN_DISCUZ')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
include loadarchiver('common/header');
|
||||
?>
|
||||
<div id="nav">
|
||||
<a href="./"><?php echo $_G['setting']['navs'][2]['navname']; ?></a> › <?php echo $_G['forum']['name']; ?>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
<?php if(isset($sublist) && is_array($sublist) && count($sublist)): ?>
|
||||
<ul>
|
||||
<?php foreach($sublist as $sub): ?>
|
||||
<li><a href="?fid-<?php echo $sub['fid']; ?>.html"><?php echo dhtmlspecialchars($sub['name']); ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
<ul type="1" start="1">
|
||||
<?php foreach($_G['forum_threadlist'] as $thread): ?>
|
||||
<?php if($thread['isgroup'] == 0): ?>
|
||||
<li><a href="?tid-<?php echo $thread['tid']; ?>.html"><?php echo $thread['subject']; ?></a> (<?php echo $thread['replies'] . lang('forum/archiver', 'replies'); ?>)
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<div class="page">
|
||||
<?php echo arch_multi($_G['forum_threadcount'], $_G['tpp'], $page, "?fid-{$_G['fid']}.html"); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="end">
|
||||
<?php echo lang('forum/archiver', 'full_version'); ?>:
|
||||
<a href="../<?php echo is_array($_G['setting']['rewritestatus']) && in_array('forum_forumdisplay', $_G['setting']['rewritestatus']) ? rewriteoutput('forum_forumdisplay', 1, '', $_G['fid'], $page) : 'forum.php?mod=forumdisplay&fid='.$_G['fid'].'&page='.$page; ?>" target="_blank"><strong><?php echo $_G['forum']['name']; ?></strong></a>
|
||||
</div>
|
||||
<?php include loadarchiver('common/footer'); ?>
|
0
source/archiver/forum/index.htm
Normal file
0
source/archiver/forum/index.htm
Normal file
54
source/archiver/forum/viewthread.php
Normal file
54
source/archiver/forum/viewthread.php
Normal file
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
if(!defined('IN_DISCUZ')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
include loadarchiver('common/header');
|
||||
?>
|
||||
<div id="nav">
|
||||
<a href="./"><?php echo $_G['setting']['navs']['2']['navname']; ?></a> › <a href="?fid-<?php echo $_G['fid']; ?>.html"><?php echo $_G['forum']['name']; ?></a> › <?php echo $_G['forum_thread']['subject']; ?>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
<?php foreach($postlist as $post): ?>
|
||||
<?php if($hiddenreplies && !$post['first']) break; ?>
|
||||
<p class="author">
|
||||
<?php if(!$post['anonymous']): ?>
|
||||
<strong><?php echo $post['author']; ?></strong>
|
||||
<?php else: ?>
|
||||
<strong><i>Anonymous</i></strong>
|
||||
<?php endif; ?>
|
||||
<?php echo lang('forum/archiver', 'post_time') . ' ' . $post['dateline']; ?>
|
||||
</p>
|
||||
<?php if($_G['forum_threadpay'] && $post['first']): include template('forum/viewthread_pay'); ?>
|
||||
<?php elseif(!$_G['forum']['ismoderator'] && $_G['setting']['bannedmessages'] & 1 && (($post['authorid'] && !$post['username']) || ($_G['thread']['digest'] == 0 && ($post['groupid'] == 4 || $post['groupid'] == 5 || $post['memberstatus'] == '-1')))): ?>
|
||||
<?php elseif($post['status'] & 1): ?>
|
||||
<?php else: ?>
|
||||
<h3><?php echo $post['subject']; ?></h3>
|
||||
<?php echo archivermessage($post['message']); ?>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
<div class="page">
|
||||
<?php echo arch_multi($_G['forum_thread']['replies'] + 1, $_G['ppp'], $page, "?tid-{$_G['tid']}.html"); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="end">
|
||||
<?php echo lang('forum/archiver', 'full_version'); ?>:
|
||||
<a href="../<?php echo is_array($_G['setting']['rewritestatus']) && in_array('forum_viewthread', $_G['setting']['rewritestatus']) ? rewriteoutput('forum_viewthread', 1, '', $_G['tid'], $page) : 'forum.php?mod=viewthread&tid='.$_G['tid'].'&page='.$page; ?>" target="_blank"><strong><?php echo $_G['forum_thread']['subject']; ?></strong></a>
|
||||
</div>
|
||||
<?php include loadarchiver('common/footer');
|
||||
|
||||
function archivermessage($message) {
|
||||
if(strpos($message, '[/password]') !== FALSE) {
|
||||
return '';
|
||||
}
|
||||
return nl2br(preg_replace(
|
||||
array('/&(#\d{3,5};)/', "/\[hide=?\d*\](.*?)\[\/hide\]/is", "/\[postbg\]\s*([^\[\<\r\n;'\"\?\(\)]+?)\s*\[\/postbg\]/is", "/\[\/?\w+=?.*?\]/"),
|
||||
array('&\\1','<b>**** Hidden Message *****</b>',''),
|
||||
str_replace(
|
||||
array('&', '"', '<', '>', "\t", ' ', '', ' '),
|
||||
array('&', '"', '<', '>', ' ', ' ', ' '),
|
||||
$message)));
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user