[PHP] phpbb multiforums

2004-09-01 Thread Xongoo!com: Central unit
Holla friends,

I have a code which separates phpBB forums, but
run into problems because of cookies when
*switching between forums*. Should I get rid of
cookies entirely (I am rewriting entire code to
passing $forum variable) or something may be done
(still I am learning php :)

Code below:

if ($forum==true) {
if(is_file($forum.php)) {
setcookie (forum, $forum, time()+31536000);
include($forum.php);
include($phpbb_root_path . 'common.'.$phpEx);
} else {
header(Location: index.php);
exit;
}
} else {
include($phpbb_root_path . 'config.'.$phpEx);
include($phpbb_root_path . 'common.'.$phpEx);
}


--
Tadas Talaikis
[EMAIL PROTECTED]
http://www.vongoo.com
(zah! free phpbb forum)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] phpbb multiforums

2004-09-01 Thread raditha dissanayake
Xongoo!com: Central unit wrote:
Holla friends,
I have a code which separates phpBB forums, but
run into problems because of cookies when
*switching between forums*. Should I get rid of
cookies entirely (I am rewriting entire code to
passing $forum variable) or something may be done
(still I am learning php :)
 

Please try the phpBB group
--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php