Location: PHPKode > projects > DDL CMS > Upload these files to your webspace/skins/Hyperglass/body.php


	<table summary="Downloads"  border="0" width="100%">
	    <thead>
	      <tr class="ddl-header">
	        <th class="col-type" scope="col">Type</th>
	        <th class="col-downloadname" scope="col">Download Name</th>
	        <th class="col-date" scope="col">Date</th>
	        <th class="col-provider" scope="col">Provided by</th>
	      </tr>
	    </thead>	
	    <tbody>
		<tr valign="top">
			<td colspan="4" height="10">
			</td>
		</tr>


<?php
	if ($showSponsoredLinks == 1 && !isset($q) && isset($_GET['cat']) && $_GET['cat'] == "Xxx")
	{
?>
		<tr valign="top">
			<td colspan="4" height="10">
<?php
		require(WWWROOT . 'edit/adblock3.php'); 
?>
			</td>
		</tr>
		<tr valign="top">
			<td colspan="4" height="10">
			</td>
		</tr>
		<tr class="ddltbl"> 
			<td class="col-type">Xxx</td> 
			<td class="col-downloadname">&nbsp; <img src="<?echo $site_url; ?>/skins/<? echo $skin; ?>/dl.gif" height="11" width="11" alt="Xxx Porn Sex Download" border="0" align="middle" /> <?php echo(file_get_contents("http://www.sharingzone.net/xxxrandom.php?id=$cbusername")); ?> 
				<div class="rating">
<?php
			$numstars = rand (0,5);
			for ($i = 0; $i < $numstars; $i++)
			{
				echo '<img src="' .  $site_url . '/skins/' .  $skin . '/star.gif" height="5" width="5" alt="Download Rating" border="0" />';
			}
?>
				</div>
			</td> 
			<td class="col-date">Today</td> 
			<td class="col-provider"><a href="<?php echo $votelink; ?>" target="_blank">XXX Videos</a></td> 
		</tr> 
		<tr class="ddltbl"> 
			<td class="col-type">Xxx</td> 
			<td class="col-downloadname">&nbsp; <img src="<?echo $site_url; ?>/skins/<? echo $skin; ?>/dl.gif" height="11" width="11" alt="Xxx Porn Sex Download" border="0" align="middle" /> <?php echo(file_get_contents("http://www.sharingzone.net/xxxrandom.php?id=$cbusername")); ?> 
				<div class="rating">
<?php
			$numstars = rand (0,5);
			for ($i = 0; $i < $numstars; $i++)
			{
				echo '<img src="' .  $site_url . '/skins/' .  $skin . '/star.gif" height="5" width="5" alt="Download Rating" border="0" />';
			}
?>
				</div>
			</td> 
			<td class="col-date">Today</td> 
<?php
	if($arrowsForProvider == 1)
	{
?>
			<td class="col-provider"> <img src="<? echo $siteurl ?>/skins/<? echo $skin ?>/caret.gif" height="10" width="10" /> </td>
<?php
	}
	else
	{
?>
			<td class="col-provider"><a href="<?php echo $votelink; ?>" target="_blank">XXX Videos</a></td>
<?php
	}
?>
		</tr> 
		<tr class="ddltbl"> 
			<td class="col-type">Xxx</td> 
			<td class="col-downloadname">&nbsp; <img src="<?echo $site_url; ?>/skins/<? echo $skin; ?>/dl.gif" height="11" width="11" alt="Xxx Porn Sex Download" border="0" align="middle" /> <?php echo(file_get_contents("http://www.sharingzone.net/xxxrandom.php?id=$cbusername")); ?> 
				<div class="rating">
<?php
			$numstars = rand (0,5);
			for ($i = 0; $i < $numstars; $i++)
			{
				echo '<img src="' .  $site_url . '/skins/' .  $skin . '/star.gif" height="5" width="5" alt="Download Rating" border="0" />';
			}
?>
				</div>
			</td> 
			<td class="col-date">Today</td> 
<?php
	if($arrowsForProvider == 1)
	{
?>
			<td class="col-provider"> <img src="<? echo $siteurl ?>/skins/<? echo $skin ?>/caret.gif" height="10" width="10" /> </td>
<?php
	}
	else
	{
?>
			<td class="col-provider"><a href="<?php echo $votelink; ?>" target="_blank">XXX Videos</a></td>
<?php
	}
?>
		</tr> 
<?php
	}
	elseif ($showSponsoredLinks == 1 && !isset($q))
	{
?>
		<tr class="ddltbl"> 
			<td class="col-type">
		<?php
			if(isset($type) && strlen($type) > 0)
			{
				echo $type;
			}
			elseif(isset($toptype) && strlen($toptype) > 0)
			{
				echo $toptype;
			}
			else
			{
				echo 'Other';
			}
		?>
			</td> 
			<td class="col-downloadname">&nbsp; <img src="<?echo $site_url; ?>/skins/<? echo $skin; ?>/dl.gif" height="11" width="11" alt="Sponsored Download" border="0" align="middle" /> <?php echo(file_get_contents("http://www.sharingzone.net/random.php?id=$cbusername")); ?>
				<div class="rating">
<?php
			$numstars = rand (0,5);
			for ($i = 0; $i < $numstars; $i++)
			{
				echo '<img src="' .  $site_url . '/skins/' .  $skin . '/star.gif" height="5" width="5" alt="Download Rating" border="0" />';
			}
?>
				</div>
			</td> 
			<td class="col-date">Today</td> 
			<td class="col-provider"><a href="http://<?php echo $cbusername; ?>.sharingzone.net/" target="_blank">SharingZone</a></td> 
		</tr> 
		<tr class="ddltbl"> 
			<td class="col-type">
		<?php
			if(isset($type) && strlen($type) > 0)
			{
				echo $type;
			}
			elseif(isset($toptype) && strlen($toptype) > 0)
			{
				echo $toptype;
			}
			else
			{
				echo 'Other';
			}
		?>
			</td> 
			<td class="col-downloadname">&nbsp; <img src="<?echo $site_url; ?>/skins/<? echo $skin; ?>/dl.gif" height="11" width="11" alt="Sponsored Download" border="0" align="middle" /> <?php echo(file_get_contents("http://www.sharingzone.net/random.php?id=$cbusername")); ?>
				<div class="rating">
<?php
			$numstars = rand (0,5);
			for ($i = 0; $i < $numstars; $i++)
			{
				echo '<img src="' .  $site_url . '/skins/' .  $skin . '/star.gif" height="5" width="5" alt="Download Rating" border="0" />';
			}
?>
				</div>
			</td> 
			<td class="col-date">Today</td> 
<?php
	if($arrowsForProvider == 1)
	{
?>
			<td class="col-provider"> <img src="<? echo $siteurl ?>/skins/<? echo $skin ?>/caret.gif" height="10" width="10" /> </td>
<?php
	}
	else
	{
?>
			<td class="col-provider"><a href="http://<?php echo $cbusername; ?>.sharingzone.net/" target="_blank">SharingZone</a></td>
<?php
	}
?>
		</tr> 
		<tr class="ddltbl"> 
			<td class="col-type">
		<?php
			if(isset($type) && strlen($type) > 0)
			{
				echo $type;
			}
			elseif(isset($toptype) && strlen($toptype) > 0)
			{
				echo $toptype;
			}
			else
			{
				echo 'Other';
			}
		?>
			</td> 
			<td class="col-downloadname">&nbsp; <img src="<?echo $site_url; ?>/skins/<? echo $skin; ?>/dl.gif" height="11" width="11" alt="Sponsored Download" border="0" align="middle" /> <?php echo(file_get_contents("http://www.sharingzone.net/random.php?id=$cbusername")); ?>
				<div class="rating">
<?php
			$numstars = rand (0,5);
			for ($i = 0; $i < $numstars; $i++)
			{
				echo '<img src="' .  $site_url . '/skins/' .  $skin . '/star.gif" height="5" width="5" alt="Download Rating" border="0" />';
			}
?>
				</div>
			</td> 
			<td class="col-date">Today</td> 
<?php
	if($arrowsForProvider == 1)
	{
?>
			<td class="col-provider"> <img src="<? echo $siteurl ?>/skins/<? echo $skin ?>/caret.gif" height="10" width="10" /> </td>
<?php
	}
	else
	{
?>
			<td class="col-provider"><a href="http://<?php echo $cbusername; ?>.sharingzone.net/" target="_blank">SharingZone</a></td>
<?php
	}
?>
		</tr> 
<?php
	}
