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