2010-08-28, 12:00 PM
Pages: 1 2
2010-08-31, 12:45 AM
Where's the script located?
2010-08-31, 09:17 AM
./web/global.php calls (in order) :
- ./web/header_fr.php
- ./web/menu_fr.php
- ./web/footer_fr.php
The script which "breaks" the includes is placed in header_fr.php, but I go the same problem wherever it is.
header_fr.php is included, but menu_fr.php and footer_fr.php are not displayed.
If I put the script in menu_fr.php, header_fr.php and menu_fr.php are included, but not footer.php. Finally, if I put the script at the top of global.php, no inclusion in made.
- ./web/header_fr.php
- ./web/menu_fr.php
- ./web/footer_fr.php
The script which "breaks" the includes is placed in header_fr.php, but I go the same problem wherever it is.
header_fr.php is included, but menu_fr.php and footer_fr.php are not displayed.
If I put the script in menu_fr.php, header_fr.php and menu_fr.php are included, but not footer.php. Finally, if I put the script at the top of global.php, no inclusion in made.
2010-08-31, 10:57 AM
And where's the forum located? Inside the web folder too? In the first post you mention ../forum/global.php
2010-08-31, 01:19 PM
|
| forum/
| | global.php
| | ...
|
| web/
| | global.php
| | index.php
| | header_fr.php
| | ...
Do you understand ? :s
| forum/
| | global.php
| | ...
|
| web/
| | global.php
| | index.php
| | header_fr.php
| | ...
Do you understand ? :s
2010-08-31, 02:01 PM
Yes, what happens when you include ../forums/global.php?
2010-08-31, 02:06 PM
If I add include ("../forum/global.php"); before the script, I have :
If I add it after the script, it is as if I never added it (like the includes of the menu and the footer)...
Idem if I try to replace the require line by this include (with the define MyBB 1 before).
Quote:Direct initialization of this file is not allowed.
Please make sure IN_MYBB is defined.
If I add it after the script, it is as if I never added it (like the includes of the menu and the footer)...
Idem if I try to replace the require line by this include (with the define MyBB 1 before).
Pages: 1 2