| phpBB.php Use Of Break Illegal [message #2503] |
Sat, 04 April 2009 11:56  |
Threedays  Messages: 79 Registered: January 2009 Location: Australia |
Seeder |
|
|
Not sure if this is a trick that works, but it's illegal to use the break command within IF Statement. Break is supposed to be used within;
http://au2.php.net/manual/en/control-structures.break.php
| Quote: | break ends execution of the current for, foreach, while, do-while or switch structure.
|
In phpBB.php
define('IN_PORTAL', true);
if ($page=="posting.php" && $mode=="smilies") {
include $phpbb_root_path."posting.php";
break;
}
if ($page=="posting.php" && $mode=="popup") {
include $phpbb_root_path."posting.php";
break;
}
if ($page=="viewonline.php" && $mode=="whois") {
include $phpbb_root_path."viewonline.php";
break;
}
I'm taking out the breaks unless it's indented here to exit? I can remove the breaks as the conditions shouldn't match others is one if matched.
There are other breaks throughout the script. Any help welcome, Rob or others.
See me at ; http://conspiracyhub.com/
[Updated on: Sat, 04 April 2009 12:02] Report message to a moderator
|
|
|
|
|
|