1
Hello, can someone help me with this?
I have created a file in root called test.php with the following code.
if (file_exists("mainfile.php")) {
include("mainfile.php");
}
elseif(file_exists("../mainfile.php")) {
include("../mainfile.php");
}
else {
include("../../mainfile.php");
}
include(XOOPS_ROOT_PATH . "/header.php");
$xoopsTpl->assign('xoops_showrblock', 0); // 1 display right blocks
$xoopsTpl->assign('xoops_showlblock', 0); // 1 display right blocks
?>
<{if $xoops_isuser == 0}>Please login now<{/if}>
include(XOOPS_ROOT_PATH . "/footer.php");
?>
But it doesnt work. It's only shows as code/text. Anything i have missed? It works from themes, but not from this page. But i dont want to have it in my theme.
Please help.
I love Xoops!