$ext = 'jpeg'; $background = new MGraph(); $background->SetImgFormat($ext); $background->SetFrame(true, 'black'); $background->SetMargin(10, 10, 10, 10); } else { require_once 'lib/sheet/grid.php'; require_once 'lib/graph-engine/gd.php'; require_once 'lib/graph-engine/pdflib.php'; require_once 'lib/graph-engine/ps.php'; require_once 'lib/graph-engine/graph.pie.php'; require_once 'lib/graph-engine/graph.bar.php'; require_once 'lib/graph-engine/graph.multiline.php'; $graphType = 'BarStackGraphic'; $ext = 'jpg'; $background = new GD_GRenderer(max($widthUser, $widthWeek), 8 * $height, $ext); $legendWidth = 300; } include_once 'lib/smarty_tiki/modifier.tiki_short_date.php'; $period = ' (' . smarty_modifier_tiki_short_date($startDate); $s = smarty_modifier_tiki_short_date($startDate); $e = smarty_modifier_tiki_short_date($endDate); $period = $s != $e ? " ({$s}-{$e})" : " ({$s})"; $accumulated = isset($_REQUEST['barPlot']) && $_REQUEST['barPlot'] == 'acc' ? true : false; $series = $logslib->draw_contribution_user($userContributions, 'add', $contributions); if ($series['totalVol']) { if ($tiki_p_admin == 'y') { $title = tra('Users Contributions: Addition'); } else { $title = sprintf(tra('%s Contributions: Addition'), $user); }