Commit 05ce17f6 authored by Nico Schallehn's avatar Nico Schallehn

Goße Änderung:

- Es können jetzt 2 oder mehr Nachrichten vom Server abgefragt werden.
- Workspace aufgräumt (Alte Dateien nach OLD verschoben)
parent 599c5977
<?php include("config.php");
<?php include("../config.php");
$result = mysql_query("SELECT chat, online FROM user WHERE id = '{$_SESSION['chatuserid']}'");
$users = mysql_fetch_array($result);
......
<?php include("config.php"); ?>
<?php include("../config.php"); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
......
<?php include("config.php"); ?>
<?php include("../config.php"); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
......
<?php include("config.php");
<?php include("../config.php");
$result = mysql_query("SELECT chat, online FROM user WHERE id = '{$_SESSION['chatuserid']}'");
$users = mysql_fetch_array($result);
if(isset($_SESSION['chatuserid']) AND $users['online'] == 1)
......
......@@ -6,7 +6,7 @@ if(empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == "off"){
exit();
}
include("config.php"); ?>
include("../config.php"); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
......
<?php include("config.php"); ?>
<?php include("../config.php"); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
......
<?php include("config.php"); ?>
<?php include("../config.php"); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
......
<?php include("config.php");
<?php include("../config.php");
/*
$text = "/p James:Nachricht";
echo $text."<br>";
......
<?php include("config.php"); ?>
<?php include("../config.php"); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
......
......@@ -54,7 +54,8 @@ if(isset($_GET['logoff'])){
}
?>
<ul class="nav navbar-nav navbar-right">
<li id="LoginBtn"><a href="newChat.php?logoff=true"><span class="glyphicon glyphicon-log-out"></span> Abmelden</a></li>
<li><a href="newChat.php?logoff=true"><span class="glyphicon glyphicon-log-out"></span> Abmelden</a></li>
<!-- <li class="visible-xs"><a href="newChat.php?logoff=true"><span class="glyphicon glyphicon-log-out"></span> Benutzerliste</a></li> -->
</ul>
</div>
......
......@@ -12,7 +12,7 @@ if(isset($_SESSION['chatuserid']) AND $users['online'] == 1)
while($chat = mysql_fetch_array($result))
{
if($chat['hidden'] != 1)
$nachricht = MessageFormat($chat['hideuser'], $chat['admin'], $chat['privat'], $chat['name'], $chat['chat_time'], $chat['nachricht'], $chat['name'] );
$nachricht .= MessageFormat($chat['hideuser'], $chat['admin'], $chat['privat'], $chat['name'], $chat['chat_time'], $chat['nachricht'], $chat['name'] );
//echo "<br>".$chat['hideuser']."<br>".$chat['admin']."<br>".$chat['privat']."<br>".$chat['name']."<br>".$chat['chat_time']."<br>".$chat['nachricht'];
$chatid = $chat['id'];
//if($chat['userchange'] == 1) $userreload = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment