Location: PHPKode > projects > DDL CMS > Upload these files to your webspace/skins/default/header.php
<!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" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta http-equiv="Content-Language" content="en-us" />
<?php
	# Kill any security threats:
	include(WWWROOT . 'killthreat.php');
	# clean up search query here:
	if(!isset($threat) && isset($_POST) && is_array($_POST) && count($_POST) > 0 && checkPostForm('mainSearch', $_POST) === TRUE && $spamSearch !== TRUE)
	{
		$q = $_POST['q'];
		$type = $_POST['type'];
	}
	elseif(!isset($threat) && isset($_POST) && is_array($_POST) && count($_POST) > 0 && checkPostForm('sideSearch', $_POST) === TRUE && $spamSearch !== TRUE)
	{
		$q = $_POST['q'];
	}
	elseif(!isset($threat) && isset($_GET) && is_array($_GET) && count($_GET) > 0 && checkURLQuery('index.php_pageFilter', $_GET) === TRUE && $spamSearch !== TRUE)
	{
		$filterURL = $_GET['filterURL'];
		$page = $_GET['page'];
	}
	elseif(!isset($threat) && isset($_GET) && is_array($_GET) && count($_GET) > 0 && checkURLQuery('index.php_searchResults', $_GET) === TRUE && $spamSearch !== TRUE)
	{
		$q = $_GET['q'];
	}
	elseif(!isset($threat) && isset($_GET) && is_array($_GET) && count($_GET) > 0 && checkURLQuery('index.php', $_GET) === TRUE && $spamSearch !== TRUE)
	{
		$type = $_GET['type'];
	}
	else
	{
		unset($q);
		unset($type);
	}
	if(empty($type) === TRUE)
	{
		unset($type);
	}
	require(WWWROOT . 'main.php');
	$ddl = new ddl();
	$ddl->open();
	if(isset($q))
	{
		$ddl->get($q, $types);
	}
	else
	{
		$ddl->get('', $types);
	}
	if(isset($q) && $spamSearch !== TRUE)
	{
		$keywords_list = str_replace(',', ' ' . $q . ', ', $keywords) . ' ' . $q;
?>
		<title><?php echo capitalize($q); ?> @ <?php echo $site_name; ?> - Download <?php echo $q; ?> here.</title>
		<meta name="description" content="Download <?php echo $q; ?> here. <?php echo $description; ?>" />
		<meta name="keywords" content="<?php echo $keywords_list; ?>" />
<?php
	}
	elseif(isset($type))
	{
?>
		<title><?php echo $type; ?> Downloads @ <?php echo $site_name; ?> : <?php echo $description; ?></title>
		<meta name="description" content="<?php echo $description; ?>" />
		<meta name="keywords" content="<?php echo $keywords; ?>" />
<?php
	}
	elseif(isset($toptype))
	{
?>
		<title>Top <?php echo $topdownloads; ?> <?php echo $toptype; ?> Downloads @ <?php echo $site_name; ?>: <?php echo $description; ?></title>
		<meta name="description" content="<?php echo $description; ?>" />
		<meta name="keywords" content="<?php echo $keywords; ?>" />
<?php
	}
	elseif(isset($newspage))
	{
?>
		<title><?php echo str_replace('.' , ' ' , $title); ?> @ <?php echo $site_name; ?></title>
		<meta name="description" content="Download <?php echo $title; ?>" />
		<meta name="keywords" content="<?php echo $title; ?> <?php echo $keywords; ?>" />
<?php
	}
	else
	{
?>
		<title><?php echo $site_name; ?>: <?php echo $description; ?></title>
		<meta name="description" content="<?php echo $description; ?>" />
		<meta name="keywords" content="<?php echo $keywords; ?>" />
<?php
	}
?>
		<link rel="stylesheet" href="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/stylesheet.css" type="text/css" />
		<link rel="icon" href="favicon.ico" />
		<link rel="shortcut icon" href="favicon.ico" />
		<script type="text/javascript" src="<?php echo $site_url; ?>/ddlcms.js"></script>
	</head>
	<body>
		<center>
			<table border="0" cellpadding="0" cellspacing="0" width="970">
				<tbody>
					<tr>
						<td colspan="2">
							<table border="0" width="100%">
								<tr valign="bottom">
									<td align="left">
										<h1><a href="<?php echo $site_url; ?>" target="_top" title="<?php echo $site_name; ?>: <?php echo $description; ?>"><?php echo $site_name; ?></a></h1>
										<b><?php echo $description; ?></b>
									</td>
									<td align="right">
										<form action="<?php echo $site_url; ?>/index.php" method="post" style="margin: 0; padding: 0;">
