- navigation entre stats et referers d'un article - icones tirees de http://www.fatcow.com/free-icons sous licence CC-by-sa 3.0svn/root/tags/plugins/statistiques/0.3.0 v0.3.0

@ -1,75 +0,0 @@
|
||||
<?php |
||||
|
||||
/***************************************************************************\ |
||||
* SPIP, Systeme de publication pour l'internet * |
||||
* * |
||||
* Copyright (c) 2001-2011 * |
||||
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * |
||||
* * |
||||
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. * |
||||
* Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * |
||||
\***************************************************************************/ |
||||
|
||||
if (!defined("_ECRIRE_INC_VERSION")) return; |
||||
|
||||
include_spip('inc/presentation'); |
||||
|
||||
// http://doc.spip.org/@exec_statistiques_referers_dist |
||||
function exec_statistiques_referers_dist() |
||||
{ |
||||
$jour = _request('jour'); |
||||
$limit = _request('limit'); |
||||
// nombre de referers a afficher |
||||
$limit = intval($limit); //secu |
||||
if (!autoriser('voirstats','article')) { |
||||
include_spip('inc/minipres'); |
||||
echo minipres(); |
||||
} else { |
||||
|
||||
if ($limit == 0) $limit = 100; |
||||
if ($jour<>'veille') $jour='jour'; |
||||
|
||||
$referenceurs = charger_fonction('referenceurs', 'inc'); |
||||
$res = $referenceurs (0, "SUM(visites_$jour)", 'spip_referers', "visites_$jour>0", "referer", $limit); |
||||
|
||||
$n = count($res); |
||||
$args = "jour=$jour&limit=" . strval($limit+200); |
||||
$plus = generer_url_ecrire('statistiques_referers', $args); |
||||
|
||||
if ($plus) { |
||||
$plus = "<div style='text-align:right;'><b><a href='$plus'>+++</a></b></div>"; |
||||
} |
||||
|
||||
$titre = _T('titre_liens_entrants') |
||||
. " ($n " |
||||
. ($n <= 1 ? _T('info_site') : _T('info_sites')) |
||||
. ")"; |
||||
|
||||
$commencer_page = charger_fonction('commencer_page', 'inc'); |
||||
|
||||
echo $commencer_page(_T('titre_page_statistiques_referers'), "statistiques_visites", "referers"); |
||||
|
||||
echo gros_titre($titre,'', false); |
||||
echo debut_gauche('', true); |
||||
echo debut_boite_info(true); |
||||
echo "<p style='font-size:small; text-align:left;' class='verdana1'>"; |
||||
echo _T('info_gauche_statistiques_referers'); |
||||
echo "</p>"; |
||||
echo fin_boite_info(true); |
||||
echo debut_droite('', true); |
||||
echo barre_onglets("stat_referers", $jour . '_referers'); // attention a pas avoir le meme id d'onglet... |
||||
|
||||
if ($res) { |
||||
echo "<br /><div style='font-size:small;' class='verdana1'>"; |
||||
echo "<ul class='referers'><li>"; |
||||
echo join("</li><li>\n", $res); |
||||
echo "</li></ul>"; |
||||
echo $plus; |
||||
} |
||||
echo "</div><br />"; |
||||
|
||||
echo fin_gauche(), fin_page(); |
||||
} |
||||
} |
||||
|
||||
?> |
After Width: | Height: | Size: 821 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.9 KiB |
@ -0,0 +1,2 @@
|
||||
Icones sous license: Creative Commons (Attribution 3.0 United States) |
||||
credits : http://www.fatcow.com/free-icons |
After Width: | Height: | Size: 247 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 811 B After Width: | Height: | Size: 604 B |
Before Width: | Height: | Size: 942 B After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 797 B |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 794 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.9 KiB |