aseaofflames
03-02-2007, 12:53 PM
code for play.php<?php
///////////////
// FastFreeMedia Free Edition Copyright Martin Krohn V.6
///////////////
$ip = $_SERVER['REMOTE_ADDR'];
$querynumber = "0";
require_once("config.php");
$time3 = time();
ob_start("ob_gzhandler");
session_start();
require_once("functions/cookie.php");
require_once("functions/cache_update.php");
$id = $_GET['id'];
$id2 = $_GET['id'];
$resultconfig = @mysql_query("SELECT mName, mDescription, location, mviews, mId, mCategory1, adult FROM media WHERE mId = $id LIMIT 1");
$row = @mysql_fetch_row($resultconfig);
$page_id=$id;
$game_name5 = "$row[0]";
$description = "$row[1]";
$location = "$row[2]";
$plays = "$row[3]";
$id = "$row[4]";
$categoryid = "$row[5]";
$adult = "$row[6]";
if($adult!=="1" || $_GET['watch']=="yes") {
if(@mysql_num_rows(mysql_query("SELECT Date FROM gamestoday WHERE Date = '".date("dmy")."'")) < 1){
@mysql_query("INSERT INTO gamestoday VALUES ('".date("dmy")."', 0)") ; }
@mysql_query("UPDATE gamestoday SET GamesPlayed = (GamesPlayed+1) WHERE Date = '".date("dmy")."'");
@mysql_query("UPDATE media SET mviews = (mviews+1) WHERE mId = '".$id."'");
$plays = $plays+1;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<!-- Script for select box changes -->
<script type="text/javascript">
<!--<![CDATA[
function switchme(){
if(document.getElementById('games').value != ''){
window.location = document.getElementById('games').value;
}
}
//]]>-->
</script>
<title>
<?php echo "$site_title - $game_name5"; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="<?php $template_path?>styles.css" rel="stylesheet" type="text/css">
<?php
include("templates/header.tpl");
if($adult=="1" && $_GET['watch']!=="yes") { echo "
<tbody align='center' id=\"collapseobj_module_5\" style=\"\">
<tr>
<td class=\"alt1\"> <br>
<strong>Warning:</strong> This Video Contains Adult Content <br />
You May Only Watch It If You Are Over 18. <br>
<br> <a href='play.php?id=$page_id&watch=yes'>Watch</a> | <a href='index.php'>Back</a>
<br><br>
</td>
</tr>
</tbody>";
}
else { include("templates/play_content.tpl"); }
include("templates/footer.tpl");
?>
</body></html>
Example:
http://www.aseaofflames.com/videos/play-961.html
///////////////
// FastFreeMedia Free Edition Copyright Martin Krohn V.6
///////////////
$ip = $_SERVER['REMOTE_ADDR'];
$querynumber = "0";
require_once("config.php");
$time3 = time();
ob_start("ob_gzhandler");
session_start();
require_once("functions/cookie.php");
require_once("functions/cache_update.php");
$id = $_GET['id'];
$id2 = $_GET['id'];
$resultconfig = @mysql_query("SELECT mName, mDescription, location, mviews, mId, mCategory1, adult FROM media WHERE mId = $id LIMIT 1");
$row = @mysql_fetch_row($resultconfig);
$page_id=$id;
$game_name5 = "$row[0]";
$description = "$row[1]";
$location = "$row[2]";
$plays = "$row[3]";
$id = "$row[4]";
$categoryid = "$row[5]";
$adult = "$row[6]";
if($adult!=="1" || $_GET['watch']=="yes") {
if(@mysql_num_rows(mysql_query("SELECT Date FROM gamestoday WHERE Date = '".date("dmy")."'")) < 1){
@mysql_query("INSERT INTO gamestoday VALUES ('".date("dmy")."', 0)") ; }
@mysql_query("UPDATE gamestoday SET GamesPlayed = (GamesPlayed+1) WHERE Date = '".date("dmy")."'");
@mysql_query("UPDATE media SET mviews = (mviews+1) WHERE mId = '".$id."'");
$plays = $plays+1;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<!-- Script for select box changes -->
<script type="text/javascript">
<!--<![CDATA[
function switchme(){
if(document.getElementById('games').value != ''){
window.location = document.getElementById('games').value;
}
}
//]]>-->
</script>
<title>
<?php echo "$site_title - $game_name5"; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="<?php $template_path?>styles.css" rel="stylesheet" type="text/css">
<?php
include("templates/header.tpl");
if($adult=="1" && $_GET['watch']!=="yes") { echo "
<tbody align='center' id=\"collapseobj_module_5\" style=\"\">
<tr>
<td class=\"alt1\"> <br>
<strong>Warning:</strong> This Video Contains Adult Content <br />
You May Only Watch It If You Are Over 18. <br>
<br> <a href='play.php?id=$page_id&watch=yes'>Watch</a> | <a href='index.php'>Back</a>
<br><br>
</td>
</tr>
</tbody>";
}
else { include("templates/play_content.tpl"); }
include("templates/footer.tpl");
?>
</body></html>
Example:
http://www.aseaofflames.com/videos/play-961.html