| Server IP : 172.64.80.1 / Your IP : 172.70.50.62 Web Server : Apache System : Linux mail.federalpolyede.edu.ng 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64 User : federalpolyede.edu.ng_idh35skikv ( 10000) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/federalpolyede.edu.ng/httpdocs_backup/chat/ |
Upload File : |
<?php
session_start();
if (isset($_GET['chatwith']) )
{
$_SESSION['chatwith'] = $_GET['chatwith'];
if(isset($_SESSION['adminuser']))
{
$_SESSION['uname'] = $_GET['uname'] . ' (' .$_SESSION['chatwith'] .')';
}
elseif(isset($_SESSION['matNo']))
{ $_SESSION['username']=$_SESSION['matNo'];
$_SESSION['sName'] = $_SESSION['names'] . ' ('. $_SESSION['username'] . ')';
$_SESSION['uname'] = $_SESSION['chatwith'];
}
elseif(isset($_SESSION['formNo']))
{$_SESSION['username'] = $_SESSION['formNo'];
$_SESSION['sName'] = $_SESSION['names'] . ' ('. $_SESSION['username'] . ')';
$_SESSION['uname'] = $_SESSION['chatwith'];
}
}
if((! isset($_SESSION['username'])) or !isset($_SESSION['names'] ) )
header("location:../index.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ONLINE ICT SUPPORT - FEDERAL POLYTECHNIC EDE</title>
<link rel="stylesheet" href="css/grid.css">
<link rel="stylesheet" href="css/layout.css">
<!-- Elements -->
<link rel="stylesheet" href="css/elements.css">
<!-- Typographics -->
<link rel="stylesheet" href="css/typographics.css">
<script src="scripts/jquery-1.8.2.min.js"></script>
<script src="scripts/main.js"></script>
</head>
<body>
<input hidden="true" id="chatwith" value="<?php echo $_GET['chatwith'] ?>" />
<div class="grid_12">
<div class="box">
<div class="header">
<h2 id="Chat1_hfName"> <?php echo $_SESSION['sName'] . ' - ' . $_SESSION['uname'] ; ?></h2>
</div>
<div id="chatScroll" style="height:370px;width:410px;;overflow-y:scroll;">
<div id="Chat1_pnlUpdate" >
<div class="content" >
<div class="spacer"></div>
<div class="messages chat full" id="msgList" >
<?php
if (!isset($_SESSION["adminuser"] ))
$sname=explode(" ",$_SESSION["names"]);
else
$sname=explode(" ",$_SESSION["uname"]);
$fixedmsg='<div class="msg reply"><img src="img/user-2.png"/><div class="content">'.
'<h3><a href="#">ICT ADMIN</a> <span>says:</span><small>'. date('d-m-y H:i:s').'</small></h3>'.
'<p>Hello ' . $sname[0] .', briefly describe your challenge on the portal and we will resolve it as soon as possible. You don\'t have to come to our office except we ask you to.<br/> <br/> Thank you.</p></div></div>';
echo $fixedmsg;
?>
</div><!-- End of .messages -->
</div><!-- End of .content -->
</div>
</div><!-- End of .box -->
<div class="header" id="Chat1_upTextBox">
<div class="actions">
<div class="left">
<textarea name="Chat1$txtMessage" rows="2" cols="20" id="txtMessage" type="text" placeholder="Type your message..." style="width: 300px; margin-right:5px; margin-bottom:5px;">
</textarea>
</div>
<div class="right">
<input type="submit" name="Chat1$btnSendMsg" value="Send" id="btnSendMsg" />
</div>
<div id="dvPleasWait"></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>