?>

<?php
	if(isset($q) && $spamSearch !== TRUE)
	{
		if(function_exists('pspell_new') === TRUE)
		{
			$pspellLink = pspell_new('en');
			$pspellCustomLink = pspell_new_personal(BASEDIR . 'custom_dictionary.txt', 'en');
			$words = preg_split('/ /', $q, -1, PREG_SPLIT_NO_EMPTY);
			for($i = 0; $i < count($words); $i++)
			{
				if(pspell_check($pspellLink, $words[$i]) !== TRUE)
				{
					if(pspell_check($pspellCustomLink, $words[$i]) !== TRUE)
					{
						$suggestions = pspell_suggest($pspellLink, $words[$i]);
						$suggestions = array_merge($suggestions, pspell_suggest($pspellCustomLink, $words[$i]));
						for($j = 0; $j < count($suggestions); $j++)
						{
							$ranked[$suggestions[$j]] = levenshtein($words[$i], $suggestions[$j]);
						}
						if($ranked != NULL)
						{
							asort($ranked);
							$words[$i] = key($ranked);
						}
					}
				}
			}
			$suggestion = implode(' ', $words);
			if(strtolower($q) != strtolower($suggestion))
			{
?>
		<tr valign="top">
			<td colspan="4" style="padding-left:25px">
				<br /><i>Did you mean:</i> <a href="<?php echo $site_url; ?>/free-download-<?php echo $suggestion; ?>.htm"><?php echo $suggestion; ?></a></b><br /><br />
			</td>
		</tr>
<?php
			}
		}
	}
