46 lines
973 B
PHP
46 lines
973 B
PHP
<?php
|
|
$page = "general";
|
|
|
|
header('Expires: Sun, 01 Jan 2014 00:00:00 GMT');
|
|
header('Cache-Control: no-store, no-cache, must-revalidate');
|
|
header('Cache-Control: post-check=0, pre-check=0', FALSE);
|
|
header('Pragma: no-cache');
|
|
|
|
include "header.php";
|
|
|
|
function general()
|
|
{
|
|
?>
|
|
<h2>Chatroom For ALL</h2>
|
|
<?php include("chat_room/config.php");
|
|
include("chat_room/login.php");?>
|
|
|
|
<script src="chat_room/chat.js"></script>
|
|
<link href="chat_room/chat.css?s=2" rel="stylesheet"/>
|
|
|
|
<div class="chat col-sm-12">
|
|
<div class="users col-sm-3">
|
|
<?php include("chat_room/users.php");?>
|
|
</div>
|
|
<div class="chatbox col-sm-8">
|
|
<?php
|
|
if(isset($_SESSION['user'])){
|
|
include("chat_room/chatbox.php");
|
|
}else{
|
|
$display_case=true;
|
|
include("chat_room/login.php");
|
|
}
|
|
?>
|
|
</div>
|
|
</div>
|
|
</div><div class="clearfix"></div>
|
|
|
|
<?php
|
|
}
|
|
|
|
|
|
$smarty->assign('json', $json);
|
|
$smarty->assign('output', $output);
|
|
|
|
include "footer.php";
|
|
?>
|