Hallo Leute!
Also endweder bin ich blind oder :bindoof:
Will gerade ne Seite ohne den MX Header und Footer machen, aber es will einfach nicht klappen! :mad:
Hier mal der Code:
functions.php
include_once("http://$HTTP_HOST/config.php");
$GLOBALS["module_name"] = basename(dirname(__FILE__));
$ThemeSel = $mxConf['Default_Theme'];
function header(){
global $bgcolor2, $textcolor2, $ThemeSel;
echo "<html>\n<head>\n";
echo "<LINK REL=\"StyleSheet\" HREF=\"http://$HTTP_HOST/themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n";
if (@file_exists("themes/$ThemeSel/style/style.php")) {
echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.php\" TYPE=\"text/css\">\n";
}
}
function body(){
global $$bgcolor2, $bgcolor1,$bgcolor3, $textcolor1;
echo "\n</head>\n<body bgcolor='$b_bodycolor' text='$b_textcolor' link='$b_textcolor' style='background-color: $b_bodycolor; color: $b_textcolor; margin: 0;'>\n";
}
function footer() {
echo "</body>\n</html>";
}
Die Seite die aufgerufen wird:
test.php
include_once("http://$HTTP_HOST/modules/Flirt/functions.php");
$uname =$uname;
header();
body();
echo"".$uname."";
footer();
Wenn ich die Seite nun aufrufe wird jedoch immer die ganze Seite geladen, also die index.php aus dem Root-Verzeichniss!
:wall: :crash: :knockout:
Vielleicht sieht ja einer von euch wo das Problem liegt, ich seh es nämlich im Moment nicht!
Bin für jede Hilfe dankbar!
Hmmm ....
Ich denke, wenn du es so machst :
Zitatinclude_once("http://$HTTP_HOST/config.php");
ist es dasselbe als wenn du die config.php direkt aufrufst.
Dafür steht aber in den letzten Zeilen der config.php diese Abbruchbedingung :
Zitatif(eregi("config.php", $SERVER['PHP_SELF'])){
Header("Location: index.php");
die();
}
MfG
jubilee
Zitatif(eregi("config.php", $SERVER['PHP_SELF'])){
Header("Location: index.php");
die();
}
Na dann ist mir alles klar! :D
Dachte schon ich spinne!
:nocomment: