Example #1
0
} catch (PDOException $Exception) {
    $bdd_paulo = null;
    $bdd_drupal = null;
    exit("Des problèmes techniques nous empêchent temporairement de vous proposer les podcasts... Veuillez nous excuser pour la gêne occasionnée.");
}
include "../lib/paulo_entries.php";
$url = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
$prefix_url = parse_url($url, PHP_URL_PATH);
setlocale(LC_TIME, 'fr_FR.utf8', 'fra');
date_default_timezone_set('Europe/Paris');
get_date($date, $day, $month, $year);
date_default_timezone_set($timezone_server);
$datex = explode('-', $date);
$jsonDay = get_json($date);
$ecoutes = load_ecoutes($date, $bdd_paulo);
$podcasts = load_podcasts($jsonDay, $date, $bdd_drupal);
$first = -1;
$second = -1;
for ($i = 0; $i != 8; $i++) {
    if (isset($podcasts[$i])) {
        if ($first == -1) {
            $first = $i;
        } else {
            if ($second == -1) {
                $second = $i;
                break;
            }
        }
    }
}
if ($first == -1) {
Example #2
0
    }
    return $result;
}
function get_json($date)
{
    $file_day = "../OK/" . $date . "/config.txt";
    if (file_exists($file_day)) {
        return json_decode(file_get_contents($file_day));
    } else {
        return null;
    }
}
setlocale(LC_TIME, 'fr_FR.utf8', 'fra');
get_date($date, $day, $month, $year);
$jsonDay = get_json($date);
$podcasts = load_podcasts($jsonDay, $date);
$ecoutes = load_ecoutes($date);
?>
<title>Administration Podcast Radio Campus Clermont-Ferrand</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<link rel="stylesheet" href="css/circle.player.css">
<link rel="stylesheet" href="css/admin.css?date=<?php 
echo filemtime('css/admin.css');
?>
">
<!-- link rel="stylesheet" href="css/ui-lightness/jquery-ui-1.10.4.custom.min.css" -->
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.css">
<script type="text/javascript" src="js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="js/jquery.jplayer.min.js"></script>
<script type="text/javascript" src="js/jquery.transform2d.js"></script>
<script type="text/javascript" src="js/jquery.grab.js"></script>
Example #3
0
    echo '<span class="useragent" title="Navigateur auditeur">' . $ecoute["dl_useragent"] . '</span>';
    echo '<span class="nombre_ecoutes" title="Nombre d\'écoutes">' . $ecoute["count"] . '</span>';
    echo '<span class="nombre_ecoutes" title="Nombre de téléchargements">' . $ecoute["nb_download"] . '</span>';
    echo '<span class="nombre_ecoutes" title="Nombre d\'écoutes par player">' . $ecoute["nb_player"] . '</span></li>';
}
echo "</ul>";
echo "</div>";
echo '<div id="list-day">';
if ($byEcoute) {
    $ecoutesDay = load_ecoutes_day($date);
    echo "<h2 id=\"podcast-day\">Podcasts écoutés le " . strftime("%e %B %Y", strtotime($date)) . "</h2>";
} else {
    $ecoutesDay = load_podcasts_day($date);
    echo "<h2 id=\"podcast-day\">Podcasts du " . strftime("%e %B %Y", strtotime($date)) . "</h2>";
}
load_podcasts($ecoutesDay);
echo "<ul class=\"ui-widget ui-widget-content ui-helper-clearfix ui-corner-all array\">";
echo '<li class="ui-widget-header ui-helper-clearfix ui-corner-all header"><span class="first day" title="date">Date</span>';
echo '<span class="heure" title="Heure">Heure</span>';
echo '<span class="nombre_ecoutes" title="total">Total</span>';
echo '<span class="nombre_ecoutes" title="téléchargements">Téléchargments</span>';
echo '<span class="nombre_ecoutes" title="player">Player</span>';
echo '<span class="title" title="Titre">Titre</span></li>';
foreach ($ecoutesDay as $ecoute) {
    $ddate = explode(" ", $ecoute["timeslot"]);
    $heure = explode(":", $ddate[1]);
    $jour = explode("-", $ddate[0]);
    if ($byEcoute) {
        echo '<li><span class="first day" title="date"><a href="/onair/podcast/admin/stats.php?date=' . $ddate[0] . '#list-day" title="voir les autres podcasts de ce jour">' . intval($jour[2]) . ' ' . strftime("%B", strtotime($ecoute["timeslot"])) . '</a></span>';
    } else {
        echo '<li><span class="first day" title="date"><a href="/onair/podcast/admin/?date=' . $ddate[0] . '" title="aller à l\'administration de ce jour">' . intval($jour[2]) . ' ' . strftime("%B", strtotime($ecoute["timeslot"])) . '</a></span>';