Esempio n. 1
0
$mostViewedArtists = DBStats::mostViewedArtists($startDate, $endDate, $limite);
// STANDARD STAT FUNC
$mostViewedTracks = DBStats::mostViewedTracks($startDate, $endDate, $limite);
// STANDARD STAT FUNC
// Platforms HITS
$platformsHits = DBStats::platformsHits($startDate, $endDate, 'all');
// STANDARD STAT FUNC
$platformsHitsViaSearch = DBStats::platformsHits($startDate, $endDate, 'search');
// STANDARD STAT FUNC
$platformsHitsViaShare = DBStats::platformsHits($startDate, $endDate, 'share');
// STANDARD STAT FUNC
$totalPlatformsHits = DBStats::totalPlatformsHits($startDate, $endDate, 'all');
// STANDARD STAT FUNC
$totalPlatformsHitsViaSearch = DBStats::totalPlatformsHits($startDate, $endDate, 'search');
// STANDARD STAT FUNC
$totalPlatformsHitsViaShare = DBStats::totalPlatformsHits($startDate, $endDate, 'share');
// STANDARD STAT FUNC
// Search Trends
$lastSearches = DBStats::lastSearches($startDate, $endDate, $limite);
$popularSearches = DBStats::popularSearches($startDate, $endDate, $limite);
?>
<!DOCTYPE html>
<html>
<head>
  <title>Administration</title>
  <link rel="stylesheet" type="text/css" media="all" href="<?php 
echo _SITE_URL;
?>
/css/reset.css" />
  <link rel="stylesheet" type="text/css" media="all" href="<?php 
echo _SITE_URL;
Esempio n. 2
0
<?php

require _PATH . 'include/database/DBUtils.class.php';
require _PATH . 'include/database/DBStats.class.php';
require _PATH . 'include/database/DBConnection.class.php';
// Total SHARES
$totalViews = DBStats::totalViews();
// Platforms HITS
$platformsHits = DBStats::platformsHits(null, null, 'all');
$totalPlatformsHits = DBStats::totalPlatformsHits(null, null, 'all');
// Most Shared ARTISTS and TRACKS
$listDisplayLimit = 5;
$mostViewedArtists = DBStats::mostViewedArtists(null, null, $listDisplayLimit);
$topViewedArtist = DBStats::mostViewedArtists(null, null, 1);
$mostViewedTracks = DBStats::mostViewedTracks(null, null, $listDisplayLimit);
$mostViewedAlbums = DBStats::mostViewedAlbums(null, null, $listDisplayLimit);