But in the process, I became unable to pass variables through my url. I have no idea of why...Because if I remove the PHPBB session addon I got, it all works fine.
I hope some of you can enlighten me a bit. Here are some of my code:
(Index.php)
Code: Select all
<?
session_start();
define('IN_PHPBB', true);
$phpbb_root_path = './forum/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
if( $userdata['session_logged_in'] )
{
include('index2.'.$phpEx);
} else {
include('index2.'.$phpEx);
}
?>Code: Select all
<?
if (!defined('IN_PHPBB')) {
die ("You can't access this file directly...");
}
define('MODULE_FILE', true);
require('int.config.php');
mysql_connect($server, $db_user, $db_pass);
mysql_select_db("$database");
include('temp/header.php');
include('temp/menu.php');
include('temp/side.php');
include('temp/main.php');
include('temp/footer.php');
?>My main.php is a switch function:
Code: Select all
<?
if (!defined('IN_PHPBB')) {
die ("You can't access this file directly...");
}
switch ($name) {
case "news":
include 'lib/news/news.php';
break;
...etc...
default:
include 'lib/news/news.php';
}
?>Hope some of you can!
Thanks in advance!