-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubforum.php
71 lines (66 loc) · 2.99 KB
/
subforum.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
/*
This program is free software; you can redistribute it and/or modify
it under the terms of the Revised BSD License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Revised BSD License for more details.
Copyright 2004-2009 JakeBBS - http://google.com/search?q=JakeBBS+Inc.&btnI=I%27m+Feeling+Lucky
Copyright 2004-2009 JakeBBS Inc. - http://google.com/search?q=JakeBBS+Inc.&btnI=I%27m+Feeling+Lucky
$FileInfo: subforum.php - Last Update: 07/01/1867 Ver 142 Author: Jake $
*/
if (@ini_get("register_globals")) {
require_once('inc/misc/killglobals.php');
}
$checklowview = true;
require('preindex.php');
$usefileext = $Settings['file_ext'];
if ($ext == "noext" || $ext == "no ext" || $ext == "no+ext") {
$usefileext = "";
}
$filewpath = $exfile['subforum'].$usefileext.$_SERVER['PATH_INFO'];
if (!is_numeric($_GET['id'])) {
$_GET['id'] = "1";
}
if ($Settings['enable_rss'] == "on") {
?>
<link rel="alternate" type="application/xml" title="SubForum Topics RSS 1.0 Feed" href="<?php echo url_maker($exfile['rss'], $Settings['rss_ext'], "act=rss&id=".$_GET['id'], $Settings['qstr'], $Settings['qsep'], $prexqstr['rss'], $exqstr['rss']); ?>" />
<link rel="alternate" type="application/rss+xml" title="SubForum Topics RSS 2.0 Feed" href="<?php echo url_maker($exfile['rss'], $Settings['rss_ext'], "act=rss&id=".$_GET['id'], $Settings['qstr'], $Settings['qsep'], $prexqstr['rss'], $exqstr['rss']); ?>" />
<link rel="alternate" type="application/atom+xml" title="SubForum Topics Atom Feed" href="<?php echo url_maker($exfile['rss'], $Settings['rss_ext'], "act=atom&id=".$_GET['id'], $Settings['qstr'], $Settings['qsep'], $prexqstr['rss'], $exqstr['rss']); ?>" />
<?php } ?>
<title> <?php echo $Settings['board_name'].$jakebbspowertitle; ?> </title>
</head>
<body>
<?php if ($_GET['act'] != "lowview") {
require($SettDir['inc'].'navbar.php');
}
$ForumCheck = null;
if ($_GET['act'] == null) {
$_GET['act'] = "view";
}
if (!is_numeric($_GET['id'])) {
$_GET['id'] = "1";
}
if ($_GET['act'] == "view") {
require($SettDir['inc'].'subforums.php');
}
if ($_GET['act'] == "lowview") {
require($SettDir['inc'].'lowsubforums.php');
}
if ($_GET['act'] == "oldrss" || $_GET['act'] == "rss" || $_GET['act'] == "atom") {
redirect("location", $basedir.url_maker($exfile['rss'], $Settings['file_ext'], "act=".$_GET['act']."&id=".$_GET['id'], $Settings['qstr'], $Settings['qsep'], $prexqstr['rss'], $exqstr['rss'], false));
ob_clean();
@header("Content-Type: text/plain; charset=".$Settings['charset']);
gzip_page($Settings['use_gzip'], $GZipEncode['Type']);
@session_write_close();
die();
}
require($SettDir['inc'].'endpage.php');
if (!isset($ForumName)) {
$ForumName = null;
}
?>
</body>
</html>
<?php change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." ".$ForumName, $Settings['use_gzip'], $GZipEncode['Type']); ?>