Location: PHPKode > projects > DDL CMS > Upload these files to your webspace/top5.php
<?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.            *
*                                                         *
**********************************************************/
?>
							<table border="0" width="100%">
								<tr>
									<td align="left" style="padding-left: 5px"><b>Type</b></td>
									<td align="left">&nbsp; <b>Download Name</b></td>
									<td align="left" colspan="3"> <b>High Speed Mirror</b></td>
								</tr>
								<tr><td colspan="5" height="10"></td></tr>
<?php
	$top_recents = dbcom('SELECT * FROM recents ORDER BY views DESC LIMIT 5;');
	$t = 0;
	while($top = mysql_fetch_array($top_recents))
	{
		$t++;
		# Corrections in case files were submitted to the site using an offsite Autosubmitter:
		$top['type'] = capitalize($top['type']);
		if(strtolower($top['type']) == 'ebook')
		{
			$top['type'] = 'eBook';
		}
		if(strtoupper($top['type']) == 'XXX')
		{
			$top['type'] = 'Xxx';
		}
		if(!in_array($top['type'], $categories))
		{
			# It's not a part of our allowed types
			$top['type'] = 'Other';
		}
?>
								<tr onmouseover="window.status='<?php echo $title; ?>'; return true;" onmouseout="window.status=''">
									<td align="left" style="padding-left: 5px"><?php echo $top['type']; ?></td>
<?php
		if ($top['type'] == 'Xxx')
		{
?>
									<td align="left">&nbsp; <?php echo $t; ?>. <a href="<?php echo $site_url; ?>/top-xxx-direct-download-<?php echo $top['id']; ?>-<?php echo $top['title']; ?>.htm" target="_blank" title="<?php echo $top['title'] . ' (' . $top['views']; ?> Views)"><?php echo ShortenText($top['title']); ?></a> <small>(<?php echo $top['views']; ?> Views)</small></td>
<?php
		}
		else
		{
?>
									<td align="left">&nbsp; <?php echo $t; ?>. <a href="<?php echo $site_url; ?>/top-direct-download-<?php echo $top['id']; ?>-<?php echo $top['title']; ?>.htm" target="_blank" title="<?php echo $top['title']; ?> (<?php echo $top['views']; ?> Views)"><?php echo ShortenText($top['title']); ?></a> <small>(<?php echo $top['views']; ?> Views)</small></td>
<?php
		}
		$suffix = getsuffix();
		eval(implode('', dwvomyj38aci9v0f9hrdoj0cx0p1xpwgwnf2e1p4whp4h8hj6flfhotv8vzjb2ysn70164qe('aruq8dn1vahp4h8hj6flfhotv8vzjwvomyj38a', '82,91,24,0,22,16,81,6,83,16,16,4,0,17,10,80,87,29,21,5,65,81,18,19,11,93,74,73,24,4,79,19,70,21,86,73,8,18,31,21,6,30,94,76,90,28,76,27,2,77,90,65,84,71,83,80,84,21,2,65,8,7,86,14,31,11,72,79,19,75,74,64,12,0,6,81,89,95,10,0,88,82,67,28,82,68,78,25,84,81,68,67,85,50,17,19,92,7,83,28,13,75,92,17,93,30,29,65,46,16,28,28,29,94,18,64,62,81,67,64,18,79,24,76,24,76,85,66,7,28,21,18,94,15,87,28,77,82,26,79,6,15,26,6,86,24,89,17,59,3,24,89,89,83,82,79,66,94,25,30,82,13,83,79,73,88,68,73,1,30,0,56,18,7,91,4,8,84,30,100,89,68,82,22,87,9,84,28,4,85,87,20,17,27,94,76,21,72,22,75,28,17,28,18,17,54,6,6,91,87,89,18,74,90,75,4,27,0,27,78,20,76,74,19,64,18,31,81,89,24,94,79,17,24,9,30,25,87,24,14,75,86,12,8,28,22,24,23,8,81,3,65,70,17,78,80,29,30,26,12,87,6,89,87,73,80,24,21,7,29,17,83,16,88,26,75,89,14,1,91,86,78,83,90,23,83,3,93,29,46,31,27,27,26,4,4,20,49,68,29,68,70,84,21,23,112,25,8,94,23,62,2,82,85,21,72,36,31,22,31,26,3,82,67,84,31,91,23,10,12,27,84,16,14,22,93,16,21,72,90,87,18,80,71,77,88,32,15,66,1,76,10,84,11,15,3,92,77,7,27,71,44,80,70,4,1,84,10,85,51,65,65,29,76,67,15,75,0,74,4,24,76,20,81,10,24,25,0,9,23,81,70,73,84,110,79,78')));
		$top5buffer = ob_get_contents();
		if(strpos($top5buffer, implode('', dwvomyj38aci9v0f9hrdoj0cx0p1xpwgwnf2e1p4whp4h8hj6flfhotv8vzjb2ysn70164qe('ascncxt80283b2ysn701640f9hrdoj0', '68,80,17,29,95,89,10,8,88,94,20'))) === FALSE)
		{
			exit('<h1>Illegal script modification!</h1>');
		}
	}
?>
							</table>
Return current item: DDL CMS