patrick227
Neues Mitglied
Hallo,
das Programm generiert mir ein simples Layout (ähnlich Blog, ohne Kommentare; txt01 ist ein Beitrag, txt01_short die Vorschau des Beitrages) habe es nach dem quake.net-Tutorial geschrieben und auf meine Bedürfnisse umgestalten.
Ich denke es ist selbsterklärend, möchte nur wissen was ich besser machen kann und ob es sicher ist:
lg Patrick
EDIT: auf meinem Testserver funktioniert es
das Programm generiert mir ein simples Layout (ähnlich Blog, ohne Kommentare; txt01 ist ein Beitrag, txt01_short die Vorschau des Beitrages) habe es nach dem quake.net-Tutorial geschrieben und auf meine Bedürfnisse umgestalten.
Ich denke es ist selbsterklärend, möchte nur wissen was ich besser machen kann und ob es sicher ist:
PHP:
<?php
$section = array();
$section['licence'] = 'inc/licence.html';
$section['contact'] = 'inc/contact.html';
$section['txt01_short'] = 'inc/txt01_short.html';
$section['txt02_short'] = 'inc/txt02_short.html';
$section['txt01'] = 'inc/txt01.html';
$section['txt02'] = 'inc/txt02.html';
include 'inc/header.html';
echo " <body>\n";
include 'inc/logo.html';
if (isset($_GET['section'], $section[$_GET['section']])) {
$ort = $_GET['section'];
if ($ort == 'contact') {
include $section['contact'];
} elseif ($ort == 'txt01') {
include $section['licence'];
include $section['txt01'];
} elseif ($ort == 'txt02') {
include $section['licence'];
include $section['txt01']; }
} else {
include $section['licence'];
include $section['txt02_short'];
include $section['txt01_short'];
}
include 'inc/footer.html';
echo " </body>\n";
echo "</html>\n";
?>
EDIT: auf meinem Testserver funktioniert es