File include/config.php in CookBook

 
<?php
 
// Change this to the full path to your phpBB2 forum
$phpbb_root_path='/home/user/phpBB/';
 
define('IN_PHPBB', true);
include($phpbb_root_path.'extension.inc');
include($phpbb_root_path.'common.'.$phpEx);
include($phpbb_root_path.'config.'.$phpEx);
 
// Start session management
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
 
/* DB Config from phpBB */
$dbhost = 'db.yourhost.com';
$dbname = 'name';
$dbuser = 'user';
$dbpasswd = 'pass';
$cb_db = mysql_pconnect($dbhost, $dbuser, $dbpasswd);
mysql_select_db($dbname,$cb_db);
 
 
/* User config */
$cb_title = "The PHP Cookbook";
$cb_securityinclude = "Include/auth.php";
//$cb_securityinclude = "Include/auth.php";
 
 
?>
 
 
  code/cookbookincludeconfig.txt · Last modified: 2005/01/06 11:48
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki