Project

General

Profile

1 562 Ruebenwurz
<?php
2
3
// $Id$
4
5
/*
6
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2008, Ryan Djurovich
9
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
14
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
19
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23
24
*/
25
26
// Must include code to stop this file being access directly
27
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); }
28
29
$header = '<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"98%\">';
30
$post_loop = '<tr class=\"post_top\">
31
<td class=\"post_title\"><a href=\"[LINK]\">[TITLE]</a></td>
32 853 thorn
<td class=\"post_date\">[PUBLISHED_TIME], [PUBLISHED_DATE]</td>
33 562 Ruebenwurz
</tr>
34
<tr>
35
<td class=\"post_short\" colspan=\"2\">
36
[SHORT]
37
<a href=\"[LINK]\">[TEXT_READ_MORE]</a>
38
</td>
39
</tr>';
40
$footer = '</table>
41
<table cellpadding="0" cellspacing="0" border="0" width="98%" style="display: [DISPLAY_PREVIOUS_NEXT_LINKS]">
42
<tr>
43
<td width="35%" align="left">[PREVIOUS_PAGE_LINK]</td>
44
<td width="30%" align="center">[OF]</td>
45
<td width="35%" align="right">[NEXT_PAGE_LINK]</td>
46
</tr>
47
</table>';
48
$post_header = addslashes('<table cellpadding="0" cellspacing="0" border="0" width="98%">
49
<tr>
50
<td height="30"><h1>[TITLE]</h1></td>
51
<td rowspan="3" style="display: [DISPLAY_IMAGE]"><img src="[GROUP_IMAGE]" alt="[GROUP_TITLE]" /></td>
52
</tr>
53
<tr>
54 853 thorn
<td valign="top"><b>Posted by [DISPLAY_NAME] ([USERNAME]) on [PUBLISHED_DATE]</b></td>
55 562 Ruebenwurz
</tr>
56
<tr style="display: [DISPLAY_GROUP]">
57
<td valign="top"><a href="[BACK]">[PAGE_TITLE]</a> >> <a href="[BACK]?g=[GROUP_ID]">[GROUP_TITLE]</a></td>
58
</tr>
59
</table>
60
<p style="text-align: justify;">');
61
$post_footer = '</p><p>Last changed: [MODI_DATE] at [MODI_TIME]</p>
62
<a href=\"[BACK]\">Back</a>';
63
$comments_header = addslashes('<br /><br />
64
<h2>Comments</h2>
65
<table cellpadding="2" cellspacing="0" border="0" width="98%">');
66
$comments_loop = addslashes('<tr>
67
<td class="comment_title">[TITLE]</td>
68
<td class="comment_info">By [DISPLAY_NAME] on [DATE] at [TIME]</td>
69
</tr>
70
<tr>
71
<td colspan="2" class="comment_text">[COMMENT]</td>
72
</tr>');
73
$comments_footer = '</table>
74
<br /><a href=\"[ADD_COMMENT_URL]\">Add Comment</a>';
75
$comments_page = '<h1>Comment</h1>
76
<h2>[POST_TITLE]</h2>
77
<br />';
78
$commenting = 'none';
79
$use_captcha = true;
80
$database->query("INSERT INTO ".TABLE_PREFIX."mod_news_settings (section_id,page_id,header,post_loop,footer,post_header,post_footer,comments_header,comments_loop,comments_footer,comments_page,commenting,use_captcha) VALUES ('$section_id','$page_id','$header','$post_loop','$footer','$post_header','$post_footer','$comments_header','$comments_loop','$comments_footer','$comments_page','$commenting','$use_captcha')");
81
82
?>