<?php
	$path="../../../";
	include("../../../map.php");
	include("fonksiyon".$ver.".php");
	$sqly=mysql_query("select * from genel where ne='pchat' and s1=".$pID." order by id desc"); while($rsy=mysql_fetch_array($sqly)){
	$sqlm=mysql_query("select * from t5 where id=".$rsy["s2"].""); $rsm=mysql_fetch_array($sqlm);
	if(mysql_num_rows($sqlm)<>0){$user=$rsm["t1"];}elseif($rsy["t4"]<>""){$user=$rsy["t4"];}else{$user=translate("Misafir");}
?>
	<div style="height:10px; clear:both;"></div>
	<div class="v3-col-md-12" style="border:solid 1px #ccc; border-radius: 3px;padding: 5px;">
	<div class="v3-col-md-1">
		<i class="fa fa-user-circle-o" style="font-size:45px;"></i>
	</div>
	<div class="v3-col-md-11" style="">
		<div style="font-weight:bold; font-size:12px; float:left;"><?php echo $user?></div>
		<div style="font-size:12px; float:left; margin-left:10px"><?php echo timeAgo($rsy["ts1"]);?></div>
		<br>
		<div style="font-size:12px"><?php echo $rsy["n1"];?></div>
	</div>
	</div>
	<?php if($rsy["n2"]<>""){?>
	<div class="v3-row" style="border:solid 1px #ccc; border-radius: 3px;padding: 5px;">
	<div class="v3-col-md-1">
		<i class="fa fa-user-circle" style="font-size:45px;"></i>
	</div>
	<div class="v3-col-md-11" style="">
		<div style="font-weight:bold; font-size:12px; float:left;">Editör</div>
		<div style="font-size:12px; float:left; margin-left:10px"><?php echo timeAgo($rsy["ts2"]);?></div><br>
		<div style="font-size:12px"><?php echo $rsy["n2"];?></div>
	</div>
	</div>
	<?php }}?>
	<div style="height:10px; clear:both;"></div>