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

View File

@@ -0,0 +1,31 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
$link = "../view.php?obj=" . $_POST['ID'];
?>
<h1>Anzeige im Popupfenster...</h1>
<p>Falls sich kein Popupfenster öffnet, deaktivieren Sie Ihren Popup-Blocker für diese Domain.</p>
<script type="text/javascript">
MeinFenster = window.open("<?php echo $link; ?>", "Zweitfenster", "width=800,height=600,scrollbars=yes");
MeinFenster.focus();
</script>
<?php
if ( $_SESSION['IsAdmin'] )
{
$sql = "SELECT * FROM objekte WHERE ID = '" . $_POST['ID'] . "' LIMIT 1;";
$result = $db->query ( $sql );
$nt = $result->fetch_assoc ();
?>
<form action="index.php?section=objekte&t=<?php echo $_GET['t']; ?>" method="post">
<fieldset>
<legend>bestehendes Objekt ...</legend>
<input type="hidden" name="ID" value="<?php echo $nt['ID']; ?>" />
<br />
<input type="submit" name="formaction" value="De- / Aktivieren" />
</fieldset>
</form>
<?php
}
}
?>