<?php
/**********************************************************
* ______ ______ ___ _______ ___ ___ _______ *
* | _ \ | _ \ | | | _ || Y || _ | *
* |. | \|. | \|. | |. 1___||. || 1___| *
* |. | |. | |. |___ |. |___ |. \_/ ||____ | *
* |: 1 |: 1 |: 1 ||: 1 ||: | ||: 1 | *
* |::.. . /|::.. . /|::.. . ||::.. . ||::.|:. ||::.. . | *
* `------' `------' `-------'`-------'`--- ---'`-------' *
* _______ _______ *
* .--.--. | _ | | | *
* | | | |___| | __ |___| | *
* \___/ _(__ | |__| / ___/ *
* |: 1 | |: 1 \ *
* |::.. . | |::.. . | *
* `-------' `-------' *
* *
* Script: DDLCMS v3.2 *
* Author: Little Dragon *
* Email: hide@address.com *
* Website: http://www.ddlcms.com *
* *
* Please direct bug reports, suggestions or feedback *
* to the DDLCMS forums: *
* *
* http://www.ddlcms.com/forums *
* *
* DDLCMS is a commercial grade content management *
* system for DDL site owners. It is provided free *
* of charge, provided: *
* *
* 1. You keep the linkback to http://www.ddlcms.com *
* in the footer. *
* *
* 2. You keep the sponsored links to Sharingzone.net *
* on your site. *
* *
* By using this script, you agree that you will not *
* modify, remove, or replace any encoded parts of *
* this script. All encoded parts MUST remain intact *
* for your site to remain in good standing. *
* *
**********************************************************/
if(!defined('BASEDIR') || !defined('WWWROOT'))
{
define('WWWROOT', dirname(__FILE__) . '/');
define('BASEDIR', substr(WWWROOT, 0, ##BASEDIR##));
}
require(BASEDIR . 'funcs.inc');
require(BASEDIR . 'config.php');
$frameName = $_GET['d'];
if(checkURLQuery('frame.php', $_GET) !== TRUE)
{
echo 'An error occurred.';
}
else
{
$_GET = array_map('mysql_escape_string', $_GET);
$d = $_GET['d'];
$id = $_GET['id'];
$rowurl = $_GET['rowurl'];
$providedbyurl = $_GET['providedbyurl'];
$providedbysite = $_GET['providedbysite'];
?>
<html>
<head>
<title><?php echo $d; ?> - from <?php echo $site_name . $description; ?></title>
<link rel="stylesheet" href="skins/<?php echo $skin; ?>/frame.css" type="text/css" />
<script type="text/javascript">
<!--
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=='random'){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=='center'){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!='random') || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
win=window.open(mypage,myname,settings);}
// -->
</script>
</head>
<body>
<table align="center" border="0" width="100%" cellpadding="10" cellspacing="0">
<tr>
<td>
<a href="<?php echo $site_url; ?>" title="Back to <?php echo $site_name; ?> <?php echo $description; ?>" target="_top">
<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/back.png" border="0" height="20" width="20" alt="Back to <?php echo $site_name; ?> <?php echo $description; ?>" align="middle" />
Back to <?php echo $site_name; ?>
</a>
</td>
<td>
<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/<? if (isset($_GET['cat']) && strtolower($_GET['cat']) == "xxx") { echo "xxx.png"; } else { echo "arrow_right.png"; } ?>" border="0" height="20" width="20" alt="Sponsored Link For <?php echo $d; ?>" align="middle" />
<b>Sponsored Link: </b>
<a href="http://<?php echo $cbusername; ?>.sharingzone.net/?<? if (isset($_GET['cat']) && strtolower($_GET['cat']) == "xxx") { echo "x"; } else { echo "q"; } ?>=<?php echo $d; ?>" target="_top" title="Download: <?php echo $d; ?>">
<b><?php echo $d; ?></b></a><br />
</td>
<td>
<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/forward.png" border="0" height="20" width="20" alt="Submitted by <?php echo $providedbysite; ?>" align="middle" />
Provided by: <a href="<?php echo $providedbyurl; ?>" title="Submitted by <?php echo $providedbysite; ?>" target="_blank"><?php echo $providedbysite; ?></a>
</td>
<td align="right">
<a href="<?php echo $rowurl; ?>" target="_top" title="Close This Frame">Close This Frame <img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/close.png" align="middle" height="20" width="20" alt="Close This Frame" border="0" /></a>
</td>
</tr>
<tr>
<td>
<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/forward.png" border="0" height="20" width="20" alt="Rate this download" align="middle" />
Rate this:
<?php
for($i = 1; $i <= 5; $i++)
{
?>
<a href="<?php echo $site_url; ?>/go.php?id=<?php echo $id; ?>&go=Rate&rating=<?php echo $i; ?>" onclick="NewWindow(this.href, 'Rate', '650', '250', 'no', 'center'); return false" onfocus="this.blur()" title="Rate this"><img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/star.gif" height="10" width="10" border="0" alt="Download Rating" align="middle" /></a>
<?php
}
?>
</td>
<td>
<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/question.png" border="0" height="20" width="20" alt="Submitted by <?php echo $providedbysite; ?>" align="middle" />
<a rel="nofollow" href="http://wgtools.com/link-checker/?url=<?php echo preg_replace('/http(s)?:\/\//', '', $rowurl); ?>" target="_blank">Check Links</a>
</td>
<td>
<a href="<?php echo $site_url; ?>/free-download-<?php echo $d; ?>.htm" target="_top" title="Search <?php echo $site_name; ?> for: <?php echo $d; ?>">
<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/search.png" border="0" height="20" width="20" alt="Search <?php echo $site_name; ?> for: <?php echo $d; ?>" align="middle" />
Search @ <?php echo $site_name; ?>
</a>
</td>
<td align="right">
<a href="<?php echo $site_url; ?>/go.php?id=<?php echo $id; ?>&go=Report" onclick="NewWindow(this.href, 'Report', '650', '250', 'no', 'center'); return false" onfocus="this.blur()" title="Report Dead Link">Report Dead Link <img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/report.png" align="middle" height="20" width="20" alt="Report Dead Link" border="0" /></a>
</td>
</tr>
</table>
</body>
</html>
<?php
}
?>