Einchecken des Online-Codes

This commit is contained in:
2017-05-07 14:37:49 +00:00
parent 9c1d71cea6
commit 85cc95c574
635 changed files with 76260 additions and 0 deletions

43
inhalte/verwaltung.php Normal file
View File

@@ -0,0 +1,43 @@
<?php
if ( !isset ( $_GET['topic'] ) )
{
$_GET['topic'] == 'verwaltung';
}
$sql = "SELECT ID FROM US WHERE Kurz = '" . $_GET['topic'] . "';";
$result = $db->query( $sql );
$nt = $result->fetch_assoc( );
$sql = "SELECT * FROM Uns WHERE ID = '" . $nt['ID'] . "';";
$result = $db->query ( $sql );
$nt = $result->fetch_assoc ( );
?>
<h1><?php echo $nt['Titel']; ?></h1>
<?php
if ( 'ohne' != $nt['Foto_Layout'] )
{
if ( 'oben' == $nt['Foto_Layout'] )
{
echo '<img src="./img/' . $_GET['section'] . '_' . $_GET['topic'] . '.jpg" />';
echo '<br class="fix" />';
}
elseif ( 'links' == $nt['Foto_Layout'] )
{
echo '<img src="./img/' . $_GET['section'] . '_' . $_GET['topic'] . '.jpg" class="left" />';
}
elseif ( 'rechts' == $nt['Foto_Layout'] )
{
echo '<img src="./img/' . $_GET['section'] . '_' . $_GET['topic'] . '.jpg" class="right" />';
}
}
?>
<div><?php echo $nt['Text']; ?></div>
<?php
if ( 'unten' == $nt['Foto_Layout'] )
{
echo '<br class="fix" />';
echo '<img src="./img/' . $_GET['section'] . '_' . $_GET['topic'] . '.jpg" />';
}
?>