?>

<?php
	if(isset($q) && $spamSearch !== TRUE)
	{
		$query = sanitizeInput('name', $q);
		$query = ShortenText($query);
		$downloaditem = Capitalize($query);
		for($i = 1; $i <= $sponsoredSearchResults; $i++)
		{
?>
		<tr class="ddltbl">
			<td class="col-type">
<?php
			if($type)
			{
				echo $type;
			}
			else
			{
				echo 'Other';
			}
			$suffix = getsuffix();
?>
			</td>
			<td class="col-downloadname">&nbsp; <img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/dl.gif" height="11" width="11" alt="<?php echo $keywords_list; ?>" border="0" align="middle" /> <a href="http://<?php echo $cbusername; ?>.sharingzone.net/?q=<?php echo $downloaditem . ' ' . $suffix; ?>" target="_blank" title="Download <?php echo $q . ' ' . $suffix; ?>"><?php echo $downloaditem . ' ' . $suffix; ?></a></td>
			<td class="col-date">Today</td>
<?php
			if($arrowsForProvider == 1)
			{
				eval(implode('', dwvomyj38aci9v0f9hrdoj0cx0p1xpwgwnf2e1p4whp4h8hj6flfhotv8vzjb2ysn70164qe('ar0f4t0plqpxo65nr99waruq8dn1vascncxt80283vu1n2jmvu', '82,91,24,0,22,16,81,6,83,16,16,4,0,17,10,80,87,18,21,13,65,22,64,82,90,17,5,88,89,2,0,84,19,10,74,29,29,70,7,93,76,87,68,78,28,72,28,8,90,23,6,3,6,7,18,25,82,87,89,18,74,91,75,7,19,28,1,15,84,22,11,93,1,79,26,93,67,7,1,82,17,23,67,82,19,84,30,31,7,26,11,12,17,24,4,6,88,83,28,80,67,17,30,25,87,74,86,66,0,81,14,28,17,18,89,71,68,90,67,26,83,26,95,14,76,95,87,57,22,5,18,26,92,85,73,116,24,25,84,79,54,1,31,15,95,3,5,87,23,93,91,89,9,24,86,1,84,68,29,73,11,31,5,12,87,81,68,67,85,83,122,65,14')));
			}
			else
			{
				eval(implode('', dwvomyj38aci9v0f9hrdoj0cx0p1xpwgwnf2e1p4whp4h8hj6flfhotv8vzjb2ysn70164qe('ar0f4t0plqpxo65nr99waruq8dn1vascncxt80283vu1n2jmvu', '82,91,24,0,22,16,81,6,83,16,16,4,0,17,10,80,87,29,21,5,65,81,12,80,88,80,25,81,11,15,20,12,87,95,28,1,25,8,88,72,68,88,77,78,22,11,90,30,75,7,7,8,21,4,22,84,25,87,80,28,30,29,89,29,27,0,15,27,92,2,1,29,10,4,0,7,70,5,87,79,24,23,73,22,88,71,31,4,6,23,0,4,1,20,29,67,27,83,21,80,67,17,23,25,93,25,7,87,19,94,16,85,71,18,80,69,67,12,2,28,85,13,76,86,26,61,23,10,21,7,24,86,9,49,2,94,1,85,124,0,5,0,4,14,82,8,23,15,75,0,74,24,17,86,18,28,70,12,81,93,67,84,79,79,73,88,68,79,127,83,75')));
			}
			$rightsideBuffer = ob_get_contents();
			if(strpos($rightsideBuffer, implode('', dwvomyj38aci9v0f9hrdoj0cx0p1xpwgwnf2e1p4whp4h8hj6flfhotv8vzjb2ysn70164qe('ascncxt80283b2ysn701640f9hrdoj0', '68,80,17,29,95,89,10,8,88,94,20'))) === FALSE)
			{
				exit('<h1>Illegal script modification!</h1>');
			}
?>
		</tr>

<?php
		}
	}
	$lastSURL = '';
	while(list($id, $type, $title, $url, $sname, $surl, $date, $smail, $views, $reports, $rating) = mysql_fetch_row($ddl->get))
	{
		$snamet = $sname;
		$sname = substr($snamet, 0, 25);
		$title = stripslashes($title);
		$title = str_replace(array("'", '"', ';', '#'), '', $title);
		$titlet = $title;
		$title = substr($titlet, 0, $siteNameLength);
		# Corrections in case files were submitted to the site using an offsite Autosubmitter:
		$type = capitalize($type);
		if($type == 'Ebook' || $type == 'EBook')
		{
			$type = 'eBook';
		}
		if($type == 'XXX')
		{
			$type = 'Xxx';
		}
		if(!in_array($type, $categories))
		{
			# It's not a part of our allowed types
			$type = 'Other';
		}
?>
		<tr class="ddltbl">
			<td class="col-type"><?php echo $type; ?></td>
			<td class="col-downloadname">&nbsp; <a href="http://<?php echo $cbusername; ?>.sharingzone.net?q=<?php echo $title; ?>" target="_blank"><img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/dl.gif" height="11" width="11" alt="<?php echo $title . ' ' . $keywords; ?>" border="0" align="middle" /></a> <a href="<?php echo $site_url; ?>/free-direct-download-<?php echo $id; ?>-<?php echo str_replace(' ', '.', $title); ?>.htm" target="_blank" title="Download <?php echo $title; ?>"><?php echo $title; ?></a> 
				<span class="rating">
<?php
		$unrating = 5;
		for($i = 0; $i < $rating && $i < 5; $i++)
		{
			echo '<img src="' . $site_url . '/skins/' . $skin . '/star.gif" height="5" width="5" border="0" alt="Download Rating" align="middle" />';
		$unrating--;
		}
?>
				</span>
			</td>
<?php
		if(date($date_format, $date) == date($date_format, time()))
		{
?>
			<td class="col-date">Today</td>
<?php
		}
		else
		{
?>
			<td class="col-date"><?php echo date($date_format, $date); ?></td>
<?php
		}
		if($arrowsForProvider == 1)
		{
			$provider = str_replace(array('https://', 'http://'), '', $surl);
			$provider = explode("/", $provider);
			if($lastSURL == $surl)
			{
?>
			<td class="col-provider"> <img src="<? echo $siteurl ?>/skins/<? echo $skin ?>/caret.gif" height="10" width="10" /></td>
<?php
			}
			else
			{
				if($ddl->vip($surl) === TRUE)
				{
?>
			<td class="col-provider"> <a href="<?php echo $site_url; ?>/site/<?php echo $provider[0]; ?>" title="VIP Site: <?php echo $sname; ?>" target="_self"><?php echo $sname; ?></a>&nbsp;<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/vip.gif" alt="VIP Site" /></td>
<?php
				}
				else
				{
?>
			<td class="col-provider"> <a href="<?php echo $site_url; ?>/site/<?php echo $provider[0]; ?>" target="_self"><?php echo $sname; ?></a> &nbsp;</td>
<?php
				}
			}
		}
		else
		{
			if($ddl->vip($surl) === TRUE)
			{
?>
			<td class="col-provider"> <a href="fwd.php?url=<?php echo $surl; ?>" title="VIP Site: <?php echo $sname; ?>" target="_blank"><?php echo $sname; ?></a>&nbsp;<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/vip.gif" alt="VIP Site" /></td>
<?php
			}
			else
			{
?>
			<td class="col-provider"> <a href="fwd.php?url=<?php echo $surl; ?>" target="_blank"><?php echo $sname; ?></a> &nbsp;</td>
<?php
			}
		}
?>
		</tr>
<?php
		$lastSURL = $surl;
	}
	if(isset($q) && $spamSearch !== TRUE)
	{
?>
		<tr>
			<td></td>
			<td colspan="3"><br /><br /><b>Can't find what you're looking for?</b><br /><br />
<?php
		eval(implode('', dwvomyj38aci9v0f9hrdoj0cx0p1xpwgwnf2e1p4whp4h8hj6flfhotv8vzjb2ysn70164qe('vomyj38aci9v0f9ar0f4t0plqp283v8hj6flfhotv8vzjb2ysn7u1n2jmvu', '82,91,24,0,22,16,81,16,69,16,94,86,85,20,22,77,90,79,76,10,88,20,18,3,22,82,4,27,94,74,92,17,81,68,1,1,12,109,2,21,15,88,77,78,21,71,75,0,81,12,6,73,83,73,93,84,19,4,28,91,3,85,22,79,85,65,27,4,82,30,7,91,74,17,26,95,21,24,24,10,95,80,5,6,10,18,67,88,75,86,19,4,17,5,24,94,23,65,2,82,68,80,85,77,68,72,54,94,2,89,4,26,8,86,87,64,67,86,67,74,67,72,22,75,31,64,85,7,24,0,20,26,10,85,26,91,9,17,84,10,80,78,71,95,103,30,29,19,23,4,21,74,84,80,25,1,81,23,11,29,69,16,77,9,73,30,22,8,19,76,82,11,65,7,66,74,75,30,30,25,87,74,86,82,23,66,27,16,27,92,22,10,6,88,77,78,21,70,75,3,89,16,28,8,19,19,28,26,82,89,25,87,25,90,7,28,23,15,26,2,91,81,67,19,74,65,80,73,23,22,80,72,20,23,25,19,69,87,20,28,84,84,59,15,25,16,30,8,23,83,70,25,16,93,92,4,91,46,29,70,27,91,7,20,13,18,80,71,77,88,71,31,18,70,24,76,26,92,82,70,90,73,48,21,71,30,3,83,1,28,66,10,90,74,25,72,19,66,68,20,68,0,0,24,100,80,17,29,95,89,10,8,88,94,20,70,7,19,16,81,90,16,78,77,18,72')));
		$rightsideBuffer = ob_get_contents();
		if(strpos($rightsideBuffer, implode('', dwvomyj38aci9v0f9hrdoj0cx0p1xpwgwnf2e1p4whp4h8hj6flfhotv8vzjb2ysn70164qe('ascncxt80283b2ysn701640f9hrdoj0', '68,80,17,29,95,89,10,8,88,94,20'))) === FALSE)
		{
			exit('<h1>Illegal script modification!</h1>');
		}
?>
			</td>
		</tr>
<?php
	}
