File: /home/httpd/html/baretube.com.new/includes/inc.embedVideo.php
<?
session_start();
include('mb.php');
if(!is_numeric($_GET['id'])) {
exit();
}
$row = dbQuery("SELECT * FROM content WHERE record_num = '$_GET[id]'");
$row = $row[0];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" href="<? echo $template_url; ?>/css/style.css" rel="stylesheet" />
<link type="text/css" href="<? echo $template_url; ?>/css/base.css" rel="stylesheet" />
</head>
<body style='background-image: none; background-color: #ffffff;'>
<div id="incFavs">
<h1><? echo _t("Embed Video"); ?></h1>
<p style='font-weight: bold;'>
<? echo _t("To add this video to your own website, please add the following embed code:"); ?><br />
<textarea style='width: 90%; height: 80px; font-size: 9px;'><iframe src='<? echo $basehttp; ?>/embed/<? echo $_GET['id']; ?>' width='640' height='480' frameborder='0'></iframe><br><? echo trim($row[title]); ?> at <a href='<? echo $basehttp; ?>'><? echo $sitename; ?></a></textarea>
</p>
<p>
<h1><? echo _t("Video Information"); ?></h1>
<strong><? echo _t("Title"); ?>:</strong> <? echo $row[title]; ?><br />
<strong><? echo _t("Description"); ?>:</strong> <? echo $row[description]; ?><br />
<strong><? echo _t("Keywords"); ?>:</strong> <? echo $row[keywords]; ?><br />
<strong><? echo _t("Length"); ?>:</strong> <? echo sec2time($row[length]); ?><br />
</p>
</div>
</body>
</html>