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/index.php.bak1
<?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))
{?> 

                <tr> 
                  <td><strong>
                    <?=$rshome["video_date"];?>
                    </strong>
					
					     <a href="video.php?video_title=<?=$rshome["video_title"];?>" class="heading"><strong><?=$rshome["video_title"];?></strong></a>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      
                      <tr> 
                        <td width="100%" colspan="3" style="padding-left:2; padding-right:2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr> 
                            <td bgcolor="ffaa00"><table width="100%" border="0" cellspacing="1" cellpadding="0">
                              <tr> 
                            <td bgcolor="FDF5E5"><table width="100%" border="0" cellspacing="1" cellpadding="0">
                                        <tr> 
                                          <td>
                                            <table width="100%" border="0" cellspacing="0" cellpadding="5">
                                              <tr> 
                                                <td width="24%" align="center" valign="top"><table width="41%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr> 
                                                      <td><table width="100%" border="0" cellspacing="1" cellpadding="3">
                                                          <tr> 
                                                            <td bgcolor="FDF5E5"><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">
								<?}
							else 
							{
								if ($rshome["video_image"]!='') {?>
							<img src="videoimages/<?=$rshome["video_image"];?>" width="115" height="103" border="0">
							<?}
							}?></a></td>
                                                          </tr>
                                                        </table></td>
                                                    </tr>
                                                  </table>												  </td>
                                                <td width="76%" valign="top">
												<strong>Description:</strong>

                                                    <?=$rshome["video_description"];?>
                                              
                                                  <p><strong>
                                                    <?if ($rshome["video_warning"]!='') echo $rshome["video_warning"];?>
                                                  </strong></p>
                                                  <p>
                                                  <a href="javascript:onClick=openWin('friend.php?video_code=<?=$rshome["video_code"];?>&amp;name=<?=$rshome["video_title"];?>', 'width=450, height=330');"><img src="images/sendtofriend.gif"  border="0" /></a><a href="video.php?video_title=<?=$rshome["video_title"];?>#post"><img src="images/comment.gif"  border="0" /></a>                                                  </p>												  </td>
                                              </tr>
                                            </table></td>
                                        </tr>
                                        
                                      </table></td>
                              </tr>
                              </table></td>
                          </tr>
                          </table></td>
                      </tr>
                    </table></td></tr>
                
             
 <? }//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>