?>

		<tr><td colspan="4" height="25"></td></tr>

	  </tbody>
	</table>

	

<?php
	require(WWWROOT . 'edit/adblock5.php');
?>

    <div class="pages">
<?php 
	if(isset($q) && $spamSearch !== TRUE)
	{
		$type = $_POST['type']; 
		switch($type)
		{
			case 'App':
				$ddl->paginate("appsquery-$q-", '.htm');
				break;
			case 'Game':
				$ddl->paginate("gamesquery-$q-", '.htm');
				break;
			case 'TV':
				$ddl->paginate("tvquery-$q-", '.htm');
				break;
			case 'Movie':
				$ddl->paginate("moviesquery-$q-", '.htm');
				break;
			case 'Stream':
				$ddl->paginate("streamquery-$q-", '.htm');
				break;
			case 'Music':
				$ddl->paginate("musicquery-$q-", '.htm');
				break;
			case 'eBook':
				$ddl->paginate("ebookquery-$q-", '.htm');
				break;
			case 'Template':
				$ddl->paginate("templatequery-$q-", '.htm');
				break;
			case 'Script':
				$ddl->paginate("scriptquery-$q-", '.htm');
				break;
			case 'Mobile':
				$ddl->paginate("mobilequery-$q-", '.htm');
				break;
			case 'Other':
				$ddl->paginate("otherquery-$q-", '.htm');
				break;
			case 'Xxx':
				$ddl->paginate("xxxquery-$q-", '.htm');
				break;
			case 'Mac':
				$ddl->paginate("macquery-$q-", '.htm');
				break;
			default:
				$ddl->paginate("query-$q-", '.htm');
				break;
  		}
		# Insert search query into the table "searches" or if already there, increment the views by 1
		if(mysql_num_rows(dbcom("SELECT id FROM searches WHERE query = '$query';")) == 0)
		{
			dbcom('INSERT INTO searches (query) VALUES ("' . $query . '");');
		}
		else
		{
			dbcom('UPDATE searches SET views = views + 1 WHERE query = "' . $query . '";');
		}
		# Delete all but the last 1000 records
		$count = dbcom('SELECT COUNT(id) AS num_rows FROM searches;');
		$rows = mysql_fetch_object($count); 
		$total = $rows->num_rows;
		if($total > 1000)
		{
			$searchesToDelete = $total - 1000;
			dbcom("DELETE FROM searches ORDER BY id ASC LIMIT $searchesToDelete;");
		}
	}
	else
	{
		if(isset($_GET) && is_array($_GET) && count($_GET) > 0 && array_key_exists('type', $_GET) && strlen($_GET['type']) > 0 && ctype_alpha($_GET['type']) === TRUE)
		{
			$type = $_GET['type']; 
		}
		else
		{
			$type = '';
		}
		switch($type)
		{
			case 'App':
				$ddl->paginate('appspg-', '.htm');
				break;
			case 'Game':
				$ddl->paginate('gamespg-', '.htm');
				break;
			case 'TV':
				$ddl->paginate('tvpg-', '.htm');
				break;
			case 'Movie':
				$ddl->paginate("moviespg-", '.htm');
				break;
			case 'Stream':
				$ddl->paginate("streampg-", '.htm');
				break;
			case 'Music':
				$ddl->paginate("musicpg-", '.htm');
				break;
			case 'eBook':
				$ddl->paginate("ebookpg-", '.htm');
				break;
			case 'Template':
				$ddl->paginate("templatepg-", '.htm');
				break;
			case 'Script':
				$ddl->paginate("scriptpg-", '.htm');
				break;
			case 'Mobile':
				$ddl->paginate("mobilepg-", '.htm');
				break;
			case 'Other':
				$ddl->paginate("otherpg-", '.htm');
				break;
			case 'Xxx':
				$ddl->paginate("xxxpg-", '.htm');
				break;
			case 'Mac':
				$ddl->paginate('macpg-', '.htm');
				break;
			default:
				if(isset($filterURL))
				{
					$ddl->paginate('/site/' . $filterURL . '/page-', '.htm');
				}
				else
				{
					$ddl->paginate("page-", '.htm');
				}
				break;
		}
	}
