1 |
562
|
Ruebenwurz
|
<?php
|
2 |
|
|
|
3 |
|
|
// $Id$
|
4 |
|
|
|
5 |
|
|
/*
|
6 |
|
|
|
7 |
|
|
Website Baker Project <http://www.websitebaker.org/>
|
8 |
915
|
Ruebenwurz
|
Copyright (C) 2004-2009, Ryan Djurovich
|
9 |
562
|
Ruebenwurz
|
|
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 |
1053
|
ruud
|
<span style=\"visibility:[SHOW_READ_MORE];\"><a href=\"[LINK]\">[TEXT_READ_MORE]</a></span>
|
38 |
562
|
Ruebenwurz
|
</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 |
901
|
Ruebenwurz
|
<td valign="top"><b>[TEXT_POSTED_BY] [DISPLAY_NAME] ([USERNAME]) [TEXT_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 |
892
|
Ruebenwurz
|
</table>');
|
60 |
901
|
Ruebenwurz
|
$post_footer = '<p>[TEXT_LAST_CHANGED]: [MODI_DATE] [TEXT_AT] [MODI_TIME]</p>
|
61 |
|
|
<a href=\"[BACK]\">[TEXT_BACK]</a>';
|
62 |
562
|
Ruebenwurz
|
$comments_header = addslashes('<br /><br />
|
63 |
901
|
Ruebenwurz
|
<h2>[TEXT_COMMENTS]</h2>
|
64 |
562
|
Ruebenwurz
|
<table cellpadding="2" cellspacing="0" border="0" width="98%">');
|
65 |
|
|
$comments_loop = addslashes('<tr>
|
66 |
|
|
<td class="comment_title">[TITLE]</td>
|
67 |
901
|
Ruebenwurz
|
<td class="comment_info">[TEXT_BY] [DISPLAY_NAME] [TEXT_ON] [DATE] [TEXT_AT] [TIME]</td>
|
68 |
562
|
Ruebenwurz
|
</tr>
|
69 |
|
|
<tr>
|
70 |
|
|
<td colspan="2" class="comment_text">[COMMENT]</td>
|
71 |
|
|
</tr>');
|
72 |
|
|
$comments_footer = '</table>
|
73 |
901
|
Ruebenwurz
|
<br /><a href=\"[ADD_COMMENT_URL]\">[TEXT_ADD_COMMENT]</a>';
|
74 |
|
|
$comments_page = '<h1>[TEXT_COMMENT]</h1>
|
75 |
562
|
Ruebenwurz
|
<h2>[POST_TITLE]</h2>
|
76 |
|
|
<br />';
|
77 |
|
|
$commenting = 'none';
|
78 |
|
|
$use_captcha = true;
|
79 |
|
|
$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')");
|
80 |
|
|
|
81 |
|
|
?>
|