OSDN Git Service

Added AnnouncementTopic to iThemes. :P
[idb/iDB.git.git] / topic.php
1 <?php
2 /*
3     This program is free software; you can redistribute it and/or modify
4     it under the terms of the Revised BSD License.
5
6     This program is distributed in the hope that it will be useful,
7     but WITHOUT ANY WARRANTY; without even the implied warranty of
8     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
9     Revised BSD License for more details.
10
11     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
12     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
13
14     $FileInfo: topic.php - Last Update: 09/11/2010 SVN 538 - Author: cooldude2k $
15 */
16 if(ini_get("register_globals")) {
17 require_once('inc/misc/killglobals.php'); }
18 $checklowview = true;
19 require('preindex.php');
20 $usefileext = $Settings['file_ext'];
21 if($ext=="noext"||$ext=="no ext"||$ext=="no+ext") { $usefileext = ""; }
22 $filewpath = $exfile['topic'].$usefileext.$_SERVER['PATH_INFO'];
23 ?>
24
25 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
26 </head>
27 <body>
28 <?php if($_GET['act']!="lowview") {
29 require($SettDir['inc'].'navbar.php'); }
30 $ForumCheck = null;
31 if($_GET['act']==null)
32 { $_GET['act']="view"; }
33 if(!is_numeric($_GET['id']))
34 { $_GET['id']="1"; }
35 if($_GET['act']=="view"||$_GET['act']=="create"||$_GET['act']=="delete"||
36         $_GET['act']=="pin"||$_GET['act']=="unpin"||$_GET['act']=="move"||
37         $_GET['act']=="open"||$_GET['act']=="close"||$_GET['act']=="announce")
38 { require($SettDir['inc'].'replies.php'); }
39 if($_GET['act']=="edit"||$_GET['act']=="makereply"||$_POST['act']=="makereplies"||
40         $_GET['act']=="editreply"||$_POST['act']=="editreplies")
41 { require($SettDir['inc'].'replies.php'); }
42 if($_GET['act']=="lowview")
43 { require($SettDir['inc'].'lowreplies.php'); }
44 require($SettDir['inc'].'endpage.php');
45 if(!isset($TopicName)) { $TopicName = null; }
46 ?>
47
48 </body>
49 </html>
50 <?php 
51 if($_GET['act']=="view") {
52 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." ".$TopicName,$Settings['use_gzip'],$GZipEncode['Type']); } 
53 if($_GET['act']=="lowview") {
54 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." ".$TopicName,$Settings['use_gzip'],$GZipEncode['Type']); }
55 if($_GET['act']=="create") {
56 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Replying to ".$TopicName,$Settings['use_gzip'],$GZipEncode['Type']); }
57 if($_GET['act']=="delete") {
58 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Deleting a Post",$Settings['use_gzip'],$GZipEncode['Type']); }
59 if($_GET['act']=="edit") {
60 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Editing a Post",$Settings['use_gzip'],$GZipEncode['Type']); }
61 if($_GET['act']=="editreply"&&$_POST['act']=="editreplies") {
62 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Editing a Post",$Settings['use_gzip'],$GZipEncode['Type']); }
63 if($_GET['act']=="pin") {
64 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Pinning a Topic",$Settings['use_gzip'],$GZipEncode['Type']); }
65 if($_GET['act']=="unpin") {
66 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Unpinning a Topic",$Settings['use_gzip'],$GZipEncode['Type']); }
67 if($_GET['act']=="open") {
68 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Opening a Topic",$Settings['use_gzip'],$GZipEncode['Type']); }
69 if($_GET['act']=="close") {
70 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Closing a Topic",$Settings['use_gzip'],$GZipEncode['Type']); }
71 if($_GET['act']=="makereply"&&$_POST['act']=="makereplies") {
72 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Replying to ".$TopicName,$Settings['use_gzip'],$GZipEncode['Type']); }
73 ?>