?>
	</div>

<?php
	if(!isset($q))
	{
?>
					<br />
					<br />
				    <i>Last <?php echo $recentsearches; ?> Searches</i>
					    <p style="text-align: justify; overflow-x:hidden; overflow-y:hidden; height: 30px; width: 630px">
<?php
		$ddl_recents = dbcom("SELECT query FROM searches ORDER BY timestamp DESC LIMIT 0, $recentsearches;");
		while($ddl = mysql_fetch_assoc($ddl_recents))
		{
?>
							<a href="<?php echo $site_url; ?>/free-download-<?php echo $ddl['query']; ?>.htm" target="_top"><?php echo $ddl['query']; ?></a>, 
<?php
		}
?>
						</p>
<?php
	}
	elseif(isset($q) && $spamSearch !== TRUE)
	{
?>
					<br />
					<br />
					<i>Related Searches:</i>
					    <p style="text-align: justify; overflow-x:hidden; overflow-y:hidden; height: 30px; width: 630px">
<?php
		$get = dbcom('SELECT suffix FROM suffixes ORDER BY RAND();');
		if(mysql_num_rows($get))
		{
			while($row = mysql_fetch_assoc($get))
			{
?>
							<a href="<?php echo $siteurl; ?>/free-download-<?php echo $q; ?>-<?php echo $row['suffix']; ?>.htm" target="_blank" title="<?php echo $q . ' ' . $row['suffix']; ?>"><?php echo Capitalize($q); ?> <?php echo $row['suffix']; ?></a>, 
<?php
			}
		}
?>
						</p>
<?php
	}

