";
echo "Nu esti autentificat sau sesiunea ta a expirat
";
echo "»autentificare«";
echo "
";
echo "Ai nevoie de minim 1000 de plusuri pentru a agauga un element la descarcat!
";
echo "-----
";
echo "prim";
echo "
";
$crdate = time();
//$uid = getuid_sid($sid);
$res = FALSE;
if((trim($vilink)!="")&&(trim($viname)!=""))
{
$res = mysql_query("INSERT INTO lib3rtymrc_manele3 SET cid='".$cid."', uid='".$uid."', title='".mysql_escape_string($viname)."', pudt='".$crdate."', itemurl='".$vilink."'");
}
if($res)
{
mysql_query("INSERT INTO lib3rtymrc_users SET monezi=monezi+1 WHERE id='".$uid."'");
echo "Element descarcari adaugat cu succes";
}else{
echo "Eroare la adaugarea elementului";
}
echo "
-----
";
echo "";
echo "Meniu Descarcari";
echo "
";
$itemowner = mysql_fetch_array(mysql_query("SELECT uid FROM lib3rtymrc_manele3 WHERE id='".$vid."'"));
if(isowner(getuid_sid($sid)) OR isowner1(getuid_sid($sid)) OR getuid_sid($sid)==$itemowner[0])
{
$res = mysql_query("DELETE FROM lib3rtymrc_manele3 WHERE id='".$vid."'");
if($res)
{
echo "Element sters cu succes
";
}else{
echo "Eroare in baza de date!
";
}
}else{
echo "Nu poti sterge acest element";
}
echo "
-----
";
echo "";
echo "Meniu Descarcari";
echo "
";
echo "Nu stiu cum ai ajuns aici dar nu ai ce vedea
";
echo "";
echo "Prim";
echo "