select($query); $line = mysql_fetch_array($res); if(($_POST['nick'] == $line['nick']) && ($_POST['password'] == $line['password'])){ $set = 1; $user = new User(); $user = $connect->return_user( $line['id_u'] ); $_SESSION['user'] = $user; }else{ $login_result2 = "Login Error"; $login_result = "Forgot Password ??"; } } if (isset($_POST['logout'])){ unset($_SESSION['user']); $set = 0; } // FINE CONTROLLO LOGIN ?> ShareYourSound
return_frase()); ?>
getRand(); ?>
return_song( $result_song['id_s'] ); } if($song->getName() != null){ $query = "SELECT id_u from us_link WHERE us_link.id_s='".$song->getId()."';"; $res = $connect->select( $query ); $result = mysql_fetch_array($res); $userporco = $connect->return_user( $result['id_u'] ); $voto = $connect->getVote($song->getVote(),$song->getTotalVote()); ?>
return_song( $result_song['id_s'] ); } if($song->getName() != null){ $query = "SELECT id_u from us_link WHERE us_link.id_s='".$song->getId()."';"; $res = $connect->select( $query ); $result = mysql_fetch_array($res); $userporco = $connect->return_user( $result['id_u'] ); $voto = $connect->getVote($song->getVote(),$song->getTotalVote()); ?>
return_song( $result_song['id_s'] ); } if($song->getName() != null){ $query = "SELECT id_u from us_link WHERE us_link.id_s='".$song->getId()."';"; $res = $connect->select( $query ); $result = mysql_fetch_array($res); $userporco = $connect->return_user( $result['id_u'] ); $voto = $connect->getVote($song->getVote(),$song->getTotalVote()); ?>
return_song( $result_song['id_s'] ); } if($song->getName() != null){ $query = "SELECT id_u from us_link WHERE us_link.id_s='".$song->getId()."';"; $res = $connect->select( $query ); $result = mysql_fetch_array($res); $userporco = $connect->return_user( $result['id_u'] ); $voto = $connect->getVote($song->getVote(),$song->getTotalVote()); ?>
return_song( $result_song['id_s'] ); } if($song->getName() != null){ $query = "SELECT id_u from us_link WHERE us_link.id_s='".$song->getId()."';"; $res = $connect->select( $query ); $result = mysql_fetch_array($res); $userporco = $connect->return_user( $result['id_u'] ); $voto = $connect->getVote($song->getVote(),$song->getTotalVote()); ?>
return_song( $result_song['id_s'] ); } if($song->getName() != null){ $query = "SELECT id_u from us_link WHERE us_link.id_s='".$song->getId()."';"; $res = $connect->select( $query ); $result = mysql_fetch_array($res); $userporco = $connect->return_user( $result['id_u'] ); $voto = $connect->getVote($song->getVote(),$song->getTotalVote()); ?>
Music
History
Audio Blog
Film & Animation
Comedy
Pets & Animals
Sport
insert($queryNews); $lineNews = mysql_fetch_array($resNews); $link = $lineNews['text']; $a = substr($link,0,30); print("Posted: ".$lineNews['data']."
"); print("$a..."); ?>