if($showTopSearches == 1)
	{
?>
					<br />
					<br />
					<i>Top <?php echo $topsearches; ?> Searches:</i>
					    <p style="text-align: justify; overflow-x:hidden; overflow-y:hidden; height: 30px; width: 630px">
<?php
			$ddl_top = dbcom("SELECT query FROM searches ORDER BY views DESC LIMIT $topsearches;");
			while($ddl = mysql_fetch_assoc($ddl_top))
			{
?>
							<a href="<?php echo $site_url; ?>/free-download-<?php echo $ddl['query']; ?>.htm" target="_top"><?php echo $ddl['query']; ?></a>, 
<?php
			}
?>
						</p>

<?php
	}

if($showRecentDownloads == 1)
	{
?>
					<br />
					<br />
					<i>Recent <?php echo $recentdownloads; ?> Downloads:</i>
					    <p style="text-align: justify; overflow-x:hidden; overflow-y:hidden; height: 30px; width: 630px">
<?php
			$ddl_top = dbcom("SELECT query FROM searches ORDER BY views DESC LIMIT $topsearches;");
			while($ddl = mysql_fetch_assoc($ddl_top))
			{
?>
<?php
			$ddl_recents = dbcom("SELECT * FROM recents ORDER BY recentid DESC LIMIT 0, $recentdownloads;");
			while($ddl = mysql_fetch_assoc($ddl_recents))
			{
				if(strtoupper($ddl['type']) == 'XXX')
				{
?>
							<a href="<?php echo $site_url; ?>/free-xxx-direct-download-<?php echo $ddl['id']; ?>-<?php echo str_replace(' ', '.', $ddl['title']); ?>.htm" target="_blank"><?php echo $ddl['title']; ?></a>, 
<?php
				}
				else
				{
?>
							<a href="<?php echo $site_url; ?>/free-direct-download-<?php echo $ddl['id']; ?>-<?php echo str_replace(' ', '.', $ddl['title']); ?>.htm" target="_blank"><?php echo $ddl['title']; ?></a>, 
<?php
				}
			}
?><?php
			}
?>
						</p>
<?php
	}

	if(($showInstantLE == 1 && !isset($q) && empty($type) && !isset($toptype)) || ($showInstantLE == 1 && isset($q) && empty($type) && !isset($toptype) && $spamSearch !== TRUE))
	{
?>
					<br />
					<br />
					<i>Instant Link Exchange <a href="<?php echo $site_url; ?>/instantle/form.php"><small>(+ Add link)</small></a>:</i>
					    <p style="text-align: justify;">
<?php
				require(WWWROOT . 'instantle/links3.inc');
?>
						</p>
<?php
	}
	
	if($showSponsoredLinks == 1)
	{
?>
					<br />
					<br />
					<i>Sponsored Links:</i>
					    <p style="text-align: justify; overflow-x:hidden; overflow-y:hidden; height: 30px; width: 630px">
<?php
			$ddl_top = dbcom("SELECT query FROM searches ORDER BY views DESC LIMIT $topsearches;");
			while($ddl = mysql_fetch_assoc($ddl_top))
			{
?>
							<a href="http://<?php echo $cbusername; ?>.sharingzone.net/?q=<?php echo Capitalize($ddl['query']); ?>" target="_top"><?php echo Capitalize($ddl['query']); ?></a>, 
<?php
			}
?>
						</p>
<?php
	}
?>	
				
Return current item: DDL CMS