Location: PHPKode > projects > RTNews > rtnews/config.php
<?php 
/**********************************************
* Copyright (c) 2006 Roberto Toldo
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software 
* and associated documentation files (the "Software"), to deal in the Software without restriction, 
* including without limitation the rights to use, copy, modify, merge, publish, distribute, 
* sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, 
* subject to the following conditions:
* The above copyright notice and this permission notice shall be included in all copies 
* or substantial portions of the Software.
* 
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
***********************************************/

// Mysql database params

$db_host = '';
$db_name = '';
$db_user = '';
$db_password = '';

//How many news in a page:

$step_news = 10;

//Name of the page with the guestbook:

$page_news = 'index.php';

// INSERT HERE YOUR COSTUM HTML CODE.
// write %%DATE%% %%AUTHOR%% %%MAIL%% %%TEXT%% %%TITLE%% 
// where you want to insert date, author, mail, news and title..
// DO NOT CHANGE THIS ENTRY IF YOU'RE NOT SURE WHAT YOU'RE DOING

$news_template = '
<table width="85%" border="1">
  <tr align="center">
    <td width="33%"> %%DATE%%
</td>
<td width="34%"><b> %%TITLE%%
 </b></td>  
    <td width="33%"><a href="mailto: %%MAIL%%">
%%AUTHOR%% </a></td>
  </tr>
  <tr align="left">
    <td colspan="3">%%TEXT%%
	</td>
  </tr>
</table> <br>
';

?>
Return current item: RTNews