Project

General

Profile

« Previous | Next » 

Revision 317

Added by stefan about 18 years ago

Changed all line endings to Unix stlye

View differences:

add.php
1 1
<?php
2 2

  
3 3
// $Id$
4

  
4

  
5 5
/*
6 6

  
7 7
 Website Baker Project <http://www.websitebaker.org/>
......
21 21
 along with Website Baker; if not, write to the Free Software
22 22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23 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"); }
24
*/
28 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 29
$header = '<style type=\"text/css\">
30 30
.post_title, .post_date { border-bottom: 1px solid #DDDDDD; }
31 31
.post_title { font-weight: bold; font-size: 12px; color: #000000; }
......
90 90
<br />';
91 91
$commenting = 'none';
92 92
$use_captcha = true;
93
$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')");

94

  
93
$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')");
94

  
95 95
?>

Also available in: Unified diff