php-reports http://jdorn.github.io/php-reports/
Installation is as simple as putting the downloaded files into the htdocs directory, and the Appgini security can be added by putting the following code at the start of the main (index.php) file:
Code: Select all
<?php
$d="/your/actual/path/to/your/AppginiProject"; //eg: /home/user/html_public/myproj/"
require_once("$d/admin/incConnection.php");
include("$d/defaultLang.php");
include("$d/language.php");
include("$d/lib.php");
/* grant access to all logged users */
$mi = getMemberInfo();
if(!$mi['username'] || $mi['username'] == 'guest'){
echo "Sorry, you don't have authority to access this page.";
echo '<script language="javaScript">setInterval("window.location=\'/yourAppginiProjectPath/index.php?signOut=1\'", 2000);</script>';
exit;
}
session_start(); // <== This is the first line of the original file
After that I added this in the "links-home.php" hooks file:
Code: Select all
$homeLinks[] = array(
'url' => '../php-reports" target="blank"',
'title' => 'Reports',
'description' => '',
'groups' => array('*')
);
Hope this is useful to someone.