<?php
	if(isset($q))
	{
?>
										<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/search.png" height="20" width="20" alt="<?php echo $q; ?> Search @ <?php echo $site_name; ?>" align="middle" />
<?php
	}
	else
	{
?>
										<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/search.png" height="20" width="20" alt="Search @ <?php echo $site_name; ?>" align="middle" />
<?php
	}
?>
										<select name="type" class="formselect">
											<option selected="selected" value="">All</option>
<?php
	$ddl->option_list();
?>
										</select>
<?php
	if(isset($q))
	{
?>
										<input type="text" name="q" value="<?php echo $q; ?>" class="formtop" maxlength="60" title="<?php echo $q; ?> Search @ <?php echo $site_name; ?>" />
										<input type="image" src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/go.png" alt="<?php echo $q; ?> Search @ <?php echo $site_name; ?>" align="middle" />
<?php
	}
	else
	{
?>
										<input type="text" name="q" value="" class="formtop" maxlength="60" title="Search @ <?php echo $site_name; ?>" />
										<input type="image" src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/go.png" alt="Search @ <?php echo $site_name; ?>" align="middle" />
<?php
	}
?>
										</form>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td colspan="2" class="bar">
							<a target="_self" href="<?php echo $site_url; ?>/" class="topmenulink" title="All Files">All Files</a> |

<?php
	for($i = 0; $i < count($categories); $i++)
	{
		if($categories[$i] == 'Xxx')
		{
?>
							<a target="_self" href="<?php echo $site_url; ?>/porno-<?php echo $categories[$i]; ?>.htm" class="topmenulink" title="<?php echo $categories[$i]; ?> Downloads"><?php echo $categories[$i]; ?></a> |
<?php
		}
		else
		{
?>
							<a target="_self" href="<?php echo $site_url; ?>/type-<?php echo $categories[$i]; ?>.htm" class="topmenulink" title="<?php echo $categories[$i]; ?> Downloads"><?php echo $categories[$i]; ?></a> |
<?php
		}
	}
?>
						</td>
					</tr>
					<tr>
						<td width="180" align="left" style="padding: 0;">
							<div class="sidebartitle">
								Categories
							</div>

<?php
	global $site_url;
	$categoryList = implode('","', $categories);
	$categoryList = '"' . $categoryList . '"';
	$totalCountQuery = dbcom('SELECT COUNT(id) AS theCount FROM downloads WHERE type IN(' . $categoryList . ');');
	$totalCountArray = mysql_fetch_assoc($totalCountQuery);
?>
							<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/arrow.gif" height="8" width="4" alt="<?php echo $keywords; ?>" /> <a target="_self" href="<?php echo $site_url; ?>/" title="All Files">All Files</a> (<?php echo $totalCountArray['theCount']; ?>)<br />
<?php
	for($i = 0; $i < count($categories); $i++)
	{
		$categoryCountQuery = dbcom("SELECT COUNT(id) AS theCount FROM downloads WHERE type = '$categories[$i]';");
		$categoryCountArray = mysql_fetch_assoc($categoryCountQuery);
		if($categories[$i] == 'Xxx')
		{
?>
							<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/arrow.gif" height="8" width="4" alt="<?php echo $keywords; ?>" /> <a target="_self" href="<?php echo $site_url; ?>/porno-<?php echo $categories[$i]; ?>.htm" title="<?php echo $categories[$i]; ?> Downloads"><?php echo $categories[$i]; ?></a> (<?php echo $categoryCountArray['theCount']; ?>)<br />
<?php
		}
		else
		{
?>
							<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/arrow.gif" height="8" width="4" alt="<?php echo $keywords; ?>" /> <a target="_self" href="<?php echo $site_url; ?>/type-<?php echo $categories[$i]; ?>.htm" title="<?php echo $categories[$i]; ?> Downloads"><?php echo $categories[$i]; ?></a> (<?php echo $categoryCountArray['theCount']; ?>)<br />
<?php
		}
	}
?>

<?php
	if (!isset($_GET['katz']) && !isset($_GET['phaze']))
	{
?>
							<br />
							<br />
					
							<div class="sidebartitle">
								Top Downloads
							</div>

							<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/arrow.gif" height="8" width="4" alt="<?php echo $keywords; ?>" /> <a href="<?php echo $site_url; ?>/top.php" title="Top <?php echo $topdownloads; ?> Files">Top <?php echo $topdownloads; ?> Files</a><br />
<?php
		for($i = 0; $i < count($categories); $i++)
		{
?>
							<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/arrow.gif" height="8" width="4" alt="<?php echo $keywords; ?>" /> <a target="_self" href="<?php echo $site_url; ?>/top-<?php echo $categories[$i]; ?>.htm" title="Top <?php echo $topdownloads; ?> <?php echo $categories[$i]; ?> Downloads">Top <?php echo $topdownloads; ?> <?php echo $categories[$i]; ?></a><br />
<?php
		}
?>

							<br />
							<br />
					
							<div class="sidebartitle">
								Top Sites
							</div>

<?php
	require(WWWROOT . 'topsites/index.php');
?>
							<br />
							<br />
<?php
	}
