|
Hallo liebe leute !!
Ich habe mal eine frage und zwar :
Ich habe mir ein kleines template gemacht also mit einer inhalt wo die
section drinn ist und $dateien halt !!
Aber mein prob ist das wenn ich auf die seite gehen und der fehler kommt !!
Parse error: parse error, unexpected $ in /home/www/web2/html/inhalt.php on line 51
Warum das denn das ist die zeile:
?>
ich poste mal meinen kleinen code :
<?php
$dateien = array();
$dateine['News'] = "corenews2/shownews.php";
$dateien['Gbook'] = "gbook/gbook.php";
$dateien['Forum'] = "dforum/forum.php";
$dateien['CS-Serverstats'] = "csstats/csstats.php";
$dateien['Fight'] = "fight_us.php";
?>
<?php
if(isset($_GET['section'])) {
switch($_GET['section']) {
case "News";
include "corenews2/shownews.php";
break;
case "Gbook";
include "gbook/gbook.php";
break;
case "Forum";
include "dforum/forum.php";
break;
case "Fight";
include "fight_us.php";
break;
}
}else{
include "index.php"
?>
<?php
if(isset($_GET['section']) AND isset($dateien[$_GET['section']])) {
include $dateien[$_GET['section']];
} else {
include $dateien['News'];
}
?>
<?php
if(isset($_GET['section']) AND isset($dateien[$_GET['section']])) {
include $dateien[$_GET['section']];
} else {
include $dateien['Fight'];
}
?>
Ich hoffe ihr könnt mir helfen !!
gruß sh0rt
|
|