<?php
date_default_timezone_set("Asia/Kolkata");
session_start();
include './includes/config.php';
include './includes/functions.php';
///////////////////////////////getting varibales///////////////
$pid = $_GET['pid'];
$id = $_GET['uid'];
$user = $_GET['user'];
$name = $_GET['name'];
$role = $_GET['role'];


$sql_per="select * from members where username='$_SESSION[username]'";
$result_per=mysqli_query($con,$sql_per);
if($result_per)
	{
		$row_per = mysqli_fetch_assoc($result_per);

	}
$istatus = $row_per['status'];
if($row_per['public_forum'] != 4){
	if($row_per['public_forum'] == 1){
		alert("You are not permitted to quote this post; Please contact admin","https://$domain/satta-matka-guessing-forum");
	}else{
 ?>
<!DOCTYPE html>
<html lang="en-US"><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<title>Quote Post - Satta Matka 143 Guessing | Kalyan Mumbai Matka Guessing | Dpboss Matka Forum Tips</title>
<meta name="description" content="Satta Matka 143 Guessing in Kalyan Mumbai Matka By Dpboss Matka, Kapil Matka and Indian Matka. Fastest Matka Result With Matka Forum Tips From SattaMaster.in " />
<meta name="robots" content="index, follow" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="canonical" href="https://<?php echo $domain; ?>/satta-matka-guessing-forum" />
<style type="text/css">
.Game-zone a,a,a:hover{color:red;text-decoration:none}a:hover,body{font-family:Georgia,serif}#logo,body,h5{background-color:#000}#logo,h2,h3,h4,h5{padding:5px}body *,h1,h2,h3,h4{margin:0}#logo,.Game-zone,.Red,.for,.o1,.own1,.panel-heading6,h5{font-weight:700}.Game-zone,.Game-zone a,.button_example,a,a:hover{text-decoration:none}body{word-wrap:break-word;color:#fff}body *{padding:0}.datefix,h1{padding:4px}table{width:100%}h1 a,h5{color:#fff}h1 a{text-decoration:overline}h5{border:4px double #f3f;margin:5px}.datefix{background-color:#fff;border:8px solid #ff1493;margin:1px}#logo{border:3px groove silver;margin-bottom:2px;margin-left:2px;margin-right:2px;font-style:italic;border-radius:10px 2px;text-align:center}textarea{width:200px;height:7em}input,select,textarea{background-color:#bde9ba}# example{background-color:limeyellow}p.top:first-line{color:#000;font-variant:small-caps}p.top:first-letter{color:gold;font-size:27px;margin:0}p.power{text-align:right}.quote{font-style:bold;border:2px solid #dc7633;color:#000;background-color:#f9e79f;padding:7px}.own1{font-size:x-medium;border:1px solid #fff;color:#fff;background-color:red;border-top-right-radius:12px;border-bottom-right-radius:12px}.forum2,.forumx{background-color:#fff;background-repeat:no-repeat;margin:3px;color:#000;text-align:center}.forum2{font-size:12px;padding:12px 3px 12px 28px;border:4px solid #bd07f7}.forumx{font-style:italic;padding:12px 8px}.o1{background-color:#f93;color:red;margin-top:1px;margin-bottom:1px;padding-top:5px;padding-bottom:5px}.blue1,.green{margin:2px;padding:10px}.o1 a{color:#000}.blue1{background-color:purple;color:#fff;border:4px solid #ff00ff}.green{background-color:#16c5be;color:#ff1493;border:4px solid #06f;width:80%;font-size:8px}.for,.for2{background-color:#ff0;margin:1px}img.normal{width:auto}img.big{width:80%}img.small{width:10%}.for{color:#000;border:3px dotted red;padding:4px;font-size:19px}.Red,.for2{padding:7px}.Red{background-color:red;color:#fff;border:3px solid #000;font-size:22px;text-align:center}b.drop-shadow{text-shadow:2px 2px 3px gold}.Game-zone{background-color:#fff;color:#000;font-style:italic;font-size:24px;border-width:3px;border-color:#9e0c4e;border-style:groove solid;margin:5px 2px;padding:5px;border-radius:3px;text-shadow:1px 1px silver}.panel-heading6{background-color:#2a2a2a;color:#fff;margin:2px;padding:10px 15px;border-bottom:4px solid #616364;border-top-right-radius:3px;border-top-left-radius:3px;text-align:center;font-size:large}.Page,.button_example{font-size:17px;font-weight:700;color:#000}.Page{background-color:#49a5f2;background-image:url('/img/page.png');border:1px solid silver;margin:2px 3px;padding:4px}.button_example{border:1px solid #15aeec;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;font-family:comic sans,comic sans ms,cursive,verdana,arial,sans-serif;padding:0;display:inline-block;text-shadow:-1px -1px 0 rgba(0,0,0,.3);background-color:#49c0f0;background-image:-webkit-gradient(linear,left top,left bottom,from(#49c0f0),to(#2cafe3));background-image:-webkit-linear-gradient(top,#49c0f0,#2cafe3);background-image:-moz-linear-gradient(top,#49c0f0,#2cafe3);background-image:-ms-linear-gradient(top,#49c0f0,#2cafe3);background-image:-o-linear-gradient(top,#49c0f0,#2cafe3);background-image:linear-gradient(to bottom,#49c0f0,#2cafe3)}.button_example:hover{border:1px solid #1090c3;background-color:#1ab0ec;background-image:-webkit-gradient(linear,left top,left bottom,from(#1ab0ec),to(#1a92c2));background-image:-webkit-linear-gradient(top,#1ab0ec,#1a92c2);background-image:-moz-linear-gradient(top,#1ab0ec,#1a92c2);background-image:-ms-linear-gradient(top,#1ab0ec,#1a92c2);background-image:-o-linear-gradient(top,#1ab0ec,#1a92c2);background-image:linear-gradient(to bottom,#1ab0ec,#1a92c2)}div.center{padding:5px;bordeur:#D3D2D2 solid 1px;margin-bottom:10px;display:block;margin-left:auto;margin-right:auto}div.left{padding:5px;float:left}div.right{float:right;margin-left:10px}
</style>
</head>
<body>
<div class="o1" align="right"><table cellpadding="0" cellspacing="0" width="100%">
<tbody><tr><td width="auto" align="left">» <a href="/rules">Forum Posting Rules</a></td>
<td width="auto" align="right"> <font color="#000000"><?php if(isset($_SESSION['username'])){ echo '<a href="/logout.php?ref=forum">Logout</a>';}else{echo '<a href="/login.php?ref=forum">Login</a>';} ?></font></td></tr></tbody></table></div>


<br><br />
<?php if(isset($_SESSION['username']) && $istatus == '0'){
$pid = $_GET['pid'];
$id = $_GET['uid'];
$name = $_GET['name'];
$role = $_GET['role'];
$srk = $_GET['srk'];

////////inserting data Alx3 Code start////////
if(isset($_POST['submit']))
{
	//emoji icons
$placeholder=array(':banned:', ':birthday:', ':nicethread:', ':dance:', ':india:', ':goodjob:', ':thankyou:', ':sorry:', ':rulez:', ':welcome:', ':please:', ':balleballe:', ':10on10:', ':congratulations:', ':congrats:', ':congo:', ':goodnight:', ':dilse:', ':thanks1:', ':gm:', ':143:', '[cool]', '[congrats]', '[adore]', '[aetsch]', '[angry]', '[angrywife]', '[announce]', '[thankyou]', '[welcome]', '[avatar224]', '[b0201]', '[balle balle]', '[banghead]', '[banned 3]', '[bath]', '[bawl]', '[bebored]', '[beee]', '[beer]', '[bigboss]', '[biggrin]', '[biggrinangel]', '[birthday]', '[boxing]', '[brushing]', '[bsanta]', '[call]', '[chat]', '[ciao]', '[confuse]', '[dancing]', '[dancing]', '[devil2]', '[dj]', '[dj2]', '[don]', '[fight]', '[flamethrower]', '[hahaha]', '[hammer]', '[happy]', '[hehe]', '[hello]', '[horseride]', '[hot]', '[injail]', '[INR]', '[jetli]', '[kiss]', '[kngt]', '[lift]', '[locked]', '[lol]', '[lotpot]', '[matrix]', '[musicus]', '[nana]', '[nope]');
$vals=array('[img]icons/banned.gif[/img]', '[img]icons/birthday.gif[/img]', '[img]icons/nicethread.gif[/img]', '[img]icons/dance2.gif[/img]', '[img]icons/India.gif[/img]', '[img]icons/goodjob.gif[/img]', '[img]icons/thankyou.gif[/img]', '[img]icons/sorry.gif[/img]', '[img]icons/rulez.gif[/img]', '[img]icons/welcome.gif[/img]', '[img]icons/please.gif[/img]', '[img]icons/balleballe.gif[/img]', '[img]icons/10on10.gif[/img]', '[img]icons/congratulations.gif[/img]', '[img]icons/Congrats.gif[/img]', '[img]icons/congo.gif[/img]', '[img]icons/goodnight.gif[/img]', '[img]icons/dil-sse.gif[/img]', '[img]icons/Thanks.gif[/img]', '[img]icons/good-morning.gif[/img]', '[img]icons/143-family.gif[/img]', '[img]img/b0225.gif[/img]', '[img]img/congrats.gif[/img]', '[img]img/adore.gif[/img]', '[img]img/aetsch.gif[/img]', '[img]img/angry.gif[/img]', '[img]img/angrywife.gif[/img]', '[img]img/announce.gif[/img]', '[img]img/ThankYou.gif[/img]', '[img]img/welcome.gif[/img]', '[img]img/avatar224.gif[/img]', '[img]img/b0201.gif[/img]', '[img]img/balle balle.gif[/img]', '[img]img/banghead.gif[/img]', '[img]img/banned 3.gif[/img]', '[img]img/bath.gif[/img]', '[img]img/bawl.gif[/img]', '[img]img/bebored.gif[/img]', '[img]img/beee.gif[/img]', '[img]img/beer.gif[/img]', '[img]img/bigboss.gif[/img]', '[img]img/biggrin.gif[/img]', '[img]img/biggrinangel.gif[/img]', '[img]img/birthday.gif[/img]', '[img]img/boxing.gif[/img]', '[img]img/brushing.gif[/img]', '[img]img/bsanta.gif[/img]', '[img]img/call.gif[/img]', '[img]img/chat.gif[/img]', '[img]img/ciao.gif[/img]', '[img]img/confuse.gif[/img]', '[img]img/dancing.gif[/img]', '[img]img/dancing2.gif[/img]', '[img]img/devil2.gif[/img]', '[img]img/dj.gif[/img]', '[img]img/dj2.gif[/img]', '[img]img/don.gif[/img]', '[img]img/fight.gif[/img]', '[img]img/flamethrower.gif[/img]', '[img]img/hahaha.gif[/img]', '[img]img/hammer.gif[/img]', '[img]img/happy.gif[/img]', '[img]img/hehe.gif[/img]', '[img]img/hello.gif[/img]', '[img]img/horseride.gif[/img]', '[img]img/hot.gif[/img]', '[img]img/injail.gif[/img]', '[img]img/INR.png[/img]', '[img]img/jetli.gif[/img]', '[img]img/kiss.gif[/img]', '[img]img/kngt.gif[/img]', '[img]img/lift.gif[/img]', '[img]img/locked.gif[/img]', '[img]img/lol.gif[/img]', '[img]img/lotpot.gif[/img]', '[img]img/matrix.gif[/img]', '[img]img/musicus.gif[/img]', '[img]img/nana.gif[/img]', '[img]img/nope.gif[/img]');
	include('bbcode_function.php');
   //Variables from the table
   
   $msgbody1  = addslashes(rreplace($_POST['msgbody']));
   $message=str_replace($placeholder, $vals, $msgbody1);
   $id  = $_POST['id']; //jo login hai usko id
   $name = $_POST['name']; //jo login hai uska name
   $date = date("d-m-Y");
   $time = date("h:i:s A");
   $role = $_POST['role']; //jo login hai uska role
   $country = 'IN';
   $status = '0';
   $quote_status='1';
   $quote_pid=$_POST['pid'];
   $quote_full  = addslashes($_POST['frame']);
   
     $msgbody  = mysqli_real_escape_string($con,bbcode_to_html($message));
  //Check to see if the user left any space empty!
   if($msgbody == "")
   {
    //  echo '<h2 style="color:red;font-weight:bold;">Please fill in all the information!</h2><br>';
	  alert("Error: Your post is empty!","");
   }else
   {
	   $sql_dpx="select user_image from members where uid='$id'";
$result_dpx=mysqli_query($con,$sql_dpx);
if($result_dpx)	{		$row_dpx = mysqli_fetch_assoc($result_dpx);	}
$i_dpx = $row_dpx['user_image'];	   
if(!empty($i_dpx) == 1){
	$img_user_ix = '/img_uploads/'.$i_dpx;
}else{
	$img_user_ix = '/forum/images/img_avatar.webp';
}
            $add = mysqli_query($con,"INSERT INTO forum (pid, id, name, img_url, date, time, role, msgbody, country, status, quote_status, quote_pid,quote_full) VALUES (null, '$id' , '$name' , '$img_user_ix' , '$date', '$time', '$role', '$msgbody', '$country', '$status', '$quote_status', '$quote_pid', '$quote_full') ") or die("Can't                Insert! ");//   echo '<h2 style="color:green;font-weight:bold;"><center>Successful! <a href="/forum/"> Click Here </a> to log In.</center></h2>';
			alert("Post Successful","https://$domain/satta-matka-guessing-forum");
  

   }
}
////////inserting data Alx3 Code end////////

//////////jo login hai uska data fetch////
$sql2="select * from members where username='$_SESSION[username]'";
$result2=mysqli_query($con,$sql2);
if($result2)
	{
		$row2 = mysqli_fetch_assoc($result2);

	}
//////////jo login hai uska data fetch////

$sql="select * from forum where pid='$pid'";
$result=mysqli_query($con,$sql);
	if($result)
	{
$posts=mysqli_fetch_array($result,MYSQLI_ASSOC);
//if srk added
if($posts["if_srk"] == 1 and $posts["quote_status"] == 1){
	 $fr = '[QUOTE] Written By '.$posts['name'].' on '.date("d").' '.substr(date('F', mktime(0, 0, 0, date("m"), 10)), 0, 3).' '.date("h:i").'<br>'.linebreak(base64_decode($posts["quote_full"])).'<div class="forumx">'.base64_decode($posts['msgbody']).'</div>';
echo '<table class="blue1"><tr><td><p class="top"><font size="4"><a href="/satta-matka-guessing-forum/profile.php?id='.$posts['id'].'&user='.$posts['name'].'" style="color: red;text-decoration:none;"><b>#'.$posts['name'].'</a></font><br />#'.$posts['date'].' #'.$posts['time'].'</b></p></td><td><b style="color: gold; font-size: 20px;align-text:center;">'.$posts['role'].'</b></td><td align="right">
<b>[Online]</b>
</td>
</tr>
</table>
<div class="forum2"><font size="5"><b>'.linebreak(base64_decode($posts['quote_full'])).'</b><br><b class="drop-shadow">'.linebreak(base64_decode($posts['msgbody'])).'</b></font></div>
<br />
<center><font style="color:#ffffff;font-weight:bold;font-size:17px;">Post your reply</font><br>
<form method="post" action=""><textarea name="msgbody" rows="8" style="width:60%;">
</textarea>
<input name="id" type="hidden" value="'.$row2['uid'].'">
<input name="pid" type="hidden" value="'.$pid.'">
<input name="name" type="hidden" value="'.$row2['username'].'">
<input name="role" type="hidden" value="'.$row2['role'].'">
<input name="srk" type="hidden" value="1">
<input name="frame" type="hidden" value="'.base64_encode($fr).'"><br>
<input name="submit" type="submit" value="Post Reply" class="button_example">
</form>
<center>';	
	
}elseif($posts["if_srk"] == 1 and $posts["quote_status"] == 0){
	 $fr = 'Originally Posted By:'.$posts['name'].'<div class="forumx">'.base64_decode($posts['msgbody']).'</div>';
echo '<table class="blue1"><tr><td><p class="top"><font size="4"><a href="/satta-matka-guessing-forum/profile.php?id='.$posts['id'].'&user='.$posts['name'].'" style="color: red;text-decoration:none;"><b>#'.$posts['name'].'</a></font><br />#'.$posts['date'].' #'.$posts['time'].'</b></p></td><td><b style="color: gold; font-size: 20px;align-text:center;">'.$posts['role'].'</b></td><td align="right">
<b>[Online]</b>
</td>
</tr>
</table>
<div class="forum2"><font size="5"><b class="drop-shadow">'.linebreak(base64_decode($posts['msgbody'])).'</b></font></div>
<br />
<center><font style="color:#ffffff;font-weight:bold;font-size:17px;">Post your reply</font><br>
<form method="post" action=""><textarea name="msgbody" rows="8" style="width:60%;">
</textarea>
<input name="id" type="hidden" value="'.$row2['uid'].'">
<input name="pid" type="hidden" value="'.$pid.'">
<input name="name" type="hidden" value="'.$row2['username'].'">
<input name="role" type="hidden" value="'.$row2['role'].'">
<input name="srk" type="hidden" value="0">
<input name="frame" type="hidden" value="'.base64_encode($fr).'"><br>
<input name="submit" type="submit" value="Post Reply" class="button_example">
</form>
<center>';	
	
	
}elseif($posts["if_srk"] == 0 and $posts["quote_status"] == 1){
	 $fr = base64_decode($posts["quote_full"]).'[QUOTE] Written By '.$posts['name'].' on '.date("d").' '.substr(date('F', mktime(0, 0, 0, date("m"), 10)), 0, 3).' '.date("h:i").'  <div class="forumx">'.$posts['msgbody'].'</div>';
echo '<table class="blue1"><tr><td><p class="top"><font size="4"><a href="/satta-matka-guessing-forum/profile.php?id='.$posts['id'].'&user='.$posts['name'].'" style="color: red;text-decoration:none;"><b>#'.$posts['name'].'</a></font><br />#'.$posts['date'].' #'.$posts['time'].'</b></p></td><td><b style="color: gold; font-size: 20px;align-text:center;">'.$posts['role'].'</b></td><td align="right">
<b>[Online]</b>
</td>
</tr>
</table>
<div class="forum2"><font size="5"><b>'.base64_decode($posts["quote_full"]).'</b><b class="drop-shadow">'.$posts['msgbody'].'</b></font></div>
<br />
<center><font style="color:#ffffff;font-weight:bold;font-size:17px;">Post your reply</font><br>
<form method="post" action=""><textarea name="msgbody" rows="8" style="width:60%;">
</textarea>
<input name="id" type="hidden" value="'.$row2['uid'].'">
<input name="pid" type="hidden" value="'.$pid.'">
<input name="name" type="hidden" value="'.$row2['username'].'">
<input name="role" type="hidden" value="'.$row2['role'].'">
<input name="srk" type="hidden" value="0">
<input name="frame" type="hidden" value="'.base64_encode($fr).'"><br>
<input name="submit" type="submit" value="Post Reply" class="button_example">
</form>
<center>';
	
}elseif($posts["if_srk"] == 0 and $posts["quote_status"] == 0){
	 $fr = 'Originally Posted By:'.$posts['name'].'<div class="forumx">'.$posts['msgbody'].'</div>';
echo '<table class="blue1"><tr><td><p class="top"><font size="4"><a href="/satta-matka-guessing-forum/profile.php?id='.$posts['id'].'&user='.$posts['name'].'" style="color: red;text-decoration:none;"><b>#'.$posts['name'].'</a></font><br />#'.$posts['date'].' #'.$posts['time'].'</b></p></td><td><b style="color: gold; font-size: 20px;align-text:center;">'.$posts['role'].'</b></td><td align="right">
<b>[Online]</b>
</td>
</tr>
</table>
<div class="forum2"><font size="5"><b class="drop-shadow">'.$posts['msgbody'].'</b></font></div>
<br />
<center><font style="color:#ffffff;font-weight:bold;font-size:17px;">Post your reply</font><br>
<form method="post" action=""><textarea name="msgbody" rows="8" style="width:60%;">
</textarea>
<input name="id" type="hidden" value="'.$row2['uid'].'">
<input name="pid" type="hidden" value="'.$pid.'">
<input name="name" type="hidden" value="'.$row2['username'].'">
<input name="role" type="hidden" value="'.$row2['role'].'">
<input name="srk" type="hidden" value="0">
<input name="frame" type="hidden" value="'.base64_encode($fr).'"><br>
<input name="submit" type="submit" value="Post Reply" class="button_example">
</form>
<center>';
}

	}
	


}else{
   echo '<center><b>You are not logged in, <a href="/login.php?ref=forum"><font color="red">Login</font></a> First..</b><br /><br/>
<form></center><br />
';
}

echo $id.'/'.$user;

?>

<p class="footer_title">ALL RIGHTS RESERVED (2025)</p>
                <div class="f_block">
                    <a href="/">
                    <div class="ff1">
                        <div class="home">HOME</div>
                    </div>
                    </a>
                    <a href="javascript:history.back()">
                    <div class="ff1">
                        <div class="back">BACK</div>
                    </div>
                    </a>
                </div>
            </div>
</div>
</body>
</html>
<?php 
	}
}else{
	
	alert("You are not permitted to view this page; Please contact admin","https://$domain/satta-matka-guessing-forum");
	
}
?>