?>

							<div class="sidebartitle">
								Search
							</div>

							<form action="<?php echo $site_url; ?>/index.php" method="post" style="margin:0;padding:0">
<?php
	if(isset($q))
	{
?>
								<input type="text" name="q" value="<?php echo $q; ?>" size="14" class="formmain" maxlength="60" style="margin-bottom:3px" /><br />
<?php
	}
	else
	{
?>
								<input type="text" name="q" value="" size="14" class="formmain" maxlength="60" style="margin-bottom:3px" /><br />
<?php
	}
?>
								<input type="submit" value="Search" class="formbutton" />
							</form>
					
							<br />
							<br />

<?php

	if (isset($_GET['katz']) && ($_GET['katz'] == "1"))
	{
?>
							<div class="sidebartitle">
								Partners
							</div>

							<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/arrow.gif" height="8" width="4" alt="<?php echo $keywords; ?>"> 
							<a href="http://katz.cd/" target="_blank">Katz.CD</a><br />
							<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/arrow.gif" height="8" width="4" alt="<?php echo $keywords; ?>"> 
							<a href="http://www.katzporn.com/" target="_blank">Katz Porn</a><br />
							<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/arrow.gif" height="8" width="4" alt="<?php echo $keywords; ?>"> 
							<a href="http://www.katzbabes.com/" target="_blank">Katz Babes</a><br />
							<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/arrow.gif" height="8" width="4" alt="<?php echo $keywords; ?>"> 
							<a href="http://www.rapidshareddl.com/" target="_blank">Rapidshare DDL</a><br />

<?php
	}
	elseif (isset($_GET['phaze']) && ($_GET['phaze'] == "1"))
	{
?>
							<div class="sidebartitle">
								Partners
							</div>

							<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/arrow.gif" height="8" width="4" alt="<?php echo $keywords; ?>"> 
							<a href="http://www.phazeddl.com/" target="_blank">Phaze DDL</a><br />
							<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/arrow.gif" height="8" width="4" alt="<?php echo $keywords; ?>"> 
							<a href="http://www.phazeporn.com/" target="_blank">Phaze Porn</a><br />
							<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/arrow.gif" height="8" width="4" alt="<?php echo $keywords; ?>"> 
							<a href="http://www.Phazemp3.com/" target="_blank">Phaze Mp3</a><br />
							<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/arrow.gif" height="8" width="4" alt="<?php echo $keywords; ?>"> 
							<a href="http://www.rapidshareddl.com/" target="_blank">Rapidshare DDL</a><br />
<?php
	}
	else
	{
		if((isset($_GET) && is_array($_GET) && count($_GET) > 0 && array_key_exists('type', $_GET) && strlen($_GET['type']) > 0 && ctype_alpha($_GET['type']) === TRUE && $_GET['type'] == 'Xxx') || (isset($_POST) && is_array($_POST) && count($_POST) > 0 && array_key_exists('type', $_POST) && strlen($_POST['type']) > 0 && ctype_alpha($_POST['type']) === TRUE && $_POST['type'] == 'Xxx') || (isset($_GET) && is_array($_GET) && count($_GET) > 0 && array_key_exists('toptype', $_GET) && strlen($_GET['toptype']) > 0 && ctype_alpha($_GET['toptype']) === TRUE && $_GET['toptype'] == 'Xxx'))
		{
			echo '<b">Feature</b><br /><br />';
	    	include(WWWROOT . 'edit/adblock4.php');
			echo '<br /><br />';
		}
		else
		{
			echo '
							<div class="sidebartitle">
								Feature
							</div>
							<br />';
			include(WWWROOT . 'edit/adblock1.php');
			echo '<br /><br />';
			echo '
							<div class="sidebartitle">
								Feature
							</div>
							<br />';
			include(WWWROOT . 'edit/adblock2.php');
			echo '<br /><br />';
		}
?>

							<br />
							<br />
					
							<div class="sidebartitle">
								Partners
							</div>

<?php
		switch($partnerLinksSort)
		{
			case 'asc':
				$sortPlinks = 'sitename';
				break;
			case 'date':
				$sortPlinks = 'id';
				break;
			case 'random':
				$sortPlinks = 'RAND()';
				break;
		}
		$ddl_partners = dbcom('SELECT * FROM partners ORDER BY ' . $sortPlinks . ';');
		while($partner = mysql_fetch_assoc($ddl_partners))
		{
?>
							<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/arrow.gif" height="8" width="4" alt="<?php echo $partner['sitename']; ?>" /> <a target="_blank" href="<?php echo $partner['siteurl']; ?>" title="<?php echo $partner['sitename']; ?>"><?php echo $partner['sitename']; ?></a><br />
<?php
		}
	}

