( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
if(empty($pichaC)) { header("Location: indexAlone.php?mode=profilepicture");exit();}
$favstartag = $db->getfavstartag();
$where = $_GET['where'];
if ($where=="opengallery") {
$pic2 = $_GET['pic2'];
$msg_id1 = $_GET['msg_id1'];
$pic2 = $db->base64url_decode($pic2);
$msg_id1 = $db->base64url_decode($msg_id1);
$db->replaceBrand($pic2,$msg_id1);
header("Location: indexAlone.php?mode=conversation&msg=Background+created+Successfully!");
}
if ($_POST['goStar']) {
$_POST = filter($_POST);
$mytitle = mysqli_real_escape_string($link,$mytitle);
$msg_id = mysqli_real_escape_string($link,$msg_id);
$mytitle = preg_replace( '/[«»""!?,.!@£$%^&*{};:()]+/', '', $mytitle);
$db->editstar2($mytitle,$msg_id);
header("Location: indexAlone.php?mode=conversation&msg=Congratulations+Startag+created+Successfully!");
}
if($step==7)
{
header("Location: index.php?mag=mag&mode=share&msg_id=$msg_id&step=2");
}
$widget = $catalogid5;
$VideoPath = "uploads/live/";
$live_img = 'uploads/images/';
$videouser = $_SESSION['euserid'];
function sizeinput($input, $len){
(int)$len;
(string)$input;
$n = substr($input, 0,$len);
$ret = trim($n);
$out = htmlentities($ret, ENT_QUOTES);
return $out;
}
function checkfile($input){
$ext = array('mpg', 'wma', 'mov', 'flv', 'mp4', 'm4v', 'avi', 'qt', 'wmv', 'rm', '3gp', 'mpeg', 'divx', 'moov', 'asf', 'swf', 'vob');
$extfile = substr($input['name'],-4);
$extfile = explode('.',$extfile);
$good = array();
$extfile = $extfile[1];
if(in_array($extfile, $ext)){
$good['safe'] = true;
$good['ext'] = $extfile;
}else{
$good['safe'] = false;
}
return $good;
}
//no error reporting
//@error_reporting(0);
if (empty($page)){
$page = 0;
}
$record =12;
if ($favstartag[0]["type"] == 1 ){ $record =3; }
// generate paging here
$delnews = $_GET["delnews"];
if ($delnews=="yes") {
$msg_id = $db->base64url_decode($msg_id);
$db->delstar($msg_id);
header("Location: ./indexAlone.php?mode=conversation&category=alert-danger&msg=Successfully+deleted");
}
$default = $_GET["default"];
$pager = $_GET["pager"];
if ($default=="yes") {
$msg_id = $db->base64url_decode($msg_id);
$db->def($msg_id);
header("Location: ./indexAlone.php?mode=conversation&page=$pager&category=alert-danger&msg2=Brand+made+default");
}
if (!empty($editthumb)) {
$tempuserfile = $_FILES['userfile']['tmp_name'];
$tempuserfile_name = $_FILES['userfile']['name'];
if ((!empty($tempuserfile)) && (!empty($tempuserfile_name))) {
$userfile = $tempuserfile;
$userfile_name = $tempuserfile_name;
}
if ((!empty($userfile)) && (!empty($userfile_name))) {
$videouser = $_SESSION['euserid'];
$userfile_name = preg_replace('/[\ ]/', '-', $userfile_name);
$userfile_name = $videouser.rand(455,78787).$userfile_name;
$dest1 = $live_img.$userfile_name;
copy($userfile, $dest1);
$starting_image = imagecreatefromjpeg("$live_img$userfile_name");
$width = imagesx($starting_image);
$height = imagesy($starting_image);
$thumb_width = 130;
$thumb_height = 65;
$thumb_image = imagecreatetruecolor($thumb_width, $thumb_height);
imagecopyresampled($thumb_image, $starting_image, 0, 0, 0, 0, $thumb_width, $thumb_height, $width, $height);
imagejpeg($thumb_image, "$live_img$userfile_name");
$db->addThumb($msg_id,$userfile_name,$live_img);
}}
if (!empty($addnews)) {
$_POST = filter($_POST);
$title = mysqli_real_escape_string($link,$title);
$content = mysqli_real_escape_string($link,$content);
$description = mysqli_real_escape_string($link,$description);
$keywords = mysqli_real_escape_string($link,$keywords);
$msg_id = $db->updateContent($title,$content,$keywords,$isdisplay,$description,$vcat,$slug,$episodeid);
}
if (!empty($editnewsr)) {
$_POST = filter($_POST);
$mytitle = mysqli_real_escape_string($link,$mytitle);
$content = mysqli_real_escape_string($link,$content);
$description = mysqli_real_escape_string($link,$description);
$keywords = mysqli_real_escape_string($link,$keywords);
$db->editnewsr($catalogid,$mytitle,$content,$keywords,$isdisplay,$description,$vcat,$summary,$thumb,$msg_id,$slug,$episodeid);
$db->editslugr($msg_id,$slug,$mytitle,$str);
header("Location: indexAlone.php?mode=conversation&category=alert-success&msg=content+edited+Successfully!");
}
if (!empty($jsondata)) {
$step = $_POST['step'];
$msg_id = $_POST['msg_id'];
$brand = "images/".$_POST['brand'];
$msg_id = $db->base64url_decode($msg_id);
$msg_id = mysqli_real_escape_string($link,$msg_id);
$res = json_decode(stripslashes($_POST['jsondata']), true);
/* get data */
$photo = $_POST['photo'];
$category = $_POST['category'];
$count_images = count($res['images']);
/* the background image is the first one */
$background = $res['images'][0]['src'];
$photo1 = imagecreatefromjpeg($background);
$foto1W = imagesx($photo1);
$foto1H = imagesy($photo1);
$photoFrameW = $res['images'][0]['width'];
$photoFrameH = $res['images'][0]['height'];
$photoFrame = imagecreatetruecolor($photoFrameW,$photoFrameH);
imagecopyresampled($photoFrame, $photo1, 0, 0, 0, 0, $photoFrameW, $photoFrameH, $foto1W, $foto1H);
/* brand it*/ if($step==6)
{
$photoFrame2Rotation = 0;
$photo2 = imagecreatefrompng($brand);
$foto2W = imagesx($photo2);
$foto2H = imagesy($photo2);
$photoFrame2W = 145;
$photoFrame2H = 100;
$photoFrame2TOP = 0;
$photoFrame2LEFT= 0;
$photoFrame2 = imagecreatetruecolor($photoFrame2W,$photoFrame2H);
$trans_colour = imagecolorallocatealpha($photoFrame2, 0, 0, 0, 127);
imagefill($photoFrame2, 0, 0, $trans_colour);
imagecopyresampled($photoFrame2, $photo2, 0, 0, 0, 0, $photoFrame2W, $photoFrame2H, $foto2W, $foto2H);
$photoFrame2 = imagerotate($photoFrame2,$photoFrame2Rotation, -1,0);
/*after rotating calculate the difference of new height/width with the one before*/
$extraTop =(imagesy($photoFrame2)-$photoFrame2H)/2;
$extraLeft =(imagesx($photoFrame2)-$photoFrame2W)/2;
imagecopy($photoFrame, $photoFrame2,$photoFrame2LEFT-$extraLeft, $photoFrame2TOP-$extraTop, 0, 0, imagesx($photoFrame2), imagesy($photoFrame2));
}
/* brand it*/
/* the other images */
for($i = 1; $i < $count_images; ++$i){
$insert = $res['images'][$i]['src'];
$theId = $res['images'][$i]['id'];
$db->cart($theId);
$photoFrame2Rotation = (165-$res['images'][$i]['rotation']) + 165;
$photo2 = imagecreatefrompng($insert);
$foto2W = imagesx($photo2);
$foto2H = imagesy($photo2);
$photoFrame2W = $res['images'][$i]['width'];
$photoFrame2H = $res['images'][$i]['height'];
$photoFrame2TOP = $res['images'][$i]['top'];
$photoFrame2LEFT= $res['images'][$i]['left'];
$photoFrame2 = imagecreatetruecolor($photoFrame2W,$photoFrame2H);
$trans_colour = imagecolorallocatealpha($photoFrame2, 0, 0, 0, 127);
imagefill($photoFrame2, 0, 0, $trans_colour);
imagecopyresampled($photoFrame2, $photo2, 0, 0, 0, 0, $photoFrame2W, $photoFrame2H, $foto2W, $foto2H);
$photoFrame2 = imagerotate($photoFrame2,$photoFrame2Rotation, -1,0);
/*after rotating calculate the difference of new height/width with the one before*/
$extraTop =(imagesy($photoFrame2)-$photoFrame2H)/2;
$extraLeft =(imagesx($photoFrame2)-$photoFrame2W)/2;
imagecopy($photoFrame, $photoFrame2,$photoFrame2LEFT-$extraLeft, $photoFrame2TOP-$extraTop, 0, 0, imagesx($photoFrame2), imagesy($photoFrame2));
}
// Set the content type header - in this case image/jpeg
$src = "v/uploads/startags/$photo";
imagejpeg($photoFrame, $src,100);
/*header('Content-type: image/jpeg');
imagejpeg($photoFrame, $targetfile,100);
imagedestroy($photoFrame);*/
$db->pimped($msg_id,$appno);
$msg_idR = $db->base64url_encode($msg_id);
if($step==0)
{
header("Location: indexAlone.php?mode=pimpme&msg_id=$msg_idR&step=1");
}
if($step==1)
{
header("Location: indexAlone.php?mode=pimpme&msg_id=$msg_idR&step=2");
}
if($step==2)
{
header("Location: indexAlone.php?mode=pimpme&msg_id=$msg_idR&step=3");
}
if($step==3)
{
header("Location: indexAlone.php?mode=pimpme&msg_id=$msg_idR&step=4");
}
if($step==4)
{
header("Location: indexAlone.php?mode=pimpme&msg_id=$msg_idR&step=5");
}
if($step==5)
{
header("Location: indexAlone.php?mode=pimpme&msg_id=$msg_idR&step=6");
}
if($step==6)
{
header("Location: indexAlone.php?mode=effects&msg_id=$msg_idR");
}
}
////
if (!empty($crop)) {
$_POST = filter($_POST);
$msg_id = $_POST['msg_id'];
$action = $_POST['action'];
$msg_id = $db->base64url_decode($msg_id);
$msg_id2 = $_POST['msg_id'];
$photo = $_POST['photo'];
$targ_w = $_POST['w'];
$mag = $_POST['mag'];
$appno = $_POST['appno'];
$targ_h = $_POST['h'];
$quality = 100;
$src = "v/uploads/startags/$photo";
$src2 = "v/uploads/gthumbs/$photo";
$dst_r = imagecreatetruecolor($targ_w, $targ_h);
// Set up the appropriate image handling functions based on the picture image's mime type
$size = GetImageSize($src);
$mime = $size['mime'];
switch ($size['mime'])
{
case 'image/gif':
// We will be converting GIFs to PNGs to avoid transparency issues when resizing GIFs
// This is maybe not the ideal solution, but IE6 can suck it
$creationFunction = 'ImageCreateFromGif';
$outputFunction = 'ImagePng';
$mime = 'image/png'; // We need to convert GIFs to PNGs
$quality = round(10 - ($quality / 10)); // We are converting the GIF to a PNG and PNG needs a compression level of 0 (no compression) through 9
break;
case 'image/png':
$creationFunction = 'ImageCreateFromPng';
$outputFunction = 'ImagePng';
$quality = round(10 - ($quality / 10)); // PNG needs a compression level of 0 (no compression) through 9
break;
default:
$creationFunction = 'ImageCreateFromJpeg';
$outputFunction = 'ImageJpeg';
$quality=100;
break;
}
$img_r = $creationFunction($src);
if (in_array($size['mime'], array('image/gif', 'image/png')))
{
/* exit("ikooooooooooooooooooo");*/
if (!$color)
{
// If this is a GIF or a PNG, we need to set up transparency
imagealphablending($dst_r, false);
imagesavealpha($dst_r, true);
}
else
{
// Fill the background with the specified color for matting purposes
if ($color[0] == '#')
$color = substr($color, 1);
$background = FALSE;
if (strlen($color) == 6)
$background = imagecolorallocate($dst_r, hexdec($color[0].$color[1]), hexdec($color[2].$color[3]), hexdec($color[4].$color[5]));
else if (strlen($color) == 3)
$background = imagecolorallocate($dst_r, hexdec($color[0].$color[0]), hexdec($color[1].$color[1]), hexdec($color[2].$color[2]));
if ($background)
imagefill($dst_r, 0, 0, $background);
}
}
imagecopyresampled($dst_r,$img_r,0,0,$_POST['x'],$_POST['y'],$targ_w,$targ_h,$targ_w,$targ_h);
$outputFunction($dst_r, $src2, $quality);
include("pages/supersize.php");
$w=650;
$h=650;
$quality="100";
img_resizer($src2,$quality,$w,$h,$src2,$nocrop=0,$force=0);
header("Location: indexAlone.php?mode=pickStartag&msg_id=$msg_id2&category=alert-success&step=0&action=$action");
/* header("Location: indexAlone.php?mode=updateStartag&msg_id=$msg_id2&category=alert-success&step=0&action=$action"); */
}
if (!empty($cropOld)) {
$_POST = filter($_POST);
$msg_id = $_POST['msg_id'];
$action = $_POST['action'];
$msg_id = $db->base64url_decode($msg_id); $db->cropS($msg_id);
$msg_id2 = $_POST['msg_id'];
$photo = $_POST['photo'];
$targ_w = $_POST['w'];
$mag = $_POST['mag'];
$appno = $_POST['appno'];
$targ_h = $_POST['h'];
$quality = 100;
$src = "v/uploads/startags/$photo";
$src2 = "v/uploads/gthumbs/$photo";
$dst_r = imagecreatetruecolor( $targ_w, $targ_h );
// Set up the appropriate image handling functions based on the original image's mime type
$size = GetImageSize($src);
$mime = $size['mime'];
switch ($size['mime'])
{
case 'image/gif':
// We will be converting GIFs to PNGs to avoid transparency issues when resizing GIFs
// This is maybe not the ideal solution, but IE6 can suck it
$creationFunction = 'ImageCreateFromGif';
$outputFunction = 'ImagePng';
$mime = 'image/png'; // We need to convert GIFs to PNGs
$quality = round(10 - ($quality / 10)); // We are converting the GIF to a PNG and PNG needs a compression level of 0 (no compression) through 9
break;
case 'image/png':
$creationFunction = 'ImageCreateFromPng';
$outputFunction = 'ImagePng';
$quality = round(10 - ($quality / 10)); // PNG needs a compression level of 0 (no compression) through 9
break;
default:
$creationFunction = 'ImageCreateFromJpeg';
$outputFunction = 'ImageJpeg';
$quality=100;
break;
}
$img_r = $creationFunction($src);
if (in_array($size['mime'], array('image/gif', 'image/png')))
{
/* exit("ikooooooooooooooooooo");*/
if (!$color)
{
// If this is a GIF or a PNG, we need to set up transparency
imagealphablending($dst_r, false);
imagesavealpha($dst_r, true);
}
else
{
// Fill the background with the specified color for matting purposes
if ($color[0] == '#')
$color = substr($color, 1);
$background = FALSE;
if (strlen($color) == 6)
$background = imagecolorallocate($dst_r, hexdec($color[0].$color[1]), hexdec($color[2].$color[3]), hexdec($color[4].$color[5]));
else if (strlen($color) == 3)
$background = imagecolorallocate($dst_r, hexdec($color[0].$color[0]), hexdec($color[1].$color[1]), hexdec($color[2].$color[2]));
if ($background)
imagefill($dst_r, 0, 0, $background);
}
}
imagecopyresampled($dst_r,$img_r,0,0,$_POST['x'],$_POST['y'],$targ_w,$targ_h,$_POST['w'],$_POST['h']);
$outputFunction($dst_r, $src2, $quality);
$msg_id = mysqli_real_escape_string($link,$msg_id);
$maxWidtha = 650;
$maxHeighta = 650;
if ($targ_w > $maxWidtha)
{
header("Location: ./autosizeS.php?maxWidtha=650&maxHeighta=650&action=$action&msg_id=$msg_id2&prepare=no");
exit();
}
header("Location: indexAlone.php?mode=updateStartag&msg_id=$msg_id2&category=alert-success&step=0&action=$action");
}
if (!empty($skip)) {
$msg_id = $_GET['msg_id'];
$action = "FILTER";
$msg_id = $db->base64url_decode($msg_id);
$db->pimped($msg_id,$appno);
$msg_id = $db->base64url_encode($msg_id);
header("Location: indexAlone.php?mode=updateReport&msg_id=$msg_id&category=alert-success&msg=Skipped+Cropping");
}
if (!empty($editmyreport)) {
$_POST = filter($_POST);
$mytitle = mysqli_real_escape_string($link,$mytitle);
$content = mysqli_real_escape_string($link,$content);
$description = mysqli_real_escape_string($link,$description);
$keywords = mysqli_real_escape_string($link,$keywords);
$db->editmyreport($catalogid,$mytitle,$content,$keywords,$msg_id);
$db->editslugr($msg_id,$slug,$mytitle,$str);
header("Location: indexAlone.php?mode=conversation&category=alert-success&msg=Content+Edited+Successfully!");
}
if (!empty($DP1)) {
$db->del_Video($msg_id,$VideoPath);
}
if (empty($_GET['filter'])) {$filter = "";} else { $filter = " and isdisplay=3 "; }
$result = $db->getmyconversations($page,$record,$filter);
if(empty($result)){
header("Location: indexAlone.php?mode=upload§or=Startags&category=alert-success&msg=You+have+not+uploaded+content+to+manage.++Kindly+upload+on+your+right");
}
?>
<?php
if (!empty($result)) {?>
<script type="text/javascript">
$(function() {
/*var updatevalEarlier = localStorage.getItem('updatevalEarlier');
var form = $("#postit");
$("#update", form).val(updatevalEarlier); */
$(".delbutton").click(function(){
var del_id = element.attr("id");
var info = 'id=' + del_id;
if(confirm("Sure you want to delete this update? There is NO undo!"))
{
$.ajax({
type: "POST",
url: "ezikiframework.php",
data: info,
success: function(){
}
});
$(this).parents(".record").animate({ backgroundColor: "#fbc7c7" }, "fast")
.animate({ opacity: "hide" }, "slow");
}
return false;
});
});
</script>
<script type="text/javascript" src="v/scripts/multiplereporta.js"> </script>
<div id="insert_response5" style=" color:#4d90b4;font:Arial, Helvetica, sans-serif; font-size:11px;"></div> <div id="insert_response66" style=" color:#4d90b4;font:Arial, Helvetica, sans-serif; font-size:11px;"></div>
<?php } ?>
<?php
$page_limit = $record ;
$pagenext = $page+1;
if($page <= 0) { $pageprevious = 0;} else {$pageprevious = $page-1;}
$result1 = $db->getmystartags($pagenext,$record,$catid);
if (!isset($_GET['page']) )
{ $start=0; } else
{ $start = ($_GET['page'] - 1) * $page_limit; }
$rs_all = mysqli_query($link,"select count(*) as total_all from profilepicture where catalogid=$videouser and type=2") or die(mysql_error());
list($allvids) = mysqli_fetch_row($rs_all);?>
<?php $msg_id_0 = $db->Profile_Pic_ID();
$msg_id_0 = $db->base64url_encode($msg_id_0);
?>
<form id="magazine" method="POST">
<input type="hidden" id="mag" name="mag" value="yes" />
<input id="fx" name="fx" type="hidden" value="<?php echo $result[0]["fx"]; ?>" autocomplete="off">
</input>
<input id="photo" name="photo" type="hidden" value="">
</input>
<input id="twist" name="twist" type="hidden" value="normal" >
</input>
<input type="hidden" id="newsid" name="newsid" value="MTQwODY1MTE3Mw,," />
<input type="hidden" id="step" name="step" value="7" />
<input type="hidden" id="brand" name="brand" value="watermark.png" />
<input id="x" value="0" type="hidden">
<input id="y" value="0" type="hidden">
</form>
<section class="panel">
<header class="panel-heading " >
<?php /*?> <?php if (!empty($_GET['filter'])) {?> <a href="?mode=conversation&page=<?php echo $pageprevious ?>&catid=<?php echo $catid ?><?php if (!empty($_GET['filter'])) {?>&filter=1<?php }?>"> <i class="icon-chevron-left text"></i> Back </a> <?php }?><?php */?>
<table width="100%" border="0">
<tr>
<td> <b class="text-success h4">Conversations </b> (<span class="count"></span> Your conversation will appear below) </td>
<td style="width:200px" align="right" ><?php
if (!empty($result1))
{?>
<a href="?mode=conversation&page=<?php echo $pageprevious ?>&catid=<?php echo $catid ?><?php if (!empty($_GET['filter'])) {?>&filter=1<?php }?>"><span class="btn btn-white "><i class="icon-chevron-left"></i> </span></a>
<?php }
else
{?>
<a ><span class="btn btn-white "><span class="btn btn-white "><i class="icon-chevron-left"></i> </span> </span></a>
<?php }
?>
<?php
if (!empty($result1))
{?>
<a href="?mode=conversation&page=<?php echo $pagenext ?>&catid=<?php echo $catid ?><?php if (!empty($_GET['filter'])) {?>&filter=1<?php }?>"><span class="btn btn-white "><i class="icon-chevron-right"></i> </span></a>
<?php }
else
{?>
<a ><span class="btn btn-white "><i class="icon-chevron-right"></i> </span></a>
<?php }
?> </td>
</tr>
</table>
</header>
<ul class="list-group gutter list-group-lg list-group-sp sortable layer-list scrollable" style="max-height:310px;">
<?php foreach ($result as $key => $val) {
$msg_id = stripslashes($val["msg_id"]);
$catalogid = stripslashes($val["catalogid"]);
$id = stripslashes($val["id"]);
$screen_name = stripslashes($val["screen_name"]);
$tweet = stripslashes($val["tweet"]);
$tweet_pic = stripslashes($val["tweet_pic"]);
$tweet_pic = str_replace('_normal', '_bigger', $tweet_pic);
$tweet = preg_replace("/&#?[a-z0-9]{2,8};/i","",$tweet);
$tweet = iconv("UTF-8", "UTF-8//IGNORE", $tweet);
if ($isdisplay ==7 ){ $thumb ="thumbs/";} else {$thumb ="startags/";}
/*$type = pathinfo($picture, PATHINFO_EXTENSION);*/
?>
<?php $msg_id = $db->base64url_encode($msg_id); ?>
<li class="list-group-item <?php if ($isdisplay ==3 ){ ?> bg-light dkr <?php } ?><?php if ($isdisplay ==5 ){ ?> bg-light lter <?php } ?><?php if ($isdisplay ==4 ){ ?> <?php } ?>" draggable="true" style=" margin:0px; border-bottom:0px">
<table width="100%">
<tr>
<td width="50" ><a title="Make Default" href="indexAlone.php?mode=conversation&pager=<?php echo $_GET["page"] ?>&msg_id=<?php print "$msg_id"; ?>&catid=<?php print "$catid"; ?>&default=yes&where=photo">
<?php if(!empty($tweet_pic)){?>
<div class="thumbnail" style=" width:65px; margin-left:0px; overflow:hidden">
<img id="<?php echo $row_Latest['title']; ?>" style="border-color:#09F;background-color:#fff" class="img-circle border avatar " height="65" width="65" src="<?php echo $tweet_pic ?>" >
<h5 style="font-size:10px"></h5> </div>
<?php /*?><img class="img-circle" src="<?php echo $tweet_pic ?>" title="Published: <?php echo $adddate ?>" style="margin:0; width:40px; height:40px;padding:0px" width="40" height="40"/><?php */?><?php } ?>
<?php if(empty($tweet_pic)){?><div class="thumbnail" style="margin:0px; width:65px; margin-left:0px; overflow:hidden"><img src="<?php echo $siteaddress;?>taswira.php?width=73&height=73&nocache=1&cropratio=1:1&image=/v/uploads/gthumbs/<?php echo $pichaC;?>" style="border-color:#09F;background-color:#fff" class="img-circle border avatar " height="65" width="65"/> <h5 style="font-size:10px"></h5> </div><?php } ?>
</a></td>
<td style="overflow:hidden"><span style=" font-size:13px">
<a href="?mode=conversation§or=selectConversation&convoId=<?php echo $id ?>&page=<?php echo $page?>"><strong>@<?php echo $screen_name ?>:</strong> <?php echo $tweet ?></a>
</span></td>
<td width="20" align="right"><a class="remove"><i class="icon-trash "></i></a> </td> </tr>
</table>
</li>
<?php
}?>
</ul>
</section>
<?php include("convonav.php");?>
<?php if(!empty($_GET["convoId"])) {
$resultX = $db->convoText($_GET["convoId"]);
$convoTweet = $resultX[0]["tweet"];
$screen_name = $resultX[0]["screen_name"];
$convoTweet = preg_replace("/&#?[a-z0-9]{2,8};/i","",$convoTweet);
$convoTweet = iconv("UTF-8", "UTF-8//IGNORE", $convoTweet);
$convoTweet = str_replace(': ', ' : ', $convoTweet);
$convoTweet = preg_replace('#^https?://#', '', $convoTweet);
$convoTweet = preg_replace('/#\S+ */', '', $convoTweet);
$convoTweet = str_replace(': ', '- ', $convoTweet);
$convoTweet = str_replace('RT', 'Retweet', $convoTweet);
$regex = "@(https?://([-\w\.]+[-\w])+(:\d+)?(/([\w/_\.#-]*(\?\S+)?[^\.\s])?).*$)@";
$convoTweet = preg_replace($regex, ' ', $convoTweet);
?>
<article class="chat-item" id="chat-form">
<section class="chat-body">
<form id="postit" name="postit" class="m-b-none">
<div class="input-group">
<input id="update" name="update" class="form-control" value="<?php if(!empty($convoId)){echo $convoTweet;} ?><?php if(empty($convoId)){ echo "The quick brown fox jumps over the lazy dog.The quick brown fox jumps over the lazy dog";} ?>" type="hidden">
<input id="convoId" name="convoId" class="form-control" value="<?php echo $_GET["convoId"];?>" type="hidden">
<input id="mytheme" name="mytheme" class="form-control" value="<?php echo ucwords($favstartag[0]["title"]);?>" type="hidden"> <input id="pagerC" name="pagerC" class="form-control" value="<?php echo $page;?>" type="hidden">
</div>
</form>
</section>
</article>
<?php } ?>