Exemplo n.º 1
0
        ImportSampleData();
        echo xml_gen::p('done');
        break;
    case 'genres':
        CommonHeader('Genre Distribution');
        Summary();
        GenreReport();
        break;
    case 'artists':
        CommonHeader('Genre Distribution');
        Summary();
        ArtistReport();
        break;
    case 'formats':
        CommonHeader('Format/Encoder Distribution');
        Summary();
        FormatReport();
        FormatEncoderReport();
        FormatEncoderOptionsReport();
        break;
    default:
        CommonHeader('demo.mysql.php - menu');
        $g = new xml_gen();
        echo $g->p('This demo shows one way of storing getID3() data in a database. The demo is not complete and will not be completed by the getID3() development team. If you find it useful and wish to complete it, please send the completed demo to us and we will add it to the next version.');
        echo $g->h3('Initial steps');
        echo $g->ul($g->li($g->a('demo.mysql.php?action=create', 'Empty/Create empty database')) . $g->li($g->a('demo.mysql.php?action=import', 'Import sample data') . ' highly recommended - then check out the reports') . $g->li($g->a('demo.mysql.php?action=analyze', 'Analyze your own audio files') . ' located in ' . $audio_path . ' (change that path in demo.mysql.php ln 56. This will delete all entries in the database!'));
        echo $g->h3('Statistics/Reports');
        echo $g->ul($g->li($g->a('demo.mysql.php?action=genres', 'Genre Distribution')) . $g->li($g->a('demo.mysql.php?action=artists', 'Artist Distribution')) . $g->li($g->a('demo.mysql.php?action=formats', 'Format/Encoder Distribution')) . $g->li("List duplicate files by md5data") . $g->li("List duplicate files by artist+title and playtime") . $g->li("List files without Genre, title, ..."));
        echo $g->h3('Searching');
        echo $g->ul($g->li('Search Metadata/Tags'));
}
Exemplo n.º 2
0
 function Paper()
 {
     return Title() . Author() . Timestamp() . Summary() . Introduction() . Methods() . Results() . Discussion() . Acknowledgements() . Citations() . Appendices();
 }