En vous promenant sur Beamreactor, nous stockons votre IP 48h pour des raisons de sécurité.

Lecteur Markdown

statistics Documentation › STATISTICS_DOCUMENTATION_EN

STATISTICS_DOCUMENTATION_EN

Feature: Statistics #

Visit statistics dashboard. Displays total visit count, daily average, page generation performance, per-IP visitor profiles and SVG trend charts.

---

Installation and Configuration #

Via FTP: Upload the `statistics/` directory into `/plugins/`.

Via package manager: Select `statistics` from the available plugins list.

Paths:

  • Main plugin: `/plugins/statistics/statistics.php`
  • Classes: `/plugins/statistics/lib/StatsData.class.php`, `StatsDisplay.class.php`, `SVGChart.class.php`
  • Configuration: `/plugins/statistics/conf/statistics.conf.inc.php`

Configuration parameters:

| Variable | Default | Description |

|---|---|---|

| `$basedisplevel` | `BASE_LEVEL_USER` | Minimum required level |

| `$ftype` | `5` | Plugin type (tools) |

Cache: files at `$cfg[20]/statistics{host_hash}.dat` — TTL 59 minutes.

SQL table used: `stats`

---

Usage #

Overview #

  • Total visit count
  • Daily average
  • Average page generation time (ms)
  • SVG trend chart

Per-IP profiles #

For each distinct IP address:

  • Detected browser
  • Declared language (ISO 639-1 code resolved)
  • Last visit

Click on an IP → detail of that IP's last 200 visits.

Refresh #

The `?force=1` parameter bypasses the cache.

---

Hooks and Entry Points #

?obj=statistics.php                      — Overview
?obj=statistics.php&action=1&ip=X.X.X.X — Visitor detail
?obj=statistics.php&force=1              — Force refresh

---

Dependencies #

  • `Beamreactor\Database\SQL` — `stats` table
  • Write access to `var/` — for the cache
de en fr