Code Monkey home page Code Monkey logo

song's Introduction

Song (GeekZone)

  • I know it's messy or not so efficient...

Features:

  • Reprodução aleatória.
  • Autoreprodução.
  • Facilidade para implementação de novos contéudos.
  • Suporta imagem para o album.
  • Suporta imagem para a música.
  • Definição de categória.
  • Contagem de visualizações.
  • Somente (.mp3).
  • Página para album.
  • Campo de pesquisa para albuns e musicas.
  • Continuidade de reprodução se utilizando cookies.
  • Orientação objeto back-end, obsoleto.

Future Features:

  • Parar com o excesso de processamento de albuns/musicas sem utilizar banco de dados.

song/album.php

Lines 26 to 52 in 9772195

public static function getAllAlbum(){
$sql = new MySQL("song");
$conn = $sql->openConnection();
$albums = array();
foreach (Album::getFolderAll("albums") as $one) {
$album = new Album($one);
if(file_exists("albums/".$one."/!.png")!== false){
$album->setImage("albums/".$one."/"."!.png");
}
foreach (Album::getFolderAll("albums/".$one) as $two) {
if(!(strpos($two,".png")!== false)){
$image = "albums/".$one."/".substr($two, 0, -4). '.png';
if(file_exists($image))
$song = new Song($two,"albums/".$one."/".$two, $album, $image);
else
$song = new Song($two,"albums/".$one."/".$two, $album, null);
$album->addSong($song);
Song::addView($conn, $song, false);
}
}
array_push($albums,$album);
}
return $albums;
}
public static function findAlbum($find, $type){
$albums = Album::getAllAlbum();

  • Sistema de upload.
  • Verificar validade(!= null) da lista entregue do banco de dados.
  • Melhoria no front-end.
  • Anotações.

Sem essa verificação ocorre o erro que o banco de dados tenta exibir valores de uma array list nula.

Imagens:

image image image

song's People

Contributors

nonopichy avatar

Stargazers

Fernando Saraiva avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.