Current File : /home/users/kundensystem/www/licence_messages.php |
<?php
session_start();
include './inc/config.inc.php';
include './inc/funktionen.php';
include './inc/version.php';
if(!isset($_GET['id'])||$_GET['id']==''){
?><script>location.href="./index.php"</script><?php
exit;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
<head>
<META charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<title>Message-System</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Swiper/5.4.5/css/swiper.min.css">
<link rel='stylesheet' href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" crossorigin="anonymous">
<link href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/base/jquery-ui.css" rel="stylesheet" />
<link href="https://cdn.datatables.net/1.10.22/css/dataTables.bootstrap4.min.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Swiper/5.4.5/js/swiper.min.js"></script>
<script src='https://cdn.rawgit.com/botmonster/jquery-bootpag/master/lib/jquery.bootpag.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/bootbox.js/5.5.2/bootbox.min.js'></script>
<script src="https://cdn.datatables.net/1.10.22/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.10.22/js/dataTables.bootstrap4.min.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-FFGG8PVYTP"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-FFGG8PVYTP');
</script>
</head>
<body>
<?php
$ident = trim($_GET['id']);
if(strlen($ident) != 5){
exit;
} else {
$query_sql = mysqli_query($conn,"SELECT passabfrage, art, breite
FROM ".$dbtable14."
WHERE ident = '".NoI($ident)."' ");
$ROW=mysqli_fetch_row($query_sql);
$art = $ROW[1];
$breite = $ROW[2];
if($ROW[0] == 'ja'){?>
<TABLE BORDER=0 CELLSPACING=5 CELLPADDING=5 WIDTH="<?php echo $breite; ?>" CLASS="back_x">
<TR VALIGN=TOP ALIGN=left>
<td width="100%" class="einsb">
<br>
<br>
<center>
<form name="Login" action="message.php?action=login" method="post">
<table cellpadding="0" width="50%">
<tr>
<td width="50%" class="einsa">Passwort: </td>
<td width="50%"><input type="text" name="pass" size="20"></td>
</tr>
<tr>
<td width="50%"></td>
<td width="50%"><br></td>
</tr>
<tr>
<td width="50%"><input type="hidden" name="ident" value="<?php echo $ident ?>"></td>
<td width="50%"><input type="submit" class="submit" value=" LogIn..."></td>
</tr>
</table>
</form>
<br>
<br>
</center>
<br><br><br>
</TD>
</TR>
</TABLE>
<?php
} else { ?>
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="<?php echo $breite; ?>" CLASS="back_x">
<TR VALIGN=TOP ALIGN=left>
<td width="100%" class="einsa">
<?php
$query_sql = mysqli_query($conn,"SELECT siteid, datum, ueberschrift, infotext, globalx
FROM ".$dbtable13."
WHERE id = '".NoI($ident)."'
AND ziel = '".$art."'
AND globalx = 'ja'
ORDER BY globalx DESC, siteid DESC ");
if(mysqli_num_rows($query_sql) >= 1)
{
while($ROW=mysqli_fetch_assoc($query_sql))
{
$siteid = $ROW['siteid'];
$datum = $ROW['datum'];
$ueber = $ROW['ueberschrift'];
$infotext = $ROW['infotext'];
if($ROW['globalx'] == 'ja')
{
$klasse = 'antipp';
$zutext = ' - <span class="alert">WICHTIG!</span>';
}
elseif($ROW['globalx'] == 'nein')
{
$klasse = 'nopraemium';
$zutext = '';
}
// $infotext = mynl2br($infotext);
// $infotext = html_entity_decode($infotext);
echo '
<table cellpadding="3" width="'.$breite.'" class="'.$klasse.'">
<tr>
<td width="100%">
<div align="left" class="einsb">'.$datum.''.$zutext.'
</div>
</td>
</tr>
<tr>
<td width="100%">
<div align="left" class="einsa"><b>'.$ueber.'</b><br>'.$infotext.'
</div>
</td>
</tr>
<tr>
<td width="100%">
<div align="left" class="einsa">
</div>
</td>
</tr>
</table>
<br>';
}
}
else
{
echo '<br><br><center>Zur Zeit sind Keine Informationen vorhanden!</center>';
}
?>
<br>
</TD>
</TR>
</TABLE>
<?php
}
}
?>