Files
Testing/grabprofilecomments-nothiddenusers.php

843 lines
50 KiB
PHP
Raw Permalink Normal View History

2026-11-17 16:15:01 -05:00
<?php
/* $Id: profile.php 42 2009-01-29 04:55:14Z john $ */
$page = "generalplugin";
include "header-ajax.php";
header("Expires: Sat, 1 Jan 2005 00:00:00 GMT");
header("Last-Modified: ".gmdate( "D, d M Y H:i:s")."GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
if($user->user_exists==0)
{
$user=new SEUser(Array($_SESSION["user_id"]));
}
function general()
{
global $url, $video_id, $owner, $url, $user, $database;
if(isset($_POST['type'])) { $type = $_POST['type']; } elseif(isset($_GET['type'])) { $type = $_GET['type']; } else { $type = "profile"; }
if(isset($_POST['focus'])) { $focus = $_POST['focus']; } elseif(isset($_GET['focus'])) { $focus = $_GET['focus']; } else { $focus = "user_id"; }
if(isset($_POST['tab'])) { $tab = $_POST['tab']; } elseif(isset($_GET['tab'])) { $tab = $_GET['tab']; } else { $tab = ""; }
if(isset($_POST['col'])) { $col = $_POST['col']; } elseif(isset($_GET['col'])) { $col = $_GET['col']; } else { $col = ""; }
if(isset($_POST['child'])) { $child = $_POST['child']; } elseif(isset($_GET['child'])) { $child = $_GET['child']; } else { $child = ""; }
if(isset($_POST['object_owner'])) { $object_owner = $_POST['object_owner']; } elseif(isset($_GET['object_owner'])) { $object_owner = $_GET['object_owner']; } else { $object_owner = ""; }
if(isset($_POST['object_owner_id'])) { $object_owner_id = $_POST['object_owner_id']; } elseif(isset($_GET['object_owner_id'])) { $object_owner_id = $_GET['object_owner_id']; } else { $object_owner_id = ""; }
if(isset($_POST['tab_parent'])) { $tab_parent = $_POST['tab_parent']; } elseif(isset($_GET['tab_parent'])) { $tab_parent = $_GET['tab_parent']; } else { $tab_parent = ""; }
if(isset($_POST['col_parent'])) { $col_parent = $_POST['col_parent']; } elseif(isset($_GET['col_parent'])) { $col_parent = $_GET['col_parent']; } else { $col_parent = ""; }
if(isset($_POST[$focus])) { $$focus = $_POST[$focus]; } elseif(isset($_GET[$focus])) { $$focus = $_GET[$focus]; } else { $$focus = ""; }
if(isset($_POST['id'])) { $id = $_POST['id']; } elseif(isset($_GET['id'])) { $id = $_GET['id']; } else { $id = ""; }
?>
<div style="display:none;"><iframe name="forforms" id="forforms"></iframe></div>
<?
if($type=="groupvideo"){
$friends_per_page = 10;
$p=$_GET["p"];
if($p<1){$p=1;}
$query = $database->database_query("SELECT * FROM {$type}comments WHERE object_id='".$$focus."' ORDER BY id DESC");
$total_friends=$database->database_num_rows($query);
$page_vars_friends = make_page($total_friends, $friends_per_page, $p);
for($x=$page_vars_friends[1]; $x<=$page_vars_friends[2]; $x++)
{
if(($page_vars_friends[1]+10)==$x)
{break;}
$for[$y]=$x;
$y++;
}
$query = $database->database_query("SELECT * FROM {$type}comments WHERE object_id='".$$focus."' ORDER BY id DESC LIMIT ".$database->database_real_escape_string($page_vars_friends[0]).", ".$friends_per_page);
$total_friends1=$database->database_num_rows($query);
?>
<? if($page_vars_friends[2]> 1){?>
<div class='browse_pages'>
<? if($page_vars_friends[1]!= 1){?><a href="javascript:void(0);" onclick="loadXMLDoc(1);"><span class="white arrow">&#171;</span></a> <a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p-1?>);"><span class="white arrow">&#8249;</span></a><? }else{?><font class='disabled'><span class="white arrow">&#171; &#8249;</span></font><? }?>
| <?
foreach($for as $foo){?>
<a href="javascript:void(0);" onclick="loadXMLDoc(<?=$foo?>);"><?=$foo?></a>
<? }?> |
<? if($page_vars_friends[1]!= $page_vars_friends[2]){?><a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p+1?>);"><span class="white arrow">&#8250;</span></a> <a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p+1?>);"><span class="white arrow">&#187;</span></a><? }else{?><font class='disabled'><span class="white arrow">&#8250; &#187;</span></font><? }?>
<br /><span style="font-weight:normal;"><? if(($page_vars_friends[0]+1)==($page_vars_friends[0]+$total_friends1)){?>
viewing results <?=$page_vars_friends[0]+1?>-<?=$page_vars_friends[0]+$total_friends1?> of <?=$total_friends?>
<? }else{?>
viewing results <?=$page_vars_friends[0]+1?>-<?=$page_vars_friends[0]+$total_friends1?> of <?=$total_friends?>
<? }?></span><br />
<form onsubmit="loadXMLDoc(document.getElementById('p').value)" target="forforms">Go to Page: <input type="text" name="p" id="p" class="gotext" /><input type="hidden" name="s" value="{$s}" /><input type="hidden" name="<?=$focus?>" value="<?=$$focus?>" /><input type="hidden" name="search" value="<?=$search?>" /><input type="hidden" name="v" value="<?=$v?>" /><input type="submit" value="Go" /></form>
</div>
<? }?>
<?
while($row=$database->database_fetch_array($query))
{
$owner1=new SEUser(Array($row["authoruser_id"]));
?>
<div id="comment_<?=$row["id"]?>"><div style="margin-top: 10px; margin-bottom: 20px;"><div style="float: left; text-align: center; width: 90px;"><a href="<?=$url->url_create('profile', $owner1->user_info["user_username"])?>">
<?php $profilepicture=$owner1->user_photo("./images/nophoto.png");
echo $owner1->userprofiledot($profilepicture, "75px", NULL, "0");?>
</a></div><div style="overflow: hidden;"><div class="profile_comment_author"><a href="<?=$url->url_create('profile', $owner1->user_info["user_username"])?>"><b><?=$owner1->user_displayname?></b></a></div><div class="profile_comment_date"><?=date('n/j/Y g:i A', $row["date"])?></div><div class="profile_comment_body" id="profile_comment_body_<?=$row["id"]?>"><?php
$row["body"]=str_replace("\'","'", $row["body"]);
if(json_decode(stripslashes($row["body"]))){
$string = $row["body"];
$row["body"]=preg_replace('([*#0-9](?>\\xEF\\xB8\\x8F)?\\xE2\\x83\\xA3|\\xC2[\\xA9\\xAE]|\\xE2..(\\xF0\\x9F\\x8F[\\xBB-\\xBF])?(?>\\xEF\\xB8\\x8F)?|\\xE3(?>\\x80[\\xB0\\xBD]|\\x8A[\\x97\\x99])(?>\\xEF\\xB8\\x8F)?|\\xF0\\x9F(?>[\\x80-\\x86].(?>\\xEF\\xB8\\x8F)?|\\x87.\\xF0\\x9F\\x87.|..(\\xF0\\x9F\\x8F[\\xBB-\\xBF])?|(((?<zwj>\\xE2\\x80\\x8D)\\xE2\\x9D\\xA4\\xEF\\xB8\\x8F\k<zwj>\\xF0\\x9F..(\k<zwj>\\xF0\\x9F\\x91.)?|(\\xE2\\x80\\x8D\\xF0\\x9F\\x91.){2,3}))?))', "<span class='emoticomment'>$0</span>",(json_decode(($string))) );
echo html_entity_decode($row["body"]);}else{
echo $row["body"];}?></div>
<div class="profile_comment_links">
<? if($owner1->user_info["user_id"]!=$user->user_info["user_id"]){?><a data-toggle="modal" data-target="#myModal" href="user_messages_new.php?to_user=<?=$owner1->user_info["user_username"]?>&to_id=<?=$owner1->user_info["user_username"]?>">message</a><? }?>
<?
if($owner1->user_info["user_id"]==$user->user_info["user_id"]){?>
<a class="commentEditLink" href="javascript:void(0);" id="comment_edit_link_<?=$row["id"]?>" onclick="editComment1(<?=$row["id"]?>);">edit</a><? }?>
<? if($user->user_info["user_id"]==$owner->user_info["user_id"]||$user->user_info["user_id"]==$owner1->user_info["user_id"]){?>&nbsp;-&nbsp;<a class="commentDeleteLink" href="javascript:void(0);" id="comment_delete_link_<?=$row["id"]?>" onclick="lepconfirmprofDelete(<?=$row["id"]?>)">delete</a><? }?>&nbsp;</div>
</div></div><div class="clear"></div>
</div>
<?
}
?>
<? if($page_vars_friends[2]> 1){?>
<div class='browse_pages'>
<? if($page_vars_friends[1]!= 1){?><a href="javascript:void(0);" onclick="loadXMLDoc(1);"><span class="white arrow">&#171;</span></a> <a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p-1?>);"><span class="white arrow">&#8249;</span></a><? }else{?><font class='disabled'><span class="white arrow">&#171; &#8249;</span></font><? }?>
| <?
foreach($for as $foo){?>
<a href="javascript:void(0);" onclick="loadXMLDoc(<?=$foo?>);"><?=$foo?></a>
<? }?> |
<? if($page_vars_friends[1]!= $page_vars_friends[2]){?><a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p+1?>);"><span class="white arrow">&#8250;</span></a> <a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p+1?>);"><span class="white arrow">&#187;</span></a><? }else{?><font class='disabled'><span class="white arrow">&#8250; &#187;</span></font><? }?>
<br /><span style="font-weight:normal;"><? if(($page_vars_friends[0]+1)==($page_vars_friends[0]+$total_friends1)){?>
viewing results <?=$page_vars_friends[0]+1?>-<?=$page_vars_friends[0]+$total_friends1?> of <?=$total_friends?>
<? }else{?>
viewing results <?=$page_vars_friends[0]+1?>-<?=$page_vars_friends[0]+$total_friends1?> of <?=$total_friends?>
<? }?></span><br />
<form onsubmit="loadXMLDoc(document.getElementById('p1').value);" target="forforms">Go to Page: <input type="text" name="p" id="p1" class="gotext" /><input type="hidden" name="s" value="{$s}" /><input type="hidden" name="<?=$focus?>" value="<?=$$focus?>" /><input type="hidden" name="search" value="<?=$search?>" /><input type="hidden" name="v" value="<?=$v?>" /><input type="submit" value="Go" /></form>
</div>
<? }?>
<div id='confirmdelete1' class="modal fade modal-default" style="z-index:100000000;"><div class="modal-dialog" >
<button type="button" class="close main-bg-color alt-text-color orangebg" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i></button>
<div class="modal-content" style="background:black; text-align:left;">
<div style='margin-top: 10px;'>
Are you sure you want to delete this comment?
</div>
<br>
<form action="comments.php" method="post" target="ajaxframe" name="commentDeleteForm"><input type="submit" class="button" value="Delete" onclick="subtractcount(); lepremovecomment();closemodal(); "> <input type="button" class="button" value="Cancel" onclick="closemodal();"><input type="hidden" name="task" value="comment_delete1"><input type="hidden" name="comment_id" id="del_comment_id1" value=""><input type="hidden" name="type" value="<?=$type?>"><input type="hidden" name="iden" value="<?=$focus?>"><input type="hidden" name="value" value="<?=$$focus?>"><input type="hidden" name="user" value="<?=$owner->user_info["user_username"]?>">
<? if($tab==""){?><input type="hidden" name="tab" value="<?=$type?>s"><? }else{?><input type="hidden" name="tab" value="<?=$tab?>"><? }?>
<? if($col!=""){?><input type="hidden" name="col" value="<?=$col?>"><? }else{?><input type="hidden" name="col" value="<?=$type?>"><? }?>
<? if($tab_parent!=""){?><input type="hidden" name="tab_parent" value="<?=$tab_parent?>"><? }?>
<? if($col_parent!=""){?><input type="hidden" name="col_parent" value="<?=$col_parent?>"><? }?>
<? if($child!=""){?><input type="hidden" name="child" value="<?=$child?>"><? }?>
<? if($object_owner!=""){?><input type="hidden" name="object_owner" value="<?=$object_owner?>"><? }?>
<? if($object_owner_id!=""){?><input type="hidden" name="object_owner_id" value="<?=$object_owner_id?>"><? }?>
<input type="hidden" name="object" value="<?=$type?>comments">
</form>
</div></div>
</div>
<?
}
elseif($type=="batortraining")
{
$friends_per_page = 10;
$p=$_GET["p"];
if($p<1){$p=1;}
$query = $database->database_query("SELECT * FROM {$type}comments WHERE object_id='".$$focus."' ORDER BY id DESC");
$total_friends=$database->database_num_rows($query);
$page_vars_friends = make_page($total_friends, $friends_per_page, $p);
for($x=$page_vars_friends[1]; $x<=$page_vars_friends[2]; $x++)
{
if(($page_vars_friends[1]+10)==$x)
{break;}
$for[$y]=$x;
$y++;
}
$query = $database->database_query("SELECT * FROM {$type}comments WHERE object_id='".$$focus."' ORDER BY id DESC LIMIT ".$database->database_real_escape_string($page_vars_friends[0]).", ".$friends_per_page);
$total_friends1=$database->database_num_rows($query);
?>
<? if($page_vars_friends[2]> 1){?>
<div class='browse_pages'>
<? if($page_vars_friends[1]!= 1){?><a href="javascript:void(0);" onclick="loadXMLDoc(1);"><span class="white arrow">&#171;</span></a> <a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p-1?>);"><span class="white arrow">&#8249;</span></a><? }else{?><font class='disabled'><span class="white arrow">&#171; &#8249;</span></font><? }?>
| <?
foreach($for as $foo){?>
<a href="javascript:void(0);" onclick="loadXMLDoc(<?=$foo?>);"><?=$foo?></a>
<? }?> |
<? if($page_vars_friends[1]!= $page_vars_friends[2]){?><a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p+1?>);"><span class="white arrow">&#8250;</span></a> <a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p+1?>);"><span class="white arrow">&#187;</span></a><? }else{?><font class='disabled'><span class="white arrow">&#8250; &#187;</span></font><? }?>
<br /><span style="font-weight:normal;"><? if(($page_vars_friends[0]+1)==($page_vars_friends[0]+$total_friends1)){?>
viewing results <?=$page_vars_friends[0]+1?>-<?=$page_vars_friends[0]+$total_friends1?> of <?=$total_friends?>
<? }else{?>
viewing results <?=$page_vars_friends[0]+1?>-<?=$page_vars_friends[0]+$total_friends1?> of <?=$total_friends?>
<? }?></span><br />
<form onsubmit="loadXMLDoc(document.getElementById('p').value)" target="forforms">Go to Page: <input type="text" name="p" id="p" class="gotext" /><input type="hidden" name="s" value="{$s}" /><input type="hidden" name="<?=$focus?>" value="<?=$$focus?>" /><input type="hidden" name="search" value="<?=$search?>" /><input type="hidden" name="v" value="<?=$v?>" /><input type="submit" value="Go" /></form>
</div>
<? }?>
<?
while($row=$database->database_fetch_array($query))
{
$owner1=new SEUser(Array($row["authoruser_id"]));
?>
<div id="comment_<?=$row["id"]?>"><div style="margin-top: 10px; margin-bottom: 20px;"><div style="float: left; text-align: center; width: 90px;"><a href="<?=$url->url_create('profile', $owner1->user_info["user_username"])?>"><?php $profilepicture=$owner1->user_photo("./images/nophoto.png");
echo $owner1->userprofiledot($profilepicture, "75px", NULL, "0");?></a></div><div style="overflow: hidden;"><div class="profile_comment_author"><a href="<?=$url->url_create('profile', $owner1->user_info["user_username"])?>"><b><?=$owner1->user_displayname?></b></a></div><div class="profile_comment_date"><?=date('n/j/Y g:i A', $row["date"])?></div><div class="profile_comment_body" id="profile_comment_body_<?=$row["id"]?>"><?php
$row["body"]=str_replace("\'","'", $row["body"]);
if(json_decode(stripslashes($row["body"]))){
$string = $row["body"];
$row["body"]=preg_replace('([*#0-9](?>\\xEF\\xB8\\x8F)?\\xE2\\x83\\xA3|\\xC2[\\xA9\\xAE]|\\xE2..(\\xF0\\x9F\\x8F[\\xBB-\\xBF])?(?>\\xEF\\xB8\\x8F)?|\\xE3(?>\\x80[\\xB0\\xBD]|\\x8A[\\x97\\x99])(?>\\xEF\\xB8\\x8F)?|\\xF0\\x9F(?>[\\x80-\\x86].(?>\\xEF\\xB8\\x8F)?|\\x87.\\xF0\\x9F\\x87.|..(\\xF0\\x9F\\x8F[\\xBB-\\xBF])?|(((?<zwj>\\xE2\\x80\\x8D)\\xE2\\x9D\\xA4\\xEF\\xB8\\x8F\k<zwj>\\xF0\\x9F..(\k<zwj>\\xF0\\x9F\\x91.)?|(\\xE2\\x80\\x8D\\xF0\\x9F\\x91.){2,3}))?))', "<span class='emoticomment'>$0</span>",(json_decode(($string))) );
echo html_entity_decode($row["body"]);}else{
echo $row["body"];}?></div>
<div class="profile_comment_links">
<? if($owner1->user_info["user_id"]!=$user->user_info["user_id"]){?><a data-toggle="modal" data-target="#myModal" href="user_messages_new.php?to_user=<?=$owner1->user_info["user_username"]?>&to_id=<?=$owner1->user_info["user_username"]?>">message</a><? }?>
<?
if($owner1->user_info["user_id"]==$user->user_info["user_id"]){?>
<a class="commentEditLink" href="javascript:void(0);" id="comment_edit_link_<?=$row["id"]?>" onclick="editComment1(<?=$row["id"]?>);">edit</a><? }?>
<? if($user->user_info["user_id"]==$owner->user_info["user_id"]||$user->user_info["user_id"]==$owner1->user_info["user_id"]){?>&nbsp;-&nbsp;<a class="commentDeleteLink" href="javascript:void(0);" id="comment_delete_link_<?=$row["id"]?>" onclick="lepconfirmprofDelete(<?=$row["id"]?>)">delete</a><? }?>&nbsp;</div>
</div></div><div class="clear"></div>
</div>
<?
}
?>
<? if($page_vars_friends[2]> 1){?>
<div class='browse_pages'>
<? if($page_vars_friends[1]!= 1){?><a href="javascript:void(0);" onclick="loadXMLDoc(1);"><span class="white arrow">&#171;</span></a> <a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p-1?>);"><span class="white arrow">&#8249;</span></a><? }else{?><font class='disabled'><span class="white arrow">&#171; &#8249;</span></font><? }?>
| <?
foreach($for as $foo){?>
<a href="javascript:void(0);" onclick="loadXMLDoc(<?=$foo?>);"><?=$foo?></a>
<? }?> |
<? if($page_vars_friends[1]!= $page_vars_friends[2]){?><a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p+1?>);"><span class="white arrow">&#8250;</span></a> <a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p+1?>);"><span class="white arrow">&#187;</span></a><? }else{?><font class='disabled'><span class="white arrow">&#8250; &#187;</span></font><? }?>
<br /><span style="font-weight:normal;"><? if(($page_vars_friends[0]+1)==($page_vars_friends[0]+$total_friends1)){?>
viewing results <?=$page_vars_friends[0]+1?>-<?=$page_vars_friends[0]+$total_friends1?> of <?=$total_friends?>
<? }else{?>
viewing results <?=$page_vars_friends[0]+1?>-<?=$page_vars_friends[0]+$total_friends1?> of <?=$total_friends?>
<? }?></span><br />
<form onsubmit="loadXMLDoc(document.getElementById('p1').value);" target="forforms">Go to Page: <input type="text" name="p" id="p1" class="gotext" /><input type="hidden" name="s" value="{$s}" /><input type="hidden" name="<?=$focus?>" value="<?=$$focus?>" /><input type="hidden" name="search" value="<?=$search?>" /><input type="hidden" name="v" value="<?=$v?>" /><input type="submit" value="Go" /></form>
</div>
<? }?>
<div class="modal fade modal-default" style="z-index:100000000;" id='confirmdelete1'><div class="modal-dialog" ><button type="button" class="close main-bg-color alt-text-color orangebg" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i></button>
<div class="modal-content" style="background:black; text-align:left;">
<div style='margin-top: 10px;'>
Are you sure you want to delete this comment?
</div>
<br>
<form action="comments.php" method="post" target="ajaxframe" name="commentDeleteForm"><input type="submit" class="button" value="Delete" onclick="subtractcount();lepremovecomment(); closemodal(); "> <input type="button" class="button" value="Cancel" onclick="closemodal();"><input type="hidden" name="task" value="comment_delete1"><input type="hidden" name="comment_id" id="del_comment_id1" value=""><input type="hidden" name="type" value="<?=$type?>"><input type="hidden" name="iden" value="<?=$focus?>"><input type="hidden" name="value" value="<?=$$focus?>"><input type="hidden" name="user" value="<?=$owner->user_info["user_username"]?>">
<? if($tab==""){?><input type="hidden" name="tab" value="<?=$type?>s"><? }else{?><input type="hidden" name="tab" value="<?=$tab?>"><? }?>
<? if($col!=""){?><input type="hidden" name="col" value="<?=$col?>"><? }else{?><input type="hidden" name="col" value="<?=$type?>"><? }?>
<? if($tab_parent!=""){?><input type="hidden" name="tab_parent" value="<?=$tab_parent?>"><? }?>
<? if($col_parent!=""){?><input type="hidden" name="col_parent" value="<?=$col_parent?>"><? }?>
<? if($child!=""){?><input type="hidden" name="child" value="<?=$child?>"><? }?>
<? if($object_owner!=""){?><input type="hidden" name="object_owner" value="<?=$object_owner?>"><? }?>
<? if($object_owner_id!=""){?><input type="hidden" name="object_owner_id" value="<?=$object_owner_id?>"><? }?>
<input type="hidden" name="object" value="<?=$type?>comments">
</form>
</div>
</div>
</div>
<?
}
elseif($type=="suggestion"){
$friends_per_page = 10;
$p=$_GET["p"];
if($p<1){$p=1;}
$query = $database->database_query("SELECT * FROM bateworldcom_zips.{$type}_comments WHERE suggestionid='".$database->database_real_escape_string($id)."' ORDER BY id DESC");
$total_friends=$database->database_num_rows($query);
$page_vars_friends = make_page($total_friends, $friends_per_page, $p);
for($x=$page_vars_friends[1]; $x<=$page_vars_friends[2]; $x++)
{
if(($page_vars_friends[1]+10)==$x)
{break;}
$for[$y]=$x;
$y++;
}
$query = $database->database_query("SELECT * FROM bateworldcom_zips.{$type}_comments WHERE suggestionid='".$database->database_real_escape_string($id)."' ORDER BY id DESC LIMIT ".$database->database_real_escape_string($page_vars_friends[0]).", ".$friends_per_page);
$total_friends1=$database->database_num_rows($query);
?>
<? if($page_vars_friends[2]> 1){?>
<div class='browse_pages'>
<? if($page_vars_friends[1]!= 1){?><a href="javascript:void(0);" onclick="loadXMLDoc(1);"><span class="white arrow">&#171;</span></a> <a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p-1?>);"><span class="white arrow">&#8249;</span></a><? }else{?><font class='disabled'><span class="white arrow">&#171; &#8249;</span></font><? }?>
| <?
foreach($for as $foo){?>
<a href="javascript:void(0);" onclick="loadXMLDoc(<?=$foo?>);"><?=$foo?></a>
<? }?> |
<? if($page_vars_friends[1]!= $page_vars_friends[2]){?><a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p+1?>);"><span class="white arrow">&#8250;</span></a> <a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p+1?>);"><span class="white arrow">&#187;</span></a><? }else{?><font class='disabled'><span class="white arrow">&#8250; &#187;</span></font><? }?>
<br /><span style="font-weight:normal;"><? if(($page_vars_friends[0]+1)==($page_vars_friends[0]+$total_friends1)){?>
viewing results <?=$page_vars_friends[0]+1?>-<?=$page_vars_friends[0]+$total_friends1?> of <?=$total_friends?>
<? }else{?>
viewing results <?=$page_vars_friends[0]+1?>-<?=$page_vars_friends[0]+$total_friends1?> of <?=$total_friends?>
<? }?></span><br />
<form onsubmit="loadXMLDoc(document.getElementById('p').value)" target="forforms">Go to Page: <input type="text" name="p" id="p" class="gotext" /><input type="hidden" name="s" value="{$s}" /><input type="hidden" name="<?=$focus?>" value="<?=$$focus?>" /><input type="hidden" name="search" value="<?=$search?>" /><input type="hidden" name="v" value="<?=$v?>" /><input type="submit" value="Go" /></form>
</div>
<? }?>
<?
while($row=$database->database_fetch_array($query))
{
$owner1=new SEUser(Array($row["user"]));
?>
<div id="comment_<?=$row["id"]?>"><div style="margin-top: 10px; margin-bottom: 20px;"><div style="float: left; text-align: center; width: 90px;"><a href="<?=$url->url_create('profile', $owner1->user_info["user_username"])?>"><?php $profilepicture=$owner1->user_photo("./images/nophoto.png");
echo $owner1->userprofiledot($profilepicture, "75px", NULL, "0");?></a></div><div style="overflow: hidden;"><div class="profile_comment_author"><a href="<?=$url->url_create('profile', $owner1->user_info["user_username"])?>"><b><?=$owner1->user_displayname?></b></a></div><div class="profile_comment_date"><?=date('n/j/Y g:i A', $row["time"])?></div><div class="profile_comment_body" id="profile_comment_body_<?=$row["id"]?>"><?php
$row["comment"]=str_replace("\'","'", $row["comment"]);
if(json_decode(stripslashes($row["comment"]))){
$string = $row["comment"];
$row["comment"]=preg_replace('([*#0-9](?>\\xEF\\xB8\\x8F)?\\xE2\\x83\\xA3|\\xC2[\\xA9\\xAE]|\\xE2..(\\xF0\\x9F\\x8F[\\xBB-\\xBF])?(?>\\xEF\\xB8\\x8F)?|\\xE3(?>\\x80[\\xB0\\xBD]|\\x8A[\\x97\\x99])(?>\\xEF\\xB8\\x8F)?|\\xF0\\x9F(?>[\\x80-\\x86].(?>\\xEF\\xB8\\x8F)?|\\x87.\\xF0\\x9F\\x87.|..(\\xF0\\x9F\\x8F[\\xBB-\\xBF])?|(((?<zwj>\\xE2\\x80\\x8D)\\xE2\\x9D\\xA4\\xEF\\xB8\\x8F\k<zwj>\\xF0\\x9F..(\k<zwj>\\xF0\\x9F\\x91.)?|(\\xE2\\x80\\x8D\\xF0\\x9F\\x91.){2,3}))?))', "<span class='emoticomment'>$0</span>",(json_decode(($string))) );
echo html_entity_decode($row["comment"]);}else{
echo html_entity_decode($row["comment"]);}
?></div>
<div class="profile_comment_links">
<? if($owner1->user_info["user_id"]!=$user->user_info["user_id"]){?><a data-toggle="modal" data-target="#myModal" href="user_messages_new.php?to_user=<?=$owner1->user_info["user_username"]?>&to_id=<?=$owner1->user_info["user_username"]?>">message</a><? }?>
<?
if($owner1->user_info["user_id"]==$user->user_info["user_id"]){?>
<a class="commentEditLink" href="javascript:void(0);" id="comment_edit_link_<?=$row["id"]?>" onclick="editComment1(<? echo $row["id"]; ?>);">edit</a><? }?>
<? if($user->user_info["user_id"]==$owner->user_info["user_id"]||$user->user_info["user_id"]==$owner1->user_info["user_id"]){?>&nbsp;-&nbsp;<a class="commentDeleteLink" href="javascript:void(0);" id="comment_delete_link_<?=$row["id"]?>" onclick="lepconfirmprofDelete(<?=$row["id"]?>)">delete</a><? }?>&nbsp;</div>
</div></div><div class="clear"></div>
</div>
<?
}
?>
<? if($page_vars_friends[2]> 1){?>
<div class='browse_pages'>
<? if($page_vars_friends[1]!= 1){?><a href="javascript:void(0);" onclick="loadXMLDoc(1);"><span class="white arrow">&#171;</span></a> <a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p-1?>);"><span class="white arrow">&#8249;</span></a><? }else{?><font class='disabled'><span class="white arrow">&#171; &#8249;</span></font><? }?>
| <?
foreach($for as $foo){?>
<a href="javascript:void(0);" onclick="loadXMLDoc(<?=$foo?>);"><?=$foo?></a>
<? }?> |
<? if($page_vars_friends[1]!= $page_vars_friends[2]){?><a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p+1?>);"><span class="white arrow">&#8250;</span></a> <a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p+1?>);"><span class="white arrow">&#187;</span></a><? }else{?><font class='disabled'><span class="white arrow">&#8250; &#187;</span></font><? }?>
<br /><span style="font-weight:normal;"><? if(($page_vars_friends[0]+1)==($page_vars_friends[0]+$total_friends1)){?>
viewing results <?=$page_vars_friends[0]+1?>-<?=$page_vars_friends[0]+$total_friends1?> of <?=$total_friends?>
<? }else{?>
viewing results <?=$page_vars_friends[0]+1?>-<?=$page_vars_friends[0]+$total_friends1?> of <?=$total_friends?>
<? }?></span><br />
<form onsubmit="loadXMLDoc(document.getElementById('p1').value);" target="forforms">Go to Page: <input type="text" name="p" id="p1" class="gotext" /><input type="hidden" name="s" value="{$s}" /><input type="hidden" name="<?=$focus?>" value="<?=$$focus?>" /><input type="hidden" name="search" value="<?=$search?>" /><input type="hidden" name="v" value="<?=$v?>" /><input type="submit" value="Go" /></form>
</div>
<? }?>
<div style='display:none;' id='confirmdelete3'>
<div style='margin-top: 10px;'>
Are you sure you want to delete this comment?
</div>
<br>
<form action="misc_js.php" method="post" target="ajaxframe" name="commentDeleteForm"><input type="submit" class="button" value="Delete" onclick="subtractcount(); lepremovecomment(); closemodal(); "> <input type="button" class="button" value="Cancel" onclick="closemodal();"><input type="hidden" name="task" value="suggestioncomment_delete1"><input type="hidden" name="comment_id" id="del_comment_id1" value=""><input type="hidden" name="type" value="<?=$type?>"><input type="hidden" name="iden" value="<?=$focus?>"><input type="hidden" name="value" value="<?=$$focus?>"><input type="hidden" name="user" value="<?=$owner->user_info["user_username"]?>">
<? if($tab==""){?><input type="hidden" name="tab" value="<?=$type?>s"><? }else{?><input type="hidden" name="tab" value="<?=$tab?>"><? }?>
<? if($col!=""){?><input type="hidden" name="col" value="<?=$col?>"><? }else{?><input type="hidden" name="col" value="<?=$type?>"><? }?>
<? if($tab_parent!=""){?><input type="hidden" name="tab_parent" value="<?=$tab_parent?>"><? }?>
<? if($col_parent!=""){?><input type="hidden" name="col_parent" value="<?=$col_parent?>"><? }?>
<? if($child!=""){?><input type="hidden" name="child" value="<?=$child?>"><? }?>
<? if($object_owner!=""){?><input type="hidden" name="object_owner" value="<?=$object_owner?>"><? }?>
<? if($object_owner_id!=""){?><input type="hidden" name="object_owner_id" value="<?=$object_owner_id?>"><? }?>
<input type="hidden" name="object" value="<?=$type?>comments">
</form>
</div>
<div id='confirmdelete1' class="modal fade modal-default" style="z-index:100000000;"><div class="modal-dialog" >
<button type="button" class="close main-bg-color alt-text-color orangebg" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i></button>
<div class="modal-content" style="background:black; text-align:left;">
<div style='margin-top: 10px;'>
Are you sure you want to delete this comment?
</div>
<br>
<form action="misc_js.php" method="post" target="ajaxframe" name="commentDeleteForm"><input type="submit" class="button" value="Delete" onclick="subtractcount(); lepremovecomment(); closemodal(); "> <input type="button" class="button" value="Cancel" onclick="closemodal();"><input type="hidden" name="task" value="suggestioncomment_delete1"><input type="hidden" name="comment_id" id="del_comment_id1" value=""><input type="hidden" name="type" value="<?=$type?>"><input type="hidden" name="iden" value="<?=$focus?>"><input type="hidden" name="value" value="<?=$$focus?>"><input type="hidden" name="user" value="<?=$owner->user_info["user_username"]?>">
<? if($tab==""){?><input type="hidden" name="tab" value="<?=$type?>s"><? }else{?><input type="hidden" name="tab" value="<?=$tab?>"><? }?>
<? if($col!=""){?><input type="hidden" name="col" value="<?=$col?>"><? }else{?><input type="hidden" name="col" value="<?=$type?>"><? }?>
<? if($tab_parent!=""){?><input type="hidden" name="tab_parent" value="<?=$tab_parent?>"><? }?>
<? if($col_parent!=""){?><input type="hidden" name="col_parent" value="<?=$col_parent?>"><? }?>
<? if($child!=""){?><input type="hidden" name="child" value="<?=$child?>"><? }?>
<? if($object_owner!=""){?><input type="hidden" name="object_owner" value="<?=$object_owner?>"><? }?>
<? if($object_owner_id!=""){?><input type="hidden" name="object_owner_id" value="<?=$object_owner_id?>"><? }?>
<input type="hidden" name="object" value="<?=$type?>comments">
</form>
<!-- Content will be loaded here from "remote.php" file -->
</div>
</div>
</div>
<?
}
elseif($type!="profile")
{
if($type=="video"&&$_GET["video_id"]==""){$$focus=-1;}
$friends_per_page = 10;
$p=$_GET["p"];
if($p<1){$p=1;}
$query = $database->database_query("SELECT * FROM se_{$type}comments WHERE {$type}comment_{$focus}='".$$focus."' ORDER BY {$type}comment_id DESC");
$total_friends=$database->database_num_rows($query);
$page_vars_friends = make_page($total_friends, $friends_per_page, $p);
for($x=$page_vars_friends[1]; $x<=$page_vars_friends[2]; $x++)
{
if(($page_vars_friends[1]+10)==$x)
{break;}
$for[$y]=$x;
$y++;
}
$query = $database->database_query("SELECT * FROM se_{$type}comments WHERE {$type}comment_{$focus}='".$$focus."' ORDER BY {$type}comment_id DESC LIMIT ".$database->database_real_escape_string($page_vars_friends[0]).", ".$friends_per_page);
$total_friends1=$database->database_num_rows($query);
?>
<? if($page_vars_friends[2]> 1){?>
<div class='browse_pages'>
<? if($page_vars_friends[1]!= 1){?><a href="javascript:void(0);" onclick="loadXMLDoc(1);"><span class="white arrow">&#171;</span></a> <a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p-1?>);"><span class="white arrow">&#8249;</span></a><? }else{?><font class='disabled'><span class="white arrow">&#171; &#8249;</span></font><? }?>
| <?
foreach($for as $foo){?>
<a href="javascript:void(0);" onclick="loadXMLDoc(<?=$foo?>);"><?=$foo?></a>
<? }?> |
<? if($page_vars_friends[1]!= $page_vars_friends[2]){?><a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p+1?>);"><span class="white arrow">&#8250;</span></a> <a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p+1?>);"><span class="white arrow">&#187;</span></a><? }else{?><font class='disabled'><span class="white arrow">&#8250; &#187;</span></font><? }?>
<br /><span style="font-weight:normal;"><? if(($page_vars_friends[0]+1)==($page_vars_friends[0]+$total_friends1)){?>
viewing results <?=$page_vars_friends[0]+1?>-<?=$page_vars_friends[0]+$total_friends1?> of <?=$total_friends?>
<? }else{?>
viewing results <?=$page_vars_friends[0]+1?>-<?=$page_vars_friends[0]+$total_friends1?> of <?=$total_friends?>
<? }?></span><br />
<form onsubmit="loadXMLDoc(document.getElementById('p').value)" target="forforms">Go to Page: <input type="text" name="p" id="p" class="gotext" /><input type="hidden" name="s" value="{$s}" /><input type="hidden" name="<?=$focus?>" value="<?=$$focus?>" /><input type="hidden" name="search" value="<?=$search?>" /><input type="hidden" name="v" value="<?=$v?>" /><input type="submit" value="Go" /></form>
</div>
<? }?>
<?
while($row=$database->database_fetch_array($query))
{
$owner1=new SEUser(Array($row[$type."comment_authoruser_id"]));
?>
<div id="comment_<?=$row[$type."comment_id"]?>"><div style="margin-top: 10px; margin-bottom: 20px;"><div style="float: left; text-align: center; width: 90px;"><a href="<?=$url->url_create('profile', $owner1->user_info["user_username"])?>"><?php $profilepicture=$owner1->user_photo("./images/nophoto.png");
echo $owner1->userprofiledot($profilepicture, "75px", NULL, "0");?></a></div><div style="overflow: hidden;"><div class="profile_comment_author"><a href="<?=$url->url_create('profile', $owner1->user_info["user_username"])?>"><b><?=$owner1->user_displayname?></b></a></div><div class="profile_comment_date"><?=date('n/j/Y g:i A', $row[$type."comment_date"])?></div><div class="profile_comment_body" id="profile_comment_body_<?=$row[$type."comment_id"]?>"><?
$row[$type."comment_body"]=str_replace("\'","'", $row[$type."comment_body"]);
if(json_decode(stripslashes($row[$type."comment_body"]))){
$string = $row[$type."comment_body"];
$row[$type."comment_body"]=preg_replace('([*#0-9](?>\\xEF\\xB8\\x8F)?\\xE2\\x83\\xA3|\\xC2[\\xA9\\xAE]|\\xE2..(\\xF0\\x9F\\x8F[\\xBB-\\xBF])?(?>\\xEF\\xB8\\x8F)?|\\xE3(?>\\x80[\\xB0\\xBD]|\\x8A[\\x97\\x99])(?>\\xEF\\xB8\\x8F)?|\\xF0\\x9F(?>[\\x80-\\x86].(?>\\xEF\\xB8\\x8F)?|\\x87.\\xF0\\x9F\\x87.|..(\\xF0\\x9F\\x8F[\\xBB-\\xBF])?|(((?<zwj>\\xE2\\x80\\x8D)\\xE2\\x9D\\xA4\\xEF\\xB8\\x8F\k<zwj>\\xF0\\x9F..(\k<zwj>\\xF0\\x9F\\x91.)?|(\\xE2\\x80\\x8D\\xF0\\x9F\\x91.){2,3}))?))', "<span class='emoticomment'>$0</span>",(json_decode(($string))) );
echo html_entity_decode($row[$type."comment_body"]);
}else{
echo $row[$type."comment_body"];
}
?></div>
<div class="profile_comment_links">
<? if($owner1->user_info["user_id"]!=$user->user_info["user_id"]){?><a data-toggle="modal" data-target="#myModal" href="user_messages_new.php?to_user=<?=$owner1->user_info["user_username"]?>&to_id=<?=$owner1->user_info["user_username"]?>">message</a><? }?>
<?
if($owner1->user_info["user_id"]==$user->user_info["user_id"]){?>
<a class="commentEditLink" href="javascript:void(0);" id="comment_edit_link_<?=$row[$type."comment_id"]?>" onclick="editComment1(<?=$row[$type."comment_id"]?>);">edit</a><? }?>
<? if($user->user_info["user_id"]==$owner->user_info["user_id"]||$user->user_info["user_id"]==$owner1->user_info["user_id"]){?>&nbsp;-&nbsp;<a class="commentDeleteLink" href="javascript:void(0);" id="comment_delete_link_<?=$row[$type."comment_id"]?>" onclick="lepconfirmprofDelete(<?=$row[$type."comment_id"]?>)">delete</a><? }?>&nbsp;</div>
</div></div><div class="clear"></div>
</div>
<?
}
?>
<? if($page_vars_friends[2]> 1){?>
<div class='browse_pages'>
<? if($page_vars_friends[1]!= 1){?><a href="javascript:void(0);" onclick="loadXMLDoc(1);"><span class="white arrow">&#171;</span></a> <a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p-1?>);"><span class="white arrow">&#8249;</span></a><? }else{?><font class='disabled'><span class="white arrow">&#171; &#8249;</span></font><? }?>
| <?
foreach($for as $foo){?>
<a href="javascript:void(0);" onclick="loadXMLDoc(<?=$foo?>);"><?=$foo?></a>
<? }?> |
<? if($page_vars_friends[1]!= $page_vars_friends[2]){?><a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p+1?>);"><span class="white arrow">&#8250;</span></a> <a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p+1?>);"><span class="white arrow">&#187;</span></a><? }else{?><font class='disabled'><span class="white arrow">&#8250; &#187;</span></font><? }?>
<br /><span style="font-weight:normal;"><? if(($page_vars_friends[0]+1)==($page_vars_friends[0]+$total_friends1)){?>
viewing results <?=$page_vars_friends[0]+1?>-<?=$page_vars_friends[0]+$total_friends1?> of <?=$total_friends?>
<? }else{?>
viewing results <?=$page_vars_friends[0]+1?>-<?=$page_vars_friends[0]+$total_friends1?> of <?=$total_friends?>
<? }?></span><br />
<form onsubmit="loadXMLDoc(document.getElementById('p1').value);" target="forforms">Go to Page: <input type="text" name="p" id="p1" class="gotext" /><input type="hidden" name="s" value="{$s}" /><input type="hidden" name="<?=$focus?>" value="<?=$$focus?>" /><input type="hidden" name="search" value="<?=$search?>" /><input type="hidden" name="v" value="<?=$v?>" /><input type="submit" value="Go" /></form>
</div>
<? }?>
<div class="modal fade modal-default" style="z-index:100000000;" id='confirmdelete1'><div class="modal-dialog" ><button type="button" class="close main-bg-color alt-text-color orangebg" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i></button>
<div class="modal-content" style="background:black; text-align:left;">
<div style='margin-top: 10px;'>
Are you sure you want to delete this comment?
</div>
<br>
<form action="misc_js.php" method="post" target="ajaxframe" name="commentDeleteForm"><input type="submit" class="button" value="Delete" onclick="subtractcount(); lepremovecomment();closemodal(); "> <input type="button" class="button" value="Cancel" onclick="closemodal();"><input type="hidden" name="task" value="comment_delete1"><input type="hidden" name="comment_id" id="del_comment_id1" value=""><input type="hidden" name="type" value="<?=$type?>"><input type="hidden" name="iden" value="<?=$focus?>"><input type="hidden" name="value" value="<?=$$focus?>"><input type="hidden" name="user" value="<?=$owner->user_info["user_username"]?>">
<? if($tab==""){?><input type="hidden" name="tab" value="<?=$type?>s"><? }else{?><input type="hidden" name="tab" value="<?=$tab?>"><? }?>
<? if($col!=""){?><input type="hidden" name="col" value="<?=$col?>"><? }else{?><input type="hidden" name="col" value="<?=$type?>"><? }?>
<? if($tab_parent!=""){?><input type="hidden" name="tab_parent" value="<?=$tab_parent?>"><? }?>
<? if($col_parent!=""){?><input type="hidden" name="col_parent" value="<?=$col_parent?>"><? }?>
<? if($child!=""){?><input type="hidden" name="child" value="<?=$child?>"><? }?>
<? if($object_owner!=""){?><input type="hidden" name="object_owner" value="<?=$object_owner?>"><? }?>
<? if($object_owner_id!=""){?><input type="hidden" name="object_owner_id" value="<?=$object_owner_id?>"><? }?>
</form>
</div>
</div>
</div>
<?
}
elseif($type=="profile"){
$friends_per_page = 10;
$p=$_GET["p"];
if($p<1){$p=1;}
$query = $database->database_query("SELECT * FROM se_profilecomments WHERE profilecomment_user_id='".$owner->user_info["user_id"]."' ORDER BY profilecomment_id DESC");
$total_friends=$database->database_num_rows($query);
$page_vars_friends = make_page($total_friends, $friends_per_page, $p);
for($x=$page_vars_friends[1]; $x<=$page_vars_friends[2]; $x++)
{
if(($page_vars_friends[1]+10)==$x)
{break;}
$for[$y]=$x;
$y++;
}
$query = $database->database_query("SELECT * FROM se_profilecomments WHERE profilecomment_user_id='".$owner->user_info["user_id"]."' ORDER BY profilecomment_id DESC LIMIT ".$database->database_real_escape_string($page_vars_friends[0]).", ".$friends_per_page);
$total_friends1=$database->database_num_rows($query);
?>
<? if($page_vars_friends[2]> 1){?>
<div class='browse_pages'>
<? if($page_vars_friends[1]!= 1){?><a href="javascript:void(0);" onclick="loadXMLDoc(1);"><span class="white arrow">&#171;</span></a> <a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p-1?>);"><span class="white arrow">&#8249;</span></a><? }else{?><font class='disabled'><span class="white arrow">&#171; &#8249;</span></font><? }?>
| <?
foreach($for as $foo){?>
<a href="javascript:void(0);" onclick="loadXMLDoc(<?=$foo?>);"><?=$foo?></a>
<? }?> |
<? if($page_vars_friends[1]!= $page_vars_friends[2]){?><a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p+1?>);"><span class="white arrow">&#8250;</span></a> <a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p+1?>);"><span class="white arrow">&#187;</span></a><? }else{?><font class='disabled'><span class="white arrow">&#8250; &#187;</span></font><? }?>
<br /><span style="font-weight:normal;"><? if(($page_vars_friends[0]+1)==($page_vars_friends[0]+$total_friends1)){?>
viewing results <?=$page_vars_friends[0]+1?>-<?=$page_vars_friends[0]+$total_friends1?> of <?=$total_friends?>
<? }else{?>
viewing results <?=$page_vars_friends[0]+1?>-<?=$page_vars_friends[0]+$total_friends1?> of <?=$total_friends?>
<? }?></span><br />
<form onsubmit="loadXMLDoc(document.getElementById('p').value);" target="forforms">Go to Page: <input type="text" name="p" id="p" class="gotext" /><input type="hidden" name="s" value="{$s}" /><input type="hidden" name="group_id" value="{$group->group_info.group_id}" /><input type="hidden" name="search" value="{$search}" /><input type="hidden" name="v" value="{$v}" /><input type="submit" value="Go" /></form>
</div>
<? }?>
<?
while($row=$database->database_fetch_array($query))
{
$owner1=new SEUser(Array($row["profilecomment_authoruser_id"]));
//$row["profilecomment_body"]=preg_replace('/[\{uD83C}-\x{DBFF}\x{DC00}-\x{DFFF}]+/gm', "<i>1</i>", $string);
//$comment_data['comment_body']=$emojis;
?>
<div id="comment_<?=$row["profilecomment_id"]?>"><div style="margin-top: 10px; margin-bottom: 20px;"><div style="float: left; text-align: center; width: 90px;"><a href="<?=$url->url_create('profile', $owner1->user_info["user_username"])?>"><?php $profilepicture=$owner1->user_photo("./images/nophoto.png");
echo $owner1->userprofiledot($profilepicture, "75px", NULL, "0");?></a></div><div style="overflow: hidden;"><div class="profile_comment_author"><a href="<?=$url->url_create('profile', $owner1->user_info["user_username"])?>"><b><?=$owner1->user_displayname?></b></a></div><div class="profile_comment_date"><?=date('n/j/Y g:i A', $row["profilecomment_date"])?></div><div class="profile_comment_body" id="profile_comment_body_<?=$row["profilecomment_id"]?>"><?
$row["profilecomment_body"]=str_replace("\'","'", $row["profilecomment_body"]);
if(json_decode(stripslashes($row["profilecomment_body"]))){
$string = $row["profilecomment_body"];
$row["profilecomment_body"]=preg_replace('([*#0-9](?>\\xEF\\xB8\\x8F)?\\xE2\\x83\\xA3|\\xC2[\\xA9\\xAE]|\\xE2..(\\xF0\\x9F\\x8F[\\xBB-\\xBF])?(?>\\xEF\\xB8\\x8F)?|\\xE3(?>\\x80[\\xB0\\xBD]|\\x8A[\\x97\\x99])(?>\\xEF\\xB8\\x8F)?|\\xF0\\x9F(?>[\\x80-\\x86].(?>\\xEF\\xB8\\x8F)?|\\x87.\\xF0\\x9F\\x87.|..(\\xF0\\x9F\\x8F[\\xBB-\\xBF])?|(((?<zwj>\\xE2\\x80\\x8D)\\xE2\\x9D\\xA4\\xEF\\xB8\\x8F\k<zwj>\\xF0\\x9F..(\k<zwj>\\xF0\\x9F\\x91.)?|(\\xE2\\x80\\x8D\\xF0\\x9F\\x91.){2,3}))?))', "<span class='emoticomment'>$0</span>",(json_decode(($string))) );
echo html_entity_decode($row["profilecomment_body"]);}else{
echo $row["profilecomment_body"];}
?></div>
<div class="profile_comment_links">
<? if($user->user_info["user_id"]==$owner->user_info["user_id"]){?><a href="profile.php?user=<?=$owner1->user_info["user_username"]?>&amp;v=comments">reply</a>&nbsp;-&nbsp;<? }?>
<a href="/profile_comments.php?user=<?=$owner->user_info["user_username"]?>&user2=<?=$owner1->user_info["user_username"]?>" data-toggle="modal" data-target="#myModal">Wall-to-Wall</a>
<? if($owner1->user_info["user_id"]!=$user->user_info["user_id"]){?>&nbsp;-&nbsp;<a data-toggle="modal" data-target="#myModal" href="user_messages_new.php?to_user=<?=$owner1->user_info["user_username"]?>&to_id=<?=$owner1->user_info["user_username"]?>">message</a><? }?>
<?
if($owner1->user_info["user_id"]==$user->user_info["user_id"]){?>
&nbsp;-&nbsp;<a class="commentEditLink" href="javascript:void(0);" id="comment_edit_link_<?=$row["profilecomment_id"]?>" onclick="editComment1(<?=$row["profilecomment_id"]?>);">edit</a><? }?>
<? if($user->user_info["user_id"]==$owner->user_info["user_id"]||$user->user_info["user_id"]==$owner1->user_info["user_id"]){?>&nbsp;-&nbsp;<a class="commentDeleteLink" href="javascript:void(0);" id="comment_delete_link_<?=$row["profilecomment_id"]?>" onclick="lepconfirmprofDelete(<?=$row["profilecomment_id"]?>)">delete</a><? }?>&nbsp;</div>
</div></div><div class="clear"></div>
</div>
<?
}
?>
<? if($page_vars_friends[2]> 1){?>
<div class='browse_pages'>
<? if($page_vars_friends[1]!= 1){?><a href="javascript:void(0);" onclick="loadXMLDoc(1);"><span class="white arrow">&#171;</span></a> <a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p-1?>);"><span class="white arrow">&#8249;</span></a><? }else{?><font class='disabled'><span class="white arrow">&#171; &#8249;</span></font><? }?>
| <?
foreach($for as $foo){?>
<a href="javascript:void(0);" onclick="loadXMLDoc(<?=$foo?>);"><?=$foo?></a>
<? }?> |
<? if($page_vars_friends[1]!= $page_vars_friends[2]){?><a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p+1?>);"><span class="white arrow">&#8250;</span></a> <a href="javascript:void(0);" onclick="loadXMLDoc(<?=$p+1?>);"><span class="white arrow">&#187;</span></a><? }else{?><font class='disabled'><span class="white arrow">&#8250; &#187;</span></font><? }?>
<br /><span style="font-weight:normal;"><? if(($page_vars_friends[0]+1)==($page_vars_friends[0]+$total_friends1)){?>
viewing results <?=$page_vars_friends[0]+1?>-<?=$page_vars_friends[0]+$total_friends1?> of <?=$total_friends?>
<? }else{?>
viewing results <?=$page_vars_friends[0]+1?>-<?=$page_vars_friends[0]+$total_friends1?> of <?=$total_friends?>
<? }?></span><br />
<form onsubmit="loadXMLDoc(document.getElementById('p1').value);" target="forforms">Go to Page: <input type="text" name="p" id="p1" class="gotext" /><input type="hidden" name="s" value="{$s}" /><input type="hidden" name="group_id" value="{$group->group_info.group_id}" /><input type="hidden" name="search" value="{$search}" /><input type="hidden" name="v" value="{$v}" /><input type="submit" value="Go" /></form>
</div>
<? }?>
<div class="modal fade modal-default" style="z-index:100000000;" id='confirmdelete1'><div class="modal-dialog" ><button type="button" class="close main-bg-color alt-text-color orangebg" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i></button>
<div class="modal-content" style="background:black; text-align:left;">
<div style='margin-top: 10px;'>
Are you sure you want to delete this comment?
</div>
<br>
<form action="misc_js.php" method="post" target="ajaxframe" name="commentDeleteForm"><input type="submit" class="button" value="Delete" onclick="subtractcount();lepremovecomment();closemodal(); "> <input type="button" class="button" value="Cancel" onclick="closemodal();"><input type="hidden" name="task" value="comment_delete1"><input type="hidden" name="comment_id" id="del_comment_id1" value=""><input type="hidden" name="type" value="profile"><input type="hidden" name="iden" value="user_id"><input type="hidden" name="value" value="<?=$owner->user_info["user_id"]?>"><input type="hidden" name="user" value="<?=$owner->user_info["user_username"]?>"><input type="hidden" name="tab" value="users"><input type="hidden" name="col" value="user"></form>
</div>
</div>
</div>
<?
}
?>
<link rel="stylesheet" type="text/css" href="/include/emojis/emojionearea.min.css" media="screen">
<script type="text/javascript" src="/include/emojis/emojionearea.js"></script>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#comment_body").emojioneArea({
attributes: {
spellcheck : true,
autocomplete : "on",
autocorrect : "on",
autocapitalize : "on",
},
// container: "#emojicontainer",
pickerPosition: "left",
tonesStyle: "bullet",
pickerPosition :"bottom"
// saveEmojisAs: "image"
});
});
</script>
<?php
}
// ASSIGN VARIABLES AND INCLUDE FOOTER
$smarty->assign('v', $v);
$smarty->assign('key', $key);
$smarty->assign('planname', $planname);
$smarty->assign('time', time());
$smarty->assign('plan_array', $plan_array);
$smarty->assign('profile_views', $profile_views);
$smarty->assign('cats', $field->cats);
$smarty->assign('is_profile_private', $is_profile_private);
$smarty->assign('allowed_to_comment', $allowed_to_comment);
$smarty->assign('total_comments', $total_comments);
$smarty->assign('total_photo_tags', $total_photo_tags);
$smarty->assign('m', $m);
$smarty->assign('search', $search);
$smarty->assign('friends', $friends);
$smarty->assign('total_friends', $total_friends);
$smarty->assign('total_friends_all', $total_friends_all);
$smarty->assign('total_friends_mut', $total_friends_mut);
$smarty->assign('maxpage_friends', $page_vars_friends[2]);
$smarty->assign('p_start_friends', $page_vars_friends[0]+1);
$smarty->assign('p_end_friends', $page_vars_friends[0]+count($friends));
$smarty->assign('p_friends', $page_vars_friends[1]);
$smarty->assign('is_friend', $is_friend);
$smarty->assign('is_friend_pending', $is_friend_pending);
$smarty->assign('friendship_allowed', $friendship_allowed);
$smarty->assign('is_online', $is_online);
//$smarty->assign('actions', $actions->actions_display(0, $setting['setting_actions_actionsonprofile'], "se_actions.action_user_id='{$owner->user_info['user_id']}'"));
include "footer.php";
?>