include('header.php');
foreach($_GET as $key => $value) {
	$secure[$key] = filter($value);
}
if($_GET['a'] == "del" && $_GET['id'] != ""){
$sit1 = mysql_query("SELECT * FROM `sites` WHERE `id`='{$secure['id']}' AND `user`='{$data->login}'");
$ext = mysql_num_rows($sit1);
$sit = mysql_fetch_object($sit1);
if($ext > 0){
mysql_query("UPDATE `users` SET `coins`=`coins`+'{$sit->points}' WHERE `login`='{$sit->user}'");
mysql_query("DELETE FROM `sites` WHERE `id`='{$secure['id']}'");
}}
?>
			login)) {?>	
                  
My sites - Google
            
			
			Google - Facebook - Youtube - Traffic Exchange
						
		
		
        
						
  $site2 = mysql_query("SELECT * FROM `sites` WHERE `user`='{$data->login}' ORDER BY `cpc` DESC");
  for($j=1; $site = mysql_fetch_object($site2); $j++)
{
?>		
			
				| 							
                 echo $site->title;?>						
				 | 				
																
				banned == 1){?>}else{?>} echo truncate($site->site, 57);?>	
				 | 				
								
				 echo $site->points;?>			
				 | 
								
				 echo $site->cpc;?>					
				 | 	
				
				 | 					
			
			}?>
		
	
}else{?>}?>