| 1 |
1108
|
Ruebenwurz
|
<?php
|
| 2 |
|
|
|
| 3 |
|
|
// $Id$
|
| 4 |
|
|
|
| 5 |
|
|
/*
|
| 6 |
|
|
|
| 7 |
|
|
Website Baker Project <http://www.websitebaker.org/>
|
| 8 |
|
|
Copyright (C) 2004-2009, 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\" class=\"loop-header\">'."\n";
|
| 30 |
1157
|
Luisehahne
|
$post_loop = '<tr class=\"post-top\">
|
| 31 |
|
|
<td class=\"post-title\"><a href=\"[LINK]\">[TITLE]</a></td>
|
| 32 |
|
|
<td class=\"post-date\">[PUBLISHED_DATE], [PUBLISHED_TIME]</td>
|
| 33 |
1108
|
Ruebenwurz
|
</tr>
|
| 34 |
|
|
<tr>
|
| 35 |
1157
|
Luisehahne
|
<td class=\"post-short\" colspan=\"2\">
|
| 36 |
1108
|
Ruebenwurz
|
[SHORT]
|
| 37 |
|
|
<span style=\"visibility:[SHOW_READ_MORE];\"><a href=\"[LINK]\">[TEXT_READ_MORE]</a></span>
|
| 38 |
|
|
</td>
|
| 39 |
|
|
</tr>';
|
| 40 |
|
|
$footer = '</table>
|
| 41 |
|
|
<table cellpadding="0" cellspacing="0" class="page-header" style="display: [DISPLAY_PREVIOUS_NEXT_LINKS]">
|
| 42 |
|
|
<tr>
|
| 43 |
|
|
<td class="page-left">[PREVIOUS_PAGE_LINK]</td>
|
| 44 |
|
|
<td class="page-center">[OF]</td>
|
| 45 |
|
|
<td class="page-right">[NEXT_PAGE_LINK]</td>
|
| 46 |
|
|
</tr>
|
| 47 |
|
|
</table>';
|
| 48 |
|
|
$post_header = addslashes('<table cellpadding="0" cellspacing="0" class="post-header">
|
| 49 |
|
|
<tr>
|
| 50 |
|
|
<td><h1>[TITLE]</h1></td>
|
| 51 |
|
|
<td rowspan="3" style="display: [DISPLAY_IMAGE]">[GROUP_IMAGE]</td>
|
| 52 |
|
|
</tr>
|
| 53 |
|
|
<tr>
|
| 54 |
|
|
<td class="public-info"><b>[TEXT_POSTED_BY] [DISPLAY_NAME] ([USERNAME]) [TEXT_ON] [PUBLISHED_DATE]</b></td>
|
| 55 |
|
|
</tr>
|
| 56 |
|
|
<tr style="display: [DISPLAY_GROUP]">
|
| 57 |
|
|
<td class="group-page"><a href="[BACK]">[PAGE_TITLE]</a> >> <a href="[BACK]?g=[GROUP_ID]">[GROUP_TITLE]</a></td>
|
| 58 |
|
|
</tr>
|
| 59 |
|
|
</table>');
|
| 60 |
|
|
$post_footer = '<p>[TEXT_LAST_CHANGED]: [MODI_DATE] [TEXT_AT] [MODI_TIME]</p>
|
| 61 |
|
|
<a href=\"[BACK]\">[TEXT_BACK]</a>';
|
| 62 |
|
|
$comments_header = addslashes('<br /><br />
|
| 63 |
|
|
<h2>[TEXT_COMMENTS]</h2>
|
| 64 |
|
|
<table cellpadding="2" cellspacing="0" class="comment-header">');
|
| 65 |
|
|
$comments_loop = addslashes('<tr>
|
| 66 |
|
|
<td class="comment_title">[TITLE]</td>
|
| 67 |
|
|
<td class="comment_info">[TEXT_BY] [DISPLAY_NAME] [TEXT_ON] [DATE] [TEXT_AT] [TIME]</td>
|
| 68 |
|
|
</tr>
|
| 69 |
|
|
<tr>
|
| 70 |
1157
|
Luisehahne
|
<td colspan="2" class="comment-text">[COMMENT]</td>
|
| 71 |
1108
|
Ruebenwurz
|
</tr>');
|
| 72 |
|
|
$comments_footer = '</table>
|
| 73 |
|
|
<br /><a href=\"[ADD_COMMENT_URL]\">[TEXT_ADD_COMMENT]</a>';
|
| 74 |
|
|
$comments_page = '<h1>[TEXT_COMMENT]</h1>
|
| 75 |
|
|
<h2>[POST_TITLE]</h2>
|
| 76 |
|
|
<br />';
|
| 77 |
|
|
$commenting = 'none';
|
| 78 |
|
|
$use_captcha = true;
|
| 79 |
1157
|
Luisehahne
|
|
| 80 |
1108
|
Ruebenwurz
|
$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 |
562
|
Ruebenwurz
|
?>
|