$do = $_POST['do'];
echo $do."
";
switch ($do) {
case "update":
if(isSet($_POST['content']))
{
$content=$_POST['content'];
$vid = getYTid($content);
mysql_query("insert into propunere(id, uid, vid, data, stare) values ('', '$uid', '$vid', '$data', '0')");
$sql_in=mysql_query("SELECT * FROM propunere order by id desc LIMIT 31");
$r=mysql_fetch_array($sql_in);
$jsonurl = "https://graph.facebook.com/". $r['uid'];
$json = file_get_contents($jsonurl,0,null,null);
$json_output = json_decode($json);
?>