xref: /plugin/statdisplay/graph.php (revision 1a328e16f5bd870878656eeedfbe2e10fe8b4122)
1<?php
2
3/**
4 * statdisplay plugin graph dispatcher
5 *
6 * @author Andreas Gohr <gohr@cosmocode.de>
7 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
8 */
9
10if (!defined('DOKU_INC')) define('DOKU_INC', __DIR__ . '/../../../');
11define('DOKU_DISABLE_GZIP_OUTPUT', 1);
12require_once(DOKU_INC . 'inc/init.php');
13
14/** @var helper_plugin_statdisplay_graph $graph */
15$graph = plugin_load('helper', 'statdisplay_graph');
16$graph->sendgraph(
17    $_REQUEST['graph'],
18    $_REQUEST['f'] ?? '',
19    $_REQUEST['t'] ?? ''
20);
21