Ich poste hier erstmal die Scripte:
Wenn ich nen Link in der Navigation klicke, öffnet er mir das ganze System in nem neuen Browserfenster. er soll es aber im selben Fenster wieder laden. Also nur so wie ein reload.
Was muss ich noch hinzufügen??
PHP Code:
// template.php << Hier werden die ganzen Templates aufgerufen
<?
{
include("inc/template_inc.php");
}
{
eval ("\$templ_header .= \"".gettemplate("header")."\";");
}
{
eval ("\$templ_navigation .= \"".gettemplate("navigation")."\";");
}
{
eval ("\$templ_main .= \"".gettemplate("$path")."\";");
}
{
eval ("\$templ_footer .= \"".gettemplate("footer")."\";");
}
eval ("dooutput(\"".gettemplate("index")."\");");
?>
// navigation.php << PHP File zur Navigation
<?
$SID = $HTTP_POST_VARS["SID"];
if ($user_online = false)
{
$nav_link[1] = "index.php";
$nav_name[1] = "Startseite";
$nav_link[2] = "index.php?path=login";
$nav_name[2] = "Login";
$nav_link[3] = "index.php?path=registration";
$nav_name[3] = "Registration";
}
if ($user_online = true)
{
include("inc/func_check.inc");
$nav_link[1] = "index.php?SID=$SID";
$nav_name[1] = "Startseite";
$nav_link[2] = "index.php?path=logout";
$nav_name[2] = "Logout";
$nav_link[3] = "index.php?SID=$SID?path=profil_edit";
$nav_name[3] = "Profil bearbeiten";
}
for ($i=0; $i<4; $i++)
{
if ($nav_link[$i] && $nav_name[$i])
{
$nav_links .= "<a href=\"$nav_link[$i]\" target = \"main\">$nav_name[$i]</a><br>";
}
}
?>
// index.php
<?
$SID = $HTTP_POST_VARS["SID"];
$path_get = $HTTP_GET_VARS["path"];
$end ="php";
if (strlen($path_get)<1)
{
$path = "main";
}
else
{
$path = $path_get;
}
include("$path.php");
include("navigation.php");
include("template.php");
?>
Was muss ich noch hinzufügen??
Comment