<!DOCTYPE html>
<html lang="de">

<head>

<!--

ET-Chat Copyright by SEDesign | ET-Chat v3.x.x Lizenz: CCPL | Autor: Evgeni Tcherkasski (info@s-e-d.de)

ET-Chat_T-FISH-MOD Weiterentwicklung des ET-Chats durch Tommy (Thomas Kuhn) und Harlekin (Bernd Witte)

Die Weiterentwicklungen, Optimierungen und ErgÃ¤nzungen am Code sind das geistige Eigentum von Tommy (Thomas Kuhn) und Harlekin (Bernd Witte).

-->

<title><?php echo $_SESSION['etchat_'.$this->_prefix.'radio_name']; ?></title>

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">

<meta http-equiv="content-type" content="text/html; charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<link rel="icon" href="img/favicon.ico" type="image/x-icon"/>
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon?v=2"/>
<link rel="icon" type="image/png" href="img/favicon.png"/>

<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/scriptaculous.js" type="text/javascript"></script>
<script src="js/login.js"  type="text/javascript"></script>

<link href="styles/<?php echo $_SESSION['etchat_'.$this->_prefix.'style']; ?>/style.css" rel="stylesheet" type="text/css"/>
<link href="styles/<?php echo $_SESSION['etchat_'.$this->_prefix.'style']; ?>/style-mobil-index.css" rel="stylesheet" type="text/css"/>


</head>

<body id="body">

<!-- Cookie-Banner -->
<div id="cookie-banner" style="display:none; position:fixed; bottom:0; left:0; right:0; background:#222; color:white; padding:20px; z-index:9999; text-align:center;">
  <p>Diese Seite verwendet Cookies (z.B. PHPSESSID), um ordnungsgem&auml;&szlig; zu funktionieren.</p>
  <button id="accept-cookies" style="padding:10px 20px; margin:5px;">Akzeptieren</button>
  <button id="decline-cookies" style="padding:10px 20px; margin:5px;">Ablehnen</button>
</div>

<!-- Cookie-Warnung beim Formular -->
<div id="cookie-warning" style="display:none; color:red; text-align:center; font-weight:bold; margin:10px 0;">
  Du musst Cookies akzeptieren, um fortzufahren.
</div>

<!-- Button für Einstellungen -->
<button id="changeConsentBtn" style="display:none; position:fixed; bottom:70px; right:10px; z-index:9998; background:#f4f4f4; padding:8px 12px; font-size:12px; border:1px solid #333; border-radius:4px;">
  Cookie-Einstellungen &auml;ndern
</button>

<div class="layout">
<div class="side left-area">
<div id="links">

        <?php 
include_once("class/Box.class.php");
$box = new Box(1);  // ID 1 links
$box->render();
	?>
</div>
</div>

<div id="box">


<br>
<center>

<?php
	include_once("class/Banner.class.php");
?>

<br>

<?php
	include_once("class/MenuIndex.class.php");
?>

<br><br>
<?php
$team  = !empty($_SESSION['etchat_'.$this->_prefix.'index_team'])  && $_SESSION['etchat_'.$this->_prefix.'index_team']  == '1';
$bewer = !empty($_SESSION['etchat_'.$this->_prefix.'index_bewer']) && $_SESSION['etchat_'.$this->_prefix.'index_bewer'] == '1';

if ($team || $bewer): ?>
  <div class="user-online-title">
    <?php if ($team): ?>
      <a href="#lastUsers" class="popup_link">Unser Team</a>&nbsp;&nbsp;
    <?php endif; ?>

    <?php if ($bewer): ?>
      <a href="#bewerbung" class="popup_link">Bewerbung</a>
    <?php endif; ?>
  </div>
<?php endif; ?>


  <!-- Popup -->
  <div class="popup" id="lastUsers">
    <div class="popup_text">
      <iframe class="info" src="index.php?TeamView" style="position: absolute; top: 50%; left: 50%; -ms-transform: translate(-50%, -50%);
                     transform: translate(-50%, -50%)"></iframe>
    </div>
    <a class="popup_close" href="#">X</a>
  </div>

  <!-- Popup -->
  <div class="popup" id="bewerbung">
    <div class="popup_text">
      <iframe class="info" src="bewerbung.php"              style="position: absolute; top: 50%; left: 50%; -ms-transform: translate(-50%, -50%);
                     transform: translate(-50%, -50%)"></iframe>
    </div>
    <a class="popup_close" href="#">X</a>
  </div>
	<?php include_once("cache/Ankuendigung.cache.php");	?>
<div id="oben">

            <?php 
include_once("class/Box.class.php");
$box = new Box(3);  // ID 3 oben
$box->render();
	?>

</div>
</center>
<br>
<div class="user-online-title">
  <b><?php echo $_SESSION['etchat_'.$this->_prefix.'radio_name']; ?></b><br>
  <?php if ($_SESSION['etchat_'.$this->_prefix.'user_online'] == '1'): ?>
    <div class="compact-users-container" id="online-users">
<?php
require_once("class/Online.class.php");
new Online();
?>
    </div>
  <?php endif; ?>
</div>
<br>
<div id="inhalt">
<?php
if (
    isset($_GET['register']) ||
    (isset($_GET['passwort']) && in_array($_GET['passwort'], ['vergessen', 'zuruecksetzen'])) ||
    isset($_GET['token'])
) {
    include 'registrieren.php';
} else {
    include 'login.php';
}
?>

</div>


	<?php
			if ($_SESSION['etchat_'.$this->_prefix.'reg_user_an'] == '1'){
	?>
<br><div class="user-online-title"><center>Die Letzten 5 Registrierten Benutzer:</center>
<div class="compact-users-container">
<?php
     include_once("class/CompactUserView.class.php");
?>
</div></div>
<?php
	}
?>


<br><div id="unten">

        <?php 
include_once("class/Box.class.php");
$box = new Box(4);  // ID 4 unten
$box->render();
	?>
</div>
<br>
</div>
<div class="side right-area">
<div id="rechts">

            <?php 
include_once("class/Box.class.php");
$box = new Box(2);  // ID 2 rechte
$box->render();
	?>
</div>
</div>
</div>
<br>


<footer>

<a onclick="self.location.href='#info'"><?php echo $this->lang->version[0]->tagData; ?></a>
<div class="popup" id="info">
<div class="popup_text">
<iframe class="info" src="./info.php"
style="position: absolute; top: 50%; left: 50%; -ms-transform: translate(-50%, -50%); transform: translate(-50%, -50%)"></iframe>
</div>
<a class="popup_close" onclick="self.location.href='#'">X</a>
</div>

</footer>

</body></html>