File: /home/httpd/html/seekya.com/DEAD/main.php
<?include_once("includes/connect.php");
include_once("includes/func.php");
if ($_SESSION["user_id"]!='')
$sql="Select * from category_master where category_status=1 order by category_display_order limit 0,4";
else
$sql="Select * from category_master where category_status=1 order by category_display_order limit 0,6";
$cmdcat = mysql_query($sql);
include_once("rating.php");
if ($_GET["video_title"]!='')
$metatitle=str_replace("_"," ",$_GET["video_title"])." : Seek Ya Funny Videos";
if ($_GET["category_name"]!='')
$metatitle=str_replace("_"," ",$_GET["category_name"])." : Seek Ya Funny Videos";
if ($metatitle=='')
$metatitle="Seek Ya Funny Videos";
if (!empty($_POST) && $_POST["email"]!='' && $_POST["first_name"]=='') {
$sql="select * from user_master where active=1 and user_type=3 and user_name='".pdbfx("email")."'";
$cmd = mysql_query($sql);
$rs = mysql_fetch_array($cmd);
if (cmpfx($rs["user_name"], $_POST["email"]) && cmpfx($rs["password"], $_POST["password"])) {
$_SESSION["user"] = $_POST["email"];
$_SESSION["name"] = $rs["first_name"]." ".$rs["last_name"];
$_SESSION["user_id"] =$rs["user_id"];
redirect("index.php");
}
else {
$msg="<font class=text><font color=red><b><img src='images/help.gif'> Invalid Username / Password</b></font></font>";
//redirect("login.php");
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title><?=$metatitle;?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</script>
<link href="images/class.css" rel="stylesheet" type="text/css">
<link href="css/ourstyle.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="tiptop">
<div id="head">
<div class="width70 left">
<div class="margin right">
<h1>Seek Ya Funny Videos </h1>
</div>
</div>
<div class="width30 right">
<a href="#"><img src="images/bookmark.gif" alt="bookmark" border="0"></a>
</div>
</div>
<div id="tabs">
<div class="width780">
<ul>
<li><a href="products.php"><span>Home</span></a></li>
<li><a href="support.php"><span>Videos</span></a></li>
<li><a href="about.php"><span>Search</span></a></li>
<li><a href="contact.php"><span>Upload</span></a></li>
<li><a href="contact.php"><span>Register</span></a></li>
<li><a href="contact.php"><span>Tell A Friend</span></a></li>
</ul>
</div>
</div>
</div>
<div class="width100 gradient">
<div id="adcontain">
ADVERTISE BANNER HERE
</div>
<div class="width100 tahomastyle grey">
<div class="foottop"></div>
<DIV class="width20 left bgrightface">
<div class="margin">
<h2 class="green">navigation</h2>
<?while ($rscat = mysql_fetch_array($cmdcat))
{?>
<span class="bodylinks">
<strong>
<a href="listing.php?category_id=<?=$rscat["category_id"]?>&category_name=<?=$rscat["category_name"]?>" class="bodylinks">
<?=$rscat["category_name"]?>
</a>
<?}?>
<br>
<a href="morevideo.php" class="bodylinks">More Videos<br>
</a><a href="submit.php" class="bodylinks">Submit Video</a></strong>
</span>
<h2 class="green">Friends Sites</h2>
<p><strong><a href="#" class="bodylinks">MediaBum</a></strong>
<br>
<strong><a href="#" class="bodylinks">Funny Cartoons</a></strong></p>
<p><strong><a href="#" class="bodylinks">DamnFunny Pics</a></strong></p>
<p><strong><a href="#" class="bodylinks">CollegeDowntime</a></strong></p>
<p><strong><a href="#" class="bodylinks">Hot Funny Pictures</a></strong></p>
<p><strong><a href="#" class="bodylinks">Planet Vids</a></strong></p>
<p><strong><a href="#" class="bodylinks">Hot Movies</a></strong></p>
<p> </p>
<h2 class="green">Top Refferals </h2>
<p><strong><a href="#" class="bodylinks">Humer Top 50</a></strong></p>
<p><strong><a href="#" class="bodylinks">Gorilla Mask</a></strong></p>
<p> </p>
<?if ($msg!='')
echo "<center>".$msg."</center>";?>
</div>
</DIV>
<DIV class="width60 left lightgreybg">
<div class="margin">
<div class="middlecontainer">
<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="5">
<tr>
<td width="24%" align="center" valign="top"><table width="13%" border="0" align="left" cellpadding="0" cellspacing="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 ><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> <a href="javascript:onClick=openWin('friend.php?video_code=<?=$rshome["video_code"];?>&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>
</div>
</div>
</DIV>
<DIV class="width20 left bgleftface">
<div class="margin">
<table width="18%" height="100%" border="0" cellpadding="0" cellspacing="0">
<!-- -->
<?if ($_SESSION["user_id"]!='')
{?>
<tr>
<td height="166" valign="top" background="images/login_welcome.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="48%" height="80"> </td>
<td width="52%"> </td>
</tr>
<tr align="center">
<td colspan="2" class="heading"><strong><?=$_SESSION["name"];?><strong></td>
</tr>
<tr align="center">
<td height="20" colspan="2" class="bodylinks"><a href="logoff.php" class="bodylinks">Logout</a></td>
</tr>
</table></td>
</tr>
<?} else {?>
<!-- -->
<tr>
<td height="166" valign="top" background="images/loginbg.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="48%" height="80"> </td>
<td width="52%"> </td>
</tr>
<tr>
<td><img src="images/trans.gif" width="80" height="1"></td>
<td> <form name=video method=POST><input name="email" type="text" autocomplete=off class="textbox" size="9">
</td>
</tr>
<tr>
<td> </td>
<td><input name="password" type="password" class="textbox" size="8"></td>
</tr>
<tr>
<td> </td>
<td><input type=image src="images/login.gif" width="50" height="18" border="0"></td>
</tr>
<tr align="center">
<td height="20" colspan="2" class="bodylinks"><a href="register.php" class="bodylinks"><strong>REGISTER</strong></a></td>
</tr></form>
</table></td>
</tr>
<?}?>
<tr>
<td> </td>
</tr>
<tr>
<td height="100%" valign=top><br></td>
</tr>
<tr>
<td><img src="images/rightbot.gif" width="165" height="32"></td>
</tr>
</table>
</div>
</DIV>
</div>
<div class="footbot"></div>
<div class="breakme"></div>
</div>
<div class="width100"></div>
<div id="footer" class="lightgreybg tahomastyle">
<div class="margin">
<? }//end of look for home videos
include("footer.php");
?>
</div>
</div>
</body>
</html>