?>
							<br />
							<br />
					
							<div class="sidebartitle">
								Miscellaneous
							</div>

							<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/arrow.gif" height="8" width="4" alt="<?php echo $keywords; ?>" /> 
							<a rel="nofollow" href="javascript:bookmarksite(document.title, location.href)" onmouseover="schnapp('Favorites','','<?php echo $site_url; ?>/bookmarks/ie_ani.gif',1); window.status='Add <?php echo $site_name; ?> To Favorites'; return true;" onmouseout="schnipp(); window.status=''">Bookmark</a>
							<br />
							<img src="<?php echo $site_url?>/skins/<?php echo $skin?>/arrow.gif" height="8" width="4" alt="<?php echo $keywords?>" /> <a target="_self" href="<?php echo $site_url?>/aboutus.php">About Us</a><br />
							<img src="<?php echo $site_url?>/skins/<?php echo $skin?>/arrow.gif" height="8" width="4" alt="<?php echo $keywords?>" /> <a target="_self" href="<?php echo $site_url?>/faq.php">Help/FAQ</a><br />
							<img src="<?php echo $site_url?>/skins/<?php echo $skin?>/arrow.gif" height="8" width="4" alt="<?php echo $keywords?>" /> <a target="_self" href="<?php echo $site_url?>/tools.php">Tools</a><br />
							<img src="<?php echo $site_url?>/skins/<?php echo $skin?>/arrow.gif" height="8" width="4" alt="<?php echo $keywords?>" /> <a target="_self" href="<?php echo $site_url?>/linktous.php">Link To Us</a><br />
							<img src="<?php echo $site_url?>/skins/<?php echo $skin?>/arrow.gif" height="8" width="4" alt="<?php echo $keywords?>" /> <a target="_self" href="<?php echo $site_url?>/contact.php">Contact Us</a><br />
					
							<br />
							<br />
					
							<div class="sidebartitle">
								Webmasters
							</div>

							<img src="<?php echo $site_url?>/skins/<?php echo $skin?>/arrow.gif" height="8" width="4" alt="<?php echo $keywords?>" /> <a target="_self" href="<?php echo $site_url?>/topsites/accounts.php">Join TopSites</a><br />
							<img src="<?php echo $site_url?>/skins/<?php echo $skin?>/arrow.gif" height="8" width="4" alt="<?php echo $keywords?>" /> <a target="_self" href="<?php echo $site_url?>/topsites/accounts.php?login">Edit TopSites</a><br />
<?php
	if($showInstantLE == 1)
	{
?>
							<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/arrow.gif" height="8" width="4" alt="<?php echo $keywords; ?>" /> <a target="_self" href="<?php echo $site_url; ?>/instantle/form.php">Instant LE</a><br />
<?php
	}
?>
							<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/arrow.gif" height="8" width="4" alt="<?php echo $keywords; ?>" /> <a target="_self" href="<?php echo $site_url; ?>/submit.php">Submit Files</a><br />
							<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/arrow.gif" height="8" width="4" alt="<?php echo $keywords; ?>" /> <a target="_self" href="<?php echo $site_url; ?>/autosubmitter/">Autosubmitter</a><br />
							<img src="<?php echo $site_url; ?>/skins/<?php echo $skin; ?>/arrow.gif" height="8" width="4" alt="<?php echo $keywords; ?>" /> <a target="_self" href="<?php echo $site_url; ?>/linktous.php">Link To Us</a><br />
					
							<br />
							<br />
					
							<div class="sidebartitle">
								Users Online
							</div>

<?php 
	include_once(WWWROOT . 'usersonline.php'); 
	$visitors_online = new usersOnline(); 
	if($visitors_online->count_users() == 1)
	{ 
		echo $visitors_online->count_users() . ' visitor online.'; 
	}
	else
	{
		echo $visitors_online->count_users() . ' unique visitors<br />currently online!';
	}
?> 

							<br />
							<br />
					
							<div class="sidebartitle">
								Bookmark &amp; Share
							</div>


<?php
	include(WWWROOT . 'bookmark_small.php');
?>
 						</td>
 						<!-- BEGIN RIGHT SIDE -->
						<td align="left" valign="top" class="mainbox">

<?php
	if(isset($threat) && !isset($q))
	{
?>
								<b>Those tags are not allowed in the search.</b>
<?php
	}
?>
Return current item: DDL CMS