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

Reply via email to