$class = array('liste', 'max');\r
\r
$lines[] = array($date_creation, date(__('d-m-Y'), $book->date));\r
- $lines[] = array(__('Nombre de lieux de visite'), $stats['places']);\r
- $lines[] = array(__('Nombre de visiteurs uniques'), $stats['visitors']);\r
+// $lines[] = array(__('Nombre de lieux de visite'), $stats['places']);\r
+// $lines[] = array(__('Nombre de visiteurs uniques'), $stats['visitors']);\r
$lines[] = array(__('Nombre de visites'), $stats['visits']);\r
$lines[] = array(__('Nombre de pages vues'), $stats['pages']);\r
if ($afriend) {\r
$title = '';\r
\r
$colsTitles = array(__('Période'), /*__('Lieux de visite'),*/\r
- __('Visiteurs uniques'), __('Visites'), __('Pages vues'));\r
+ /*__('Visiteurs uniques'),*/ __('Visites'), __('Pages vues'));\r
if ($afriend) {\r
$colsTitles[] = __('Liens envoyés');\r
}\r
\r
$line[] = '<a href="' . $url . '">' . $date . '</a>';\r
//$line[] = $stats['places'];\r
- $line[] = $stats['visitors'];\r
+ //$line[] = $stats['visitors'];\r
$line[] = $stats['visits'];\r
$line[] = $stats['pages'];\r
if ($afriend) {\r
public static function detailJour($book, $annee, $mois, $stats)\r
{\r
$colsTitles = array(__('Jour'), /*__('Lieux de visite'),*/\r
- __('Visiteurs uniques'), __('Visites'), __('Pages vues'), __('Liens cliqués'));\r
+ /*__('Visiteurs uniques'),*/ __('Visites'), __('Pages vues'), __('Liens cliqués'));\r
$lines = array();\r
$xlines = array();\r
\r
foreach ($stats->days->day as $day) {\r
$lines[] = array(strftime('%A %d', mktime(0, 0, 0, $mois, (string)$day['day'], $annee)),\r
// $day['places'],\r
- $day['visitors'],\r
+ //$day['visitors'],\r
$day['visits'],\r
$day['views'],\r
$day['links']);\r
$xlines[] = array(strftime('%d', mktime(0, 0, 0, $mois, (string)$day['day'], $annee)),\r
//$day['places'],\r
- $day['visitors'],\r
+ //$day['visitors'],\r
$day['visits'],\r
$day['views'],\r
$day['links']);\r
\r
public static function detailOrigine($book, $stats)\r
{\r
- $colsTitles = array(__('Pays'), __('Visiteurs'));\r
+ $colsTitles = array(__('Pays'), __('Visits'));\r
$lines = array();\r
$xlines = array();\r
$i = 0;\r
$c3 = imagecolorallocatealpha($im, 194, 211, 19, 32);\r
$hv = $h * ($maxv / $max);\r
$mhv = $y0 - $hv - 6;\r
- imagesetstyle($im, array($c3, $c3, $c3, $c3, $c3, $trans, $trans, $trans, $trans));\r
- imageline($im, 0, $y0 - $hv, 944, $y0 - $hv, IMG_COLOR_STYLED);\r
- $c3 = imagecolorallocate($im, 194, 211, 19);\r
+// imagesetstyle($im, array($c3, $c3, $c3, $c3, $c3, $trans, $trans, $trans, $trans));\r
+// imageline($im, 0, $y0 - $hv, 944, $y0 - $hv, IMG_COLOR_STYLED);\r
+// $c3 = imagecolorallocate($im, 194, 211, 19);\r
foreach ($months as $m => $t) {\r
if (isset($s[$t])) {\r
$x0 += 15;\r
imagefilledrectangle($im, $x0 + 40, $y0 - $hb, $x0, $y0, $c2);\r
imagerectangle($im, $x0 + 40, $y0 - $hb, $x0, $y0, $c0);\r
$x0 += 5;\r
- imagefilledrectangle($im, $x0 + 40, $y0 - $hv, $x0, $y0, $c3);\r
- imagerectangle($im, $x0 + 40, $y0 - $hv, $x0, $y0, $c0);\r
+// imagefilledrectangle($im, $x0 + 40, $y0 - $hv, $x0, $y0, $c3);\r
+// imagerectangle($im, $x0 + 40, $y0 - $hv, $x0, $y0, $c0);\r
$i++;\r
$x0 += 50;\r
} else {\r
}\r
$res = '<div class="graphStats"><div class="graph-note" style="top:' . $mhp . 'px;color:#514e49;">' . $maxpages . '</div>';\r
$res .= '<div class="graph-note" style="top:' . $mhb . 'px;color:#f54d00;">' . $maxb . '</div>';\r
- $res .= '<div class="graph-note" style="top:' . $mhv . 'px;color:#c2d313;">' . $maxv . '</div>';\r
+ // $res .= '<div class="graph-note" style="top:' . $mhv . 'px;color:#c2d313;">' . $maxv . '</div>';\r
$res .= '<div class="graph-container" style="background:url(' . $imgw . ')"></div>';\r
$res .= '<table style="width:944px;max-width:944px;table-layout:fixed;" class="echelle"><tr>';\r
foreach ($months as $m => $t) {\r
$res .= '<table class="legende" style="margin-top:10px;margin-bottom:10px;"><tr>';\r
$res .= '<td style="width:12px;background:#514e49;height:12px;"></td><td style="width:10px;"></td><td>' . __('Pages vues') . '</td><td style="width:10px;"></td>';\r
$res .= '<td style="width:12px;background:#f54d00;height:12px;"></td><td style="width:10px;"></td><td>' . __('Visites') . '</td><td style="width:10px;"></td>';\r
- $res .= '<td style="width:12px;background:#c2d313;height:12px;"></td><td style="width:10px;"></td><td>' . __('Visiteurs uniques') . '</td><td style="width:10px;"></td>';\r
+ //$res .= '<td style="width:12px;background:#c2d313;height:12px;"></td><td style="width:10px;"></td><td>' . __('Visiteurs uniques') . '</td><td style="width:10px;"></td>';\r
$res .= '</tr></table></div>';\r
return $res;\r
}\r
$c3 = imagecolorallocatealpha($im, 194, 211, 19, 32);\r
$hv = $h * ($maxv / $max);\r
$mhv = $y0 - $hv - 6;\r
- imagesetstyle($im, array($c3, $c3, $c3, $c3, $c3, $trans, $trans, $trans, $trans));\r
- imageline($im, 0, $y0 - $hv, 944, $y0 - $hv, IMG_COLOR_STYLED);\r
- $c3 = imagecolorallocate($im, 194, 211, 19);\r
+// imagesetstyle($im, array($c3, $c3, $c3, $c3, $c3, $trans, $trans, $trans, $trans));\r
+// imageline($im, 0, $y0 - $hv, 944, $y0 - $hv, IMG_COLOR_STYLED);\r
+// $c3 = imagecolorallocate($im, 194, 211, 19);\r
foreach ($s as $t) {\r
$x0 -= 15;\r
$hp = $h * ($t['page'] / $max) - 2;\r
imagefilledrectangle($im, $x0 - 40, $y0 - $hb, $x0, $y0, $c2);\r
imagerectangle($im, $x0 - 40, $y0 - $hb, $x0, $y0, $c0);\r
$x0 -= 5;\r
- imagefilledrectangle($im, $x0 - 40, $y0 - $hv, $x0, $y0, $c3);\r
- imagerectangle($im, $x0 - 40, $y0 - $hv, $x0, $y0, $c0);\r
+// imagefilledrectangle($im, $x0 - 40, $y0 - $hv, $x0, $y0, $c3);\r
+// imagerectangle($im, $x0 - 40, $y0 - $hv, $x0, $y0, $c0);\r
$i++;\r
$x0 -= 50;\r
}\r
-\r
imageline($im, 0, $y0, 944, $y0, $c0);\r
imagepng($im, $img);\r
}\r
$res = '<div class="graphStats"><div class="graph-note" style="top:' . $mhp . 'px;color:#514e49;">' . $maxpages . '</div>';\r
$res .= '<div class="graph-note" style="top:' . $mhb . 'px;color:#f54d00">' . $maxb . '</div>';\r
- $res .= '<div class="graph-note" style="top:' . $mhv . 'px;color:#c2d313;">' . $maxv . '</div>';\r
+ //$res .= '<div class="graph-note" style="top:' . $mhv . 'px;color:#c2d313;">' . $maxv . '</div>';\r
$res .= '<div class="graph-container" style="background:url(' . $imgw . ')"></div>';\r
$s = array_reverse(array_pad($s, 12, false), true);\r
$res .= '<table style="width:944px;max-width:944px;" class="echelle"><tr>';\r
$res .= '<table class="legende"><tr>';\r
$res .= '<td style="width:12px;background:#514e49;height:12px;"></td><td style="width:10px;"></td><td>' . __('Pages vues') . '</td><td style="width:10px;"></td>';\r
$res .= '<td style="width:12px;background:#f54d00;height:12px;"></td><td style="width:10px;"></td><td>' . __('Visites') . '</td><td style="width:10px;"></td>';\r
- $res .= '<td style="width:12px;background:#c2d313;height:12px;"></td><td style="width:10px;"></td><td>' . __('Visiteurs uniques') . '</td><td style="width:10px;"></td>';\r
+ // $res .= '<td style="width:12px;background:#c2d313;height:12px;"></td><td style="width:10px;"></td><td>' . __('Visiteurs uniques') . '</td><td style="width:10px;"></td>';\r
$res .= '</tr></table></div>';\r
return $res;\r
}\r
$c3 = imagecolorallocatealpha($im, 194, 211, 19, 32);\r
$hv = $h * ($maxv / $max);\r
$mhv = $y0 - $hv - 6;\r
- imagesetstyle($im, array($c3, $c3, $c3, $c3, $c3, $trans, $trans, $trans, $trans));\r
- imageline($im, 0, $y0 - $hv, 944, $y0 - $hv, IMG_COLOR_STYLED);\r
- $c3 = imagecolorallocate($im, 194, 211, 19);\r
+// imagesetstyle($im, array($c3, $c3, $c3, $c3, $c3, $trans, $trans, $trans, $trans));\r
+// imageline($im, 0, $y0 - $hv, 944, $y0 - $hv, IMG_COLOR_STYLED);\r
+// $c3 = imagecolorallocate($im, 194, 211, 19);\r
foreach ($days as $d => $t) {\r
if (isset($s[$t])) {\r
$x0 += $space;\r
imagefilledrectangle($im, $x0 + 14, $y0 - $hb, $x0, $y0, $c2);\r
imagerectangle($im, $x0 + 14, $y0 - $hb, $x0, $y0, $c0);\r
$x0 += 3;\r
- imagefilledrectangle($im, $x0 + 14, $y0 - $hv, $x0, $y0, $c3);\r
- imagerectangle($im, $x0 + 14, $y0 - $hv, $x0, $y0, $c0);\r
+// imagefilledrectangle($im, $x0 + 14, $y0 - $hv, $x0, $y0, $c3);\r
+// imagerectangle($im, $x0 + 14, $y0 - $hv, $x0, $y0, $c0);\r
$i++;\r
$x0 += 14 + $space;\r
} else {\r
}\r
$res = '<div class="graphStats"><div class="graph-note" style="top:' . $mhp . 'px;color:#514e49;">' . $maxpages . '</div>';\r
$res .= '<div class="graph-note" style="top:' . $mhb . 'px;color:#f54d00;">' . $maxb . '</div>';\r
- $res .= '<div class="graph-note" style="top:' . $mhv . 'px;color:#c2d313;">' . $maxv . '</div>';\r
+ // $res .= '<div class="graph-note" style="top:' . $mhv . 'px;color:#c2d313;">' . $maxv . '</div>';\r
$res .= '<div class="graph-container" style="background:url(' . $imgw . ')"></div>';\r
$res .= '<table style="width:944px;max-width:944px;margin:0px;table-layout:fixed;" class="echelle"><tr>';\r
foreach ($days as $d => $t) {\r
$res .= '<table style="margin-top:10px;margin-bottom:10px;" class="legende"><tr>';\r
$res .= '<td style="width:12px;background:#514e49;height:12px;"></td><td style="width:10px;"></td><td>' . __('Pages vues') . '</td><td style="width:10px;"></td>';\r
$res .= '<td style="width:12px;background:#f54d00;height:12px;"></td><td style="width:10px;"></td><td>' . __('Visites') . '</td><td style="width:10px;"></td>';\r
- $res .= '<td style="width:12px;background:#c2d313;height:12px;"></td><td style="width:10px;"></td><td>' . __('Visiteurs uniques') . '</td><td style="width:10px;"></td>';\r
+ // $res .= '<td style="width:12px;background:#c2d313;height:12px;"></td><td style="width:10px;"></td><td>' . __('Visiteurs uniques') . '</td><td style="width:10px;"></td>';\r
$res .= '</tr></table></div>';\r
return $res;\r
}\r
{\r
`/home/stats/www/FWStats.sh /home/stats/www onlybook=$id`;\r
}\r
+\r
+ /**\r
+ * @return \Cubist\Matomo\Reporting\r
+ */\r
+ public static function getMatomoAPI(){\r
+ return new \Cubist\Matomo\Reporting('https://v3.stats.fluidbook.com/','ebe362f44c01bda1ddedb75d7726ff78');\r
+ }\r
}
\ No newline at end of file