
PK 
<?php
ob_start();
//error_reporting(E_ALL ^ E_NOTICE);
@session_start();
ini_set('allow_url_include',1);
date_default_timezone_set("Asia/Kolkata");
set_time_limit(600);
ini_set('max_execution_time',600);
include_once '../admin/includes/settings/constant.php';
//include '../includes/settings/db.php';
require_once '../admin/includes/settings/PDODB.php';
include_once '../admin/includes/modules/functions.php';
$function = new FUNCTIONS();
$comments = $function->getTicketComments($id=NULL, $ticket_id=$_GET['ticket_id'], $orderBy='ASC');
?>
<?php foreach($comments as $comment) {
if($comment['posted_by'] == 2){ ?>
<div class="incoming_msg">
<div class="incoming_msg_img">
<img src="https://ptetutorials.com/images/user-profile.png" alt="sunil" width="40px">
</div>
<div class="received_msg">
<div class="received_withd_msg">
<p><?=html_entity_decode($comment['msg']);?></p>
<span class="time_date"> <?=date('F dS, Y g:ia', strtotime($comment['created']))?></span>
</div>
</div>
</div>
<?php } else { ?>
<div class="outgoing_msg">
<div class="sent_msg">
<p><?=html_entity_decode($comment['msg']);?></p>
<span class="time_date"> <?=date('F dS, Y g:ia', strtotime($comment['created']))?></span>
</div>
</div>
<?php }
} ?>


PK 99