| 1 | 1457 | Luisehahne | <?php
 | 
      
        | 2 |  |  | /**
 | 
      
        | 3 |  |  |  *
 | 
      
        | 4 |  |  |  * @category        modules
 | 
      
        | 5 |  |  |  * @package         news
 | 
      
        | 6 |  |  |  * @author          WebsiteBaker Project
 | 
      
        | 7 |  |  |  * @copyright       2009-2011, Website Baker Org. e.V.
 | 
      
        | 8 |  |  |  * @link			http://www.websitebaker2.org/
 | 
      
        | 9 |  |  |  * @license         http://www.gnu.org/licenses/gpl.html
 | 
      
        | 10 |  |  |  * @platform        WebsiteBaker 2.8.x
 | 
      
        | 11 |  |  |  * @requirements    PHP 5.2.2 and higher
 | 
      
        | 12 |  |  |  * @version         $Id$
 | 
      
        | 13 |  |  |  * @filesource		$HeadURL$
 | 
      
        | 14 |  |  |  * @lastmodified    $Date$
 | 
      
        | 15 |  |  |  *
 | 
      
        | 16 |  |  |  */
 | 
      
        | 17 |  |  | 
 | 
      
        | 18 |  |  | // Must include code to stop this file being access directly
 | 
      
        | 19 | 1538 | Luisehahne | /* -------------------------------------------------------- */
 | 
      
        | 20 |  |  | if(defined('WB_PATH') == false)
 | 
      
        | 21 |  |  | {
 | 
      
        | 22 |  |  | 	// Stop this file being access directly
 | 
      
        | 23 |  |  | 		die('<head><title>Access denied</title></head><body><h2 style="color:red;margin:3em auto;text-align:center;">Cannot access this file directly</h2></body></html>');
 | 
      
        | 24 |  |  | }
 | 
      
        | 25 |  |  | /* -------------------------------------------------------- */
 | 
      
        | 26 | 1457 | Luisehahne | 
 | 
      
        | 27 | 1868 | Luisehahne | $header = '<table class=\"loop-header\">'."\n";
 | 
      
        | 28 | 1457 | Luisehahne | $post_loop = '<tr class=\"post-top\">
 | 
      
        | 29 |  |  | <td class=\"post-title\"><a href=\"[LINK]\">[TITLE]</a></td>
 | 
      
        | 30 |  |  | <td class=\"post-date\">[PUBLISHED_DATE], [PUBLISHED_TIME]</td>
 | 
      
        | 31 |  |  | </tr>
 | 
      
        | 32 |  |  | <tr>
 | 
      
        | 33 |  |  | <td class=\"post-short\" colspan=\"2\">
 | 
      
        | 34 |  |  | [SHORT]
 | 
      
        | 35 |  |  | <span style=\"visibility:[SHOW_READ_MORE];\"><a href=\"[LINK]\">[TEXT_READ_MORE]</a></span>
 | 
      
        | 36 |  |  | </td>
 | 
      
        | 37 |  |  | </tr>';
 | 
      
        | 38 |  |  | $footer = '</table>
 | 
      
        | 39 | 1868 | Luisehahne | <table class="page-header" style="display: [DISPLAY_PREVIOUS_NEXT_LINKS]">
 | 
      
        | 40 | 1457 | Luisehahne | <tr>
 | 
      
        | 41 |  |  | <td class="page-left">[PREVIOUS_PAGE_LINK]</td>
 | 
      
        | 42 |  |  | <td class="page-center">[OF]</td>
 | 
      
        | 43 |  |  | <td class="page-right">[NEXT_PAGE_LINK]</td>
 | 
      
        | 44 |  |  | </tr>
 | 
      
        | 45 |  |  | </table>';
 | 
      
        | 46 |  |  | $post_header = addslashes('<table cellpadding="0" cellspacing="0" class="post-header">
 | 
      
        | 47 |  |  | <tr>
 | 
      
        | 48 |  |  | <td><h1>[TITLE]</h1></td>
 | 
      
        | 49 |  |  | <td rowspan="3" style="display: [DISPLAY_IMAGE]">[GROUP_IMAGE]</td>
 | 
      
        | 50 |  |  | </tr>
 | 
      
        | 51 |  |  | <tr>
 | 
      
        | 52 |  |  | <td class="public-info"><b>[TEXT_POSTED_BY] [DISPLAY_NAME] ([USERNAME]) [TEXT_ON] [PUBLISHED_DATE]</b></td>
 | 
      
        | 53 |  |  | </tr>
 | 
      
        | 54 |  |  | <tr style="display: [DISPLAY_GROUP]">
 | 
      
        | 55 |  |  | <td class="group-page"><a href="[BACK]">[PAGE_TITLE]</a> >> <a href="[BACK]?g=[GROUP_ID]">[GROUP_TITLE]</a></td>
 | 
      
        | 56 |  |  | </tr>
 | 
      
        | 57 |  |  | </table>');
 | 
      
        | 58 |  |  | $post_footer = '<p>[TEXT_LAST_CHANGED]: [MODI_DATE] [TEXT_AT] [MODI_TIME]</p>
 | 
      
        | 59 |  |  | <a href=\"[BACK]\">[TEXT_BACK]</a>';
 | 
      
        | 60 |  |  | $comments_header = addslashes('<br /><br />
 | 
      
        | 61 |  |  | <h2>[TEXT_COMMENTS]</h2>
 | 
      
        | 62 | 1868 | Luisehahne | <table class="comment-header">');
 | 
      
        | 63 | 1457 | Luisehahne | $comments_loop = addslashes('<tr>
 | 
      
        | 64 |  |  | <td class="comment_title">[TITLE]</td>
 | 
      
        | 65 |  |  | <td class="comment_info">[TEXT_BY] [DISPLAY_NAME] [TEXT_ON] [DATE] [TEXT_AT] [TIME]</td>
 | 
      
        | 66 |  |  | </tr>
 | 
      
        | 67 |  |  | <tr>
 | 
      
        | 68 |  |  | <td colspan="2" class="comment-text">[COMMENT]</td>
 | 
      
        | 69 |  |  | </tr>');
 | 
      
        | 70 |  |  | $comments_footer = '</table>
 | 
      
        | 71 |  |  | <br /><a href=\"[ADD_COMMENT_URL]\">[TEXT_ADD_COMMENT]</a>';
 | 
      
        | 72 |  |  | $comments_page = '<h1>[TEXT_COMMENT]</h1>
 | 
      
        | 73 |  |  | <h2>[POST_TITLE]</h2>
 | 
      
        | 74 |  |  | <br />';
 | 
      
        | 75 |  |  | $commenting = 'none';
 | 
      
        | 76 |  |  | $use_captcha = true;
 | 
      
        | 77 |  |  | 
 | 
      
        | 78 |  |  | $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')");
 |