First commit
This commit is contained in:
17
source/archiver/common/footer.php
Normal file
17
source/archiver/common/footer.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
if(!defined('IN_DISCUZ')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
?>
|
||||
<br />
|
||||
<center>
|
||||
<?php echo adshow('footerbanner//1').adshow('footerbanner//2').adshow('footerbanner//3'); ?>
|
||||
<div id="footer">
|
||||
Powered by <strong><a target="_blank" href="https://www.discuz.vip">Discuz! <?php echo $_G['setting']['version']; ?> Archiver</a></strong> <?php echo lang('template', 'copyright'); ?>
|
||||
<br />
|
||||
<br />
|
||||
</div>
|
||||
</center>
|
||||
</body>
|
||||
</html>
|
||||
<?php output(); ?>
|
39
source/archiver/common/header.php
Normal file
39
source/archiver/common/header.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
if(!defined('IN_DISCUZ')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
|
||||
ob_start();
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="<?php echo $_G['config']['output']['charset']; ?>" />
|
||||
<meta name="renderer" content="webkit" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<base href="<?php echo $_G['siteurl']; ?>archiver/" />
|
||||
<title><?php if(!empty($navtitle)): echo $navtitle.' - '; endif; if(empty($nobbname)): echo $_G['setting']['bbname'].' - '; endif;?> Powered by Discuz! Archiver</title>
|
||||
<?php echo $_G['setting']['seohead']; ?>
|
||||
|
||||
<meta name="keywords" content="<?php if(!empty($metakeywords)): echo dhtmlspecialchars($metakeywords); endif;?>" />
|
||||
<meta name="description" content="<?php if(!empty($metadescription)): echo dhtmlspecialchars($metadescription).' ';endif; echo ','.$_G['setting']['bbname'];?>" />
|
||||
<meta name="generator" content="Discuz! <?php echo $_G['setting']['version']; ?>" />
|
||||
<meta name="author" content="Discuz! Team and Comsenz UI Team" />
|
||||
<meta name="copyright" content="<?php echo lang('template', 'copyright_s'); ?>" />
|
||||
<style type="text/css">
|
||||
body {font-family: Verdana;FONT-SIZE: 12px;MARGIN: 0;color: #000000;background: #ffffff;}
|
||||
img {border:0;}
|
||||
li {margin-top: 8px;}
|
||||
.page {padding: 4px; border-top: 1px #EEEEEE solid}
|
||||
.author {background-color:#EEEEFF; padding: 6px; border-top: 1px #ddddee solid}
|
||||
#nav, #content, #end {padding: 8px; border: 1px solid #EEEEEE; clear: both; width: 95%; margin: auto; margin-top: 10px;}
|
||||
#header, #footer { margin-top: 20px; }
|
||||
#loginform {text-align: center;}
|
||||
</style>
|
||||
</head>
|
||||
<body vlink="#333333" link="#333333">
|
||||
<center id="header">
|
||||
<?php echo adshow('headerbanner'); ?>
|
||||
<h2><?php echo $_G['setting']['bbname']; ?>'s Archiver </h2>
|
||||
</center>
|
0
source/archiver/common/index.htm
Normal file
0
source/archiver/common/index.htm
Normal file
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)));
|
||||
}
|
||||
|
||||
?>
|
0
source/archiver/index.htm
Normal file
0
source/archiver/index.htm
Normal file
Reference in New Issue
Block a user