Brause-Junior
Mitglied
Eingebunden per:
Links.php:
Da wo er erscheinen soll kommt hin:
PHP:
<?php include('Intern/Links.php'); ?>
Links.php:
PHP:
<?php
$fileToInclude = "./Intern/Start.inc.php";
if (isset($_GET["site"]))
{
$site = $_GET["site"];
if (strlen($site) != 0)
{
if ($site == "Cloud")
$fileToInclude = "Cloud.inc.php";
if ($site == "Datenschutz")
$fileToInclude = "Datenschutz.inc.php";
if ($site == "Disclaimer")
$fileToInclude = "Disclaimer.inc.php";
if ($site == "E-Mail")
$fileToInclude = "E-Mail.inc.php";
if ($site == "Freundebuch eintragen")
$fileToInclude = "Freundebuch_eintragen.inc.php";
if ($site == "Impressum")
$fileToInclude = "Impressum.inc.php";
if ($site == "Kontakt")
$fileToInclude = "Kontakt.inc.php";
if ($site == "Profil")
$fileToInclude = "Profil.inc.php";
if ($site == "Team")
$fileToInclude = "Team.inc.php";
if ($site == "Zertifikate")
$fileToInclude = "Zertifikate.inc.php";
}
}
?>
Da wo er erscheinen soll kommt hin:
PHP:
<?php include($fileToInclude); ?>