HEX
Server: Apache
System: Linux msm5694.mjhst.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: camjab_ssh (1000)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: /home/httpd/html/seekya.com/DEAD/beta/index.php
<?session_start();
   include("includes/connect.php");
   include("includes/func.php");
   if ($_GET["fav"]!='' && $_SESSION["user"]=='')
  {
	
	redirect("login.php");
  }

  if ($_GET["fav"]!='' && $_SESSION["user"]!='')
  {
	$sql="select * from user_master where user_name='".$_SESSION["user"]."' and active=1";
	$cmd = mysql_query($sql);
	$rs = mysql_fetch_array($cmd);
	$favvideo=str_replace(",".$_GET["fav"],"",$rs["my_fav_video"]);
	$favvideo=$favvideo.",".$_GET["fav"];
	$sql="update user_master  set my_fav_video='".$favvideo."' where user_name='".$_SESSION["user"]."' and active=1";
	mysql_query($sql);
	redirect($_SERVER["HTTP_REFERER"]);
  }
  if ($_GET["remfav"]!='' && $_SESSION["user"]!='')
  {
	$sql="select * from user_master where user_name='".$_SESSION["user"]."' and active=1";
	$cmd = mysql_query($sql);
	$rs = mysql_fetch_array($cmd);
	$favvideo=str_replace(",".$_GET["remfav"],"",$rs["my_fav_video"]);
	$sql="update user_master  set my_fav_video='".$favvideo."' where user_name='".$_SESSION["user"]."' and active=1";
	mysql_query($sql);
	redirect($_SERVER["HTTP_REFERER"]);
  }
if (pdbfx("user_profile_update")!='' && $_SESSION["user"]!='')
  {
	$sql="update user_master  set user_profile='".pdbfx("user_profile_update")."' where user_name='".$_SESSION["user"]."' and active=1";
	mysql_query($sql);
	redirect($_SERVER["HTTP_REFERER"]);
  }
  include("header.php");
  //include("welcome.php");
  //include("rating.php");
  $showpaging=1;
  $homepage=1;
$sql="select * from video_master where video_status=1 and video_homepage=1  order by 1 desc";
$sqlcount="select count(*) from video_master where video_status=1";
$ps = 8;
$pg = new paging;
$pg->setpages($sqlcount);

$sql .=  $pg->getlimit();

$cmdhome = mysql_query($sql);
while ($rshome = mysql_fetch_array($cmdhome))
{?> 
<div class="middlecontainer">

<div class="breakme2"></div>



<div class="width100">

<strong>
<?=$rshome["video_date"];?>
</strong>
<a href="video.php?video_title=<?=$rshome["video_title"];?>" class="heading"><strong><?=$rshome["video_title"];?></strong></a>

</div>	


<div class="width25 left">
<div class="marginmid">	
	 <a href="video.php?video_title=<?=$rshome["video_title"];?>">
                                           <?if (str_contains(strtolower($rshome["video_image"]), "http://")) {?>
                                           <img src="<?=$rshome["video_image"];?>" width="115" height="103" border="0" class="picborder" />
                                           <?}
							else 
							{
								if ($rshome["video_image"]!='') {?>
                                           <img src="videoimages/<?=$rshome["video_image"];?>" width="115" height="103" border="0" class="picborder" />
                                           <?}
							}?></a>
							
</div>
</div>


<div class="width70 left">
<div class="marginmid"> 

							
						 <p><strong>Description:</strong></p>
                                  <p class="text"> <?=$rshome["video_description"];?>
								   
                             </p>
                               <p><strong>
                                 <?if ($rshome["video_warning"]!='') echo $rshome["video_warning"];?>
                               </strong></p>
							   
							   <p>&nbsp;</p>
							   
                             <p> <img src="images/user_friend.gif" width="24" height="24"  border="0" align="absmiddle" /> <a href="javascript:onClick=openWin('friend.php?video_code=<?=$rshome["video_code"];?>&amp;name=<?=$rshome["video_title"];?>', 'width=450, height=330');"><strong>Send To A Friend</strong> </a>&nbsp;&nbsp;<img src="images/user_comment.gif" width="24" height="24"  border="0" align="absmiddle" /> <a href="video.php?video_title=<?=$rshome["video_title"];?>#post"><strong>User Comment</strong></a></p>
</div> 
</div> 							 
							 
<div class="breakme2"></div>


</div>
 <? }//end of look for home videos
  
  include("footer.php");
?>
<script>
	function openWin(argURL, argSize) {
	window.open(argURL, "x_win" + (new Date()).getTime(), "resizable=yes,scrollbars=yes," + argSize);
}
</script>